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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push esi
push 0x84
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00437610
mov ecx, dword [0x459fc0]
mov edx, dword [0x459fc4]
mov esi, dword [0x4524a0]
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [0x4524a8]
add esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
test edi, edi
je 0x40f8b1
or esi, 0x80000000
mov dword [esp + 0x1c], esi
mov eax, dword [0x4524b4]
mov ecx, dword [0x459f94]
mov edx, dword [0x4524b0]
mov dword [esp + 0x24], eax
mov eax, dword [0x4524ac]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4524b8]
mov dword [esp + 0x34], eax
mov eax, dword [0x4524c8]
mov dword [esp + 0x2c], edx
mov edx, dword [0x4524bc]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x4524c0]
mov dword [esp + 0x40], eax
mov eax, dword [0x459f98]
mov dword [esp + 0x30], edx
mov edx, dword [0x4524c4]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x4524d0]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], edx
mov edx, dword [0x4524d4]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x4524d8]
mov eax, 8
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ecx
cmp dword [0x458788], eax
jb 0x40f948
mov edx, dword [0x458774]
mov dword [esp + 0x54], edx
jmp 0x40f950
mov dword [esp + 0x54], 0x458774
mov ecx, dword [0x4524e4]
mov edx, dword [0x4524e8]
mov dword [esp + 0x58], ecx
mov ecx, dword [0x4524ec]
mov dword [esp + 0x5c], edx
mov edx, dword [0x4524f0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
cmp dword [0x458830], eax
jb 0x40f98c
mov ecx, dword [0x45881c]
mov dword [esp + 0x68], ecx
jmp 0x40f994
mov dword [esp + 0x68], 0x45881c
cmp dword [0x45884c], eax
jb 0x40f9a8
mov edx, dword [0x458838]
mov dword [esp + 0x6c], edx
jmp 0x40f9b0
mov dword [esp + 0x6c], 0x458838
mov eax, dword [0x4524f8]
mov ecx, dword [0x4524f4]
xor edx, edx
cmp dword [ebp + 8], edx
mov dword [esp + 0x70], eax
sete dl
test dword [0x452498], 0x80000
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 7
mov dword [esp + 0x7c], edx
je 0x40fa0b
mov eax, dword [0x459fc8]
mov ecx, dword [0x459fcc]
mov edx, dword [0x459fd0]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
jmp 0x40fa16
mov dword [esp + 0x80], 0
test edi, edi
je 0x40fab0
mov eax, dword [0x459f80]
push 0x44b
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x90]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
sub eax, dword [esp + 0x90]
sub ecx, dword [esp + 0x94]
sub eax, 0x12
sub ecx, 0x12
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test esi, 0x100000
je 0x40fa94
test esi, 0x200000
je 0x40fa94
movzx edx, word [0x4524cc]
cmp eax, edx
jl 0x40fa87
mov dword [esp + 0x10], edx
movzx eax, word [0x4524ce]
cmp ecx, eax
jl 0x40fad6
jmp 0x40fad2
lea ecx, [esp + 8]
or esi, 0x200000
push ecx
mov dword [esp + 0x20], esi
call fcn.0042e0f0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
test esi, 0x100000
je 0x40fad6
test esi, 0x200000
je 0x40fad6
movzx edx, word [0x4524cc]
movzx eax, word [0x4524ce]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
push ecx
call fcn.0042e0f0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret