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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
je 0x1002fde4
mov ecx, esi
call fcn.1000c250
test al, al
je 0x1002fde4
mov ecx, esi
call fcn.1002daf0
push esi
lea eax, [esp + 0xc4]
movss dword [esp + 0x14], xmm0
push eax
call fcn.1002e470
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 0x34]
inc eax
push eax
call dword [0x1006c470]
mov dword [esp], 0x3f000000
push ecx
mov dword [esp], 0xbf000000
call dword [0x1006c480]
fstp dword [esp + 0x1c]
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [0x1006c480]
fadd dword [esp + 0x1c]
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
fstp dword [esp + 0x48]
call dword [0x1006c480]
fstp dword [esp + 0x1c]
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [0x1006c480]
fadd dword [esp + 0x1c]
add esp, 8
cmp byte [0x10febd28], 0
movss xmm2, dword [esp + 0x40]
mulss xmm2, dword [esp + 0x10]
movss xmm3, dword [0x1004d270]
fstp dword [esp + 0x44]
movss xmm1, dword [esp + 0x44]
mulss xmm1, dword [esp + 0x10]
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x20], xmm1
je 0x1002f78c
cmp byte [ebp + 0x18], 0
jne 0x1002f79e
xorps xmm1, xmm3
xorps xmm2, xmm3
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x24], xmm2
movss xmm0, dword [esi + 0x10]
lea eax, [esp + 0x34]
movss xmm1, dword [0x1004ce58]
mulss xmm0, xmm1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
mov dword [esp + 0xc], eax
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x14]
mulss xmm0, xmm1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esi + 0x14]
lea eax, [esp + 0x1c]
mulss xmm0, xmm1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
fstp dword [edx]
fstp dword [eax]
movss xmm5, dword [esp + 0x34]
movss xmm0, dword [esp + 0x14]
movss xmm4, dword [esp + 0x38]
movss xmm2, dword [esp + 0x3c]
mulss xmm0, xmm5
movss xmm7, dword [esp + 0x1c]
mulss xmm7, xmm4
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm4
movss dword [esp + 0x38], xmm0
movaps xmm0, xmm2
xorps xmm0, xmm3
movss xmm3, dword [esp + 0x28]
movss dword [esp + 0x10], xmm0
movaps xmm1, xmm3
mulss xmm1, xmm2
movaps xmm0, xmm1
mulss xmm1, xmm4
mulss xmm0, xmm5
subss xmm7, xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x3c], xmm7
movaps xmm7, xmm0
mulss xmm7, dword [0x1004d110]
mulss xmm0, xmm2
mulss xmm7, xmm5
movss dword [esp + 0xc], xmm0
movaps xmm2, xmm0
movaps xmm0, xmm3
mulss xmm2, xmm5
mulss xmm0, xmm4
subss xmm7, xmm1
movaps xmm1, xmm3
mulss xmm3, xmm5
mulss xmm1, dword [0x1004d110]
addss xmm2, xmm0
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm4
mulss xmm1, dword [esp + 0x14]
movaps xmm5, xmm0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x1c]
subss xmm5, xmm3
mulss xmm0, dword [esp + 0x14]
movss xmm3, dword [esp + 0x24]
movss dword [esp + 0xac], xmm2
movaps xmm6, xmm0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp + 0xb0], xmm5
movss dword [esp + 0xb4], xmm6
mulss xmm2, xmm0
mulss xmm5, xmm0
mulss xmm6, xmm0
movss xmm0, dword [esp + 0x3c]
movss xmm4, dword [esp + 0x34]
mulss xmm0, xmm3
mulss xmm1, xmm3
addss xmm4, xmm0
mulss xmm7, xmm3
movss xmm3, dword [esp + 0x38]
movss xmm0, dword [esp + 0x10]
addss xmm0, xmm1
addss xmm3, xmm7
addss xmm2, xmm4
addss xmm6, xmm0
addss xmm5, xmm3
movaps xmm1, xmm2
mulss xmm1, xmm2
movaps xmm0, xmm5
mulss xmm0, xmm5
addss xmm0, xmm1
movaps xmm1, xmm6
mulss xmm1, xmm6
addss xmm0, xmm1
addss xmm0, dword [0x1004ce38]
call fcn.1000ba40
movss xmm1, dword [0x1004cf24]
lea eax, [esp + 0x50]
divss xmm1, xmm0
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x48]
push eax
mulss xmm2, xmm1
mulss xmm5, xmm1
mulss xmm6, xmm1
movss dword [esp + 0x4c], xmm2
movss dword [esp + 0x50], xmm5
movss dword [esp + 0x54], xmm6
call fcn.1003bac0
movss xmm0, dword [esp + 0x20]
lea eax, [esp + 0x70]
movss xmm3, dword [0x1004d270]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x50]
xorps xmm0, xmm3
mov esi, dword [ebp + 0xc]
xor edi, edi
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x24]
xorps xmm0, xmm3
mov dword [esp + 0x3c], eax
movss dword [esp + 0x24], xmm0
lea eax, [esp + 0x74]
movsd xmm0, qword [0x1004d260]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x6c]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [0x1004cfd0]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x78]
movsd qword [esp + 0x98], xmm0
movsd xmm0, qword [0x1004cf50]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xc]
movsd qword [esp + 0xa0], xmm0
movsd xmm0, qword [0x1004cfd8]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x7c]
movsd qword [esp + 0x90], xmm1
movss xmm1, dword [esp + 0x58]
movsd qword [esp + 0xb8], xmm0
movss xmm0, dword [esp + 0x54]
mov dword [esp + 0x68], eax
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x14], xmm4
nop
movss xmm2, dword [0x1004ce58]
mulss xmm0, xmm2
movss dword [esp + 0x28], xmm0
fld dword [esp + 0x28]
fsincos
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
fstp dword [edx]
fstp dword [eax]
movaps xmm0, xmm4
mulss xmm0, xmm2
movss dword [esp + 0x28], xmm0
fld dword [esp + 0x28]
fsincos
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x60]
fstp dword [edx]
fstp dword [eax]
movaps xmm0, xmm1
mulss xmm0, xmm2
movss dword [esp + 0x28], xmm0
fld dword [esp + 0x28]
fsincos
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
fstp dword [edx]
fstp dword [eax]
movss xmm6, dword [esp + 0x6c]
movss xmm5, dword [esp + 0x70]
movaps xmm0, xmm6
movss xmm4, dword [esp + 0x74]
movss xmm2, dword [esp + 0x78]
mulss xmm0, xmm5
movss xmm7, dword [esp + 0xc]
mulss xmm7, xmm4
movss dword [esp + 0x80], xmm0
movaps xmm0, xmm6
mulss xmm0, xmm4
movss dword [esp + 0x88], xmm0
movaps xmm0, xmm2
xorps xmm0, xmm3
movss xmm3, dword [esp + 0x7c]
movss dword [esp + 0x50], xmm0
movaps xmm1, xmm3
mulss xmm1, xmm2
movaps xmm0, xmm1
mulss xmm1, xmm4
mulss xmm0, xmm5
subss xmm7, xmm0
movss xmm0, dword [esp + 0xc]
movss dword [esp + 0x28], xmm7
movaps xmm7, xmm0
mulss xmm7, dword [0x1004d110]
mulss xmm0, xmm2
movaps xmm2, xmm3
mulss xmm2, xmm4
movss dword [esp + 0x1c], xmm0
mulss xmm0, xmm5
mulss xmm7, xmm5
addss xmm2, xmm0
movss xmm0, dword [esp + 0x1c]
mulss xmm0, xmm4
subss xmm7, xmm1
movaps xmm1, xmm3
mulss xmm1, dword [0x1004d110]
movaps xmm4, xmm0
mulss xmm3, xmm5
movss xmm5, dword [esp + 0x24]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x20]
subss xmm4, xmm3
movss xmm3, dword [esp + 0xc]
mulss xmm2, xmm0
mulss xmm3, xmm6
mulss xmm4, xmm0
mulss xmm3, xmm0
movss xmm0, dword [esp + 0x28]
mulss xmm1, xmm6
mulss xmm0, xmm5
mulss xmm7, xmm5
addss xmm0, dword [esp + 0x80]
mulss xmm1, xmm5
addss xmm7, dword [esp + 0x88]
addss xmm1, dword [esp + 0x50]
addss xmm2, xmm0
addss xmm4, xmm7
addss xmm3, xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
movaps xmm0, xmm4
mulss xmm0, xmm4
addss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm0, xmm1
addss xmm0, dword [0x1004ce38]
call fcn.1000ba40
movss xmm1, dword [0x1004cf24]
divss xmm1, xmm0
mulss xmm2, xmm1
mulss xmm3, xmm1
mulss xmm4, xmm1
cvtps2pd xmm1, xmm2
cvtps2pd xmm2, xmm3
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x88], xmm2
movsd xmm2, qword [esp + 0x90]
ucomisd xmm0, xmm2
movsd qword [esp + 0x28], xmm1
movsd qword [esp + 0x80], xmm0
lahf
test ah, 0x44
jp 0x1002fcd1
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jp 0x1002fcd1
movaps xmm1, xmm2
movaps xmm0, xmm2
jmp 0x1002fd56
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x98]
movsd xmm1, qword [esp + 0x90]
mulsd xmm0, qword [esp + 0xa0]
comisd xmm1, xmm0
movsd qword [esp + 0x50], xmm0
jbe 0x1002fd0c
addsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 0x50], xmm0
movsd xmm1, qword [esp + 0x80]
movsd xmm2, qword [esp + 0x28]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x88]
xorps xmm0, xmmword [esp + 0x40]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [esp + 0x98]
movsd xmm1, qword [esp + 0x50]
mulsd xmm0, qword [esp + 0xa0]
movss xmm2, dword [esi]
movss xmm3, dword [esi + 4]
cvtsd2ss xmm0, xmm0
cvtpd2ps xmm1, xmm1
subss xmm2, xmm0
subss xmm3, xmm1
movaps xmm1, xmm2
movaps xmm0, xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
addss xmm0, xmm1
call fcn.1000ba40
ucomiss xmm0, dword [0x1004ce28]
movss xmm4, dword [esp + 0x14]
movss xmm0, dword [esp + 0x10]
movss xmm1, dword [esp + 0x18]
lahf
test ah, 0x44
jnp 0x1002fdd6
addss xmm1, dword [esi + 8]
addss xmm0, xmm3
inc edi
movss xmm3, dword [0x1004d270]
addss xmm4, xmm2
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x14], xmm4
cmp edi, 0x18
jle 0x1002fac0
movss dword [esi], xmm4
movss dword [esi + 4], xmm0
movss dword [esi + 8], xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14