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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c9f68
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0048594e
xor ebp, ebp
cmp dword [esi + 0x17c], ebp
mov ebx, 0x50210000
je 0x402d48
mov ebx, 0x50210100
cmp dword [esi + 0x180], ebp
je 0x402d55
or ebx, 2
jmp 0x402d58
or ebx, 3
mov ecx, dword [esi + 0x98]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.0048c6c9
mov eax, dword [esp + 0x30]
add eax, 0xfa
push ebp
lea ecx, [esi + 0x78]
mov dword [esp + 0x3c], eax
call fcn.004860cc
mov ecx, dword [esi + 0x98]
push ebp
push 0xfffffffffffffff4
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [esi + 0x120]
mov edx, dword [edx + 0x134]
push 0x3f0
push esi
lea edi, [esi + 0x120]
lea eax, [esp + 0x34]
push eax
push ebx
mov ecx, edi
call edx
test eax, eax
jne 0x402de6
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x31
push eax
call ebx
push eax
call fcn.0048cbea
cmp eax, ebp
jne 0x402e04
xor eax, eax
jmp 0x402e07
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x140]
push 1
push eax
push 0x30
push ecx
call ebx
mov eax, dword [esi + 0x174]
push eax
mov ecx, esi
call fcn.00486032
mov eax, dword [esi + 0x184]
add eax, 0xfffffff0
cmp eax, 0x30
ja case.0x402e3c.17
movzx edx, byte [eax + 0x403058]
jmp dword [edx*4 + 0x403044]
push 0x7f01
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
push ebp
push eax
mov eax, dword [esi + 0xec]
push 0x170
push eax
call ebx
jmp 0x402f9d
push 0x7f02
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esi + 0xec]
push ebp
push eax
push 0x170
push ecx
call ebx
jmp 0x402f9d
push 0x7f03
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [esi + 0xec]
push ebp
push eax
push 0x170
push edx
call ebx
jmp 0x402f9d
push 0x7f04
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
push ebp
push eax
mov eax, dword [esi + 0xec]
push 0x170
push eax
call ebx
jmp 0x402f9d
mov edx, dword [esi + 0xec]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x3c]
push ecx
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call ebx
push ebp
lea ecx, [esi + 0xcc]
call fcn.004860cc
mov ecx, dword [esi + 0x140]
lea eax, [esp + 0x1c]
push eax
push ecx
call ebx
mov ebx, dword [esp + 0x1c]
sub ebx, dword [esp + 0x3c]
push esi
mov eax, ebx
call fcn.00403090
push 0x3eb
mov ecx, esi
call fcn.00485f5a
mov edi, eax
push esi
mov eax, ebx
call fcn.00403090
push 1
mov ecx, esi
call fcn.00485f5a
mov edi, eax
push esi
mov eax, ebx
call fcn.00403090
push 2
mov ecx, esi
call fcn.00485f5a
mov edi, eax
push esi
mov eax, ebx
call fcn.00403090
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 1
sub edx, ecx
push edx
mov edx, dword [esp + 0x24]
sub eax, ebx
mov dword [esp + 0x2c], eax
sub eax, edx
push eax
push ecx
push edx
mov ecx, esi
call fcn.0048608e
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x4dfd54
lea ecx, [esp + 0x1c]
call fcn.00402520
mov dword [esp + 0x58], ebp
mov edi, dword [esi + 0x18c]
cmp edi, ebp
je 0x402fdf
lea esp, [esp]
cmp edi, ebp
mov eax, edi
je 0x40303e
mov eax, dword [eax + 8]
mov edi, dword [edi]
push eax
mov eax, dword [esi + 0x140]
push ebp
push 0x143
push eax
call ebx
cmp edi, ebp
jne 0x402fc0
mov eax, dword [esi + 0x178]
mov ecx, dword [eax - 0xc]
cmp ecx, ebp
je 0x402ffd
mov ecx, dword [esi + 0x140]
push eax
push 0xffffffffffffffff
push 0x14d
push ecx
call ebx
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403025
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.00484c83