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

Disassembly:
sub esp, 0x6c
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x18]
push edi
push eax
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, ebx
call fcn.00453615
mov ebp, dword [sym.imp.USER32.dll_SetRect]
test ah, 4
je 0x40a40a
mov ecx, ebx
call fcn.00453615
test ah, 8
jne 0x40a416
mov ecx, ebx
call fcn.00453615
test ah, 8
je 0x40a45f
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
sub edx, edi
push edx
mov edx, dword [esp + 0x24]
sub eax, edx
lea ecx, [esp + 0x20]
push eax
push 0
push 0
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x1c]
sub eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov edx, dword [ebx + 0x70]
mov dword [esp + 0x10], 0
test edx, edx
je 0x40a476
mov dword [esp + 0x10], 1
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x40a482
add dword [esp + 0x10], 2
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x40a48e
add dword [esp + 0x10], 2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov esi, eax
xor edi, edi
sub esi, ecx
sub esi, 3
test edx, edx
je 0x40a51d
xor edx, edx
sub eax, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
lea edx, [esi + 1]
mov ecx, ebx
mov edi, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.00453615
test ah, 2
je 0x40a4ef
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x20]
mov edx, eax
sub eax, esi
sub edx, ecx
sub eax, ecx
push edx
dec eax
push 0
push eax
lea eax, [esp + 0x3c]
push eax
call ebp
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40a51d
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x6c
ret 8
mov ecx, ebx
call fcn.00453615
test ah, 2
mov eax, dword [esp + 0x10]
je 0x40a67e
cmp eax, 2
je 0x40a61d
cmp eax, 3
je 0x40a61d
cmp eax, 4
je 0x40a551
cmp eax, 5
jne 0x40a741
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
sub eax, edi
sub ecx, ebx
mov edx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
sub edx, ecx
sub eax, ecx
push edx
dec eax
push 0
push eax
lea eax, [esp + 0x7c]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, edx
mov edx, eax
lea ebx, [esi + esi]
sub edx, edi
push ecx
mov ecx, dword [esp + 0x20]
sub edx, esi
sub eax, ebx
sub edx, ecx
sub eax, edi
dec edx
sub eax, ecx
push edx
dec eax
push 0
push eax
lea eax, [esp + 0x5c]
push eax
call ebp
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub edx, dword [esp + 0x20]
lea ecx, [esi + esi*2]
push edx
mov edx, eax
sub edx, ebx
sub eax, ecx
sub edx, edi
sub eax, edi
mov ebx, edx
mov edx, dword [esp + 0x20]
sub eax, edx
sub ebx, edx
sub eax, 2
dec ebx
push ebx
push 0
push eax
lea eax, [esp + 0x4c]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, ebx
push ecx
mov edx, eax
lea ecx, [esi + esi*2]
sub edx, ecx
mov ecx, dword [esp + 0x20]
sub edx, edi
sub edx, ecx
sub edx, 2
push edx
lea edx, [esi*4]
sub eax, edx
push 0
sub eax, edi
sub eax, ecx
sub eax, 3
push eax
lea eax, [esp + 0x6c]
push eax
jmp 0x40a73b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edi
sub ecx, edx
mov edx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
sub edx, ecx
sub eax, ecx
push edx
dec eax
push 0
push eax
lea eax, [esp + 0x5c]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, edx
mov edx, eax
push ecx
mov ecx, dword [esp + 0x20]
sub edx, edi
sub edx, esi
sub edx, ecx
dec edx
push edx
lea edx, [esi + esi]
sub eax, edx
push 0
sub eax, edi
sub eax, ecx
sub eax, 3
push eax
lea eax, [esp + 0x4c]
push eax
call ebp
jmp 0x40a741
cmp eax, 2
je 0x40a709
cmp eax, 3
je 0x40a709
cmp eax, 4
je 0x40a69a
cmp eax, 5
jne 0x40a741
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub ecx, eax
lea ebx, [edi + esi + 1]
push ecx
push ebx
push 0
lea edx, [esp + 0x68]
push edi
push edx
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub ecx, edx
lea eax, [edi + esi*2 + 1]
push ecx
push eax
push 0
lea edx, [esp + 0x48]
push ebx
push edx
call ebp
mov ecx, dword [esp + 0x28]
lea eax, [edi + esi*2]
lea edx, [esp + 0x4c]
lea ebx, [esi + eax + 2]
mov eax, dword [esp + 0x20]
sub ecx, eax
lea eax, [edi + esi*2 + 1]
push ecx
push ebx
push 0
push eax
push edx
call ebp
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edx
lea ecx, [edi + esi*4 + 3]
push eax
push ecx
push 0
lea edx, [esp + 0x78]
push ebx
push edx
jmp 0x40a73b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edx
lea ebx, [edi + esi + 1]
push eax
push ebx
push 0
lea ecx, [esp + 0x48]
push edi
push ecx
call ebp
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub edx, ecx
lea eax, [edi + esi*2 + 3]
push edx
push eax
push 0
lea ecx, [esp + 0x58]
push ebx
push ecx
call ebp
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x10], 4
jl 0x40a77d
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x40a77d
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
push edi
lea edx, [esp + 0x60]
push ebp
push edx
call esi
test eax, eax
je 0x40a791
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x6c
ret 8
mov ebp, dword [esp + 0x80]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
mov edi, dword [esp + 0x84]
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x40a7b4
push edi
lea eax, [esp + 0x40]
push ebp
push eax
call esi
test eax, eax
je 0x40a7b4
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x6c
ret 8
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40a7d7
push edi
lea ecx, [esp + 0x50]
push ebp
push ecx
call esi
test eax, eax
je 0x40a7d7
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x6c
ret 8
cmp dword [esp + 0x10], 4
jl 0x40a801
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x40a801
push edi
lea edx, [esp + 0x70]
push ebp
push edx
call esi
test eax, eax
je 0x40a801
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x6c
ret 8
mov eax, dword [ebx + 0x160]
xor esi, esi
test eax, eax
jle 0x40a846
mov eax, dword [ebx + 0x15c]
mov eax, dword [eax + esi*4]
mov cl, byte [eax + 0x30]
test cl, cl
je 0x40a82d
mov ecx, dword [eax + 0x2c]
push edi
push ebp
push ecx
call dword [sym.imp.GDI32.dll_PtInRegion]
test eax, eax
jne 0x40a83a
mov eax, dword [ebx + 0x160]
inc esi
cmp esi, eax
jge 0x40a846
jmp 0x40a80d
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x6c
ret 8