I can change your status inside US, not outside. As long as the company sponsor you for H-1b, you can go and work. But make sure that is after you get the H-1b, not before.