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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je case.0x10023c04.0
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
jns 0x10023bf0
xor eax, eax
jmp 0x10023bf8
xor ecx, ecx
cmp eax, 0x1d
cmovg eax, ecx
cmp eax, 0x1c
ja case.0x10023c04.1
movzx eax, byte [eax + 0x100243f0]
jmp dword [eax*4 + 0x100243e8]
mov ecx, edi
call fcn.10022010
push edi
lea eax, [esp + 0x84]
movss dword [esp + 0x10], xmm0
push eax
call fcn.100229a0
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 0x34]
inc eax
push eax
call dword [0x1008405c]
mov eax, dword [0x10084064]
mov dword [esp], 0x3f000000
push ecx
mov dword [esp + 0x18], eax
mov dword [esp], 0xbf000000
call eax
fstp dword [esp + 0x1c]
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [esp + 0x18]
fadd dword [esp + 0x1c]
mov eax, dword [0x10084064]
mov dword [esp + 4], 0x3f000000
mov dword [esp + 0x1c], eax
mov dword [esp], 0xbf000000
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [esp + 0x14]
movss dword [esp + 0x30], xmm0
call eax
fstp dword [esp + 0x18]
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [esp + 0x1c]
fadd dword [esp + 0x18]
add esp, 8
cmp byte [0x10083128], 0
movss xmm3, dword [0x10058490]
fmul dword [esp + 0xc]
fstp dword [esp + 0x10]
movss xmm1, dword [esp + 0x10]
movss dword [esp + 0x30], xmm1
je 0x10023ce3
cmp byte [ebp + 0x18], 0
jne 0x10023cfb
movss xmm0, dword [esp + 0x28]
xorps xmm1, xmm3
xorps xmm0, xmm3
movss dword [esp + 0x30], xmm1
movss dword [esp + 0x28], xmm0
movss xmm0, dword [edi + 0x10]
lea eax, [esp + 0x24]
movss xmm1, dword [0x10058118]
mulss xmm0, xmm1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [edi + 0xc]
lea eax, [esp + 0x38]
mulss xmm0, xmm1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [edi + 0x14]
lea eax, [esp + 0x34]
mulss xmm0, xmm1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
mov dword [esp + 0xc], eax
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esp + 0x38]
movss xmm7, dword [esp + 0x24]
movaps xmm1, xmm0
mulss xmm0, dword [esp + 0x2c]
movss xmm2, dword [esp + 0x3c]
movss xmm4, dword [esp + 0x34]
mulss xmm4, dword [esp + 0x2c]
movss xmm6, dword [esp + 0x34]
mulss xmm6, dword [0x1005838c]
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm2
xorps xmm0, xmm3
mulss xmm1, xmm7
movss xmm3, dword [esp + 0x18]
movss dword [esp + 0xc], xmm0
movaps xmm5, xmm3
movss dword [esp + 0x10], xmm1
movaps xmm0, xmm7
movaps xmm1, xmm3
mulss xmm6, xmm7
mulss xmm1, xmm2
mulss xmm5, dword [0x1005838c]
mulss xmm0, xmm1
mulss xmm5, dword [esp + 0x38]
subss xmm4, xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x34]
mulss xmm1, xmm2
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x2c]
subss xmm6, xmm0
movaps xmm0, xmm7
mulss xmm3, xmm7
movss xmm7, dword [esp + 0x28]
mulss xmm0, xmm1
mulss xmm7, xmm4
addss xmm2, xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x34]
addss xmm7, dword [esp + 0x10]
mulss xmm1, dword [esp + 0x38]
subss xmm0, xmm3
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x30]
movss xmm4, dword [esp + 0x18]
mulss xmm0, xmm2
movss xmm2, dword [esp + 0x28]
movaps xmm3, xmm2
mulss xmm3, xmm6
addss xmm7, xmm0
movss xmm0, dword [esp + 0x30]
addss xmm3, dword [esp + 0x14]
mulss xmm0, xmm4
lea ecx, [esp + 0x40]
mulss xmm2, xmm5
addss xmm3, xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, xmm1
addss xmm2, dword [esp + 0xc]
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm2, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm7
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100580f8]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
sqrtsd xmm1, xmm0
movsd xmm0, qword [0x10058250]
divsd xmm0, xmm1
cvtpd2ps xmm6, xmm0
movaps xmm0, xmm6
movaps xmm5, xmm6
mulss xmm0, xmm7
mulss xmm5, xmm3
movaps xmm7, xmm0
movss dword [esp + 0x18], xmm0
mulss xmm6, xmm2
movaps xmm0, xmm5
movss dword [esp + 0x14], xmm7
mulss xmm0, dword [esp + 0x24]
movaps xmm1, xmm6
movss dword [esp + 0x18], xmm5
mulss xmm1, xmm4
movss dword [esp + 0x10], xmm5
subss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x40], xmm1
movaps xmm1, xmm7
mulss xmm1, dword [esp + 0x24]
subss xmm1, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm4
movss dword [esp + 0x44], xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0x3c]
subss xmm1, xmm0
movss dword [esp + 0x48], xmm1
call fcn.10002d00
movss xmm2, dword [esp + 0x18]
movaps xmm0, xmm7
movaps xmm1, xmm2
mulss xmm0, xmm7
mulss xmm1, xmm2
movss xmm5, dword [0x10058490]
xorps xmm6, xmm5
addss xmm1, xmm0
movss dword [esp + 0xc], xmm6
xorps xmm0, xmm0
sqrtss xmm0, xmm1
comiss xmm0, dword [0x100580fc]
movss dword [esp + 0x24], xmm0
jbe 0x1002401f
mulss xmm2, dword [esp + 0x40]
mulss xmm7, dword [esp + 0x44]
fld dword [esp + 0x48]
subss xmm7, xmm2
movss xmm2, dword [0x100582d0]
movss dword [esp + 0x18], xmm7
fld dword [esp + 0x18]
fpatan
fstp dword [esp + 0x18]
fld dword [esp + 0xc]
fld dword [esp + 0x24]
fpatan
movss xmm1, dword [esp + 0x18]
fstp dword [esp + 0xc]
fld dword [esp + 0x10]
fld dword [esp + 0x14]
mulss xmm1, xmm2
jmp 0x1002404f
fld dword [esp + 0xc]
xorps xmm1, xmm1
fld dword [esp + 0x24]
fpatan
movss xmm0, dword [esp + 0x40]
movss xmm2, dword [0x100582d0]
xorps xmm0, xmm5
fstp dword [esp + 0xc]
movss dword [esp + 0x18], xmm0
fld dword [esp + 0x18]
fld dword [esp + 0x44]
fpatan
lea eax, [esp + 0x38]
xor edi, edi
mov dword [esp + 0x50], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x64], eax
movss xmm0, dword [esp + 0x28]
movaps xmm3, xmm2
movss xmm4, dword [esp + 0xc]
xorps xmm0, xmm5
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x30]
xorps xmm0, xmm5
mulss xmm4, xmm3
movss dword [esp + 0x30], xmm0
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm2
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x24], xmm4
movss dword [esp + 0xc], xmm0
nop
movss xmm2, dword [0x10058118]
lea ecx, [esi + 8]
mulss xmm0, xmm2
movss dword [esp + 0x18], xmm0
fld dword [esp + 0x18]
fsincos
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
fstp dword [edx]
fstp dword [eax]
mulss xmm4, xmm2
movss dword [esp + 0x18], xmm4
fld dword [esp + 0x18]
fsincos
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
fstp dword [edx]
fstp dword [eax]
mulss xmm1, xmm2
movss dword [esp + 0x18], xmm1
fld dword [esp + 0x18]
fsincos
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esp + 0x3c]
movss xmm7, dword [esp + 0x38]
movaps xmm1, xmm0
movss xmm3, dword [esp + 0x10]
movss xmm4, dword [esp + 0x6c]
movss xmm2, dword [esp + 0x68]
movss xmm6, dword [esp + 0x34]
mulss xmm0, xmm3
mulss xmm1, xmm7
movss dword [esp + 0x70], xmm0
movaps xmm0, xmm2
xorps xmm0, xmm5
movaps xmm5, xmm6
mulss xmm6, dword [0x1005838c]
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x14], xmm1
movaps xmm1, xmm4
mulss xmm1, xmm2
mulss xmm5, xmm3
movaps xmm0, xmm1
mulss xmm6, xmm7
mulss xmm0, xmm7
movaps xmm7, xmm4
mulss xmm1, xmm3
movss xmm3, dword [esp + 0x34]
subss xmm5, xmm0
mulss xmm3, xmm2
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0x10]
subss xmm6, xmm1
movss xmm2, dword [esp + 0x28]
movaps xmm1, xmm3
mulss xmm1, dword [esp + 0x38]
mulss xmm4, dword [esp + 0x38]
mulss xmm3, dword [esp + 0x10]
addss xmm1, xmm0
movss xmm0, dword [esp + 0x34]
mulss xmm0, dword [esp + 0x3c]
mulss xmm7, dword [0x1005838c]
subss xmm3, xmm4
movss dword [esp + 0x40], xmm0
movaps xmm4, xmm2
movaps xmm0, xmm2
mulss xmm4, xmm6
mulss xmm7, dword [esp + 0x3c]
addss xmm4, dword [esp + 0x70]
mulss xmm0, xmm5
mulss xmm2, xmm7
movaps xmm5, xmm0
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x30]
addss xmm5, dword [esp + 0x14]
addss xmm2, dword [esp + 0x78]
mulss xmm0, xmm1
addss xmm5, xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, xmm3
addss xmm4, xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, dword [esp + 0x40]
addss xmm2, xmm0
movaps xmm1, xmm4
movaps xmm0, xmm5
mulss xmm1, xmm4
mulss xmm0, xmm5
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x100580f8]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x10058250]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm2, xmm0
mulss xmm4, xmm0
mulss xmm5, xmm0
cvtps2pd xmm0, xmm2
cvtps2pd xmm1, xmm4
movsd qword [esp + 0x78], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm3, xmm5
lahf
movsd qword [esp + 0x18], xmm3
movsd qword [esp + 0x70], xmm1
test ah, 0x44
jp 0x100242d4
ucomisd xmm3, xmm0
lahf
test ah, 0x44
jp 0x100242d4
xorps xmm1, xmm1
jmp 0x10024343
movaps xmm0, xmm1
movaps xmm1, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10058270]
xorps xmm2, xmm2
comisd xmm2, xmm0
movsd qword [esp + 0x40], xmm0
jbe 0x10024304
addsd xmm0, qword [0x10058278]
movsd qword [esp + 0x40], xmm0
movsd xmm1, qword [esp + 0x70]
movsd xmm2, qword [esp + 0x18]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x78]
xorps xmm0, xmmword [0x10058480]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10058270]
lea ecx, [esi + 8]
movsd xmm1, qword [esp + 0x40]
movss xmm2, dword [esi]
movss xmm3, dword [esi + 4]
cvtsd2ss xmm0, xmm0
subss xmm2, xmm0
cvtpd2ps xmm0, xmm1
subss xmm3, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, xmm3
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss xmm1, dword [esp + 0x2c]
ucomiss xmm0, dword [0x100580f4]
lahf
test ah, 0x44
jnp 0x100243c5
addss xmm2, dword [esp + 0x24]
addss xmm3, dword [esp + 0xc]
addss xmm1, dword [esi + 8]
movss xmm5, dword [0x10058490]
inc edi
movaps xmm4, xmm2
movss dword [esp + 0x24], xmm4
movaps xmm0, xmm3
movss dword [esp + 0xc], xmm0
movss dword [esp + 0x2c], xmm1
cmp edi, 0x18
jle 0x100240d0
jmp 0x100243d1
movss xmm4, dword [esp + 0x24]
movss xmm0, dword [esp + 0xc]
movss dword [esi], xmm4
movss dword [esi + 4], xmm0
movss dword [ecx], xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14