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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
jle 0x5f0a86
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x2c], ecx
lea edi, [eax + 8]
nop dword [eax]
movss xmm2, dword [ebx + 4]
movss xmm3, dword [ebx]
movaps xmm0, xmm2
mulss xmm0, dword [esi + 0x24]
movaps xmm5, xmm3
mulss xmm5, dword [esi + 0x20]
movaps xmm4, xmm3
movss xmm1, dword [ecx + edi]
mulss xmm4, dword [esi + 0x2c]
mulss xmm3, dword [esi + 0x38]
addss xmm5, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esi + 0x28]
addss xmm5, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [esi + 0x30]
mulss xmm2, dword [esi + 0x3c]
addss xmm4, xmm0
movss xmm0, dword [esi + 0x34]
mulss xmm0, xmm1
mulss xmm1, dword [esi + 0x40]
addss xmm3, xmm2
addss xmm4, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm5
addss xmm3, xmm1
movss dword [esp + 0x10], xmm4
movss dword [esp + 0x18], xmm3
jbe 0x5f064d
xorps xmm5, xmm5
comiss xmm0, xmm4
jbe 0x5f0658
movss dword [esp + 0x10], xmm0
comiss xmm0, xmm3
jbe 0x5f0663
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esi + 0x78]
movaps xmm1, xmm0
mulss xmm1, dword [esi + 4]
push ecx
cvtps2pd xmm2, xmm0
mov ecx, esi
movaps xmm0, xmm1
movss dword [esp + 0x18], xmm1
divss xmm0, dword [esi + 0x6c]
movsd qword [esp + 0x24], xmm2
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm5
addsd xmm1, qword [0x660be0]
subsd xmm1, xmm2
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm0, dword [esi + 0x7c]
divss xmm0, dword [0x66b120]
movss dword [esp], xmm0
call fcn.005ef9e0
movss xmm0, dword [esp + 0x14]
divss xmm0, dword [esi + 0x70]
push ecx
mov ecx, esi
fadd dword [0x67220c]
cvtps2pd xmm1, xmm0
movss xmm0, dword [esp + 0x14]
addsd xmm1, qword [0x660be0]
cvtps2pd xmm0, xmm0
subsd xmm1, qword [esp + 0x24]
fstp dword [esp + 0x10]
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm0, dword [esi + 0x7c]
divss xmm0, dword [0x66b120]
movss dword [esp], xmm0
call fcn.005ef9e0
movss xmm0, dword [esp + 0xc]
cvtps2pd xmm0, xmm0
push ecx
mov ecx, esi
fadd dword [0x67220c]
movsd qword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x18]
divss xmm0, dword [esi + 0x74]
fstp dword [esp + 0x14]
cvtps2pd xmm1, xmm0
movss xmm0, dword [esp + 0x1c]
addsd xmm1, qword [0x660be0]
cvtps2pd xmm0, xmm0
subsd xmm1, qword [esp + 0x24]
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm0, dword [esi + 0x7c]
divss xmm0, dword [0x66b120]
movss dword [esp], xmm0
call fcn.005ef9e0
movss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
movss xmm1, dword [esp + 0xc]
mulsd xmm0, qword [0x664748]
fadd dword [0x67220c]
divsd xmm0, qword [0x669808]
cvtps2pd xmm1, xmm1
fstp qword [esp + 0x30]
movsd xmm3, qword [esp + 0x30]
subsd xmm1, xmm0
movaps xmm0, xmm3
movsd qword [esp + 0x30], xmm3
divsd xmm0, qword [0x669808]
addsd xmm1, xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [esp + 0xc]
cvtpd2ps xmm2, xmm1
cvtps2pd xmm1, xmm0
movaps xmm0, xmm3
movss dword [esp + 0x14], xmm2
addsd xmm0, xmm3
movsd qword [esp + 0x40], xmm1
subsd xmm1, xmm0
divsd xmm1, qword [0x672290]
cvtpd2ps xmm0, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x18], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x5f0817
sqrtsd xmm0, xmm0
jmp 0x5f081c
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x18]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x14]
fld qword [esp + 0x18]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x664488]
divsd xmm0, qword [0x669278]
cvtpd2ps xmm0, xmm0
comiss xmm1, xmm0
movss dword [esp + 0xc], xmm0
jbe 0x5f08a7
movsd xmm2, qword [0x662268]
nop dword [eax]
cvtss2sd xmm0, xmm0
addsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
ja 0x5f0890
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x10]
movsd xmm2, qword [esp + 0x38]
cvtps2pd xmm0, xmm0
addsd xmm2, xmm2
movss xmm1, dword [esi + 0x84]
cvtps2pd xmm1, xmm1
addsd xmm2, xmm0
movsd xmm0, qword [esp + 0x30]
divsd xmm0, qword [0x6611f8]
addsd xmm2, xmm0
subsd xmm2, qword [0x672220]
mulsd xmm2, xmm1
movss xmm1, dword [esi + 0x14]
mulss xmm1, dword [esi + 0x88]
cvtpd2ps xmm0, xmm2
cvtps2pd xmm1, xmm1
divss xmm0, dword [esi + 0x8c]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x660700]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0xc]
mulss xmm0, dword [0x668df0]
divss xmm0, dword [0x67230c]
movss dword [esp + 0xc], xmm0
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x663278]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
addsd xmm0, qword [0x672288]
xorps xmm1, xmm1
mulsd xmm0, qword [0x662230]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm1, xmm0
movss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x6722b0]
mulsd xmm0, qword [0x660700]
mulsd xmm1, xmm0
movss xmm0, dword [esi + 0x18]
cvtps2pd xmm0, xmm0
mulsd xmm1, qword [0x663738]
divsd xmm1, qword [0x669810]
mulsd xmm1, xmm0
movss xmm0, dword [esi + 0x84]
cvtps2pd xmm0, xmm0
mulsd xmm1, xmm0
movsd xmm0, qword [esp + 0x30]
mulsd xmm0, qword [0x672258]
addsd xmm0, qword [esp + 0x40]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movsd xmm1, qword [0x672250]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
movsd qword [esp + 0x40], xmm0
xorps xmm1, xmm1
movss xmm0, dword [esp + 0x18]
cvtps2pd xmm0, xmm0
divsd xmm0, qword [0x660700]
ucomisd xmm1, xmm0
ja 0x5f0a06
sqrtsd xmm0, xmm0
jmp 0x5f0a0b
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movsd xmm1, qword [esp + 0x40]
mulsd xmm1, xmm0
movss xmm0, dword [esi + 0x68]
cvtps2pd xmm0, xmm0
mulsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss xmm1, dword [esp + 0xc]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [edi - 8], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mulss xmm1, dword [esp + 0x14]
movss dword [edi - 4], xmm1
movss xmm1, dword [esp + 0xc]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov ecx, dword [esp + 0x2c]
add ebx, 0xc
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x14]
movss dword [edi], xmm0
add edi, 0xc
sub dword [ebp + 0x10], 1
jne 0x5f05d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc