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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a18a6
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x4f289f
mov ecx, dword [eax + 0xf8]
mov eax, dword [esp + 0x148]
mov edx, dword [esp + 0x14c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x154]
lea ebp, [esi + 0x28]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x134]
mov eax, ebp
mov dword [esp + 0x20], ecx
mov dword [eax], edx
mov edx, dword [esp + 0x138]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x13c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x140]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x144]
mov ebx, dword [ebp]
mov edx, dword [esi + 0x30]
sub ebx, eax
sub edx, eax
cmp ecx, edi
mov dword [ebp], ebx
mov dword [esi + 0x30], edx
jne 0x4f2370
mov eax, ebp
mov ecx, dword [eax]
mov dword [esp + 0x134], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x138], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x13c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x140], edx
lea ecx, [esp + 0x64]
call fcn.0048b1e0
mov dword [esp + 0x64], 0x5b4868
mov dword [esp + 0x8c], edi
mov ebx, dword [esp + 0x130]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x128], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], esi
call fcn.00459c90
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x6c]
cmp ecx, 1
mov dword [esp + 0x28], eax
mov edi, dword [edx + 0xe8]
mov dword [esp + 0x4c], 1
jne 0x4f23db
mov eax, dword [edi + 0x23c]
and al, 0xfb
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x4c], eax
cmp ecx, 2
mov dword [esp + 0x48], 1
jne 0x4f23f9
mov eax, dword [edi + 0x240]
and al, 0xfb
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x48], eax
push edx
lea ecx, [esp + 0xa4]
call fcn.004ee110
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xa0]
push edx
mov byte [esp + 0x12c], 1
mov ecx, dword [eax + 0xd4]
call fcn.004ee6e0
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov dword [esp + 0x24], eax
jl 0x4f243b
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x6c]
push eax
push ebp
mov ecx, ebx
call fcn.005809d7
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x64]
mov ebx, dword [ebp]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esi + 0x30]
test edx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x4f247f
lea ebp, [esp + 0x134]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x50], eax
lea ebx, [eax + ecx]
mov dword [esp + 0x58], ebx
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x4f27cd
mov ebx, dword [esp + 0x134]
add ebx, ecx
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x24]
dec ebx
test ebx, ebx
mov dword [esp + 0x40], ebx
jl 0x4f279b
mov ecx, edx
sub ecx, ebx
dec ecx
mov dword [esp + 0x24], ecx
jmp 0x4f24de
mov edx, dword [esp + 0x20]
xor eax, eax
cmp ebx, edx
setl al
test eax, eax
mov dword [esp + 0x44], eax
je 0x4f24f5
mov eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x4f24fb
mov dword [esp + 0x2c], ebx
mov eax, ebx
test eax, eax
jl 0x4f2514
cmp eax, dword [esp + 0xcc]
jge 0x4f2514
mov edx, dword [esp + 0xc8]
mov ebp, dword [edx + eax*4]
jmp 0x4f2516
xor ebp, ebp
test ebp, ebp
je 0x4f2781
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
test eax, eax
je 0x4f277d
lea ecx, [esp + 0xf0]
push ecx
mov ecx, ebp
call fcn.00432b50
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x4f2559
mov ecx, dword [esp + 0x60]
cmp ecx, eax
jle 0x4f2559
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x100]
mov ecx, ebp
push edx
call fcn.00432b50
mov eax, dword [eax + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x90]
push ecx
lea eax, [esp + 0x114]
push edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4f277d
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4f25e4
mov eax, dword [esi + 0x20]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x6c]
mov ebx, dword [esp + 0x130]
push eax
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.005809d7
mov ecx, dword [esp + 0x10]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push esi
push ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, edi
call dword [edx + 0x70]
jmp 0x4f25eb
mov ebx, dword [esp + 0x130]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
dec eax
mov ecx, ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
call fcn.004819c0
test eax, eax
je 0x4f2646
mov edx, dword [esp + 0x10]
sub esp, 0x10
mov ecx, esp
mov eax, dword [edi]
push ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 0xc], edx
mov ecx, edi
call dword [eax + 0x88]
mov ecx, dword [esi + 0x1c]
push ebp
call fcn.0048abf0
mov ebx, eax
test ebx, ebx
je 0x4f26af
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x7c], ecx
mov ecx, ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.004818e0
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], ebx
mov edx, dword [ebx]
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
call dword [edx + 0x50]
mov ecx, dword [ebp + 0x90]
cmp ecx, eax
jle 0x4f26a9
mov eax, ecx
mov dword [ebp + 0x90], eax
mov eax, dword [esi + 0x6c]
cmp eax, 1
jne 0x4f26c3
mov eax, dword [ebp + 0xb4]
test eax, eax
je 0x4f2703
jmp 0x4f26d2
cmp eax, 2
jne 0x4f2703
mov eax, dword [ebp + 0xb8]
test eax, eax
je 0x4f2703
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x144]
push eax
mov ecx, edi
call dword [edx + 0x74]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4f274b
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub esp, 0x10
mov ebx, dword [esp + 0x4c]
mov ebp, esp
mov edx, eax
mov dword [esp + 0xfc], ebx
mov ebx, dword [edi]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x48]
push 0
dec eax
mov dword [ebp + 4], edx
mov dword [esp + 0x48], eax
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x144]
push ecx
mov ecx, edi
mov dword [ebp + 0xc], eax
call dword [ebx + 0x74]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
dec edx
mov dword [esp + 0x48], 1
cmp eax, edx
jne 0x4f2779
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x130]
mov edx, dword [edi]
push esi
push eax
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x78]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
dec ebx
inc ecx
test ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ecx
jge 0x4f24da
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x4f27cd
sub esp, 0x10
mov edx, dword [edi]
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x140]
push ecx
mov ecx, edi
call dword [edx + 0x84]
mov ecx, dword [esi + 0x20]
call fcn.0045a890
mov ecx, dword [edi + 0x2b4]
mov dword [esp + 0x44], eax
mov ebp, dword [esi + 0x34]
xor eax, eax
test ecx, ecx
setne al
xor edx, edx
mov ebx, dword [esi + 0x30]
test eax, eax
mov eax, dword [esi + 0x2c]
mov ecx, esi
setne dl
sub ebp, edx
mov edx, dword [esi]
mov dword [esp + 0x28], eax
call dword [edx + 0x68]
test eax, eax
je 0x4f2846
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4f2846
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x1e0]
test ecx, ecx
je 0x4f2846
mov ecx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x140]
push eax
call dword [edx + 0x9c]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4f2877
mov ecx, dword [esp + 0x58]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push 0
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x144]
push eax
call dword [edx + 0x74]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x128], 0
call fcn.004ee1f0
lea ecx, [esp + 0x64]
mov dword [esp + 0x128], 0xffffffff
call fcn.0048b2a0
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x11c
ret 0x28