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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov ecx, 0x70a6a4
mov dword [ebp - 8], edi
call fcn.0056b0a5
mov eax, dword [ebp + 8]
cmp eax, 0xa
ja case.0x4f5fd7.6
jmp dword [eax*4 + 0x4f65bc]
mov esi, dword [edi + 0x70]
mov eax, dword [0x5cdf28]
mov dword [edi + 0x44], eax
mov dword [edi + 0x3c], 0
test esi, esi
je 0x4f606e
mov ecx, edi
call fcn.004f7970
test esi, esi
je 0x4f606e
push esi
mov ecx, eax
call fcn.004d90c0
test eax, eax
je 0x4f606e
push 1
lea edx, [edi + 0xa0]
push edx
lea edx, [edi + 0x9c]
push edx
lea ecx, [edi + 0x98]
push ecx
lea esi, [edi + 0x94]
mov ecx, eax
push esi
call fcn.004fc570
movd xmm1, dword [ebp + 0xc]
cvtdq2ps xmm1, xmm1
comiss xmm1, dword [esi]
jb 0x4f606e
movss xmm0, dword [edi + 0x98]
comiss xmm0, xmm1
jb 0x4f606e
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
comiss xmm1, dword [edi + 0x9c]
jb 0x4f606e
movss xmm0, dword [edi + 0xa0]
comiss xmm0, xmm1
jb 0x4f606e
mov dword [edi + 0x3c], 2
cmp dword [edi + 0x3c], 0
jne 0x4f60f9
mov esi, dword [edi + 0x78]
test esi, esi
je 0x4f60f9
mov ecx, edi
call fcn.004f7970
test esi, esi
je 0x4f60f9
push esi
mov ecx, eax
call fcn.004d90c0
test eax, eax
je 0x4f60f9
push 1
lea edx, [edi + 0xa0]
push edx
lea edx, [edi + 0x9c]
push edx
lea ecx, [edi + 0x98]
push ecx
lea esi, [edi + 0x94]
mov ecx, eax
push esi
call fcn.004fc570
movd xmm1, dword [ebp + 0xc]
cvtdq2ps xmm1, xmm1
comiss xmm1, dword [esi]
jb 0x4f60f9
movss xmm0, dword [edi + 0x98]
comiss xmm0, xmm1
jb 0x4f60f9
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
comiss xmm1, dword [edi + 0x9c]
jb 0x4f60f9
movss xmm0, dword [edi + 0xa0]
comiss xmm0, xmm1
jb 0x4f60f9
mov dword [edi + 0x3c], 3
mov eax, dword [edi + 0x3c]
test eax, eax
jne case.0x4f5fd7.6
mov esi, dword [edi + 0x80]
test esi, esi
je 0x4f61f3
mov ecx, edi
call fcn.004f7970
test esi, esi
je 0x4f6190
push esi
mov ecx, eax
call fcn.004d90c0
test eax, eax
je 0x4f6190
push 1
lea edx, [edi + 0xa0]
push edx
lea edx, [edi + 0x9c]
push edx
lea ecx, [edi + 0x98]
push ecx
lea esi, [edi + 0x94]
mov ecx, eax
push esi
call fcn.004fc570
mov edx, dword [ebp + 0xc]
movd xmm1, edx
cvtdq2ps xmm1, xmm1
comiss xmm1, dword [esi]
jb 0x4f6193
movss xmm0, dword [edi + 0x98]
comiss xmm0, xmm1
jb 0x4f6193
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
comiss xmm1, dword [edi + 0x9c]
jb 0x4f6193
movss xmm0, dword [edi + 0xa0]
comiss xmm0, xmm1
jb 0x4f6193
mov dword [edi + 0x3c], 4
jmp 0x4f6193
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
test eax, eax
jne case.0x4f5fd7.6
mov ecx, dword [edi + 0x84]
cmp edx, ecx
jl 0x4f61f6
mov eax, dword [edi + 0x8c]
add eax, ecx
cmp edx, eax
jg 0x4f61f6
mov ecx, dword [edi + 0x88]
cmp ebx, ecx
jl 0x4f61f6
mov esi, dword [edi + 0x90]
lea eax, [esi + ecx]
cmp ebx, eax
jg 0x4f61f6
mov eax, ebx
mov dword [edi + 0x3c], 4
sub eax, ecx
imul eax, dword [edi + 0x4c]
push ecx
mov ecx, edi
cdq
idiv esi
mov dword [edi + 0x50], eax
call fcn.004f5e10
mov eax, dword [edi + 0x3c]
test eax, eax
jne case.0x4f5fd7.6
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x50]
add eax, dword [edi + 0x1c]
mov dword [edi + 0x48], ebx
mov dword [edi + 0x54], ebx
sub ebx, eax
mov eax, dword [edi + 0x58]
mov dword [edi + 0x3c], 1
mov byte [edi + 0x40], 0
test eax, eax
je case.0x4f5fd7.6
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je case.0x4f5fd7.6
cmp ebx, dword [eax + 0x14]
jle 0x4f6231
cmp ebx, dword [eax + 0x18]
jl 0x4f6250
mov eax, dword [eax + 0x10]
test eax, eax
je case.0x4f5fd7.6
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f6227
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edx
mov dword [edi + 0x64], eax
mov eax, dword [eax]
push 2
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x579378]
mov ecx, dword [ebp - 4]
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x3c]
cmp eax, 1
jne 0x4f6325
mov eax, dword [edi + 0x48]
sub eax, ebx
mov dword [edi + 0x48], ebx
neg eax
add eax, eax
add dword [edi + 0x50], eax
push ecx
mov ecx, edi
call fcn.004f5e10
cmp byte [edi + 0x40], 0
jne case.0x4f5fd7.6
mov ecx, dword [edi + 0x54]
mov esi, ebx
sub esi, ecx
mov eax, 0x51eb851f
sub ecx, ebx
cmovns esi, ecx
imul dword [0x5ce520]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jg 0x4f62d9
mov eax, dword [0x5cdf28]
sub eax, dword [edi + 0x44]
cmp eax, 0x12c
jle case.0x4f5fd7.6
mov byte [edi + 0x40], 1
mov edi, dword [edi + 0x58]
test edi, edi
je case.0x4f5fd7.6
mov edi, dword [edi]
test edi, edi
je case.0x4f5fd7.6
mov eax, dword [edi]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
mov ecx, esi
push 3
call dword [0x579378]
mov ecx, edi
call esi
mov edi, dword [edi + 0x10]
test edi, edi
je case.0x4f5fd7.6
mov edi, dword [edi]
test edi, edi
jne 0x4f62f2
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 4
jne 0x4f6357
sub ebx, dword [edi + 0x88]
imul ebx, dword [edi + 0x4c]
push ecx
mov ecx, edi
mov byte [edi + 0x40], 1
mov eax, ebx
cdq
idiv dword [edi + 0x90]
mov dword [edi + 0x50], eax
call fcn.004f5e10
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne case.0x4f5fd7.6
mov eax, dword [edi + 0x50]
add eax, dword [edi + 0x1c]
sub ebx, eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 4], eax
test eax, eax
je 0x4f639e
cmp ebx, dword [eax + 0x14]
jle 0x4f63db
cmp ebx, dword [eax + 0x18]
jge 0x4f63db
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
mov ecx, esi
push 2
call dword [0x579378]
mov ecx, dword [ebp - 4]
call esi
mov eax, dword [edi + 0x64]
test eax, eax
jne case.0x4f5fd7.6
mov eax, dword [edi + 0x58]
test eax, eax
je case.0x4f5fd7.6
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je case.0x4f5fd7.6
cmp ebx, dword [eax + 0x14]
jle 0x4f63c0
cmp ebx, dword [eax + 0x18]
jl 0x4f63fc
mov eax, dword [eax + 0x10]
test eax, eax
je case.0x4f5fd7.6
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f63b6
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
mov ecx, esi
push 3
call dword [0x579378]
mov ecx, dword [ebp - 4]
call esi
mov dword [edi + 0x64], 0
jmp 0x4f639e
push ebx
push dword [ebp + 0xc]
jmp 0x4f6252
mov eax, dword [edi + 0x64]
mov dword [ebp - 4], eax
test eax, eax
je 0x4f642e
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
mov ecx, esi
push 3
call dword [0x579378]
mov ecx, dword [ebp - 4]
call esi
mov dword [edi + 0x64], 0
mov dword [edi + 0x3c], 0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x5ce520]
mov eax, 0x88888889
mov esi, dword [ebp + 0xc]
imul ecx
push ecx
add edx, ecx
mov ecx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, esi
add dword [edi + 0x50], eax
call fcn.004f5e10
mov eax, dword [edi + 0x64]
mov dword [ebp - 4], eax
test eax, eax
je case.0x4f5fd7.6
mov eax, dword [eax]
push ebx
push esi
push 3
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x579378]
mov ecx, dword [ebp - 4]
call esi
mov dword [edi + 0x64], 0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x3c], 1
jne 0x4f64e2
mov eax, dword [edi + 0x64]
mov dword [ebp - 4], eax
test eax, eax
je 0x4f64e2
cmp byte [edi + 0x40], 0
jne 0x4f64e2
sub ebx, dword [edi + 0x50]
sub ebx, dword [edi + 0x1c]
mov esi, dword [eax]
push ebx
push dword [ebp + 0xc]
mov esi, dword [esi + 0xc]
mov ecx, esi
push 4
call dword [0x579378]
mov ecx, dword [ebp - 4]
call esi
mov dword [edi + 0x3c], 0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x58]
test eax, eax
je 0x4f642e
mov eax, dword [eax]
test eax, eax
je 0x4f642e
mov edi, eax
nop dword [eax]
mov eax, dword [edi]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
mov ecx, esi
push 3
call dword [0x579378]
mov ecx, edi
call esi
mov edi, dword [edi + 0x10]
test edi, edi
je 0x4f6524
mov edi, dword [edi]
test edi, edi
jne 0x4f6500
mov edi, dword [ebp - 8]
mov al, 1
mov dword [edi + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x3c]
cmp ecx, 2
je 0x4f654a
cmp ecx, 3
jne case.0x4f5fd7.6
mov eax, dword [0x5cdf28]
xorps xmm0, xmm0
sub eax, dword [edi + 0x44]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
jae case.0x4f5fd7.6
movd xmm0, dword [0x5ce520]
mov eax, dword [edi + 0x50]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x5b46f8]
mulss xmm0, xmm1
cvttss2si edx, xmm0
cmp ecx, 2
jne 0x4f658c
add eax, edx
jmp 0x4f658e
sub eax, edx
push ecx
mov dword [edi + 0x50], eax
mov ecx, edi
mov byte [edi + 0x40], 1
call fcn.004f5e10
mov eax, dword [0x5cdf28]
mov dword [edi + 0x44], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc