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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44bea0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push edi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
call fcn.0041232b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404ef5
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x58], 0
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + 0x7c]
movzx edx, ax
push esi
push edx
call fcn.0040cedd
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx + 0x7c]
movzx eax, ax
push esi
push eax
call fcn.0040cedd
mov ecx, dword [esi + 0x7c]
mov eax, dword [ecx + 0x7c]
movzx edx, ax
push esi
push edx
call fcn.0040cedd
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx + 0x7c]
movzx eax, ax
push esi
push eax
call fcn.0040cedd
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx + 0x7c]
movzx edx, ax
push esi
push edx
call fcn.0040cedd
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
mov edx, dword [eax + 0x160]
push 1
call edx
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx]
mov edx, dword [eax + 0x160]
push 0
call edx
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 0x7c]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x476968
call fcn.0040a7b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 1
call fcn.00401d90
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404fd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x404ff7
push 0x88
call fcn.0041779e
test eax, eax
je 0x404ff7
push 0x88
push eax
lea ecx, [esp + 0x14]
call fcn.00406840
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x74]
push edx
call fcn.00412c52
mov eax, dword [esi + 0x78]
mov eax, dword [eax + 0x7c]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x476968
call fcn.0040a7b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 2
call fcn.00401d90
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x405077
push 0x89
call fcn.0041779e
test eax, eax
je 0x405077
push 0x89
push eax
lea ecx, [esp + 0x14]
call fcn.00406840
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x78]
push edx
call fcn.00412c52
mov eax, dword [esi + 0x7c]
mov eax, dword [eax + 0x7c]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x476968
call fcn.0040a7b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 3
call fcn.00401d90
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4050d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x4050f7
push 0x8a
call fcn.0041779e
test eax, eax
je 0x4050f7
push 0x8a
push eax
lea ecx, [esp + 0x14]
call fcn.00406840
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x7c]
push edx
call fcn.00412c52
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0x7c]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x476968
call fcn.0040a7b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 4
call fcn.00401d90
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405153
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jne 0x40517a
push 0x8b
call fcn.0041779e
test eax, eax
je 0x40517a
push 0x8b
push eax
lea ecx, [esp + 0x14]
call fcn.00406840
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x80]
push edx
call fcn.00412c52
push 0x6c
lea eax, [esp + 0x1c]
push eax
call fcn.0040a5e0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 5
call fcn.00401d90
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x84]
call fcn.00412c52
push 0x40b
mov ecx, esi
call fcn.00412b2b
mov eax, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push 0x40a
mov ecx, esi
call fcn.00412b2b
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call edi
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00413d79
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00413d79
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
push 1
add ebx, 5
add eax, 0xfffffffb
add ecx, 0xfffffffb
sub eax, ebx
add edi, 5
sub ecx, edi
push eax
push ecx
push ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x74]
push edi
mov dword [esp + 0x24], eax
call fcn.00412cae
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 1
push ecx
mov ecx, dword [esi + 0x78]
push edx
push ebx
push edi
call fcn.00412cae
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 1
push eax
push ecx
mov ecx, dword [esi + 0x7c]
push ebx
push edi
call fcn.00412cae
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x84]
push 1
push edx
push eax
push ebx
push edi
call fcn.00412cae
push 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push ebx
push edi
call fcn.00412cae
mov ecx, dword [esi + 0x78]
push 0
call fcn.00412cec
mov ecx, dword [esi + 0x7c]
push 0
call fcn.00412cec
mov ecx, dword [esi + 0x84]
push 0
call fcn.00412cec
mov ecx, dword [esi + 0x80]
push 0
call fcn.00412cec
mov ecx, dword [esi + 0x74]
push 1
call fcn.00412cec
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405329
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret