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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x74]
test eax, eax
push edi
je 0x40ea4f
cmp dword [eax + 0x20], 0
je 0x40ea4f
lea eax, [esi + 0x284]
test eax, eax
je 0x40ea4f
cmp dword [eax + 0x20], 0
je 0x40ea4f
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x98]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x8c], edx
add edx, 0x4f
add eax, 6
mov dword [esp + 0x8c], edx
lea ebp, [eax + 0xa0]
mov dword [esp + 0x2c], edx
sub ecx, 0xb
lea edx, [esp + 0x10]
mov dword [esp + 0x88], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x2a4]
push edx
sub edi, 0x15
mov dword [esp + 0x94], ecx
mov dword [esp + 0x94], ebp
push eax
mov dword [esp + 0x9c], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
add ebp, 1
call ebx
mov edx, dword [esp + 0x18]
mov ecx, ebp
sub ecx, dword [esp + 0x10]
lea eax, [edx + ecx + 0x10]
mov dword [esp + 0x18], eax
lea ecx, [ebp + 0x10]
lea eax, [esp + 0x48]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0xdcc]
mov edx, edi
sub edx, dword [esp + 0x1c]
push eax
add dword [esp + 0x18], edx
push ecx
mov dword [esp + 0x24], edi
call ebx
mov eax, dword [esp + 0x30]
mov edx, eax
sub edx, dword [esp + 0x50]
mov dword [esp + 0x50], eax
add dword [esp + 0x48], edx
mov edx, dword [esi + 0xa14]
lea ecx, [esp + 0x38]
mov eax, edi
sub eax, dword [esp + 0x54]
push ecx
add dword [esp + 0x50], eax
push edx
mov dword [esp + 0x5c], edi
call ebx
mov eax, dword [esp + 0x48]
mov ecx, eax
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x40], eax
add dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x65c]
lea eax, [esp + 0x58]
mov edx, edi
sub edx, dword [esp + 0x44]
push eax
add dword [esp + 0x40], edx
push ecx
mov dword [esp + 0x4c], edi
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
mov edx, eax
sub edx, dword [esp + 0x60]
lea edx, [ecx + edx - 8]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x1184]
add eax, 0xfffffff8
mov dword [esp + 0x60], eax
mov eax, edi
sub eax, dword [esp + 0x64]
lea ecx, [esp + 0x68]
add dword [esp + 0x5c], eax
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x3c]
push ecx
push edx
add edi, 0xfffffff1
call ebx
mov ecx, dword [esi + 0x153c]
lea eax, [esp + 0x78]
push eax
push ecx
call ebx
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x68]
sub eax, ecx
mov edx, eax
sub edx, dword [esp + 0x70]
add edx, dword [esp + 0x78]
lea edx, [ebx + edx - 0x14]
mov ebx, dword [esp + 0x78]
add dword [esp + 0x70], edx
lea eax, [ebx + eax - 0xa]
add ecx, eax
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x68], edx
mov edx, 0x26
add dword [esp + 0x74], edx
add dword [esp + 0x84], edx
push eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], edx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x40e6e3
cmp dword [esi + 0x18dc], 0
jne 0x40e6e3
mov edx, dword [esi + 0x94]
mov ecx, dword [esi + 0x218]
push 0
push 0
push 0x1004
push edx
mov dword [esp + 0x30], ecx
call ebx
imul eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
sub eax, edi
add eax, ecx
test eax, eax
mov dword [esi + 0x18dc], eax
jg 0x40ea4f
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x20]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x284]
call fcn.00416f57
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x50]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0xdac]
call fcn.00416f57
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x9f4]
call fcn.00416f57
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x60]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x63c]
call fcn.00416f57
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x70]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x1164]
call fcn.00416f57
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x80]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x151c]
call fcn.00416f57
mov ecx, dword [esp + 0x8c]
push 1
mov eax, edi
mov edx, dword [esp + 0x94]
sub eax, ecx
push eax
mov eax, dword [esp + 0x90]
sub edx, eax
push edx
push ecx
push eax
lea ecx, [esi + 0x74]
call fcn.00416f57
mov eax, dword [esi + 0x94]
push 0xa0
push 0
push 0x101e
push eax
call ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push 1
mov eax, edi
sub eax, ecx
push eax
sub edx, ebp
push edx
push ecx
mov ecx, dword [esi + 0x196c]
imul ecx, ecx, 0x210
add ecx, dword [esi + 0x18d4]
push ebp
mov dword [esp + 0xbc], eax
call fcn.00416f57
mov edx, dword [esi + 0x196c]
mov eax, dword [esp + 0x2c]
imul edx, edx, 0x210
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x195c], ebp
mov dword [esi + 0x1960], eax
mov eax, dword [esi + 0x18d4]
mov dword [esi + 0x1964], ecx
lea ecx, [edx + eax]
mov dword [esi + 0x1968], edi
mov edx, dword [ecx + 0x1a4]
mov dword [esp + 0x20], 0
mov dword [esp + 0xac], edx
mov dword [esp + 0x24], 1
call fcn.00419f9b
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call ebx
cmp eax, 1
jle 0x40e909
jmp 0x40e8b0
mov eax, dword [esi + 0x196c]
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x210
add eax, dword [esi + 0x18d4]
push 0
mov edx, dword [eax + 0x20]
push ecx
push 0x101d
push edx
call ebx
mov ecx, dword [esi + 0x196c]
add dword [esp + 0x20], eax
imul ecx, ecx, 0x210
add ecx, dword [esi + 0x18d4]
add dword [esp + 0x24], 1
call fcn.00419f9b
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call ebx
cmp dword [esp + 0x24], eax
jl 0x40e8b0
mov eax, dword [esi + 0x196c]
imul eax, eax, 0x210
add eax, dword [esi + 0x18d4]
push 0
mov ecx, dword [eax + 0x20]
push 0
push 0x1004
push ecx
call ebx
imul eax, dword [esp + 0xac]
add eax, 2
cmp eax, dword [esp + 0xa8]
jle 0x40e97b
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esi + 0x196c]
mov edx, eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
sub eax, ebp
sub eax, edx
mov edx, dword [esi + 0x18d4]
sub eax, 1
imul ecx, ecx, 0x210
movzx eax, ax
push eax
mov eax, dword [ecx + edx + 0x20]
push 0
push 0x101e
push eax
jmp 0x40e9aa
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x196c]
sub ecx, ebp
sub ecx, dword [esp + 0x20]
sub ecx, 1
imul eax, eax, 0x210
movzx edx, cx
mov ecx, dword [esi + 0x18d4]
push edx
mov edx, dword [eax + ecx + 0x20]
push 0
push 0x101e
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x90]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
add eax, 0xfffffffb
mov dword [esp + 0x14], eax
lea ecx, [edi + 5]
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x20]
push eax
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ebp
call ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xa0]
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x20]
push ecx
push edx
mov dword [esp + 0x24], eax
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 1
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20]
push edx
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ecx
call ebx
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x30]
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x20]
push eax
add ebp, 0xfffffffb
add edx, 5
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], edx
call ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0xc