Investigating Massive Star Formation through Spectral Analysis of Extended Green Objects