Function at 0x404d90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x449a02
mov eax, dword fs:[0]
push eax
sub esp, 0x150
push ebx
push esi
mov eax, dword [0x463fcc]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov esi, dword [0x465680]
lea eax, [esp + 0x18]
add esi, 0x10
push esi
mov dword [esp + 0x168], ebx
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x465700]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
call fcn.00403140
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x50]
call fcn.0041a4f0
mov byte [esp + 0x164], 1
call fcn.00401e80
mov eax, dword [eax + 0x14]
cmp byte [eax], bl
je 0x404f5f
push str.EventName
lea ecx, [esp + 0x10]
call fcn.00404ce0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x16c], 2
call fcn.00401e80
mov ecx, eax
call fcn.00411b70
mov eax, dword [esp + 0x10]
push 1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
mov byte [esp + 0x170], 3
call fcn.00401ef0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x16c], 4
call fcn.00401e80
mov ecx, eax
mov byte [esp + 0x16c], 3
call fcn.00417da0
cmp al, bl
je 0x404f06
push 0x44e890
lea ecx, [esp + 0x18]
call fcn.00404ce0
lea eax, [esp + 0x14]
push 1
push eax
mov byte [esp + 0x16c], 5
call fcn.00401e80
mov ecx, eax
call fcn.00415960
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x164], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x164], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x164], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404fb4
push ebx
push ebx
lea ecx, [esp + 0x58]
call fcn.00404340
test eax, eax
jne 0x404fa1
lea ecx, [esp + 0x50]
mov byte [esp + 0x164], bl
call fcn.00404230
lea ecx, [esp + 0x18]
call fcn.004030d0
xor eax, eax
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x15c
ret
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0x18]
call fcn.00401d10
mov ecx, 0x4656cc
mov esi, eax
call fcn.004041b0
lea ecx, [esp + 0x50]
mov byte [esp + 0x164], bl
call fcn.00404230
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x404fee
push eax
call fcn.0042efe6
add esp, 4
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x405007
push eax
call fcn.0042efe6
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x15c
ret