Function at 0x10046bda
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3008
call fcn.1018f810
mov eax, dword [0x1028dc74]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x3008], 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 0x10046c4a
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 0x10046c4a
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x3008]
call dword [eax + 8]
inc dword [ebp - 0x3008]
test eax, eax
jne 0x10046c3c
xor ebx, ebx
cmp dword [edi + 0x44], 0
jne 0x10046e21
test ebx, ebx
jne 0x10046c10
push 0
push 0
push 0
lea esi, [edi + 0x24]
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
jne 0x10046d1e
mov ecx, dword [0x1029aca8]
test ecx, ecx
je 0x10046c76
call fcn.1002db55
mov esi, eax
jmp 0x10046c78
xor esi, esi
push str.::GetMessage_returned__1__error_
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push 0x800
push eax
call fcn.10017090
add esp, 0x10
lea eax, [ebp - 0x2004]
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 0x10046cce
xor ecx, ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
je 0x10046d0c
mov eax, dword [esi]
mov ecx, esi
push 4
push 0
call dword [eax + 0x2c]
test al, al
je 0x10046d0c
push dword [ebp + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x804]
push str.SOUI::SMessageLoop::Run
push 0x2c
push str.d:youqu_job_soui_soui_srccore_smsgloop.cpp
push ecx
push str.soui
push 4
push 0
mov ecx, esi
call dword [eax + 0x34]
jmp 0x10046c09
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10046c09
test eax, eax
je 0x10046d6f
push esi
mov ecx, edi
call fcn.10046b1e
mov eax, dword [edi + 0x28]
sub eax, 0xf
je 0x10046d4d
sub eax, 0x91
je 0x10046d4d
sub eax, 0x78
je 0x10046d4d
sub eax, 0xe8
je 0x10046d4d
xor ecx, ecx
xor ebx, ebx
inc ecx
inc ebx
jmp 0x10046d4f
xor ecx, ecx
cmp dword [edi + 0x44], 0
jne 0x10046e21
xor eax, eax
test ecx, ecx
cmove eax, dword [ebp - 0x3008]
mov dword [ebp - 0x3008], eax
jmp 0x10046c09
mov ecx, dword [0x1029aca8]
test ecx, ecx
je 0x10046d82
call fcn.1002db55
mov esi, eax
jmp 0x10046d84
xor esi, esi
push dword [edi + 0x2c]
lea eax, [ebp - 0x3004]
push str.SMessageLoop::Run___exiting_code___d
push 0xffffffffffffffff
push 0x800
push eax
call fcn.10017090
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x3004]
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 0x10046ddb
xor ecx, ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3004]
push eax
push ecx
push ecx
call ebx
test esi, esi
je 0x10046e14
mov eax, dword [esi]
xor ebx, ebx
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x2c]
test al, al
je 0x10046e14
push dword [ebp + 4]
mov eax, dword [esi]
lea ecx, [ebp - 0x1004]
push str.SOUI::SMessageLoop::Run
push 0x31
push str.d:youqu_job_soui_soui_srccore_smsgloop.cpp
push ecx
push str.soui
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x34]
jmp 0x10046e21
lea eax, [ebp - 0x1004]
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.1018ea37
leave
ret