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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x174
cmp byte [0x101cf5e4], 0
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x14], xmm0
je 0x1003875f
cmp dword [edi + 4], 1
jne 0x1003875f
mov eax, dword [edi]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.1001d930
mov eax, dword [eax]
cmp dword [eax + 0x1c], 0
je 0x1003874f
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1001d930
mov edx, dword [eax]
add edx, 0xc
mov dword [esp + 0x34], edx
je 0x1003874f
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
add eax, ebx
mov dword [esp + 0x28], eax
cmp ebx, eax
je 0x1003874f
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
dec ecx
and ecx, ebx
mov esi, dword [eax + ecx*4]
push esi
mov dword [esp + 0x10], esi
call fcn.1001c200
test al, al
je 0x10038740
mov ecx, dword [edi]
lea eax, [esi + 0x10]
push eax
push 1
lea eax, [esp + 0x124]
push eax
call fcn.1001c0b0
mov ecx, dword [ebp + 8]
movss xmm0, dword [eax]
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x10], xmm0
movss dword [esp + 0x50], xmm0
movss xmm0, dword [eax + 8]
lea eax, [esp + 0x128]
push eax
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x58], xmm0
call fcn.1001bf70
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [esp + 0x134]
push eax
call fcn.10016660
mov edx, dword [edi]
movss xmm0, dword [eax]
addss xmm0, dword [esi]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, dword [eax + 4]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esi + 8]
addss xmm0, dword [eax + 8]
mov esi, dword [ebp + 8]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x44]
mov ecx, esi
push eax
movss dword [esp + 0x50], xmm0
call fcn.1001a880
add esp, 8
test al, al
je 0x10038740
mov eax, dword [esp + 0xc]
mov ecx, esi
mov eax, dword [eax]
mov dword [edi + 0x38], eax
lea eax, [esp + 0x58]
push eax
call fcn.1001bf70
mov ecx, dword [ebp + 8]
mov esi, eax
lea eax, [esp + 0x64]
push eax
call fcn.10016660
movss xmm0, dword [esi + 8]
sub esp, 8
movss xmm3, dword [esi]
movss xmm2, dword [esi + 4]
addss xmm0, dword [eax + 8]
addss xmm3, dword [eax]
addss xmm2, dword [eax + 4]
subss xmm0, dword [esp + 0x20]
subss xmm3, dword [esp + 0x1c]
subss xmm2, dword [esp + 0x18]
movss dword [esp + 0x24], xmm0
movaps xmm0, xmm3
movss dword [esp + 0x14], xmm3
movaps xmm1, xmm2
mulss xmm0, xmm3
mulss xmm1, xmm2
movss dword [esp + 0x44], xmm2
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
call fcn.1001bcd0
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fdivr dword [esp + 0x1c]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x101977b0]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x3c]
divss xmm0, dword [esp + 0xc]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
cvtsd2ss xmm0, xmm0
xorps xmm1, xmm1
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x101977b0]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0xc]
comiss xmm0, dword [0x101975b4]
jb 0x10038704
addss xmm1, dword [0x101978e0]
movss xmm0, dword [esp + 0x20]
movss dword [edi + 0x14], xmm0
movss xmm0, dword [esp + 0x14]
movss dword [edi + 8], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [edi + 0xc], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [edi + 0x18], xmm1
mov dword [edi + 0x1c], 0
movss dword [edi + 0x10], xmm0
mov byte [edi + 0x34], 1
mov edx, dword [esp + 0x34]
inc ebx
cmp ebx, dword [esp + 0x28]
jne 0x10038531
push dword [edi]
call fcn.1001c350
test al, al
jne 0x1003875f
cmp byte [edi + 0x34], al
je 0x10038792
cmp byte [0x102b73bf], 0
je 0x1003879d
cmp byte [edi + 0x34], 0
jne 0x100387a7
mov ecx, dword [edi]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
push eax
lea eax, [edi + 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10036b50
test al, al
jne 0x10038b63
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x34], 0
je 0x10038b6e
mov ebx, dword [ebp + 8]
mov esi, dword [0x101cf490]
push ebx
call fcn.10029290
test al, al
je 0x100387e5
cmp byte [0x102b73bc], 0
je 0x100387e5
mov ecx, ebx
call fcn.10010d70
test al, al
je 0x100387e5
movd xmm0, dword [0x101cf58c]
mov eax, dword [0x101cf490]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0x1c]
jmp 0x100387e8
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x140]
push eax
movss dword [esp + 0x10], xmm0
call fcn.10032240
push dword [0x101c93a8]
movss xmm0, dword [eax + 0x38]
subss xmm0, dword [esp + 0x10]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esi + 0x1c]
movss dword [esp + 0x2c], xmm0
call fcn.10011e80
test al, al
je 0x10038b63
mov eax, dword [0x101cf490]
movss xmm0, dword [esp + 0x34]
movss xmm2, dword [esp + 0x28]
comiss xmm2, xmm0
movss xmm1, dword [eax + 0x1c]
ja 0x1003884e
movss xmm0, xmm0
jmp 0x10038852
movss xmm0, xmm2
divss xmm0, xmm1
lea eax, [esp + 0x64]
mov ecx, ebx
push eax
mulss xmm1, dword [0x1019766c]
addss xmm0, xmm1
cvttss2si edi, xmm0
call fcn.1001bf70
mov esi, eax
mov ecx, ebx
lea eax, [esp + 0x58]
push eax
call fcn.10016660
mov ecx, ebx
movss xmm0, dword [esi]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [eax]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esi + 4]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esi + 8]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 8]
mov eax, dword [ebx]
movss dword [esp + 0xc], xmm0
mov eax, dword [eax + 0x24]
call eax
movss xmm0, dword [esp + 0x1c]
mov ecx, ebx
addss xmm0, dword [esp + 0x34]
subss xmm0, dword [eax]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x20]
addss xmm0, dword [esp + 0x28]
subss xmm0, dword [eax + 4]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0xc]
addss xmm0, dword [esp + 0x3c]
subss xmm0, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
movss dword [esp + 0xc], xmm0
mov eax, dword [eax + 0x71c]
call eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0xbc], 0
mulss xmm0, dword [0x10197740]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xc8], 0
movss dword [esp + 0x34], xmm0
xorps xmm0, xmm0
movq qword [esp + 0x70], xmm0
movups xmmword [esp + 0x94], xmm0
mov dword [esp + 0xc4], 0
movups xmmword [esp + 0xa4], xmm0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xec], 0
xorps xmm1, xmm1
mov dword [esp + 0xe8], 0
xorps xmm2, xmm2
mov dword [esp + 0xfc], 0
xorps xmm3, xmm3
mov dword [esp + 0xf8], 0
mov dword [esp + 0xf4], 0
movq qword [esp + 0x100], xmm0
mov dword [esp + 0x108], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x10c], 0
movss dword [esp + 0x30], xmm1
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x28], xmm3
test edi, edi
jle 0x10038adc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.10012f60
sub edi, 1
jne 0x10038ab6
movss xmm1, dword [esp + 0x30]
movss xmm2, dword [esp + 0x2c]
movss xmm3, dword [esp + 0x28]
addss xmm3, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x14]
addss xmm2, dword [esp + 0x20]
addss xmm1, dword [esp + 0xc]
subss xmm0, xmm3
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x10]
subss xmm0, xmm2
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x18]
subss xmm0, xmm1
movss dword [esp + 0x18], xmm0
call fcn.100125e0
movss xmm1, dword [esp + 0x14]
movss xmm0, dword [esp + 0x10]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm1
movss xmm1, dword [esp + 0x18]
mulss xmm1, xmm1
addss xmm0, xmm1
call fcn.1000f940
movss xmm1, dword [esp + 0x34]
comiss xmm1, xmm0
seta al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
call fcn.1001bf70
mov esi, eax
mov ecx, ebx
lea eax, [esp + 0x58]
push eax
call fcn.10016660
movss xmm0, dword [esi]
mov ecx, ebx
mov edx, dword [edi]
addss xmm0, dword [eax]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, dword [eax + 4]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esi + 8]
addss xmm0, dword [eax + 8]
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x44]
push eax
movss dword [esp + 0x50], xmm0
call fcn.1001a880
add esp, 8
test al, al
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc