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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
movss xmm0, dword [ebp + 0x20]
mulss xmm0, dword [0x56bb40]
mov eax, dword [ebp + 8]
push esi
push edi
movaps xmm1, xmm0
movss dword [esp + 0x20], xmm0
addss xmm1, dword [eax + 8]
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
xorps xmm1, xmm1
sub esp, 8
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x56e8e8]
addss xmm1, xmm1
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
mov ecx, 2
cvtpd2ps xmm0, xmm0
add esp, 8
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x70], 0
xorps xmm1, xmm1
mov dword [esp + 0x74], 0
cvttss2si eax, xmm0
mov dword [esp + 0x78], 0
mov byte [esp + 0x7c], 0
xorps xmm0, xmm0
movss dword [esp + 0x8c], xmm1
cmp eax, ecx
movss dword [esp + 0x88], xmm1
movups xmmword [esp + 0x40], xmm0
cmovl eax, ecx
cmp dword [ebp + 0x14], 0
movss dword [esp + 0x94], xmm1
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
movups xmmword [esp + 0x60], xmm0
movss dword [esp + 0x90], xmm1
je 0x4b8b5d
mov esi, dword [ebp + 0xc]
shl eax, 5
mov dword [esp + 0x14], 0
movss xmm0, dword [esi + 4]
lea edi, [esi - 0x20]
movss xmm2, dword [esi]
add edi, eax
subss xmm0, dword [edi + 4]
subss xmm2, dword [edi]
movaps xmm1, xmm0
movss dword [esp + 0xc], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [esp + 8], xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x4b8a2a
sqrtsd xmm0, xmm0
jmp 0x4b8a2f
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [0x569318]
xorps xmm3, xmm3
movss xmm2, dword [esp + 8]
cvtsd2ss xmm3, xmm0
comiss xmm3, dword [0x56e884]
jbe 0x4b8a60
divss xmm1, xmm3
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0xc]
mulss xmm2, xmm0
jmp 0x4b8a66
movss xmm1, dword [esp + 0xc]
movss xmm4, dword [esp + 0x20]
movaps xmm0, xmm3
mulss xmm0, xmm2
mov eax, dword [ebp + 0x10]
xorps xmm2, xmmword [0x56a680]
mulss xmm3, xmm1
mulss xmm0, dword [0x56bb40]
mulss xmm3, dword [0x56bb40]
addss xmm0, dword [edi]
mulss xmm1, xmm4
addss xmm3, dword [edi + 4]
mulss xmm2, xmm4
movaps xmm7, xmm0
subss xmm7, xmm1
addss xmm1, xmm0
movaps xmm6, xmm3
subss xmm6, xmm2
addss xmm2, xmm3
movss dword [esp + 0x40], xmm7
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x44], xmm6
movups xmm0, xmmword [esp + 0x40]
movss dword [esp + 0x64], xmm2
movups xmmword [esp + 0x98], xmm0
movups xmm0, xmmword [esp + 0x50]
movss dword [esp + 0xc], xmm1
movups xmmword [esp + 0xa8], xmm0
movups xmm0, xmmword [esp + 0x60]
movss dword [esp + 8], xmm2
movups xmmword [esp + 0xb8], xmm0
movups xmm0, xmmword [esp + 0x70]
movups xmmword [esp + 0xc8], xmm0
movss xmm0, dword [esp + 0x9c]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x98]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0xbc]
movss dword [esp + 0x90], xmm0
movss xmm0, dword [esp + 0xb8]
movss dword [esp + 0x94], xmm0
jmp 0x4b8d82
mov edi, dword [ebp + 0xc]
dec eax
movss xmm0, dword [edi + 0x24]
lea esi, [edi + 0x20]
movss xmm2, dword [esi]
mov dword [esp + 0x14], 1
subss xmm0, dword [edi + 4]
subss xmm2, dword [edi]
mov dword [esp + 0x18], eax
movaps xmm1, xmm0
movss dword [esp + 0x10], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [esp + 8], xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x4b8bb2
sqrtsd xmm0, xmm0
jmp 0x4b8bb7
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [0x569318]
movss xmm2, dword [esp + 8]
movss xmm4, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x56e884]
jbe 0x4b8be7
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm4, xmm1
mulss xmm2, xmm0
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x4b8c3c
xorps xmm2, xmmword [0x56a680]
sub esp, 0x10
movss xmm0, dword [esp + 0x30]
mulss xmm2, dword [esp + 0x30]
movss xmm5, dword [edi + 4]
mulss xmm0, xmm4
movss xmm4, dword [edi]
subss xmm5, xmm2
addss xmm2, dword [edi + 4]
subss xmm4, xmm0
addss xmm0, dword [edi]
movss dword [esp + 0xc], xmm2
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x1c], xmm0
movss dword [esp + 8], xmm0
jmp 0x4b8cac
cmp eax, 2
jne 0x4b8d12
movss xmm1, dword [esp + 0x20]
sub esp, 0x10
movss xmm7, dword [edi + 4]
movaps xmm0, xmm1
movss xmm6, dword [edi]
movaps xmm3, xmm1
mulss xmm0, xmm2
xorps xmm2, xmmword [0x56a680]
mulss xmm3, xmm4
subss xmm6, xmm0
mulss xmm2, xmm1
subss xmm7, xmm3
movaps xmm0, xmm2
movaps xmm4, xmm6
subss xmm4, xmm3
movaps xmm1, xmm7
addss xmm3, xmm6
addss xmm1, xmm0
movaps xmm5, xmm7
subss xmm5, xmm0
movss dword [esp + 0x1c], xmm3
movss dword [esp + 0xc], xmm1
movss dword [esp + 0x18], xmm1
movss dword [esp + 8], xmm3
movss dword [esp + 4], xmm5
movss dword [esp], xmm4
push dword [ebp + 8]
movss dword [esp + 0x30], xmm5
movss dword [esp + 0x24], xmm4
call fcn.004b7310
movss xmm0, dword [esp + 0x20]
add esp, 0x14
movss xmm7, dword [esp + 0x10]
movss xmm6, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
movss xmm4, dword [esp + 0x20]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 8]
movss dword [esp + 0x40], xmm7
movss dword [esp + 0x44], xmm6
movss dword [esp + 0x64], xmm0
mov dword [esp + 0x14], 1
jmp 0x4b8d8e
cmp eax, 1
jne 0x4b8d54
movss xmm0, dword [ebp + 0x20]
lea eax, [esp + 0x60]
push 0
push dword [esp + 0x40]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm4
movss dword [esp], xmm2
push edi
push eax
lea eax, [esp + 0x5c]
push eax
push dword [ebp + 8]
call fcn.004c1040
add esp, 0x24
mov dword [esp + 0x14], 1
movss xmm0, dword [esp + 0x64]
mov eax, dword [esp + 0x18]
movss xmm4, dword [esp + 0x20]
movss xmm7, dword [esp + 0x40]
movss xmm6, dword [esp + 0x44]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x60]
movss dword [esp + 0xc], xmm0
movss dword [esp + 0x10], xmm7
movss dword [esp + 0x1c], xmm6
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jge 0x4b90cf
sub eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
jmp 0x4b8dab
movss xmm4, dword [esp + 0x20]
mov al, byte [esi + 0x1c]
test al, 1
je 0x4b8fd4
cmp ecx, 1
jne 0x4b8e0a
push dword [esp + 0x3c]
movss xmm0, dword [ebp + 0x20]
lea eax, [esp + 0x64]
push ecx
movss dword [esp], xmm0
push esi
push edi
push eax
lea eax, [esp + 0x54]
push eax
push dword [ebp + 8]
call fcn.004c12c0
add esp, 0x1c
movss xmm0, dword [esp + 0x64]
movss xmm6, dword [esp + 0x44]
movss xmm7, dword [esp + 0x40]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x60]
movss dword [esp + 0xc], xmm0
jmp 0x4b90b0
cmp ecx, 2
je 0x4b8e37
test al, 2
jne 0x4b8e37
movss xmm0, dword [ebp + 0x20]
lea eax, [esp + 0x60]
push ecx
movss dword [esp], xmm0
push esi
push edi
push eax
lea eax, [esp + 0x50]
push eax
push dword [ebp + 8]
call fcn.004bae60
add esp, 0x18
jmp 0x4b8de1
movss xmm5, dword [edi + 8]
movaps xmm0, xmm4
xorps xmm5, xmmword [0x56a680]
sub esp, 0x10
mulss xmm0, dword [edi + 0xc]
mov edi, dword [ebp + 8]
movss xmm6, dword [esi]
movss xmm1, dword [esi + 4]
movaps xmm3, xmm6
mulss xmm5, xmm4
subss xmm3, xmm0
movaps xmm4, xmm6
movaps xmm2, xmm1
addss xmm4, xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, dword [esi + 0xc]
subss xmm2, xmm5
addss xmm5, xmm1
movss dword [esp + 0x40], xmm3
movss dword [esp + 0x20], xmm4
movaps xmm4, xmm6
subss xmm4, xmm0
movss dword [esp + 0x34], xmm2
addss xmm6, xmm0
movss dword [esp + 0x24], xmm5
movss xmm5, dword [esi + 8]
xorps xmm5, xmmword [0x56a680]
mulss xmm5, dword [esp + 0x30]
movss dword [esp + 0x90], xmm4
movaps xmm4, xmm1
movss dword [esp + 0x38], xmm6
subss xmm4, xmm5
addss xmm5, xmm1
movss dword [esp + 0x94], xmm4
movss dword [esp + 0x3c], xmm5
movss xmm5, dword [esp + 0x2c]
movss dword [esp + 0xc], xmm5
movss dword [esp + 8], xmm7
movss dword [esp + 4], xmm2
movss dword [esp], xmm3
push edi
call fcn.004b7310
movss xmm0, dword [esp + 0x38]
add esp, 4
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x90]
movss dword [esp], xmm0
push edi
call fcn.004b7310
movss xmm0, dword [esp + 0x28]
add esp, 4
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp], xmm0
push edi
call fcn.004b7310
movss xmm0, dword [esp + 0x40]
add esp, 4
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
push edi
call fcn.004b7310
movss xmm7, dword [esp + 0x94]
movss xmm6, dword [esp + 0x98]
movss xmm1, dword [esp + 0x3c]
movss xmm0, dword [esp + 0x40]
jmp 0x4b9089
movss xmm5, dword [esi]
movaps xmm1, xmm4
mulss xmm4, dword [esi + 0x18]
sub esp, 0x10
mov edi, dword [ebp + 8]
mulss xmm1, dword [esi + 0x14]
movaps xmm3, xmm5
movss xmm2, dword [esi + 4]
subss xmm2, xmm4
movss dword [esp + 0xc], xmm6
addss xmm4, dword [esi + 4]
subss xmm3, xmm1
movss dword [esp + 8], xmm7
addss xmm5, xmm1
movss dword [esp + 4], xmm2
movss dword [esp + 0x34], xmm2
movss dword [esp], xmm3
push edi
movss dword [esp + 0x44], xmm3
movss dword [esp + 0x40], xmm5
movss dword [esp + 0x3c], xmm4
call fcn.004b7310
movss xmm0, dword [esp + 0x3c]
add esp, 4
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp], xmm0
push edi
call fcn.004b7310
movss xmm7, dword [esp + 0x44]
movss xmm6, dword [esp + 0x38]
movss xmm1, dword [esp + 0x40]
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x78], xmm0
add esp, 0x14
movss dword [esp + 8], xmm0
movss dword [esp + 0x60], xmm1
movss dword [esp + 0xc], xmm1
movss dword [esp + 0x44], xmm6
movss dword [esp + 0x40], xmm7
mov ecx, dword [ebp + 0x18]
mov edi, esi
add esi, 0x20
movss dword [esp + 0x1c], xmm6
sub dword [esp + 0x18], 1
jne 0x4b8da5
movss dword [esp + 0x10], xmm7
cmp dword [ebp + 0x14], 0
je 0x4b9155
movss xmm0, dword [esp + 0x88]
sub esp, 0x10
mov esi, dword [ebp + 8]
movss dword [esp + 0xc], xmm6
movss dword [esp + 8], xmm7
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x9c]
movss dword [esp], xmm0
push esi
call fcn.004b7310
movss xmm0, dword [esp + 0xa4]
add esp, 4
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0xa4]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp], xmm0
push esi
call fcn.004b7310
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movss xmm0, dword [esi + 4]
subss xmm0, dword [edi + 4]
movss xmm2, dword [esi]
subss xmm2, dword [edi]
movaps xmm1, xmm0
movss dword [esp + 0x14], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x18], xmm2
mulss xmm0, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x4b9197
sqrtsd xmm0, xmm0
jmp 0x4b919c
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm2, dword [esp + 0x18]
movss xmm3, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x56e884]
jbe 0x4b91cc
movss xmm1, dword [0x569318]
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm0
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x4b92c2
movss xmm4, dword [0x56a680]
sub esp, 0x10
movss xmm0, dword [esi + 4]
xorps xmm2, xmm4
movss xmm1, dword [esi]
xorps xmm2, xmm4
mulss xmm2, dword [esp + 0x30]
xorps xmm3, xmm4
mulss xmm3, dword [esp + 0x30]
subss xmm0, xmm2
addss xmm2, dword [esi + 4]
subss xmm1, xmm3
addss xmm3, dword [esi]
mov esi, dword [ebp + 8]
movss dword [esp + 0x40], xmm0
movss dword [esp + 0xc], xmm2
movss dword [esp + 0x34], xmm1
movss dword [esp + 8], xmm3
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
push esi
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x2c], xmm2
call fcn.004b7310
movss xmm0, dword [esp + 0x44]
add esp, 4
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp], xmm0
push esi
call fcn.004b7310
movss xmm5, dword [esp + 0x30]
add esp, 4
movss xmm4, dword [esp + 0x20]
movss xmm2, dword [esp + 0x28]
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0xc], xmm5
movss dword [esp + 8], xmm4
movss dword [esp + 4], xmm2
movss dword [esp], xmm0
push esi
call fcn.004b7310
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4b93cc
movss xmm5, dword [0x56a680]
sub esp, 0x10
movss xmm4, dword [esp + 0x30]
xorps xmm2, xmm5
movss xmm7, dword [esi + 4]
xorps xmm3, xmm5
movss xmm6, dword [esi]
movaps xmm0, xmm4
mov esi, dword [ebp + 8]
mulss xmm0, xmm2
xorps xmm2, xmm5
mulss xmm3, xmm4
subss xmm6, xmm0
mulss xmm2, xmm4
subss xmm7, xmm3
movaps xmm1, xmm6
subss xmm1, xmm3
movaps xmm0, xmm7
addss xmm3, xmm6
subss xmm0, xmm2
addss xmm2, xmm7
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x40], xmm0
movss dword [esp + 0xc], xmm2
movss dword [esp + 8], xmm3
movss dword [esp + 4], xmm0
movss dword [esp], xmm1
push esi
movss dword [esp + 0x2c], xmm2
call fcn.004b7310
movss xmm0, dword [esp + 0x44]
add esp, 4
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp], xmm0
push esi
call fcn.004b7310
movss xmm5, dword [esp + 0x30]
add esp, 4
movss xmm4, dword [esp + 0x20]
movss xmm2, dword [esp + 0x28]
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0xc], xmm5
movss dword [esp + 8], xmm4
movss dword [esp + 4], xmm2
movss dword [esp], xmm0
push esi
call fcn.004b7310
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4b9413
movss xmm0, dword [ebp + 0x20]
xorps xmm3, xmmword [0x56a680]
xorps xmm2, xmmword [0x56a680]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x48]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm3
movss dword [esp], xmm2
push esi
push eax
lea eax, [esp + 0x7c]
push eax
push dword [ebp + 8]
call fcn.004c1040
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret