Function at 0x42bea7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2808
call fcn.004a07a0
mov eax, dword [0x6e47f0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2808], 0
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
inc edx
mov ebx, edx
and dword [edi + 0x44], 0
mov dword [edi + 0x40], edx
test ebx, ebx
je 0x42bf17
lea esi, [edi + 0x24]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x42bf17
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x2808]
call dword [eax + 8]
inc dword [ebp - 0x2808]
test eax, eax
jne 0x42bf09
xor ebx, ebx
cmp dword [edi + 0x44], 0
jne 0x42c0ee
test ebx, ebx
jne 0x42bedd
push 0
push 0
push 0
lea esi, [edi + 0x24]
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
jne 0x42bfeb
mov ecx, dword [0x6f53ac]
test ecx, ecx
je 0x42bf43
call fcn.004126ec
mov esi, eax
jmp 0x42bf45
xor esi, esi
push str.::GetMessage_returned__1__error_
push 0xffffffffffffffff
lea eax, [ebp - 0x1804]
push 0x800
push eax
call fcn.0042c104
add esp, 0x10
lea eax, [ebp - 0x1804]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x800
jae 0x42bf9b
xor ecx, ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1804]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
je 0x42bfd9
mov eax, dword [esi]
mov ecx, esi
push 4
push 0
call dword [eax + 0x2c]
test al, al
je 0x42bfd9
push dword [ebp + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x804]
push str.SOUI::SMessageLoop::Run
push 0x2c
push str.F:EyeAngle_trunk_souiSOUI_srccoreSMsgLoop.cpp
push ecx
push str.soui
push 4
push 0
mov ecx, esi
call dword [eax + 0x34]
jmp 0x42bed6
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x42bed6
test eax, eax
je 0x42c03c
push esi
mov ecx, edi
call fcn.0042bd6d
mov eax, dword [edi + 0x28]
sub eax, 0xf
je 0x42c01a
sub eax, 0x91
je 0x42c01a
sub eax, 0x78
je 0x42c01a
sub eax, 0xe8
je 0x42c01a
xor ecx, ecx
xor ebx, ebx
inc ecx
inc ebx
jmp 0x42c01c
xor ecx, ecx
cmp dword [edi + 0x44], 0
jne 0x42c0ee
xor eax, eax
test ecx, ecx
cmove eax, dword [ebp - 0x2808]
mov dword [ebp - 0x2808], eax
jmp 0x42bed6
mov ecx, dword [0x6f53ac]
test ecx, ecx
je 0x42c04f
call fcn.004126ec
mov esi, eax
jmp 0x42c051
xor esi, esi
push dword [edi + 0x2c]
lea eax, [ebp - 0x2804]
push str.SMessageLoop::Run___exiting_code___d
push 0xffffffffffffffff
push 0x800
push eax
call fcn.0042c104
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x2804]
add esp, 0x14
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push eax
push ecx
push ecx
call ebx
cmp eax, 0x800
jae 0x42c0a8
xor ecx, ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2804]
push eax
push ecx
push ecx
call ebx
test esi, esi
je 0x42c0e1
mov eax, dword [esi]
xor ebx, ebx
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x2c]
test al, al
je 0x42c0e1
push dword [ebp + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x804]
push str.SOUI::SMessageLoop::Run
push 0x31
push str.F:EyeAngle_trunk_souiSOUI_srccoreSMsgLoop.cpp
push ecx
push str.soui
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x34]
jmp 0x42c0ee
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
and dword [edi + 0x40], 0
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f7c1
leave
ret