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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f078
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x47c944]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x98]
xor ebx, ebx
cmp eax, ebx
jne 0x40f7f5
xor eax, eax
jmp 0x40f7f8
add eax, 6
add dword [esp + 0x2c], eax
mov ecx, esi
call fcn.00422414
mov dword [esp + 0x14], 0x10
test al, 1
je 0x40f819
mov dword [esp + 0x14], 0x15
jmp 0x40f825
test al, 2
je 0x40f825
mov dword [esp + 0x14], 0x12
test eax, 0x4000
je 0x40f834
or dword [esp + 0x14], 0x8000
test eax, 0x8000
je 0x40f843
or dword [esp + 0x14], 0x4020
test eax, 0x200
je 0x40f84f
or dword [esp + 0x14], 0x24
mov edi, dword [ebp + 8]
push 1
mov ecx, edi
call fcn.00425d96
cmp dword [esi + 0x80], ebx
je 0x40f876
cmp dword [esi + 0x84], ebx
je 0x40f876
mov edx, dword [edi]
mov eax, dword [esi + 0x78]
mov edx, dword [edx + 0x30]
push eax
jmp 0x40f87f
mov eax, dword [edi]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + 0x30]
push ecx
mov ecx, edi
call edx
call fcn.0040fb80
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
push 0x46adb4
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.00404410
push 0x400
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x70], ebx
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0xb
push str.Km_uIlW_eg
mov ecx, edi
call edx
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
sub ebx, dword [esp + 0x40]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x30]
add edx, ebx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
jg 0x40fb29
mov edx, dword [esi + 0x54]
xor eax, eax
cmp dword [edx - 0xc], ecx
mov dword [esp + 0x18], eax
jle 0x40fa9b
test eax, eax
jl 0x40fb68
mov ecx, dword [esi + 0x54]
cmp eax, dword [ecx - 0xc]
jg 0x40fb68
movzx ecx, word [ecx + eax*2]
mov edx, 0xd
mov dword [esp + 0x24], ecx
cmp dx, cx
je 0x40fa8a
mov eax, 0xa
cmp ax, cx
jne 0x40f998
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esi + 0x7c]
lea ecx, [eax + ebx]
add dword [esp + 0x38], ecx
mov eax, ecx
neg eax
sub dword [esp + 0x30], eax
lea ecx, [esp + 0x10]
call fcn.004040d0
inc dword [esp + 0x1c]
jmp 0x40fa86
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [edx - 8]
sub eax, dword [esp + 0x20]
mov ecx, 1
sub ecx, dword [edx - 4]
or eax, ecx
jge 0x40f9cd
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404230
mov edx, dword [esp + 0x10]
mov ax, word [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov word [edx + ecx*2], ax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x40fb68
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x40fb68
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x10]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x400
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
sub eax, dword [esp + 0x2c]
sub ecx, dword [esp + 0x3c]
cmp ecx, eax
jle 0x40fa86
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x10]
dec eax
push ecx
call fcn.0040fd20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esi + 0x7c]
lea ecx, [eax + ebx]
add dword [esp + 0x38], ecx
mov eax, ecx
neg eax
sub dword [esp + 0x30], eax
lea ecx, [esp + 0x10]
call fcn.004040d0
mov eax, 1
sub dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x54]
inc eax
cmp eax, dword [ecx - 0xc]
mov dword [esp + 0x18], eax
jl 0x40f924
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x7c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
dec edx
add eax, ebx
imul eax, edx
lea edx, [eax + ebx]
sub edi, ecx
cmp edi, edx
jge 0x40fb29
add eax, ecx
mov ecx, dword [esi + 0x20]
add eax, ebx
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041ddd7
mov ecx, eax
call fcn.00426246
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
push 1
sub edx, eax
push edx
mov edx, dword [esp + 0x5c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0042252b
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004045a0
int3