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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rsi, qword [0x1405456f0]
xor r12d, r12d
mov qword [rsp + 0x88], r15
mov rbx, rsi
xor r15b, r15b
movaps xmmword [rsp + 0x40], xmm6
mov edi, r12d
mov eax, dword [rsi + 0x4040]
sub eax, 1
js 0x140012f34
movsxd rdx, eax
mov rax, qword [rsi + 0x4048]
add rax, 8
lea r8, [rdx + rdx*2]
shl r8, 4
add r8, rax
mov r9, qword [r8]
test r9, r9
je 0x140012f2a
test dword [r9 + 0xc], 0x8000000
jne 0x140013004
sub r8, 0x30
sub rdx, 1
jns 0x140012f14
mov r9, r12
xorps xmm6, xmm6
cmp qword [rsi + 0x41e8], rdi
je 0x140012f86
cmp qword [rsi + 0x41e0], rdi
jne 0x140012f86
comiss xmm6, dword [rsi + 0x4204]
movss xmm0, dword [rsi + 0x18]
movss xmm1, dword [rsi + 0x41fc]
mulss xmm0, dword [0x14017bbf4]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rsi + 0x41fc], xmm1
jb 0x140012f86
comiss xmm6, xmm1
jb 0x140012f86
mov qword [rsi + 0x41e8], r12
mov ebp, 0xffffffff
lea r14d, [rbp + 2]
test r9, r9
jne 0x140012fad
cmp qword [rsi + 0x41e0], rdi
jne 0x140012fad
mov edx, r14d
lea ecx, [rbp + 4]
call fcn.140010850
comiss xmm0, xmm6
ja 0x140012fc5
xor dl, dl
test r9, r9
jne 0x140013064
cmp qword [rsi + 0x41e0], rdi
jne 0x140013064
cmp byte [rsi + 0xd24], dil
je 0x140013064
movss xmm0, dword [rsi + 0x2d84]
ucomiss xmm0, xmm6
jp 0x140012fe1
je 0x14001305e
movss xmm2, dword [rsi + 0x3c]
comiss xmm0, xmm2
jbe 0x140013064
ucomiss xmm0, xmm6
movss xmm3, dword [rsi + 0x40]
movaps xmm1, xmm0
subss xmm1, dword [rsi + 0x18]
jp 0x140013010
jne 0x140013010
mov eax, r14d
jmp 0x14001305a
mov qword [rsi + 0x41e0], r12
jmp 0x140012f37
comiss xmm1, xmm0
jb 0x14001301a
mov eax, r12d
jmp 0x14001305a
comiss xmm6, xmm3
jb 0x14001302e
comiss xmm2, xmm1
jbe 0x140013015
comiss xmm0, xmm2
jb 0x140013015
mov eax, r14d
jmp 0x14001305a
comiss xmm2, xmm1
jbe 0x140013037
mov ecx, ebp
jmp 0x140013043
subss xmm1, xmm2
divss xmm1, xmm3
cvttss2si ecx, xmm1
comiss xmm2, xmm0
jbe 0x14001304c
mov eax, ebp
jmp 0x140013058
subss xmm0, xmm2
divss xmm0, xmm3
cvttss2si eax, xmm0
sub eax, ecx
test eax, eax
jle 0x140013064
movzx r11d, r14b
jmp 0x140013067
xor r11b, r11b
test dl, dl
jne 0x140013074
test r11b, r11b
je 0x14001311b
mov rax, qword [rsi + 0x4078]
test rax, rax
jne 0x1400130e9
movsxd rcx, dword [rsi + 0x3e18]
lea r8d, [rcx - 1]
test r8d, r8d
js 0x14001311b
movsxd rax, r8d
mov r10, rcx
nop word [rax + rax]
cmp rax, r10
jge 0x14001311b
cmp rax, 0xffffffff80000001
je 0x14001311b
mov r9, qword [rsi + 0x3e20]
mov rcx, qword [r9 + rax*8]
cmp byte [rcx + 0x8f], dil
je 0x1400130d3
cmp rcx, qword [rcx + 0x350]
jne 0x1400130d3
test dword [rcx + 0xc], 0x80000
je 0x1400130dd
dec r8d
sub rax, r14
jns 0x1400130a0
jmp 0x14001311b
movsxd rax, r8d
mov rax, qword [r9 + rax*8]
test rax, rax
je 0x14001311b
mov rax, qword [rax + 0x350]
mov qword [rsi + 0x41e8], rax
mov qword [rsi + 0x41e0], rax
movzx eax, r11b
xor eax, r14d
mov qword [rsi + 0x41f8], r12
add eax, 2
mov byte [rsi + 0x4200], dl
mov dword [rsi + 0x40b0], eax
movss xmm0, dword [rsi + 0x18]
addss xmm0, dword [rsi + 0x41f8]
movss xmm5, dword [0x14017bbb8]
movss dword [rsi + 0x41f8], xmm0
cmp qword [rsi + 0x41e0], rdi
je 0x140013208
cmp dword [rsi + 0x40b0], 3
jne 0x140013208
subss xmm0, dword [0x14017bb6c]
movaps xmmword [rsp + 0x30], xmm7
divss xmm0, dword [0x14017bb5c]
comiss xmm6, xmm0
jbe 0x140013171
movaps xmm1, xmm6
jmp 0x140013178
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rsi + 0x41fc]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rsi + 0x41fc], xmm7
call fcn.140010850
comiss xmm0, xmm6
mov r9d, r12d
lea ecx, [rdx + 8]
seta r9b
call fcn.140010850
comiss xmm0, xmm6
mov ecx, r12d
seta cl
sub ecx, r9d
je 0x1400131cb
call fcn.140012d90
mov dword [rsi + 0x41fc], 0x3f800000
movaps xmm7, xmm5
movss xmm0, dword [rsi + 0xd34]
comiss xmm0, xmm6
ja 0x140013203
comiss xmm5, xmm7
seta al
and byte [rsi + 0x4200], al
je 0x1400131f5
cmp qword [rsi + 0x4078], rdi
je 0x1400131fc
movzx r15d, r14b
jmp 0x1400131fc
mov rdi, qword [rsi + 0x41e0]
mov qword [rsi + 0x41e0], r12
movaps xmm7, xmmword [rsp + 0x30]
cmp qword [rsi + 0x41e0], r12
je 0x1400132fe
cmp dword [rsi + 0x40b0], 2
jne 0x1400132fe
movss xmm0, dword [rsi + 0x41f8]
subss xmm0, dword [0x14017bb6c]
divss xmm0, dword [0x14017bb5c]
comiss xmm6, xmm0
jbe 0x140013244
movaps xmm5, xmm6
jmp 0x140013248
minss xmm5, xmm0
movss xmm0, dword [rsi + 0x41fc]
maxss xmm0, xmm5
movss dword [rsi + 0x41fc], xmm0
movss xmm1, dword [rsi + 0x2d84]
ucomiss xmm1, xmm6
jp 0x14001326b
je 0x1400132dc
movss xmm2, dword [rsi + 0x3c]
comiss xmm1, xmm2
jbe 0x1400132ee
ucomiss xmm1, xmm6
movss xmm3, dword [rsi + 0x40]
movaps xmm0, xmm1
subss xmm0, dword [rsi + 0x18]
jp 0x14001328e
jne 0x14001328e
mov eax, r14d
jmp 0x1400132d8
comiss xmm0, xmm1
jb 0x140013298
mov eax, r12d
jmp 0x1400132d8
comiss xmm6, xmm3
jb 0x1400132ac
comiss xmm2, xmm0
jbe 0x140013293
comiss xmm1, xmm2
jb 0x140013293
mov eax, r14d
jmp 0x1400132d8
comiss xmm2, xmm0
jbe 0x1400132b5
mov ecx, ebp
jmp 0x1400132c1
subss xmm0, xmm2
divss xmm0, xmm3
cvttss2si ecx, xmm0
comiss xmm2, xmm1
jbe 0x1400132ca
mov eax, ebp
jmp 0x1400132d6
subss xmm1, xmm2
divss xmm1, xmm3
cvttss2si eax, xmm1
sub eax, ecx
test eax, eax
jle 0x1400132ee
cmp byte [rsi + 0xd25], r12b
cmovne ebp, r14d
mov ecx, ebp
call fcn.140012d90
cmp byte [rsi + 0xd24], r12b
jne 0x1400132fe
mov rdi, qword [rsi + 0x41e0]
test byte [rsi + 8], r14b
je 0x140013327
cmp dword [rsi + 0xd78], 4
jne 0x140013327
test byte [rsi + 0xd7c], 4
jne 0x140013327
mov byte [rsi + 0x4200], r14b
mov dword [rsi + 0x40b0], 2
movzx eax, byte [rsi + 0x4200]
test al, al
je 0x140013422
cmp dword [rsi + 0x40b0], 2
jne 0x140013422
cmp dword [rsi + 0x3748], r12d
jg 0x140013367
cmp byte [rsi + 0xd24], r12b
jne 0x140013367
cmp byte [rsi + 0xd25], r12b
jne 0x140013367
cmp byte [rsi + 0xd27], r12b
je 0x140013370
mov byte [rsi + 0x4200], r12b
xor al, al
test byte [rsi + 0xd78], 4
jne 0x140013412
test byte [rsi + 0xd7c], 4
je 0x140013412
test al, al
je 0x140013412
cmp dword [rsi + 0x3eb4], r12d
je 0x1400133a4
cmp byte [rsi + 0x3ec1], r12b
je 0x140013412
lea rax, [rsi + 0xd0c]
test rax, rax
jne 0x1400133b7
lea rax, [rsi + 0xd0c]
movss xmm0, dword [rax]
movss xmm1, dword [0x14017bc84]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x1400133d8
comiss xmm2, xmm1
jb 0x1400133d8
movzx ecx, r14b
jmp 0x1400133da
xor cl, cl
lea rax, [rsi + 0x35d4]
test rax, rax
jne 0x1400133ed
lea rax, [rsi + 0xd0c]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x140013406
comiss xmm2, xmm1
jb 0x140013406
movzx eax, r14b
jmp 0x140013408
xor al, al
cmp cl, al
movzx r15d, r15b
cmove r15d, r14d
cmp byte [rsi + 0xd26], r12b
jne 0x140013422
mov byte [rsi + 0x4200], r12b
mov rbp, qword [rsi + 0x41e0]
test rbp, rbp
je 0x14001351f
test byte [rbp + 0xc], 4
jne 0x14001351f
mov eax, dword [rsi + 0x40b0]
cmp eax, 2
jne 0x140013459
cmp byte [rsi + 0xd25], r12b
jne 0x14001351f
mov edx, r14d
jmp 0x140013465
cmp eax, 3
jne 0x14001351f
lea edx, [rax + 5]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
lea rcx, [rsp + 0x80]
call fcn.1400109b0
movss xmm4, dword [rax]
ucomiss xmm4, xmm6
movss xmm3, dword [rax + 4]
jp 0x140013496
jne 0x140013496
ucomiss xmm3, xmm6
jp 0x140013496
je 0x14001351f
mov r9, qword [rbp + 0x350]
lea rdx, [rsp + 0x80]
movss xmm1, dword [rsi + 0x68]
mov r8d, r14d
movss xmm0, dword [rsi + 0x18]
mov rcx, r9
minss xmm1, dword [rsi + 0x6c]
mulss xmm0, dword [0x14017bc5c]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm2
addss xmm4, dword [r9 + 0x10]
addss xmm3, dword [r9 + 0x14]
movss dword [rsp + 0x80], xmm4
movss dword [rsp + 0x84], xmm3
call fcn.14000d510
test dword [r9 + 0xc], 0x100
jne 0x140013518
comiss xmm6, dword [rsi + 0x533c]
jb 0x140013518
mov eax, dword [rsi + 0x1c]
mov dword [rsi + 0x533c], eax
mov byte [rsi + 0x40bb], r8b
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x1400135b1
mov rax, qword [rsi + 0x4078]
test rax, rax
je 0x140013542
cmp rdi, qword [rax + 0x350]
je 0x1400135aa
call fcn.140003d70
mov word [rsi + 0x40b9], r14w
mov byte [rsi + 0x40bb], r14b
mov rax, qword [rdi + 0x370]
test rax, rax
je 0x14001356d
cmp byte [rax + 0x8f], r12b
cmovne rdi, rax
xor edx, edx
mov rcx, rdi
call fcn.14000ef70
mov rcx, rdi
call fcn.14000d280
cmp dword [rdi + 0x378], r12d
jne 0x140013592
xor edx, edx
mov rcx, rdi
call fcn.140010550
cmp word [rdi + 0x132], 2
jne 0x1400135a3
mov dword [rsi + 0x40b4], r14d
mov rsi, qword [0x1405456f0]
mov qword [rbx + 0x41e0], r12
test r15b, r15b
mov r15, qword [rsp + 0x88]
je 0x140013708
cmp qword [rbx + 0x4078], r12
je 0x140013708
call fcn.140003d70
mov rdi, qword [rbx + 0x4078]
lea rcx, [rdi + 0x340]
cmp qword [rcx], r12
je 0x14001360e
test byte [rdi + 0x130], 2
jne 0x14001360e
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x14001360e
mov rdi, qword [rcx]
lea rcx, [rdi + 0x340]
cmp qword [rcx], r12
jne 0x1400135e7
mov rbp, qword [rbx + 0x4078]
cmp rdi, rbp
je 0x140013630
mov rcx, rdi
call fcn.14000d280
mov rsi, qword [0x1405456f0]
mov qword [rdi + 0x370], rbp
mov rcx, qword [rbx + 0x4078]
test byte [rcx + 0x130], 2
je 0x14001364b
mov eax, dword [rbx + 0x40b4]
xor eax, r14d
jmp 0x14001364e
mov eax, r12d
cmp eax, dword [rbx + 0x40b4]
je 0x140013708
mov r8, rsi
cmp eax, r14d
jne 0x1400136b6
mov dword [rcx + 0x37c], r12d
mov rcx, rsi
lea rdx, [rcx + 0x4078]
mov r9, qword [rdx]
mov r10d, dword [r9 + r14*4 + 0x378]
test r10d, r10d
je 0x1400136e7
mov dword [rcx + 0x40b4], eax
mov dword [rcx + 0x4080], r10d
mov dword [rcx + 0x4084], r12d
cdqe
mov dword [r9 + rax*4 + 0x378], r10d
lea rcx, [rax + 0x38]
mov rax, qword [rdx]
add rcx, rcx
movups xmm0, xmmword [r9 + rcx*8]
movups xmmword [rax + rcx*8], xmm0
jmp 0x1400136f8
movsxd r14, eax
mov rcx, rsi
test eax, eax
jne 0x14001366c
lea rdx, [rsi + 0x4078]
mov r10, qword [rdx]
mov r9, qword [r10 + 0x370]
test r9, r9
je 0x1400136df
cmp byte [r9 + 0x8f], r12b
jne 0x1400136e2
mov r9, r10
mov qword [rdx], r9
jmp 0x140013673
mov dl, 1
mov dword [r8 + 0x40b4], eax
mov rcx, r9
call fcn.140010550
mov word [rsi + 0x40b9], 1
mov byte [rsi + 0x40bb], 1
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret