Dihedral or quasi-dihedral direct factors of Sylow 2-subgroup