Function at 0x40e640
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 0x40ec2c
cmp dword [eax + 0x20], 0
je 0x40ec2c
lea eax, [esi + 0x288]
test eax, eax
je 0x40ec2c
cmp dword [eax + 0x20], 0
je 0x40ec2c
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 + 0x4c], edx
add edx, 0x4f
add eax, 6
mov dword [esp + 0x4c], edx
lea ebp, [eax + 0xa0]
mov dword [esp + 0x2c], edx
sub ecx, 0xb
lea edx, [esp + 0x10]
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x2a8]
push edx
sub edi, 0x15
mov dword [esp + 0x54], ecx
mov dword [esp + 0x54], ebp
push eax
mov dword [esp + 0x5c], 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 + 0x58]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0xdd0]
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 + 0x60]
mov dword [esp + 0x60], eax
add dword [esp + 0x58], edx
mov edx, dword [esi + 0xa18]
lea ecx, [esp + 0x38]
mov eax, edi
sub eax, dword [esp + 0x64]
push ecx
add dword [esp + 0x60], eax
push edx
mov dword [esp + 0x6c], edi
call ebx
mov eax, dword [esp + 0x58]
mov ecx, eax
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x40], eax
add dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x660]
lea eax, [esp + 0x68]
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 + 0x68]
mov edx, eax
sub edx, dword [esp + 0x70]
lea edx, [ecx + edx - 8]
mov dword [esp + 0x68], edx
mov ecx, dword [esp + 0x3c]
add eax, 0xfffffff8
mov dword [esp + 0x70], eax
mov eax, edi
sub eax, dword [esp + 0x74]
lea edx, [esp + 0x88]
add dword [esp + 0x6c], eax
mov eax, dword [esi + 0x1188]
push edx
add ecx, 0xfffffff1
push eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x5c], ecx
call ebx
mov ecx, dword [esp + 0xa0]
sub ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
sub ecx, eax
lea ecx, [edx + ecx - 0x14]
add eax, ecx
mov dword [esp + 0x90], eax
mov eax, 0x26
add dword [esp + 0x94], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0x18f8]
push eax
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
mov edx, eax
sub edx, dword [esp + 0x78]
add eax, 0x10
mov dword [esp + 0x78], eax
lea edx, [ecx + edx + 0x10]
mov ecx, dword [esi + 0x20]
mov eax, edi
sub eax, dword [esp + 0x84]
push ecx
add dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x40e8b3
cmp dword [esi + 0x1c98], 0
jne 0x40e8b3
mov edx, dword [esi + 0x94]
mov ebx, dword [esi + 0x218]
push 0
push 0
push 0x1004
push edx
call edi
imul eax, ebx
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub eax, ebx
add eax, ecx
test eax, eax
mov dword [esi + 0x1c98], eax
jg 0x40ec2c
jmp 0x40e8b7
mov ebx, dword [esp + 0x54]
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 + 0x288]
call fcn.004172f3
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 + 0xdb0]
call fcn.004172f3
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 + 0x9f8]
call fcn.004172f3
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 + 0x640]
call fcn.004172f3
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x90]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x1168]
call fcn.004172f3
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 + 0x18d8]
call fcn.004172f3
mov eax, dword [esi + 0x18f8]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push 1
mov edx, ebx
sub edx, ecx
push edx
mov edx, dword [esp + 0x58]
sub edx, eax
push edx
push ecx
push eax
lea ecx, [esi + 0x74]
call fcn.004172f3
mov eax, dword [esi + 0x94]
push 0xa0
push 0
push 0x101e
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push 1
mov eax, ebx
sub eax, ecx
push eax
sub edx, ebp
push edx
push ecx
mov ecx, dword [esi + 0x1d30]
imul ecx, ecx, 0x214
add ecx, dword [esi + 0x1c90]
push ebp
mov dword [esp + 0xbc], eax
call fcn.004172f3
mov edx, dword [esi + 0x1d30]
mov eax, dword [esp + 0x2c]
imul edx, edx, 0x214
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x1d20], ebp
mov dword [esi + 0x1d24], eax
mov eax, dword [esi + 0x1c90]
mov dword [esi + 0x1d28], ecx
lea ecx, [edx + eax]
mov dword [esi + 0x1d2c], ebx
mov edx, dword [ecx + 0x1a4]
mov dword [esp + 0x20], 0
mov dword [esp + 0xac], edx
mov dword [esp + 0x24], 1
call fcn.0041a178
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
cmp eax, 1
jle 0x40eae9
lea ecx, [ecx]
mov eax, dword [esi + 0x1d30]
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x214
add eax, dword [esi + 0x1c90]
push 0
mov edx, dword [eax + 0x20]
push ecx
push 0x101d
push edx
call edi
mov ecx, dword [esi + 0x1d30]
add dword [esp + 0x20], eax
imul ecx, ecx, 0x214
add ecx, dword [esi + 0x1c90]
add dword [esp + 0x24], 1
call fcn.0041a178
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1200
push eax
call edi
cmp dword [esp + 0x24], eax
jl 0x40ea90
mov eax, dword [esi + 0x1d30]
imul eax, eax, 0x214
add eax, dword [esi + 0x1c90]
push 0
mov ecx, dword [eax + 0x20]
push 0
push 0x1004
push ecx
call edi
imul eax, dword [esp + 0xac]
add eax, 2
cmp eax, dword [esp + 0xa8]
jle 0x40eb5b
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esi + 0x1d30]
mov edx, eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
sub eax, ebp
sub eax, edx
mov edx, dword [esi + 0x1c90]
sub eax, 1
imul ecx, ecx, 0x214
movzx eax, ax
push eax
mov eax, dword [ecx + edx + 0x20]
push 0
push 0x101e
push eax
jmp 0x40eb8a
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x1d30]
sub ecx, ebp
sub ecx, dword [esp + 0x20]
sub ecx, 1
imul eax, eax, 0x214
movzx edx, cx
mov ecx, dword [esi + 0x1c90]
push edx
mov edx, dword [eax + ecx + 0x20]
push 0
push 0x101e
push edx
call edi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
add eax, 0xfffffffb
mov dword [esp + 0x14], eax
lea ecx, [ebx + 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 edi
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 edi
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 edi
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], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], edx
call edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0xc