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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x1025f074]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [ebp + 0x14], 0
movd xmm0, dword [ebp + 8]
movd xmm1, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cvtdq2ps xmm0, xmm0
push esi
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x88], eax
cvtdq2ps xmm1, xmm1
mov dword [esp + 0x40], 0
movss dword [esp + 0x74], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x78], xmm1
movaps xmmword [esp + 0x50], xmm0
jle 0x1013b931
mov esi, dword [esp + 0x58]
add ecx, 0x5c
mov edi, dword [esp + 0x50]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x7c], 0x3f800000
mov eax, dword [ecx + 0x24]
test al, al
jns 0x1013b5fd
call fcn.100b5420
mov ecx, dword [esp + 0x44]
movzx eax, al
mov dword [ecx + 0x24], eax
push 1
lea edx, [esp + 0x78]
and eax, 0xf
push edx
lea edx, [esp + 0x6c]
push edx
mov eax, dword [eax*4 + 0x10207f00]
push ecx
call eax
movss xmm0, dword [esp + 0x74]
add esp, 8
addss xmm0, dword [0x10226268]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.101d94f0
fstp dword [esp + 0x24]
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0x70]
addss xmm0, dword [0x10226268]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.101d94f0
mov edx, dword [esp + 0x28]
add esp, 8
fstp dword [esp + 0x24]
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x68], xmm0
mov eax, dword [edx + 4]
mov dword [esp + 0x18], 3
mov cl, byte [eax + 0x4c]
mov byte [esp + 0x17], cl
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 0x84]
mov dword [esp + 0x48], eax
movss xmm3, dword [ecx + 0x310c]
movss xmm4, dword [ecx + 0x3110]
mulss xmm3, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mulss xmm4, xmm0
movss dword [esp + 0x80], xmm3
movss dword [esp + 0x84], xmm4
nop dword [eax]
cmp byte [esp + 0x17], 0
je 0x1013b701
mov esi, dword [edx + 0x84]
movups xmm0, xmmword [esi + 0x3114]
movups xmmword [esp + 0x50], xmm0
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x50]
movaps xmm0, xmm3
movss xmm3, dword [0x10226298]
movss dword [esp + 0x34], xmm0
xorps xmm1, xmm1
movss dword [esp + 0x6c], xmm0
movaps xmm0, xmm4
movss dword [esp + 0x38], xmm0
xorps xmm2, xmm2
movss dword [esp + 0x70], xmm0
movaps xmm0, xmm3
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x3c], xmm0
test eax, eax
jle 0x1013b817
mov dword [esp + 0x28], eax
nop dword [eax + eax]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x54]
push eax
push ecx
mov ecx, edx
call fcn.1013add0
cmp dword [esp + 0x24], 0
je 0x1013b778
cvtss2sd xmm0, xmm0
andps xmm0, xmmword [0x10226a50]
cvtsd2ss xmm0, xmm0
cmp byte [esp + 0x17], 0
movss xmm2, dword [esp + 0x3c]
divss xmm0, xmm2
addss xmm0, dword [esp + 0x1c]
movaps xmm1, xmm0
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x34]
mulss xmm0, dword [0x10226378]
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0x38]
mulss xmm0, dword [0x10226378]
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x70], xmm0
movaps xmm0, xmm2
addss xmm0, xmm2
movss dword [esp + 0x3c], xmm0
je 0x1013b7f9
add edi, edi
add esi, esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], esi
lea eax, [edi + 0x1000]
mov dword [esp + 0x54], eax
lea eax, [esi + 0x1000]
mov dword [esp + 0x5c], eax
sub dword [esp + 0x28], 1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
jne 0x1013b750
movss xmm3, dword [0x10226298]
xorps xmm2, xmm2
cmp dword [esp + 0x24], 0
jne 0x1013b82e
mulss xmm1, dword [0x10226268]
addss xmm1, dword [0x10226268]
cmp ecx, 3
jne 0x1013b84a
movzx eax, byte [edx + 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1022650c]
mulss xmm1, xmm0
comiss xmm3, xmm1
lea eax, [esp + 0x28]
lea ecx, [esp + 0x7c]
movss dword [esp + 0x28], xmm1
cmovbe eax, ecx
movss xmm0, dword [eax]
comiss xmm0, xmm2
ja 0x1013b86d
movss xmm0, xmm2
jmp 0x1013b871
movss xmm0, xmm0
sub esp, 8
mulss xmm0, dword [0x1022650c]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
fstp qword [esp]
call fcn.101d94f0
mov ecx, dword [esp + 0x20]
add esp, 8
movss xmm3, dword [esp + 0x80]
movss xmm4, dword [esp + 0x84]
mov edx, dword [esp + 0x20]
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + ecx*4 + 0x8c], eax
sub ecx, 1
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
jns 0x1013b6e0
push dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push dword [esp + 0x94]
mov ecx, dword [esp + 0xa0]
call fcn.100f9da0
mov edx, dword [esp + 0x48]
add esp, 8
mov ecx, dword [esp + 0x88]
movss xmm0, dword [esp + 0x74]
addss xmm0, dword [0x10226298]
mov dword [ecx + edx*4], eax
inc edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], edx
movss dword [esp + 0x74], xmm0
cmp edx, dword [ebp + 0x14]
jl 0x1013b5e7
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.101b3122
mov esp, ebp
pop ebp
ret 0x10