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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0
movss xmm0, dword [ebp + 0x18]
mulss xmm0, dword [0x1006e988]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
movss dword [esp + 0x24], xmm0
mov esi, edx
mov dword [esp + 0x28], edi
movss xmm1, dword [edi + 8]
addss xmm1, xmm0
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
push ecx
movss xmm0, dword [0x1006ea3c]
addss xmm1, xmm1
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
mov edx, dword [ebp + 0xc]
xorps xmm1, xmm1
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
cvtpd2ps xmm0, xmm0
pop ecx
pop ecx
push 2
pop ecx
mov byte [esp + 0x64], 0
movss dword [esp + 0x30], xmm1
cvttss2si eax, xmm0
mov byte [esp + 0x84], 0
xorps xmm0, xmm0
movss dword [esp + 0x88], xmm1
cmp eax, ecx
movss dword [esp + 0x8c], xmm1
movups xmmword [esp + 0x48], xmm0
cmovl eax, ecx
and dword [esp + 0x58], 0
movss dword [esp + 0xa8], xmm1
and dword [esp + 0x5c], 0
and dword [esp + 0x60], 0
and dword [esp + 0x78], 0
and dword [esp + 0x7c], 0
and dword [esp + 0x80], 0
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
movss dword [esp + 0xac], xmm1
movups xmmword [esp + 0x68], xmm0
test edx, edx
je 0x10017924
mov dword [esp + 0x2c], eax
lea ecx, [esi - 0x20]
shl eax, 5
add ecx, eax
and dword [esp + 0x1c], 0
jmp 0x1001793a
mov ecx, esi
mov dword [esp + 0x1c], 1
add esi, 0x20
dec eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x2c], eax
movss xmm0, dword [esi + 4]
movss xmm2, dword [esi]
mov dword [esp + 0x20], ecx
subss xmm0, dword [ecx + 4]
subss xmm2, dword [ecx]
movss dword [esp + 0x18], xmm0
movaps xmm1, xmm0
movss dword [esp + 8], xmm2
mulss xmm1, xmm0
test edx, edx
je 0x10017a68
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [0x1006e998]
xorps xmm4, xmm4
movss xmm2, dword [esp + 8]
cvtsd2ss xmm4, xmm0
comiss xmm4, dword [0x1006e95c]
jbe 0x100179af
divss xmm1, xmm4
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x18]
mulss xmm2, xmm0
jmp 0x100179b5
movss xmm1, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x48]
movss xmm3, dword [esp + 0x24]
lea edi, [esp + 0x88]
movaps xmm0, xmm4
mulss xmm4, xmm1
push 8
mulss xmm0, xmm2
pop ecx
mulss xmm4, dword [0x1006e988]
push 8
mulss xmm0, dword [0x1006e988]
addss xmm4, dword [eax + 4]
xorps xmm2, xmmword [0x1006ebc0]
addss xmm0, dword [eax]
mulss xmm1, xmm3
mulss xmm2, xmm3
movaps xmm7, xmm4
movaps xmm6, xmm0
subss xmm6, xmm1
subss xmm7, xmm2
addss xmm1, xmm0
addss xmm2, xmm4
movss dword [esp + 0x4c], xmm6
movss dword [esp + 0x50], xmm7
rep movsd dword es:[edi], dword [esi]
movss xmm0, dword [esp + 0x8c]
lea esi, [esp + 0x6c]
pop ecx
lea edi, [esp + 0xa8]
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x6c], xmm2
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
movss dword [esp + 0x18], xmm1
movss dword [esp + 8], xmm2
movss dword [esp + 0x30], xmm0
jmp 0x10017c23
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [esp + 8], xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [0x1006e998]
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x1006e95c]
jbe 0x10017ab1
divss xmm1, xmm0
movaps xmm2, xmm1
mulss xmm1, dword [esp + 0xc]
mulss xmm2, dword [esp + 8]
jmp 0x10017abd
movss xmm2, dword [esp + 8]
movss xmm1, dword [esp + 0xc]
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x10017afb
mov eax, dword [esp + 0x20]
xorps xmm2, xmmword [0x1006ebc0]
movss xmm0, dword [esp + 0x24]
mulss xmm2, dword [esp + 0x24]
movss xmm4, dword [eax + 4]
mulss xmm0, xmm1
movss xmm1, dword [eax]
subss xmm4, xmm2
addss xmm2, dword [eax + 4]
subss xmm1, xmm0
addss xmm0, dword [eax]
jmp 0x10017b4e
cmp eax, 2
jne 0x10017bb6
movss xmm3, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
movaps xmm0, xmm3
mulss xmm0, xmm2
xorps xmm2, xmmword [0x1006ebc0]
movss xmm5, dword [eax]
movss xmm6, dword [eax + 4]
subss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm2, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
subss xmm6, xmm0
subss xmm1, xmm0
addss xmm0, xmm5
movaps xmm4, xmm6
subss xmm4, xmm2
addss xmm2, xmm6
push ecx
movss dword [esp + 0xc], xmm2
movaps xmm3, xmm0
movss dword [esp], xmm2
mov ecx, edi
movaps xmm2, xmm4
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x14], xmm4
movss dword [esp + 0x18], xmm1
call fcn.10016e34
movss xmm0, dword [esp + 0x1c]
movss xmm6, dword [esp + 0x18]
movss xmm7, dword [esp + 0x14]
movss xmm3, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0xc]
pop ecx
movss dword [esp + 0x48], xmm6
movss dword [esp + 0x4c], xmm7
movss dword [esp + 0x6c], xmm0
jmp 0x10017c2f
cmp eax, 1
mov eax, dword [esp + 0x20]
jne 0x10017bf9
movss xmm0, dword [ebp + 0x18]
lea edx, [esp + 0x48]
push 0
push dword [esp + 0x48]
mov ecx, edi
sub esp, 0xc
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm1
movss dword [esp], xmm2
push eax
lea eax, [esp + 0x80]
push eax
call fcn.10017383
mov eax, dword [esp + 0x3c]
add esp, 0x1c
movss xmm0, dword [esp + 0x6c]
movss xmm3, dword [esp + 0x24]
movss xmm6, dword [esp + 0x48]
movss xmm7, dword [esp + 0x4c]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x68]
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x10], xmm7
movss dword [esp + 0x14], xmm6
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
cmp edx, ecx
jge 0x100180d4
sub ecx, edx
mov dword [esp + 0x2c], ecx
jmp 0x10017c4d
movss xmm3, dword [esp + 0x24]
mov cl, byte [esi + 0x1c]
test cl, 1
je 0x10017ffb
cmp dword [ebp + 0x10], 1
jne 0x10017caf
push dword [esp + 0x44]
movss xmm0, dword [ebp + 0x18]
lea edx, [esp + 0x4c]
push ecx
movss dword [esp], xmm0
mov ecx, edi
push esi
push eax
lea eax, [esp + 0x78]
push eax
call fcn.1001758c
movss xmm0, dword [esp + 0x80]
add esp, 0x14
movss xmm7, dword [esp + 0x4c]
movss xmm6, dword [esp + 0x48]
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x68]
movss dword [esp + 0x18], xmm0
jmp 0x100180b8
cmp dword [ebp + 0x10], 2
je 0x10017ebc
test cl, 2
jne 0x10017ebc
movss xmm5, dword [eax + 8]
test cl, 4
movss xmm2, dword [esi + 8]
movss xmm1, dword [eax + 0xc]
xorps xmm5, xmmword [0x1006ebc0]
movss xmm4, dword [esi + 0xc]
xorps xmm2, xmmword [0x1006ebc0]
push ecx
movss dword [esp + 0x24], xmm1
mov ecx, edi
movss dword [esp + 0x10], xmm5
movss dword [esp + 0x2c], xmm4
movss dword [esp + 0x20], xmm2
movss dword [esp], xmm7
je 0x10017dcf
movss xmm1, dword [esi]
movaps xmm0, xmm3
mulss xmm0, dword [esi + 0x14]
movss xmm2, dword [esi + 4]
subss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esi + 0x18]
movaps xmm3, xmm6
subss xmm2, xmm0
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x14], xmm2
call fcn.10016e34
movss xmm0, dword [esp + 0x28]
mov ecx, edi
movss xmm1, dword [esp + 0x2c]
movss xmm2, dword [esp + 0x10]
movss xmm3, dword [esp + 0x24]
mulss xmm1, xmm0
mulss xmm2, xmm0
addss xmm1, dword [esi]
mulss xmm3, xmm0
addss xmm2, dword [esi + 4]
addss xmm3, dword [esi]
movss dword [esp + 0x2c], xmm1
movss xmm1, dword [esp + 0x20]
mulss xmm1, xmm0
movss dword [esp + 0x10], xmm2
movss dword [esp], xmm2
addss xmm1, dword [esi + 4]
movss xmm2, dword [esp + 0xc]
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x20], xmm1
movss xmm1, dword [esp + 0x1c]
call fcn.10016e34
movss xmm0, dword [esp + 0x20]
movss xmm3, dword [esp + 0x2c]
movss xmm2, dword [esp + 0x10]
movss xmm1, dword [esp + 0x24]
jmp 0x10017e99
movss xmm0, dword [esi]
mulss xmm1, xmm3
mulss xmm5, xmm3
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x24], xmm1
movaps xmm1, xmm0
movss xmm0, dword [esi + 4]
subss xmm1, dword [esp + 0x24]
mulss xmm2, xmm3
mulss xmm4, xmm3
movss dword [esp + 0x14], xmm0
subss xmm0, xmm5
movss xmm3, dword [esp + 0x14]
movss xmm5, dword [esp + 0x18]
subss xmm3, xmm2
subss xmm5, xmm4
movss dword [esp + 0x20], xmm1
movaps xmm2, xmm0
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x14], xmm3
movaps xmm3, xmm6
movss dword [esp + 0x18], xmm5
call fcn.10016e34
movss xmm0, dword [esp + 0x10]
mov ecx, edi
movss xmm3, dword [esp + 0x20]
movss xmm2, dword [esp + 0x14]
movss xmm1, dword [esp + 0x18]
movss dword [esp], xmm0
call fcn.10016e34
movss xmm0, dword [esp + 0x28]
movss xmm2, dword [esp + 0xc]
movaps xmm1, xmm0
mulss xmm1, dword [esi + 0x14]
mulss xmm0, dword [esi + 0x18]
addss xmm1, dword [esi]
addss xmm0, dword [esi + 4]
movss dword [esp + 0x2c], xmm1
movaps xmm3, xmm1
movss xmm1, dword [esp + 0x1c]
movss dword [esp + 0x20], xmm0
mov ecx, edi
movss dword [esp], xmm0
call fcn.10016e34
movss xmm6, dword [esp + 0x18]
movss xmm7, dword [esp + 0x14]
movss xmm1, dword [esp + 0x2c]
jmp 0x1001808d
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax + 8]
xorps xmm0, xmmword [0x1006ebc0]
movss xmm2, dword [esi + 4]
movss xmm5, dword [esi]
movaps xmm4, xmm2
mulss xmm1, xmm3
push ecx
mulss xmm0, xmm3
mov ecx, edi
movss xmm3, dword [esi]
subss xmm5, xmm1
addss xmm3, xmm1
movss dword [esp], xmm7
movaps xmm1, xmm2
subss xmm4, xmm0
addss xmm1, xmm0
movss xmm0, dword [esi]
movss dword [esp + 0x3c], xmm5
movss dword [esp + 0x20], xmm3
movss xmm3, dword [esi + 0xc]
mulss xmm3, dword [esp + 0x28]
movss dword [esp + 0x10], xmm1
movss xmm1, dword [esi + 8]
xorps xmm1, xmmword [0x1006ebc0]
subss xmm0, xmm3
mulss xmm1, dword [esp + 0x28]
addss xmm3, dword [esi]
movss dword [esp + 0x38], xmm4
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
addss xmm1, xmm2
movaps xmm2, xmm4
movss dword [esp + 0x18], xmm3
movaps xmm3, xmm6
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x14], xmm1
movaps xmm1, xmm5
call fcn.10016e34
movss xmm0, dword [esp + 0x38]
mov ecx, edi
movss xmm3, dword [esp + 0x3c]
movss xmm2, dword [esp + 0x24]
movss xmm1, dword [esp + 0x2c]
movss dword [esp], xmm0
call fcn.10016e34
movss xmm0, dword [esp + 0x10]
mov ecx, edi
movss xmm3, dword [esp + 0x20]
movss xmm2, dword [esp + 0xc]
movss xmm1, dword [esp + 0x1c]
movss dword [esp], xmm0
call fcn.10016e34
movss xmm0, dword [esp + 0x14]
mov ecx, edi
movss xmm3, dword [esp + 0x18]
movss xmm2, dword [esp + 0x10]
movss xmm1, dword [esp + 0x20]
movss dword [esp], xmm0
call fcn.10016e34
movss xmm6, dword [esp + 0x2c]
movss xmm7, dword [esp + 0x24]
movss xmm1, dword [esp + 0x18]
movss xmm0, dword [esp + 0x14]
jmp 0x10018093
movss xmm1, dword [esi + 0x14]
movss xmm0, dword [esi + 0x18]
movss xmm5, dword [esi]
mulss xmm1, xmm3
movaps xmm4, xmm5
push ecx
mulss xmm0, xmm3
mov ecx, edi
movss xmm3, dword [esi + 4]
subss xmm4, xmm1
movaps xmm2, xmm3
movss dword [esp], xmm7
addss xmm3, xmm0
addss xmm5, xmm1
subss xmm2, xmm0
movaps xmm1, xmm4
movss dword [esp + 0x3c], xmm4
movss dword [esp + 0x20], xmm3
movaps xmm3, xmm6
movss dword [esp + 0x10], xmm5
movss dword [esp + 0x38], xmm2
call fcn.10016e34
movss xmm0, dword [esp + 0x20]
mov ecx, edi
movss xmm3, dword [esp + 0x10]
movss xmm2, dword [esp + 0xc]
movss xmm1, dword [esp + 0x1c]
movss dword [esp], xmm0
call fcn.10016e34
movss xmm6, dword [esp + 0x3c]
movss xmm7, dword [esp + 0x38]
movss xmm1, dword [esp + 0x10]
movss xmm0, dword [esp + 0x20]
pop ecx
movss dword [esp + 0x48], xmm6
movss dword [esp + 0x4c], xmm7
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x68], xmm1
movss dword [esp + 8], xmm0
movss dword [esp + 0x6c], xmm0
mov eax, esi
add esi, 0x20
sub dword [esp + 0x2c], 1
jne 0x10017c47
movss dword [esp + 0x10], xmm7
movss dword [esp + 0x14], xmm6
cmp dword [ebp + 0xc], 0
je 0x10018121
movss xmm2, dword [esp + 0x8c]
movaps xmm3, xmm6
movss xmm1, dword [esp + 0x30]
push ecx
mov ecx, edi
movss dword [esp], xmm7
call fcn.10016e34
movss xmm0, dword [esp + 0xb0]
movss xmm3, dword [esp + 0xac]
movss xmm2, dword [esp + 0xc]
movss xmm1, dword [esp + 0x1c]
movss dword [esp], xmm0
jmp 0x1001824e
movss xmm0, dword [esi + 4]
movss xmm1, dword [esi]
movss dword [esp + 0xc], xmm0
movaps xmm2, xmm1
subss xmm0, dword [eax + 4]
subss xmm2, dword [eax]
movss dword [esp + 0x2c], xmm1
movaps xmm1, xmm0
movss dword [esp + 0x1c], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss dword [esp + 0x30], xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm2, dword [esp + 0x30]
movss xmm3, dword [esp + 0x1c]
cvtsd2ss xmm0, xmm0
comiss xmm0, dword [0x1006e95c]
jbe 0x10018198
movss xmm1, dword [0x1006e998]
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x1001825b
movss xmm4, dword [0x1006ebc0]
movss xmm5, dword [esp + 0x2c]
xorps xmm2, xmm4
xorps xmm3, xmm4
xorps xmm2, xmm4
mulss xmm3, dword [esp + 0x24]
movaps xmm1, xmm5
push ecx
mulss xmm2, dword [esp + 0x28]
mov ecx, edi
movss xmm4, dword [esp + 0x10]
addss xmm5, xmm3
movaps xmm0, xmm4
subss xmm1, xmm3
subss xmm0, xmm2
addss xmm4, xmm2
movaps xmm3, xmm5
movss dword [esp + 0x30], xmm5
movss dword [esp + 0x38], xmm1
movaps xmm2, xmm0
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x10], xmm4
movss dword [esp], xmm4
call fcn.10016e34
movss xmm0, dword [esp + 0x3c]
mov ecx, edi
movss xmm3, dword [esp + 0x38]
movss xmm2, dword [esp + 0xc]
movss xmm1, dword [esp + 0x1c]
movss dword [esp], xmm0
call fcn.10016e34
movss xmm4, dword [esp + 0x14]
movss xmm3, dword [esp + 0x18]
movss xmm2, dword [esp + 0x10]
movss xmm1, dword [esp + 0x30]
movss dword [esp], xmm4
mov ecx, edi
call fcn.10016e34
pop ecx
jmp 0x100182e4
cmp eax, 2
jne 0x1001829f
movss xmm0, dword [ebp + 0x18]
lea eax, [esp + 0x48]
xorps xmm3, xmmword [0x1006ebc0]
lea edx, [esp + 0x68]
xorps xmm2, xmmword [0x1006ebc0]
mov ecx, edi
push 1
sub esp, 0xc
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm3
movss dword [esp], xmm2
push esi
push eax
call fcn.10017287
add esp, 0x18
jmp 0x100182e4
cmp eax, 1
jne 0x100182e4
movss xmm0, dword [ebp + 0x18]
lea edx, [esp + 0x68]
xorps xmm3, xmmword [0x1006ebc0]
mov ecx, edi
xorps xmm2, xmmword [0x1006ebc0]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x50]
sub esp, 0xc
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm3
movss dword [esp], xmm2
push esi
push eax
call fcn.10017383
add esp, 0x1c
pop edi
pop esi
mov esp, ebp
pop ebp
ret