Control Flow of Subroutine sub_40BE0F