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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov eax, dword [eax]
push esi
mov ebx, dword [ebx]
mov dword [esp + 0x24], eax
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
cmp ebx, 1
jb 0x4fc30e
mov ecx, dword [edi + 0x2c]
dec ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x14], ecx
mov cl, byte [eax]
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x20]
mov byte [esp + 0x13], cl
mov dword [esp + 0x2c], ebx
cmp eax, 5
jl 0x4fba64
movzx ebp, cl
and ebp, 4
jmp 0x4fba66
xor ebp, ebp
xor edx, edx
movzx esi, cl
cmp eax, 5
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x60]
mov ecx, esi
setl dl
shr ecx, 2
add edx, 0xe
sar eax, 3
and ecx, edx
and eax, edx
cmp ecx, eax
jne 0x4fc30e
test ebp, ebp
mov ebp, dword [esp + 0x68]
je 0x4fbaa0
test ebp, ebp
je 0x4fc30e
mov al, byte [esp + 0x13]
and al, 3
shr esi, 6
mov byte [esp + 0x13], al
cmp al, 2
jne 0x4fbbc5
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp edx, edi
jge 0x4fc2ee
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
imul esi, edx
shl eax, 2
mov dword [esp + 0x58], eax
add esi, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
mov ecx, esi
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x68], esi
add ecx, ebp
mov ebp, dword [esp + 0x18]
sub edi, edx
mov dword [esp + 0x5c], edi
mov edx, edi
mov edi, dword [esp + 0x60]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x54], eax
cmp edi, ebx
jge 0x4fbba3
mov ecx, dword [esp + 0x14]
sub ebx, edi
cmp dword [esp + 0x1c], 0
mov edi, eax
lea ebp, [ecx*4]
je 0x4fbb60
nop
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4fbb52
mov eax, dword [edi - 4]
mov dword [edi], eax
inc esi
add edi, ebp
sub ebx, 1
jne 0x4fbb30
jmp 0x4fbb8b
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4fbb83
mov dword [edi], 0
inc esi
add edi, ebp
sub ebx, 1
jne 0x4fbb60
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x68]
add eax, ecx
add esi, ebp
mov dword [esp + 0x54], eax
sub edx, 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x5c], edx
jne 0x4fbb10
jmp 0x4fc2ee
test al, al
jne 0x4fbcf4
cmp dword [esp + 0x1c], 0
jne 0x4fc30e
mov edi, dword [esp + 0x58]
xor edx, edx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x34], edi
cmp edi, dword [esp + 0x5c]
jge 0x4fbce4
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
imul eax, edi
add ebx, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov ecx, ebx
imul eax, dword [esp + 0x18]
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
shl eax, 2
add ecx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x60]
mov esi, ebx
cmp edx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
jge 0x4fbcbd
mov edi, ebx
mov ebx, ecx
sub edi, eax
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4fbc94
mov ecx, dword [esp + 0x2c]
cmp ecx, 4
jb 0x4fc30e
mov eax, dword [ebp]
sub ecx, 4
mov edx, dword [esp + 0x6c]
add ebp, 4
inc edx
mov dword [ebx], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x6c], edx
jmp 0x4fbc98
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x14]
inc edi
inc esi
lea eax, [ecx*4]
add ebx, eax
cmp edi, dword [esp + 0x64]
jl 0x4fbc50
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add eax, dword [esp + 0x18]
inc edi
add ebx, dword [esp + 0x18]
add ecx, dword [esp + 0x24]
mov dword [esp + 0x34], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], ecx
cmp edi, dword [esp + 0x5c]
jl 0x4fbc33
mov eax, dword [esp + 0x28]
lea eax, [eax + edx*4]
mov dword [esp + 0x28], eax
jmp 0x4fc2ee
cmp dword [esp + 0x1c], 0
je 0x4fbd06
cmp dword [edi + 0x48], 6
mov eax, 4
jl 0x4fbd09
mov eax, dword [edi + 0x48]
push esi
push eax
call fcn.0051d2c0
mov esi, eax
add esp, 8
cmp esi, 8
je 0x4fc30e
push esi
call fcn.0051d270
add esp, 4
mov dword [esp + 0x34], eax
cmp ebx, eax
jb 0x4fc30e
lea eax, [esp + 0x28]
push esi
push eax
call fcn.0051ddd0
sub ebx, dword [esp + 0x3c]
add esp, 8
mov edx, dword [edi + 0x20]
mov dword [esp + 0x2c], ebx
fstp qword [esp + 0x40]
cmp edx, 4
jl 0x4fbd69
cmp dword [esp + 0x14], 1
jle 0x4fbd69
mov eax, dword [edi + 0xb4]
movsd xmm0, qword [eax + ebp*8]
jmp 0x4fbd6e
movsd xmm0, qword [edi + 0x60]
cmp byte [esp + 0x13], 3
movsd qword [esp + 0x38], xmm0
jne 0x4fbeb8
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp edx, edi
jge 0x4fc2ee
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
imul esi, edx
shl eax, 2
mov dword [esp + 0x58], eax
add esi, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
mov ecx, esi
imul ecx, dword [esp + 0x14]
mov dword [esp + 0x68], esi
add ecx, ebp
sub edi, edx
mov dword [esp + 0x5c], edi
mov edx, edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x64]
jne 0x4fbe27
cvttsd2si ebp, xmm2
cmp dword [esp + 0x60], ebx
jge 0x4fbe8e
sub ebx, dword [esp + 0x60]
mov edi, ecx
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4fbe12
mov dword [edi], ebp
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add edi, eax
sub ebx, 1
jne 0x4fbdf3
jmp 0x4fbe82
cmp dword [esp + 0x60], ebx
jge 0x4fbe8e
mov eax, dword [esp + 0x14]
mov edi, ecx
sub ebx, dword [esp + 0x60]
lea ebp, [eax*4]
nop
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4fbe74
movd xmm1, dword [edi - 4]
cvtdq2pd xmm1, xmm1
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [edi], eax
movsd xmm0, qword [esp + 0x38]
inc esi
add edi, ebp
sub ebx, 1
jne 0x4fbe40
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x68]
add ecx, eax
add esi, dword [esp + 0x18]
sub edx, 1
movsd xmm0, qword [esp + 0x38]
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
jne 0x4fbdd4
jmp 0x4fc2ee
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x6c]
sub ecx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
mov ebx, eax
mov dword [esp + 0x30], eax
imul ebx, ecx
lea eax, [esp + 0x2c]
push edx
mov dword [esp + 0x28], ecx
lea ecx, [edi + 0x78]
push ebx
push esi
push eax
lea eax, [esp + 0x38]
push eax
call fcn.005211f0
test al, al
je 0x4fc30e
movsd xmm3, qword [edi + 0x50]
mov eax, dword [esi + 4]
addsd xmm3, xmm3
mov edi, dword [esi]
sub eax, edi
sar eax, 2
cmp eax, ebx
jne 0x4fc02c
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x5c]
jge 0x4fc2ee
mov esi, dword [esp + 0x14]
mov eax, esi
mov edx, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul eax, edx
imul edx, ecx
mov ecx, dword [esp + 0x60]
shl eax, 2
add edx, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
imul edx, esi
add edx, ebp
mov ebp, dword [esp + 0x5c]
lea ebx, [eax + edx*4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x4fbfb7
cmp ecx, dword [esp + 0x64]
jge 0x4fc018
mov edx, dword [esp + 0x30]
mov ecx, ebx
shl esi, 2
nop dword [eax]
mov eax, dword [edi]
movaps xmm0, xmm4
add edi, 4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6bc110]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ecx], eax
add ecx, esi
sub edx, 1
jne 0x4fbf80
jmp 0x4fc008
cmp ecx, dword [esp + 0x64]
jge 0x4fc018
mov edx, dword [esp + 0x30]
mov ecx, ebx
shl esi, 2
mov eax, dword [edi]
add edi, 4
movd xmm0, dword [ecx - 4]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6bc110]
mulsd xmm1, xmm3
addsd xmm1, xmm2
addsd xmm1, xmm0
movaps xmm0, xmm4
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ecx], eax
add ecx, esi
sub edx, 1
jne 0x4fbfc6
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
add ebx, ebp
sub eax, 1
mov dword [esp + 0x24], eax
jne 0x4fbf66
jmp 0x4fc2ee
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x20], 2
jle 0x4fc1c1
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x5c]
jge 0x4fc2ee
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul esi, ecx
shl eax, 2
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
add esi, ebx
mov ecx, esi
mov dword [esp + 0x68], esi
imul ecx, dword [esp + 0x14]
add ecx, ebp
mov ebp, dword [esp + 0x18]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x1c], 0
jne 0x4fc110
cmp ebx, dword [esp + 0x64]
jge 0x4fc19f
mov ebp, dword [esp + 0x30]
mov ebx, ecx
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4fc0fb
mov eax, dword [edi]
movaps xmm0, xmm4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add edi, 4
addsd xmm1, qword [eax*8 + 0x6bc110]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add ebx, eax
sub ebp, 1
jne 0x4fc0b0
jmp 0x4fc18b
cmp ebx, dword [esp + 0x64]
jge 0x4fc19f
mov ebp, dword [esp + 0x30]
mov ebx, ecx
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4fc178
mov eax, dword [edi]
movd xmm0, dword [ebx - 4]
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
add edi, 4
addsd xmm1, qword [eax*8 + 0x6bc110]
mulsd xmm1, xmm3
addsd xmm1, xmm2
addsd xmm1, xmm0
movaps xmm0, xmm4
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc esi
lea eax, [ecx*4]
add ebx, eax
sub ebp, 1
jne 0x4fc120
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x68]
add ecx, edx
add esi, ebp
mov dword [esp + 0x58], ecx
sub eax, 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x24], eax
jne 0x4fc095
jmp 0x4fc2ee
mov edx, dword [esp + 0x58]
xor ebp, ebp
cmp edx, dword [esp + 0x5c]
jge 0x4fc2ee
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
movsd xmm2, qword [esp + 0x40]
movsd xmm4, qword [esp + 0x38]
imul edi, edx
shl eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x54]
add ebx, edi
mov dword [esp + 0x58], edi
mov ecx, ebx
mov dword [esp + 0x24], ebx
imul ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x68]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
nop dword [eax]
mov edx, dword [esp + 0x60]
mov esi, ebx
cmp edx, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
jge 0x4fc2c9
mov edi, ebx
mov ebx, ecx
sub edi, dword [esp + 0x58]
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, esi
sar ecx, 3
mov eax, dword [eax + 0x14]
test byte [ecx + eax], dl
jbe 0x4fc2a0
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
sub eax, ecx
sar eax, 2
cmp ebp, eax
je 0x4fc30e
mov eax, dword [ecx + ebp*4]
movaps xmm0, xmm4
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
inc ebp
addsd xmm1, qword [eax*8 + 0x6bc110]
mulsd xmm1, xmm3
addsd xmm1, xmm2
minsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebx], eax
mov ecx, dword [esp + 0x14]
inc edi
inc esi
lea eax, [ecx*4]
add ebx, eax
cmp edi, dword [esp + 0x64]
jl 0x4fc240
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
add edi, dword [esp + 0x18]
inc edx
add ebx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x54], ecx
cmp edx, dword [esp + 0x5c]
jl 0x4fc220
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
pop ebp
pop ebx
mov dword [ecx], eax
mov al, 1
add esp, 0x38
ret 0x24
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x38
ret 0x24