Semi-infinite flags. II: Local and global intersection cohomology of quasimaps spaces Deforming nonnormal isolated surface singularities and constructing threefolds with \(\mathbb{P}^{1}\) as exceptional set 