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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push edi
movss xmm0, dword [eax + 8]
sub esp, 8
subss xmm0, dword [ecx + 8]
movss xmm3, dword [eax]
movss xmm2, dword [eax + 4]
subss xmm3, dword [ecx]
subss xmm2, dword [ecx + 4]
movss dword [esp + 0x30], xmm0
mov byte [ebp + 0x13], 0x96
movaps xmm0, xmm3
movss dword [esp + 0x20], xmm3
movaps xmm1, xmm2
mulss xmm0, xmm3
mulss xmm1, xmm2
movss dword [esp + 0x2c], xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
call fcn.10086ee0
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fdivr dword [esp + 0x28]
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x10237870]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x24]
divss xmm0, dword [esp + 0x18]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
cvtsd2ss xmm0, xmm0
xorps xmm1, xmm1
xorps xmm2, xmm2
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x10237870]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x18]
comiss xmm0, xmm2
movss dword [esp + 0x14], xmm1
jb 0x10167407
addss xmm1, dword [0x10237990]
movss dword [esp + 0x14], xmm1
mov ecx, dword [0x1024f68c]
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x4c]
call eax
movss xmm0, dword [esp + 0x3c]
lea eax, [esp + 0x1c]
movss xmm1, dword [0x102376d0]
mulss xmm0, xmm1
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x24], eax
movss dword [esp + 0x30], xmm0
fld dword [esp + 0x30]
fsincos
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esp + 0x40]
lea eax, [esp + 0x20]
mulss xmm0, xmm1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], eax
movss dword [esp + 0x30], xmm0
fld dword [esp + 0x30]
fsincos
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esp + 0x10]
lea eax, [esp + 0x1c]
movss xmm6, dword [esp + 0x20]
movss xmm5, dword [esp + 0x18]
mulss xmm6, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
mulss xmm5, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mulss xmm0, xmm1
movss dword [esp + 0x30], xmm0
fld dword [esp + 0x30]
fsincos
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esp + 0x14]
lea eax, [esp + 0x20]
mulss xmm0, xmm1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], eax
movss dword [esp + 0x30], xmm0
fld dword [esp + 0x30]
fsincos
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fstp dword [edx]
fstp dword [eax]
movss xmm4, dword [esp + 0x20]
movaps xmm2, xmm6
movss xmm3, dword [esp + 0x18]
movaps xmm1, xmm5
mulss xmm4, dword [esp + 0x1c]
mulss xmm3, dword [esp + 0x1c]
mulss xmm5, xmm4
mulss xmm6, xmm3
mulss xmm1, xmm3
mulss xmm2, xmm4
subss xmm6, xmm5
addss xmm1, xmm2
movaps xmm0, xmm6
call fcn.1006f1d0
xorps xmm0, xmmword [0x10237e40]
cvtss2sd xmm0, xmm0
subsd xmm0, qword [0x10237810]
movsd qword [esp + 0x28], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x30], xmm0
movsd xmm0, qword [esp + 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov esi, dword [0x1024f664]
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm0
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x10314870]
movaps xmm4, xmm1
addss xmm4, dword [0x102378ec]
movaps xmm5, xmm4
mulss xmm4, xmm3
mulss xmm5, dword [esp + 0x30]
movss dword [esp + 0x14], xmm5
addss xmm1, dword [0x102378b4]
movaps xmm2, xmm5
movss dword [esp + 0x18], xmm4
movaps xmm0, xmm1
mulss xmm1, xmm3
mulss xmm0, dword [esp + 0x30]
movaps xmm3, xmm4
subss xmm3, xmm1
subss xmm2, xmm0
movaps xmm0, xmm3
movss dword [esp + 0x24], xmm3
mulss xmm0, xmm3
movaps xmm1, xmm2
movss dword [esp + 0x28], xmm2
mulss xmm1, xmm2
addss xmm0, xmm1
addss xmm0, dword [0x10237650]
call fcn.1006f270
movss xmm1, dword [0x10314208]
mulss xmm1, dword [0x102376d0]
movss dword [esp + 0x30], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
movss xmm3, dword [esp + 0x30]
xorps xmm1, xmm1
movss xmm4, dword [0x10314bfc]
mov eax, esi
cvtsd2ss xmm1, xmm0
mov ecx, dword [ebp + 0xc]
cdq
sub eax, edx
mov dword [esp + 0xc], 0x3f800000
mov esi, eax
mov eax, dword [0x1024f668]
movaps xmm2, xmm4
movss xmm6, dword [esp + 0x14]
mulss xmm1, xmm3
addss xmm3, xmm3
cdq
movss xmm5, dword [esp + 0x18]
sub eax, edx
mov edi, eax
sar esi, 1
divss xmm2, xmm1
mov eax, dword [ebp + 8]
sar edi, 1
mov dword [esp + 0x1c], 0
divss xmm4, xmm3
movaps xmm0, xmm2
mulss xmm0, dword [esp + 0x28]
mulss xmm0, dword [0x10237798]
subss xmm6, xmm0
movss xmm0, dword [esp + 0x24]
mulss xmm2, xmm0
xorps xmm0, xmmword [0x10237e40]
mulss xmm0, xmm4
mulss xmm2, dword [0x10237798]
mulss xmm4, dword [esp + 0x28]
movaps xmm1, xmm0
addss xmm1, xmm6
subss xmm5, xmm2
movss xmm2, dword [eax]
subss xmm2, dword [ecx]
subss xmm6, xmm0
movss xmm0, dword [eax + 4]
subss xmm0, dword [ecx + 4]
movss dword [esp + 0x24], xmm1
movaps xmm1, xmm4
addss xmm1, xmm5
mulss xmm2, xmm2
subss xmm5, xmm4
mulss xmm0, xmm0
movss dword [esp + 0x20], xmm1
movss xmm1, dword [eax + 8]
subss xmm1, dword [ecx + 8]
addss xmm0, xmm2
movss dword [esp + 0x28], xmm6
movss dword [esp + 0x30], xmm5
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1006f270
subss xmm0, dword [0x10314640]
movss xmm1, dword [0x10314520]
lea eax, [esp + 0x10]
subss xmm1, dword [0x10314640]
lea ecx, [esp + 0x1c]
divss xmm0, xmm1
xorps xmm1, xmm1
addss xmm0, xmm1
comiss xmm1, xmm0
movss dword [esp + 0x10], xmm0
cmovbe ecx, eax
mov eax, dword [ebp + 0x10]
comiss xmm0, dword [0x10237798]
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
cmovbe eax, ecx
cmp byte [0x1031434c], 0
movss xmm0, dword [eax]
mulss xmm0, dword [0x102379a4]
cvttss2si eax, xmm0
mov byte [esp + 0xb], al
je 0x101678e2
mov ecx, dword [0x10310830]
movzx eax, al
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0xa]
mov edx, dword [ecx]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 9]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 8]
mov dword [esp + 8], eax
cvttss2si eax, xmm0
movzx eax, al
push eax
push dword [esp + 0x10]
mov eax, dword [edx + 0x2c]
push dword [esp + 0x18]
push dword [esp + 0x14]
call eax
movd xmm2, edi
cvtdq2ps xmm2, xmm2
mov ecx, dword [0x10310830]
movd xmm1, esi
movaps xmm0, xmm2
addss xmm0, dword [esp + 0x20]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x24]
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
cvttss2si eax, xmm0
movaps xmm0, xmm2
addss xmm0, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
push dword [esp + 0x28]
cvttss2si eax, xmm0
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
push dword [esp + 0x20]
cvttss2si edx, xmm0
mov eax, dword [eax + 0x3c]
push edx
mov dword [esp + 0x24], edx
call eax
push dword [esp + 0x1c]
mov ecx, dword [0x10310830]
push dword [esp + 0x10]
push dword [esp + 0x18]
mov eax, dword [ecx]
push dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
call eax
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mov ecx, dword [0x10310830]
mov eax, dword [ecx]
addss xmm0, dword [esp + 0x30]
mov eax, dword [eax + 0x3c]
cvttss2si edi, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push edi
addss xmm0, dword [esp + 0x2c]
cvttss2si esi, xmm0
push esi
push dword [esp + 0x20]
push dword [esp + 0x20]
call eax
push dword [esp + 0x1c]
mov ecx, dword [0x10310830]
push dword [esp + 0x10]
push dword [esp + 0x18]
mov eax, dword [ecx]
push dword [esp + 0x14]
mov eax, dword [eax + 0x2c]
call eax
mov ecx, dword [0x10310830]
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
push esi
push dword [esp + 0x28]
push dword [esp + 0x30]
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
movss xmm3, dword [esp + 0x24]
lea eax, [esp + 8]
movss xmm2, dword [esp + 0x28]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], 0
push eax
push ecx
movd xmm1, edi
addss xmm3, xmm0
mov dword [esp + 0x60], 0
addss xmm2, xmm0
mov dword [esp + 0x6c], 0
addss xmm0, dword [esp + 0x20]
cvtdq2ps xmm1, xmm1
mov dword [esp + 0x70], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
movss dword [esp + 0x54], xmm3
movss xmm3, dword [esp + 0x2c]
movss dword [esp + 0x64], xmm2
addss xmm3, xmm1
movss xmm2, dword [esp + 0x3c]
addss xmm2, xmm1
movss dword [esp + 0x74], xmm0
addss xmm1, dword [esp + 0x24]
movss dword [esp + 0x58], xmm3
movss dword [esp + 0x68], xmm2
movss dword [esp + 0x78], xmm1
call fcn.1018c950
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc