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

Disassembly:
sub esp, 0x88
mov eax, dword [0x10444724]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
movss xmm0, dword [esi + 0xa4]
push dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x18]
movss dword [esp + 0x7c], xmm0
mov dword [esp + 0x74], eax
call fcn.1013aa10
mov ecx, dword [esi + 0xc]
mov dl, al
sub ecx, 0
je 0x1013a044
sub ecx, 2
je 0x1013a034
mov eax, 0x10
jmp 0x1013a052
xor eax, eax
test dl, dl
setne al
lea eax, [eax*4 + 0xc]
jmp 0x1013a052
xor eax, eax
test dl, dl
setne al
lea eax, [eax*4 + 0x10]
push dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x80], eax
call fcn.1013aa10
xor ecx, ecx
test al, al
mov eax, dword [esp + 0x90]
setne cl
xor edx, edx
mov dword [esp + 0x80], edx
lea ecx, [ecx*4 + 8]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
test ecx, ecx
je 0x1013a3cb
mov dword [esp + 0x30], 0x3f800000
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x18], 0x3f800000
mov dword [esp + 0xc], 0x3f800000
push edi
nop word [eax + eax]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x88], ecx
mov ecx, esi
mov edi, dword [eax + edx*4]
mov dword [esp + 0x38], edi
call fcn.1013b2c0
mov ecx, dword [esp + 0x84]
test al, al
jne 0x1013a1cc
mov eax, dword [esp + 0x88]
sub esp, 8
movss xmm5, dword [eax + ecx*8]
cvtps2pd xmm0, xmm5
movsd qword [esp + 0x70], xmm0
fld qword [esp + 0x70]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
fstp dword [esp + 0x44]
movss xmm5, dword [eax + ecx*8 + 4]
cvtps2pd xmm0, xmm5
movsd qword [esp + 0x70], xmm0
fld qword [esp + 0x70]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
mov eax, dword [esp + 0x90]
add esp, 8
mov ecx, dword [esp + 0x84]
movss xmm1, dword [esp + 0x3c]
fstp dword [esp + 0x6c]
movss xmm0, dword [esp + 0x6c]
movss dword [eax + ecx*8], xmm1
movss dword [eax + ecx*8 + 4], xmm0
movsx eax, word [edi + 4]
movd xmm3, eax
movsx eax, word [edi + 6]
cvtdq2ps xmm3, xmm3
movd xmm5, eax
movzx eax, word [edi]
addss xmm3, xmm0
cvtdq2ps xmm5, xmm5
movd xmm6, eax
movzx eax, word [edi + 2]
addss xmm5, xmm1
cvtdq2ps xmm6, xmm6
movd xmm7, eax
cvtdq2ps xmm7, xmm7
addss xmm6, xmm5
movss dword [esp + 0x50], xmm5
addss xmm7, xmm3
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x88], xmm3
movss dword [esp + 0x58], xmm6
movss dword [esp + 0x5c], xmm7
movups xmm4, xmmword [esp + 0x50]
jmp 0x1013a290
cmp byte [edi + 0x18], 5
movsx eax, word [edi + 4]
movss xmm4, dword [esp + 0x7c]
movd xmm0, eax
movsx eax, word [edi + 6]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
movzx eax, word [edi]
cvtdq2ps xmm1, xmm1
movd xmm2, eax
movzx eax, word [edi + 2]
cvtdq2ps xmm2, xmm2
movd xmm3, eax
mov eax, dword [esp + 0x88]
cvtdq2ps xmm3, xmm3
jne 0x1013a22a
addss xmm0, dword [0x10388668]
addss xmm1, dword [0x10388668]
subss xmm2, dword [0x10388100]
subss xmm3, dword [0x10388100]
mulss xmm0, xmm4
mulss xmm1, xmm4
addss xmm0, dword [eax + ecx*8 + 4]
mulss xmm3, xmm4
addss xmm1, dword [eax + ecx*8]
mulss xmm2, xmm4
addss xmm3, xmm0
movss dword [esp + 0x44], xmm0
addss xmm2, xmm1
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x4c], xmm3
movss dword [esp + 0x48], xmm2
movups xmm4, xmmword [esp + 0x40]
movups xmmword [esp + 0x50], xmm4
movss xmm0, dword [esp + 0x54]
movss xmm7, dword [esp + 0x5c]
movss xmm6, dword [esp + 0x58]
movss xmm5, dword [esp + 0x50]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esi + 0x138]
movss xmm2, dword [esi + 0x140]
comiss xmm0, xmm2
jae 0x1013a305
movss xmm1, dword [esi + 0x13c]
movss xmm3, dword [esi + 0x144]
comiss xmm1, xmm3
jae 0x1013a305
comiss xmm0, xmm5
jbe 0x1013a2c2
movaps xmm0, xmm5
movss xmm4, dword [esp + 0x88]
comiss xmm1, xmm4
movss dword [esi + 0x138], xmm0
jbe 0x1013a2db
movaps xmm1, xmm4
comiss xmm6, xmm2
movss dword [esi + 0x13c], xmm1
jbe 0x1013a2eb
movaps xmm2, xmm6
comiss xmm7, xmm3
movss dword [esi + 0x140], xmm2
jbe 0x1013a2fb
movaps xmm3, xmm7
movss dword [esi + 0x144], xmm3
jmp 0x1013a315
movups xmmword [esi + 0x138], xmm4
movss xmm4, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
movaps xmm0, xmm5
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x78]
unpcklps xmm0, xmm4
movq qword [edx], xmm0
movaps xmm0, xmm6
mov dword [edx + 8], eax
mov eax, dword [esi + 0xf8]
mov dword [ecx + edx], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
add edx, ecx
unpcklps xmm5, xmm7
unpcklps xmm0, xmm4
unpcklps xmm6, xmm7
movq qword [edx], xmm5
mov dword [edx + 8], eax
mov eax, dword [esi + 0xf8]
mov dword [edi + edx], eax
add edx, ecx
mov eax, dword [esp + 0x1c]
movq qword [edx], xmm0
mov dword [edx + 8], eax
mov eax, dword [esi + 0xf8]
mov dword [edi + edx], eax
add edx, ecx
mov eax, dword [esp + 0x10]
movq qword [edx], xmm6
mov dword [edx + 8], eax
mov eax, dword [esi + 0xf8]
mov dword [edi + edx], eax
add edx, ecx
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x84]
inc edx
mov eax, dword [edi + 0x1c]
mov dword [ecx], eax
add ecx, 4
mov eax, dword [esp + 0x94]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x84], edx
cmp edx, dword [esp + 0x64]
jne 0x1013a0c0
pop edi
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
movss xmm1, dword [ecx + 0x3c]
movss xmm2, dword [ecx + 0x40]
cmp eax, 2
je 0x1013a411
cmp eax, 1
je 0x1013a411
cmp eax, 3
je 0x1013a411
lea eax, [esp + 0x5c]
add ecx, 0x14
push eax
sub esp, 8
movss dword [esp + 4], xmm2
movss dword [esp], xmm1
call fcn.1003e650
movss xmm1, dword [esp + 0x5c]
movss xmm2, dword [esp + 0x60]
movss xmm0, dword [esi + 0x138]
xorps xmm1, xmmword [0x10386880]
xorps xmm2, xmmword [0x10386880]
addss xmm0, xmm1
mov ecx, dword [esp + 0x88]
movss dword [esi + 0x138], xmm0
movss xmm0, dword [esi + 0x13c]
addss xmm0, xmm2
movss dword [esi + 0x13c], xmm0
movss xmm0, dword [esi + 0x140]
addss xmm0, xmm1
movss dword [esi + 0x140], xmm0
movss xmm0, dword [esi + 0x144]
addss xmm0, xmm2
movss dword [esi + 0x144], xmm0
pop esi
xor ecx, esp
call fcn.1037e005
add esp, 0x88
ret 4