Function at 0x10046a0a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3008
call fcn.10084cf0
mov eax, dword [0x1010c824]
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 0x10046a7a
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 0x10046a7a
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x3008]
call dword [eax + 8]
inc dword [ebp - 0x3008]
test eax, eax
jne 0x10046a6c
xor ebx, ebx
cmp dword [edi + 0x44], 0
jne 0x10046c51
test ebx, ebx
jne 0x10046a40
push 0
push 0
push 0
lea esi, [edi + 0x24]
push esi
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
jne 0x10046b4e
mov ecx, dword [0x10113950]
test ecx, ecx
je 0x10046aa6
call fcn.1002d985
mov esi, eax
jmp 0x10046aa8
xor esi, esi
push str.::GetMessage_returned__1__error_
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push 0x800
push eax
call fcn.10015d70
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 0x10046afe
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 0x10046b3c
mov eax, dword [esi]
mov ecx, esi
push 4
push 0
call dword [eax + 0x2c]
test al, al
je 0x10046b3c
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 0x10046a39
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10046a39
test eax, eax
je 0x10046b9f
push esi
mov ecx, edi
call fcn.1004694e
mov eax, dword [edi + 0x28]
sub eax, 0xf
je 0x10046b7d
sub eax, 0x91
je 0x10046b7d
sub eax, 0x78
je 0x10046b7d
sub eax, 0xe8
je 0x10046b7d
xor ecx, ecx
xor ebx, ebx
inc ecx
inc ebx
jmp 0x10046b7f
xor ecx, ecx
cmp dword [edi + 0x44], 0
jne 0x10046c51
xor eax, eax
test ecx, ecx
cmove eax, dword [ebp - 0x3008]
mov dword [ebp - 0x3008], eax
jmp 0x10046a39
mov ecx, dword [0x10113950]
test ecx, ecx
je 0x10046bb2
call fcn.1002d985
mov esi, eax
jmp 0x10046bb4
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.10015d70
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 0x10046c0b
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 0x10046c44
mov eax, dword [esi]
xor ebx, ebx
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x2c]
test al, al
je 0x10046c44
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 0x10046c51
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.10083f1a
leave
ret