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

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
mov rbx, qword [0x140150a90]
xor esi, esi
xor r15b, r15b
mov edi, esi
mov eax, dword [rbx + 0x1aa8]
sub eax, 1
js 0x1400129ef
mov r8, qword [rbx + 0x1ab0]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x1400129e5
test dword [rax + 0xc], 0x8000000
jne 0x140012ad0
sub r8, 0x30
sub rdx, 1
jns 0x1400129d0
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x50], r14
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
cmp qword [rbx + 0x1b88], rsi
je 0x140012a58
cmp qword [rbx + 0x1b80], rsi
jne 0x140012a58
comiss xmm6, dword [rbx + 0x1e10]
movss xmm1, dword [rbx + 0x1b9c]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x14013c4cc]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1b9c], xmm1
jb 0x140012a58
comiss xmm6, xmm1
jb 0x140012a58
mov qword [rbx + 0x1b88], rsi
mov r9, qword [rbx + 0x1b80]
mov r12d, 1
test r9, r9
jne 0x140012a7b
mov edx, r12d
lea ecx, [r9 + 3]
call fcn.140010850
comiss xmm0, xmm6
ja 0x140012a86
xor dl, dl
test r9, r9
jne 0x140012b28
cmp byte [rbx + 0x130], sil
je 0x140012b28
movsxd rax, dword [rbx + 0x3c]
test eax, eax
js 0x140012b28
movss xmm1, dword [rbx + rax*4 + 0x4a8]
ucomiss xmm1, xmm6
jp 0x140012aaf
je 0x140012b1c
movss xmm2, dword [rbx + 0x90]
comiss xmm1, xmm2
jbe 0x140012b28
ucomiss xmm1, xmm6
movss xmm3, dword [rbx + 0x94]
jp 0x140012ae1
jne 0x140012ae1
mov eax, r12d
jmp 0x140012b18
mov qword [rbx + 0x1b80], rsi
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
comiss xmm2, xmm1
jae 0x140012b16
comiss xmm6, xmm3
jae 0x140012b16
movaps xmm0, xmm1
subss xmm1, xmm2
subss xmm0, dword [rbx + 0x18]
divss xmm1, xmm3
subss xmm0, xmm2
cvttss2si ecx, xmm1
divss xmm0, xmm3
cvttss2si eax, xmm0
sub ecx, eax
mov eax, esi
test ecx, ecx
cmovg eax, ecx
jmp 0x140012b18
mov eax, esi
test eax, eax
jle 0x140012b28
test byte [rbx + 8], r12b
je 0x140012b28
movzx ebp, r12b
jmp 0x140012b2b
xor bpl, bpl
mov r14d, 0xffffffff
test dl, dl
jne 0x140012b3a
test bpl, bpl
je 0x140012b8b
mov rax, qword [rbx + 0x1b40]
test rax, rax
jne 0x140012b60
mov ecx, dword [rbx + 0x19b0]
mov r8d, r14d
dec ecx
mov edx, 0x80000001
call fcn.1400127b0
test rax, rax
je 0x140012b8b
xor bpl, r12b
mov qword [rbx + 0x1b88], rax
mov qword [rbx + 0x1b80], rax
movzx eax, bpl
mov byte [rbx + 0x1ba0], al
add eax, 3
mov dword [rbx + 0x1b68], eax
mov qword [rbx + 0x1b98], rsi
mov r10, qword [rbx + 0x1b80]
movss xmm0, dword [rbx + 0x18]
mov rcx, r10
movss xmm5, dword [0x14013c45c]
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rbx + 0x1b98]
movss dword [rbx + 0x1b98], xmm0
test r10, r10
je 0x140012c8f
cmp dword [rbx + 0x1b68], 4
jne 0x140012c98
subss xmm0, dword [0x14013c414]
divss xmm0, dword [0x14013c400]
comiss xmm6, xmm0
jbe 0x140012be7
xorps xmm1, xmm1
jmp 0x140012bee
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1b9c]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1b9c], xmm7
call fcn.140010850
comiss xmm0, xmm6
mov r9d, esi
lea ecx, [rdx + 8]
seta r9b
call fcn.140010850
comiss xmm0, xmm6
mov eax, esi
mov rcx, r10
seta al
sub eax, r9d
je 0x140012c4c
mov ecx, eax
call fcn.140012840
mov rcx, qword [rbx + 0x1b80]
movaps xmm7, xmm5
mov dword [rbx + 0x1b9c], 0x3f800000
movss xmm0, dword [rbx + 0x364]
comiss xmm0, xmm6
ja 0x140012c8f
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1ba0], al
je 0x140012c80
cmp qword [rbx + 0x1b40], rsi
je 0x140012c83
movzx r15d, r12b
mov qword [rbx + 0x1b80], rsi
jmp 0x140012d9c
mov rdi, rcx
mov qword [rbx + 0x1b80], rsi
jmp 0x140012d9c
test rcx, rcx
je 0x140012d9c
cmp dword [rbx + 0x1b68], 3
jne 0x140012d9c
movss xmm0, dword [rbx + 0x1b98]
subss xmm0, dword [0x14013c414]
divss xmm0, dword [0x14013c400]
comiss xmm6, xmm0
jbe 0x140012cc7
xorps xmm5, xmm5
jmp 0x140012ccb
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x1b9c]
maxss xmm0, xmm5
movss dword [rbx + 0x1b9c], xmm0
movsxd rax, dword [rbx + 0x3c]
test eax, eax
js 0x140012d91
movss xmm1, dword [rbx + rax*4 + 0x4a8]
ucomiss xmm1, xmm6
jp 0x140012d01
jne 0x140012d01
movzx eax, r12b
jmp 0x140012d6c
movss xmm2, dword [rbx + 0x90]
comiss xmm1, xmm2
jbe 0x140012d6a
ucomiss xmm1, xmm6
movss xmm3, dword [rbx + 0x94]
jp 0x140012d27
jne 0x140012d27
mov eax, r12d
test eax, eax
setg al
jmp 0x140012d6c
comiss xmm2, xmm1
jae 0x140012d61
comiss xmm6, xmm3
jae 0x140012d61
movaps xmm0, xmm1
subss xmm1, xmm2
subss xmm0, dword [rbx + 0x18]
divss xmm1, xmm3
subss xmm0, xmm2
cvttss2si ecx, xmm1
divss xmm0, xmm3
cvttss2si eax, xmm0
sub ecx, eax
mov eax, esi
test ecx, ecx
cmovg eax, ecx
test eax, eax
setg al
jmp 0x140012d6c
mov eax, esi
test eax, eax
setg al
jmp 0x140012d6c
xor eax, eax
mov rcx, qword [rbx + 0x1b80]
test al, al
je 0x140012d91
cmp byte [rbx + 0x131], sil
cmovne r14d, r12d
mov ecx, r14d
call fcn.140012840
mov rcx, qword [rbx + 0x1b80]
cmp byte [rbx + 0x130], sil
cmove rdi, rcx
movaps xmm7, xmmword [rsp + 0x30]
mov r14, qword [rsp + 0x50]
cmp dword [rbx + 0x1a24], esi
je 0x140012dbb
cmp byte [rbx + 0x1a35], sil
je 0x140012e3b
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.140010850
comiss xmm0, xmm6
jbe 0x140012e3b
lea rax, [rbx + 0x118]
test rax, rax
jne 0x140012de0
lea rax, [rbx + 0x118]
movss xmm0, dword [rax]
movss xmm1, dword [0x14013c630]
comiss xmm0, xmm1
jb 0x140012e01
movss xmm0, dword [rax + 4]
comiss xmm0, xmm1
jb 0x140012e01
movzx ecx, r12b
jmp 0x140012e03
xor cl, cl
lea rax, [rbx + 0x3d4]
test rax, rax
jne 0x140012e16
lea rax, [rbx + 0x118]
movss xmm0, dword [rax]
comiss xmm0, xmm1
jb 0x140012e2f
movss xmm0, dword [rax + 4]
comiss xmm0, xmm1
jb 0x140012e2f
movzx eax, r12b
jmp 0x140012e31
xor al, al
cmp cl, al
movzx r15d, r15b
cmove r15d, r12d
mov rbp, qword [rbx + 0x1b80]
test rbp, rbp
je 0x140012f2d
test byte [rbp + 0xc], 4
jne 0x140012f2d
mov eax, dword [rbx + 0x1b68]
cmp eax, 3
jne 0x140012e7a
cmp byte [rbx + 0x131], sil
jne 0x140012f2d
mov edx, r12d
lea rcx, [rsp + 0x80]
jmp 0x140012e8d
cmp eax, 4
jne 0x140012f2d
mov edx, eax
lea rcx, [rsp + 0x88]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm6
xor r8d, r8d
call fcn.1400109e0
movss xmm3, dword [rax]
ucomiss xmm3, xmm6
movss xmm4, dword [rax + 4]
jp 0x140012eb5
jne 0x140012eb5
ucomiss xmm4, xmm6
jp 0x140012eb5
je 0x140012f2d
movss xmm1, dword [rbx + 0xb8]
movss xmm0, dword [rbx + 0x18]
minss xmm1, dword [rbx + 0xbc]
mulss xmm0, dword [0x14013c5bc]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
mov rax, qword [rbp + 0x360]
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm2
mulss xmm4, xmm2
addss xmm3, dword [rax + 0x10]
addss xmm4, dword [rax + 0x14]
movss dword [rax + 0x10], xmm3
movss dword [rax + 0x14], xmm4
mov rax, qword [rbx + 0x1b80]
mov byte [rbx + 0x1baf], r12b
test dword [rax + 0xc], 0x100
jne 0x140012f2d
comiss xmm6, dword [rbx + 0x2eec]
jb 0x140012f2d
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x2eec], eax
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x140012ff2
mov rax, qword [rbx + 0x1b40]
test rax, rax
je 0x140012f54
cmp rdi, qword [rax + 0x360]
je 0x140012feb
mov word [rbx + 0x1bae], 0x100
mov rax, qword [rdi + 0x378]
test rax, rax
cmovne rdi, rax
mov rcx, rdi
call fcn.14000f2b0
mov rcx, rdi
call fcn.14000ddb0
mov eax, dword [rdi + 0x380]
test eax, eax
jne 0x140012fdb
test dword [rdi + 0xc], 0x40000
mov rdx, qword [0x140150a90]
jne 0x140012fd5
movsxd rcx, dword [rdx + 0x1ba4]
mov rax, qword [rdx + 0x1b40]
movaps xmm0, xmmword [0x14013cbd0]
mov dword [rdx + 0x1b48], esi
mov dword [rax + rcx*4 + 0x380], esi
mov word [rdx + 0x1bb1], r12w
mov dword [rdx + 0x1bb4], esi
movups xmmword [rdx + 0x1bb8], xmm0
mov byte [rdx + 0x1bb0], r12b
jmp 0x140012fdb
mov dword [rdx + 0x1b48], eax
cmp dword [rdi + 0x140], 2
jne 0x140012feb
mov dword [rbx + 0x1ba4], r12d
mov qword [rbx + 0x1b80], rsi
mov r12, qword [rsp + 0x98]
test r15b, r15b
je 0x14001307c
mov rbp, qword [rbx + 0x1b40]
test rbp, rbp
je 0x14001307c
test byte [rbp + 0x140], 2
mov rdi, rbp
jne 0x140013053
nop word [rax + rax]
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x14001303f
mov rdi, qword [rdi + 0x358]
test byte [rdi + 0x140], 2
je 0x140013020
cmp rdi, rbp
je 0x140013053
mov rcx, rdi
call fcn.14000ddb0
mov qword [rdi + 0x378], rbp
mov rax, qword [rbx + 0x1b40]
mov word [rbx + 0x1bae], 0x100
test byte [rax + 0x140], 2
je 0x140013075
mov esi, dword [rbx + 0x1ba4]
xor esi, 1
mov ecx, esi
call fcn.140010610
mov rbp, qword [rsp + 0x90]
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret