Function at 0x403130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a938b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x744
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x758], edi
call fcn.004048b0
mov dword [esp + 0x14], vtable.WTL::CMessageLoop.0
mov eax, dword [0x4d1ac8]
mov ebp, 1
add eax, 0x1c
mov dword [esp + 0x758], ebp
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d1bd8]
push eax
call fcn.004048c0
mov edx, dword [0x4d1ac8]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, esi
call fcn.00404620
test eax, eax
jne 0x4031f2
lea ecx, [esp + 0x24]
mov dword [esp + 0x758], 2
call fcn.0041a790
lea ecx, [esp + 0x18]
mov dword [esp + 0x758], 0xffffffff
call fcn.0041a790
xor eax, eax
jmp 0x403486
lea ecx, [esp + 0x4c]
call fcn.004227c0
push edi
lea ecx, [esp + 0x50]
mov byte [esp + 0x75c], 3
call fcn.004251f0
test eax, eax
jne 0x403345
lea ecx, [esp + 0x748]
mov byte [esp + 0x758], 0xe
call fcn.004056c0
lea ecx, [esp + 0x710]
mov byte [esp + 0x758], 0xd
call fcn.0049e8f0
lea ecx, [esp + 0x5e0]
mov byte [esp + 0x758], 0xc
call fcn.0041c2c0
lea ecx, [esp + 0x4b8]
mov byte [esp + 0x758], 0xb
call fcn.0041f0c0
lea ecx, [esp + 0x3dc]
mov byte [esp + 0x758], 0xa
call fcn.00431650
lea ecx, [esp + 0x26c]
mov byte [esp + 0x758], 9
call fcn.0042aee0
lea ecx, [esp + 0xf8]
mov byte [esp + 0x758], 8
call fcn.00432fd0
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x74]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x758], 7
and ecx, eax
call fcn.0043ef80
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xb4]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x758], 6
and ecx, edx
call fcn.0041a790
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x9c]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x758], 5
and ecx, eax
call fcn.00403690
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x98]
neg ecx
sbb ecx, ecx
mov byte [esp + 0x758], 1
and ecx, edx
call fcn.00404b20
lea ecx, [esp + 0x24]
mov dword [esp + 0x758], 0xf
call fcn.0041a790
lea ecx, [esp + 0x18]
mov dword [esp + 0x758], 0xffffffff
call fcn.0041a790
xor eax, eax
jmp 0x403486
mov eax, dword [esp + 0x50]
mov ecx, esi
mov dword [0x4d1af0], eax
call fcn.00402ef0
test eax, eax
jne 0x403368
mov ecx, dword [esp + 0x50]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403387
mov edx, dword [esp + 0x50]
push edi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x50]
push edi
push 0x6a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
xor esi, esi
cmp ebp, edi
je 0x4033b8
push edi
push edi
push edi
lea ecx, [esp + 0x40]
push edi
push ecx
call ebx
test eax, eax
jne 0x4033b8
mov edx, dword [esp + 0x18]
mov eax, esi
push eax
lea ecx, [esp + 0x1c]
inc esi
call dword [edx + 4]
test eax, eax
jne 0x403394
xor ebp, ebp
push edi
push edi
lea eax, [esp + 0x3c]
push edi
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x403390
cmp eax, edi
je 0x403415
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call dword [edx]
test eax, eax
jne 0x4033f8
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea edx, [esp + 0x34]
push edx
call fcn.00404a70
add esp, 4
test eax, eax
je 0x403390
mov ebp, 1
xor esi, esi
jmp 0x403390
mov eax, dword [0x4d1ac8]
mov esi, dword [esp + 0x3c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d1bd8]
push eax
call fcn.00404940
mov ecx, dword [0x4d1ac8]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x78]
mov byte [esp + 0x75c], 1
call fcn.004034e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x75c], 0x10
call fcn.0041a790
lea ecx, [esp + 0x1c]
mov dword [esp + 0x75c], 0xffffffff
call fcn.0041a790
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x750]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x750
ret 8