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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, edx
mov edx, ecx
mov dword [esp + 0x40], edx
and edx, 7
je 0x10032001
cmp byte [0x10206728], 0
jne 0x10032001
cmp byte [0x1020672a], 0
je 0x10032001
mov eax, dword [0x102062d4]
xor ebx, ebx
movss xmm1, dword [eax + 0xe8]
comiss xmm1, dword [0x10206704]
jb 0x10031607
movss xmm0, dword [0x1020670c]
comiss xmm0, xmm1
jb 0x10031607
movss xmm2, dword [eax + 0xec]
comiss xmm2, dword [0x10206708]
jb 0x10031607
movss xmm0, dword [0x10206710]
comiss xmm0, xmm2
jb 0x10031607
mov ecx, 7
cmp edx, ecx
cmove ebx, ecx
movss xmm0, dword [eax + 0xec]
xor esi, esi
subss xmm1, dword [0x10206868]
subss xmm0, dword [0x1020686c]
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x3c], xmm0
nop dword [eax]
test ebx, ebx
jne 0x10031ff8
push ebx
lea eax, [esp + 0x23]
mov ecx, esi
push eax
lea eax, [esp + 0x3b]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x88]
push eax
lea edx, [esp + 0x7c]
call fcn.1002a240
movss xmm2, dword [esp + 0x80]
add esp, 0x14
movss xmm5, dword [esp + 0x68]
movss xmm4, dword [0x10206498]
movss xmm0, dword [0x10206488]
movss xmm1, dword [esp + 0x70]
mulss xmm0, xmm5
mulss xmm4, xmm2
movss xmm7, dword [0x102064b0]
movss xmm3, dword [esp + 0x78]
addss xmm4, xmm0
movss xmm0, dword [0x102064a8]
mulss xmm0, xmm1
addss xmm4, xmm0
movss xmm0, dword [0x1020648c]
mulss xmm0, xmm5
movss dword [esp + 0x10], xmm4
movss xmm4, dword [0x1020649c]
mulss xmm4, xmm2
addss xmm4, xmm0
movss xmm0, dword [0x102064ac]
mulss xmm0, xmm1
addss xmm4, xmm0
movss xmm0, dword [0x10206490]
mulss xmm0, xmm5
mulss xmm5, dword [0x10206494]
movss dword [esp + 0x14], xmm4
movss xmm4, dword [0x102064a0]
mulss xmm4, xmm2
movss dword [esp + 0x20], xmm5
movss xmm5, dword [0x102064a4]
movss xmm6, dword [esp + 0x20]
addss xmm4, xmm0
movaps xmm0, xmm7
mulss xmm2, xmm5
mulss xmm0, xmm1
addss xmm6, xmm2
movss xmm2, dword [esp + 0x7c]
addss xmm4, xmm0
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [0x10206488]
mulss xmm0, xmm3
movss dword [esp + 0x18], xmm4
movss xmm4, dword [0x102064b4]
mulss xmm1, xmm4
addss xmm6, xmm1
movss xmm1, dword [esp + 0x14]
movss dword [esp + 0x6c], xmm1
movss xmm1, dword [esp + 0x18]
movss dword [esp + 0x70], xmm1
movss xmm1, dword [esp + 0x80]
movss dword [esp + 0x20], xmm6
movss dword [esp + 0x74], xmm6
movss xmm6, dword [0x10206498]
mulss xmm6, xmm2
addss xmm6, xmm0
movss xmm0, dword [0x102064a8]
mulss xmm0, xmm1
addss xmm6, xmm0
movss xmm0, dword [0x1020649c]
mulss xmm0, xmm2
movss dword [esp + 0x28], xmm0
movss xmm0, dword [0x1020648c]
mulss xmm0, xmm3
movss dword [esp + 0x44], xmm6
movss xmm6, dword [esp + 0x28]
addss xmm6, xmm0
movss xmm0, dword [0x102064ac]
mulss xmm0, xmm1
addss xmm6, xmm0
movss xmm0, dword [0x10206490]
mulss xmm0, xmm3
mulss xmm3, dword [0x10206494]
movss dword [esp + 0x28], xmm6
movss xmm6, dword [0x102064a0]
mulss xmm6, xmm2
mulss xmm2, xmm5
addss xmm6, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm1
addss xmm3, xmm2
mulss xmm1, xmm4
movss xmm2, dword [esp + 0x88]
addss xmm6, xmm0
movss xmm0, dword [esp + 0x44]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x28]
addss xmm3, xmm1
movss xmm1, dword [esp + 0x8c]
movss dword [esp + 0x7c], xmm0
movaps xmm0, xmm6
movss dword [esp + 0x80], xmm0
movss xmm0, dword [0x10206488]
movss dword [esp + 0x84], xmm3
movss xmm3, dword [0x10206498]
mulss xmm3, xmm1
mulss xmm0, xmm2
movss dword [esp + 0x48], xmm6
addss xmm3, xmm0
movss xmm0, dword [esp + 0x90]
mulss xmm7, xmm0
movss dword [esp + 0x2c], xmm3
movss xmm3, dword [0x102064a8]
movss xmm6, dword [esp + 0x2c]
mulss xmm3, xmm0
addss xmm6, xmm3
movss xmm3, dword [0x1020648c]
mulss xmm3, xmm2
movss dword [esp + 0x2c], xmm6
movss xmm6, dword [0x1020649c]
mulss xmm6, xmm1
addss xmm6, xmm3
movss xmm3, dword [0x102064ac]
mulss xmm3, xmm0
mulss xmm0, xmm4
addss xmm6, xmm3
movss xmm3, dword [0x10206490]
mulss xmm3, xmm2
mulss xmm2, dword [0x10206494]
movss dword [esp + 0x4c], xmm6
movss xmm6, dword [0x102064a0]
mulss xmm6, xmm1
mulss xmm1, xmm5
addss xmm6, xmm3
addss xmm2, xmm1
movss xmm1, dword [esp + 0x14]
mulss xmm1, xmm1
addss xmm6, xmm7
addss xmm2, xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [esp + 0x8c], xmm0
movaps xmm0, xmm6
movss dword [esp + 0x90], xmm0
movss xmm0, dword [esp + 0x10]
mulss xmm0, xmm0
movss dword [esp + 0x50], xmm6
movss dword [esp + 0x94], xmm2
addss xmm1, xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, xmm0
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x100319a2
sqrtsd xmm0, xmm0
jmp 0x100319a7
call fcn.10199330
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
movss xmm0, dword [0x101c72a8]
comiss xmm2, xmm0
ja 0x100319be
movaps xmm2, xmm0
movss xmm1, dword [0x101c736c]
divss xmm1, xmm2
movss xmm7, dword [esp + 0x10]
movss xmm4, dword [esp + 0x14]
movaps xmm2, xmm1
movss xmm0, dword [0x102064bc]
movss xmm3, dword [esp + 0x18]
mulss xmm2, xmm7
mulss xmm4, xmm1
movaps xmm5, xmm2
mulss xmm3, xmm1
mulss xmm5, dword [0x102064b8]
mulss xmm0, xmm4
movss dword [esp + 0x24], xmm3
movss dword [esp + 0x34], xmm4
addss xmm5, xmm0
movss dword [esp + 0x10], xmm2
movss xmm0, dword [0x102064c0]
mulss xmm0, xmm3
movss xmm3, dword [0x102066ec]
addss xmm5, xmm0
movss xmm0, dword [esp + 0x20]
mulss xmm0, xmm1
movss xmm1, dword [0x102066e8]
movaps xmm6, xmm1
mulss xmm0, dword [0x102064c4]
mulss xmm6, xmm2
movss xmm2, dword [0x101c72a8]
addss xmm5, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm4
movss xmm4, dword [0x102066f0]
addss xmm6, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0x24]
addss xmm6, xmm0
movaps xmm0, xmm6
andps xmm0, xmmword [0x101c7de0]
comiss xmm2, xmm0
movss xmm0, dword [0x102066dc]
jbe 0x10031a9e
movss xmm2, dword [0x101c7564]
jmp 0x10031adf
mulss xmm0, dword [esp + 0x34]
movss xmm2, dword [0x102066d8]
mulss xmm2, dword [esp + 0x10]
addss xmm2, xmm0
movss xmm0, dword [0x102066e0]
mulss xmm0, dword [esp + 0x24]
addss xmm2, xmm0
movss xmm0, dword [0x102066dc]
subss xmm2, xmm5
divss xmm2, xmm6
xorps xmm2, xmmword [0x101c7e10]
mulss xmm1, xmm2
mulss xmm3, xmm2
addss xmm1, dword [0x102066d8]
mulss xmm4, xmm2
movss xmm2, dword [0x10206714]
addss xmm3, xmm0
movss xmm0, dword [esp + 0x14]
addss xmm4, dword [0x102066e0]
mulss xmm0, xmm2
movss dword [esp + 0x60], xmm1
movss xmm1, dword [esp + 0x18]
mulss xmm1, xmm2
movaps xmm5, xmm0
mulss xmm7, xmm2
movss xmm2, dword [0x101c72f4]
mulss xmm5, xmm2
movss dword [esp + 0x64], xmm4
movaps xmm4, xmm7
movss dword [esp + 0x18], xmm1
addss xmm5, dword [0x102064bc]
movss dword [esp + 0x14], xmm0
mulss xmm4, xmm2
movss xmm6, dword [0x101c7324]
movss dword [esp + 0x5c], xmm3
movaps xmm3, xmm1
addss xmm4, dword [0x102064b8]
mulss xmm3, xmm2
movaps xmm1, xmm5
mulss xmm1, dword [0x10206664]
movaps xmm2, xmm6
addss xmm3, dword [0x102064c0]
movaps xmm0, xmm4
mulss xmm0, dword [0x10206654]
addss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x10206674]
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x10206648]
mulss xmm4, dword [0x1020664c]
addss xmm1, dword [0x10206684]
divss xmm2, xmm1
movaps xmm1, xmm5
mulss xmm5, dword [0x1020665c]
mulss xmm1, dword [0x10206658]
addss xmm5, xmm4
movss xmm4, dword [0x102064c0]
addss xmm4, dword [esp + 0x18]
addss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm3, dword [0x1020666c]
mulss xmm0, dword [0x10206668]
addss xmm5, xmm3
movss xmm3, dword [0x102064bc]
addss xmm3, dword [esp + 0x14]
addss xmm1, xmm0
movss xmm0, dword [0x101c736c]
addss xmm5, dword [0x1020667c]
addss xmm1, dword [0x10206678]
mulss xmm5, xmm2
mulss xmm1, xmm2
addss xmm5, xmm6
addss xmm1, xmm6
movss xmm6, dword [0x1020686c]
subss xmm0, xmm5
mulss xmm1, dword [0x10206870]
mulss xmm0, dword [0x10206874]
addss xmm1, dword [0x10206868]
addss xmm0, xmm6
subss xmm1, dword [0x10206868]
subss xmm0, xmm6
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x24], xmm0
movaps xmm0, xmm7
addss xmm0, dword [0x102064b8]
movaps xmm1, xmm0
movss dword [esp + 0x10], xmm0
mulss xmm1, dword [0x10206654]
movaps xmm0, xmm3
mulss xmm0, dword [0x10206664]
addss xmm1, xmm0
movss xmm2, dword [0x101c7324]
movaps xmm0, xmm4
mulss xmm0, dword [0x10206674]
addss xmm1, xmm0
addss xmm1, dword [0x10206684]
divss xmm2, xmm1
movss xmm1, dword [esp + 0x10]
movaps xmm0, xmm1
mulss xmm1, dword [0x1020664c]
mulss xmm0, dword [0x10206648]
movss dword [esp + 0x10], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x10206658]
mulss xmm3, dword [0x1020665c]
movss xmm7, dword [esp + 0x10]
addss xmm7, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x10206668]
addss xmm1, xmm3
mulss xmm4, dword [0x1020666c]
addss xmm7, xmm0
movss xmm3, dword [esp + 0x3c]
subss xmm3, dword [esp + 0x24]
addss xmm1, xmm4
movaps xmm0, xmm7
addss xmm0, dword [0x10206678]
addss xmm1, dword [0x1020667c]
movss dword [esp + 0x14], xmm3
mulss xmm0, xmm2
mulss xmm1, xmm2
addss xmm0, dword [0x101c7324]
movss xmm2, dword [0x101c736c]
addss xmm1, dword [0x101c7324]
mulss xmm0, dword [0x10206870]
subss xmm2, xmm1
movss xmm1, dword [esp + 0x38]
subss xmm1, dword [esp + 0x20]
movaps xmm7, xmm0
addss xmm7, dword [0x10206868]
mulss xmm2, dword [0x10206874]
movss dword [esp + 0x54], xmm1
subss xmm7, dword [0x10206868]
addss xmm2, xmm6
movaps xmm3, xmm7
movss dword [esp + 0x10], xmm7
subss xmm3, dword [esp + 0x20]
subss xmm2, xmm6
movss dword [esp + 0x34], xmm3
movaps xmm0, xmm2
movss dword [esp + 0x58], xmm2
subss xmm0, dword [esp + 0x24]
movaps xmm1, xmm0
movss dword [esp + 0x18], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm1, xmm0
addss xmm1, dword [0x101c7294]
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x10031e04
sqrtsd xmm0, xmm0
jmp 0x10031e09
call fcn.10199330
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm0
movss xmm0, dword [0x101c72a8]
comiss xmm6, xmm0
jbe 0x10031e20
movaps xmm0, xmm6
movss xmm3, dword [0x101c736c]
xorps xmm4, xmm4
divss xmm3, xmm0
movaps xmm2, xmm3
movaps xmm5, xmm3
mulss xmm2, dword [esp + 0x34]
mulss xmm5, dword [esp + 0x18]
movaps xmm0, xmm2
mulss xmm3, xmm4
mulss xmm0, dword [esp + 0x54]
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0x14]
addss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm4
addss xmm1, xmm0
comiss xmm4, xmm1
jbe 0x10031e7c
movss xmm2, dword [esp + 0x20]
xorps xmm1, xmm1
movss xmm0, dword [esp + 0x24]
jmp 0x10031eb1
comiss xmm1, xmm6
jbe 0x10031e92
movss xmm2, dword [esp + 0x10]
xorps xmm1, xmm1
movss xmm0, dword [esp + 0x58]
jmp 0x10031eb1
movaps xmm0, xmm1
mulss xmm1, xmm3
mulss xmm2, xmm0
mulss xmm0, xmm5
addss xmm1, xmm4
addss xmm2, dword [esp + 0x20]
addss xmm0, dword [esp + 0x24]
subss xmm2, dword [esp + 0x38]
subss xmm0, dword [esp + 0x3c]
subss xmm1, xmm4
mulss xmm2, xmm2
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm2, xmm0
addss xmm2, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x10031ee7
sqrtsd xmm0, xmm0
jmp 0x10031eec
call fcn.10199330
movss xmm1, dword [0x101c745c]
mov edx, dword [esp + 0x40]
cvtsd2ss xmm0, xmm0
comiss xmm1, xmm0
jbe 0x10031f11
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x10031f11
lea ebx, [esi + 1]
cmp byte [esp + 0x1f], 0
movss xmm0, dword [0x101c736c]
divss xmm0, dword [0x10206714]
movss xmm1, dword [esp + 0x60]
subss xmm1, dword [0x102064b8]
movss xmm2, dword [esp + 0x5c]
subss xmm2, dword [0x102064bc]
movss xmm3, dword [esp + 0x64]
subss xmm3, dword [0x102064c0]
movss xmm4, dword [esp + 0x28]
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x44]
mulss xmm1, dword [esp + 0x2c]
mulss xmm4, xmm2
mulss xmm2, dword [esp + 0x4c]
addss xmm4, xmm0
movss xmm0, dword [esp + 0x48]
mulss xmm0, xmm3
mulss xmm3, dword [esp + 0x50]
addss xmm1, xmm2
addss xmm4, xmm0
addss xmm1, xmm3
je 0x10031fd3
movss xmm0, dword [0x101c7324]
comiss xmm4, xmm0
jb 0x10031fd3
movss xmm3, dword [0x101c734c]
comiss xmm3, xmm4
jb 0x10031fd3
comiss xmm1, xmm0
jb 0x10031fd3
comiss xmm3, xmm1
jb 0x10031fd3
mov ecx, dword [esi*4 + 0x101eb060]
mov eax, ecx
and eax, edx
cmp eax, ecx
jne 0x10031fd3
lea ebx, [esi + 4]
test edi, edi
je 0x10031fee
movss dword [edi], xmm4
movss dword [edi + 4], xmm1
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
inc esi
cmp esi, 3
jl 0x10031630
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret