Clean up most of the inline assembly from windows

Started out as cleaning up inline assembly from window_staff.c, ended up cleaning up most of it (except textinput and tooltip functions)