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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x10], edi
call fcn.0041c480
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
je 0x4f91e0
mov edi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
sub eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
sub eax, edx
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x30], eax
jmp 0x4f920d
lea ecx, [edi + 0x38]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041c490
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4f9632
push ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x4f9632
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4f9632
lea ecx, [esp + 0x48]
call fcn.0041c440
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004f5e40
mov edx, dword [esp + 0x54]
add esp, 0xc
dec edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], edx
call fcn.0041c440
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.004f5e40
mov eax, dword [esp + 0x5c]
add esp, 0xc
dec eax
mov dword [esp + 0x50], eax
xor eax, eax
add edi, 0x1afc
mov ecx, 0x20000
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
add edi, 0x81afc
mov ecx, 0x20000
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
add eax, 0xcf
push eax
mov eax, dword [esi]
add ecx, 0x7f
push ecx
sub edx, 0x40
push edx
sub eax, 0x80
push eax
lea ecx, [esp + 0x80]
call fcn.004edb90
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
add ecx, 0xcf
push ecx
mov ecx, dword [ebx]
add edx, 0x7f
push edx
sub eax, 0x40
sub ecx, 0x80
push eax
push ecx
lea ecx, [esp + 0x90]
call fcn.004edb90
lea ecx, [esp + 0x58]
call fcn.0041c440
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x1ae4]
test eax, eax
je 0x4f93c3
lea ecx, [edi + 0x81afc]
mov dword [esp + 0x18], ecx
lea ecx, [edi + 0x1afc]
mov dword [esp + 0x10], ecx
jmp 0x4f9330
mov eax, dword [esp + 0x1c]
nop
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax]
push ecx
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004f96e0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.004f5f00
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add esp, 0x14
push eax
push ecx
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f938a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4f93b7
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4f932b
push esi
lea ecx, [esp + 0x3c]
call fcn.0041c490
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0xc]
push eax
push ecx
lea eax, [edi + 0x1afc]
push eax
push edx
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.004f8e40
push ebx
lea ecx, [esp + 0x3c]
call fcn.0041c490
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [edi + 0x81afc]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
call fcn.004f8e40
lea ecx, [esp + 0x38]
call fcn.0041c440
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004f5e40
mov eax, dword [esp + 0x44]
mov edx, dword [esi]
add esp, 0xc
dec eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 8]
sub eax, edx
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [esi + 4]
sar eax, 6
add eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xc]
sub eax, edx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, 2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
call fcn.0041c440
mov ecx, dword [esp + 0x2c]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x30], eax
jle 0x4f9527
lea esp, [esp]
mov ecx, dword [esp + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x1c], edx
jle 0x4f9516
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x1c]
call fcn.0041c450
test eax, eax
je 0x4f94d3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x20]
push eax
push esi
push ecx
mov ecx, edi
call fcn.004f88a0
mov edx, dword [esp + 0x1c]
inc edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.0041c450
test eax, eax
je 0x4f94fe
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x20]
push eax
push esi
push ecx
mov ecx, edi
call fcn.004f88a0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
dec ecx
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
jne 0x4f94b1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4f9490
lea ecx, [esp + 0x38]
call fcn.0041c440
mov esi, dword [ebx + 4]
mov eax, dword [ebx]
push esi
push eax
lea edx, [esp + 0x40]
push edx
call fcn.004f5e40
mov eax, dword [esp + 0x44]
mov edx, dword [ebx]
add esp, 0xc
dec eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 8]
sub eax, edx
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add eax, 2
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
sub eax, esi
cdq
and edx, 0x1f
add eax, edx
mov esi, eax
sar esi, 5
lea ecx, [esp + 0x24]
add esi, 2
call fcn.0041c440
xor eax, eax
test esi, esi
mov dword [esp + 0x30], eax
jle 0x4f9623
mov edi, edi
mov ecx, dword [esp + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov dword [esp + 0x24], edx
jle 0x4f9616
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x24]
call fcn.0041c450
test eax, eax
je 0x4f95d3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push ecx
mov ecx, edi
call fcn.004f88a0
mov edx, dword [esp + 0x24]
inc edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
call fcn.0041c450
test eax, eax
je 0x4f95fe
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push ecx
mov ecx, edi
call fcn.004f88a0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
dec ecx
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
jne 0x4f95b1
mov eax, dword [esp + 0x30]
inc eax
cmp eax, esi
mov dword [esp + 0x30], eax
jl 0x4f9590
mov eax, dword [ebp + 8]
lea edx, [edi + 0x38]
push edx
push eax
mov ecx, edi
call fcn.004f6280
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14