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

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
mov rbx, qword [0x1800a3510]
xor esi, esi
xor r15b, r15b
mov edi, esi
mov eax, dword [rbx + 0x1b60]
sub eax, 1
js 0x18001285f
movsxd rdx, eax
mov rax, qword [rbx + 0x1b68]
add rax, 8
lea r8, [rdx + rdx*2]
shl r8, 4
add r8, rax
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x180012855
test dword [rax + 0xc], 0x8000000
jne 0x1800128f1
sub r8, 0x30
sub rdx, 1
jns 0x180012840
mov qword [rsp + 0x98], r12
mov qword [rsp + 0x50], r14
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
cmp qword [rbx + 0x1bd0], rsi
je 0x1800128c0
cmp qword [rbx + 0x1bc8], rsi
jne 0x1800128c0
comiss xmm6, dword [rbx + 0x1d38]
movss xmm1, dword [rbx + 0x1be4]
movss xmm0, dword [rbx + 0x18]
mulss xmm0, dword [0x180093924]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rbx + 0x1be4], xmm1
jb 0x1800128c0
comiss xmm6, xmm1
jb 0x1800128c0
mov qword [rbx + 0x1bd0], rsi
mov r9, qword [rbx + 0x1bc8]
mov r12d, 1
mov qword [rsp + 0x90], rbp
test r9, r9
jne 0x180012902
mov edx, r12d
lea ecx, [r9 + 3]
call fcn.180010910
comiss xmm0, xmm6
jbe 0x180012902
movzx r8d, dl
jmp 0x18001290a
mov qword [rbx + 0x1bc8], rsi
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
xor r8b, r8b
test r9, r9
jne 0x18001292f
cmp byte [rbx + 0x148], sil
je 0x18001292f
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x18001292f
call fcn.1800089b0
test al, al
je 0x18001292f
test byte [rbx + 8], r12b
je 0x18001292f
movzx ebp, r12b
jmp 0x180012932
xor bpl, bpl
mov r14d, 0xffffffff
test r8b, r8b
jne 0x180012942
test bpl, bpl
je 0x180012993
mov rax, qword [rbx + 0x1b80]
test rax, rax
jne 0x180012968
mov ecx, dword [rbx + 0x19d0]
mov r8d, r14d
dec ecx
mov edx, 0x80000001
call fcn.180012620
test rax, rax
je 0x180012993
xor bpl, r12b
mov qword [rbx + 0x1bd0], rax
mov qword [rbx + 0x1bc8], rax
movzx eax, bpl
mov byte [rbx + 0x1be8], al
add eax, 3
mov dword [rbx + 0x1bac], eax
mov qword [rbx + 0x1be0], rsi
movss xmm0, dword [rbx + 0x1be0]
mov r10, qword [rbx + 0x1bc8]
movss xmm5, dword [0x1800938d0]
mov r8, r10
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rbx + 0x18]
movss dword [rbx + 0x1be0], xmm0
test r10, r10
je 0x180012a92
cmp dword [rbx + 0x1bac], 4
jne 0x180012a92
subss xmm0, dword [0x180093874]
divss xmm0, dword [0x18009385c]
comiss xmm6, xmm0
jbe 0x1800129ef
xorps xmm1, xmm1
jmp 0x1800129f6
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rbx + 0x1be4]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rbx + 0x1be4], xmm7
call fcn.180010910
comiss xmm0, xmm6
mov r9d, esi
lea ecx, [rdx + 8]
seta r9b
call fcn.180010910
comiss xmm0, xmm6
mov ecx, esi
mov r8, r10
seta cl
sub ecx, r9d
je 0x180012a52
call fcn.1800126b0
mov r8, qword [rbx + 0x1bc8]
movaps xmm7, xmm5
mov dword [rbx + 0x1be4], 0x3f800000
movss xmm0, dword [rbx + 0x358]
comiss xmm0, xmm6
ja 0x180012a92
comiss xmm5, xmm7
seta al
and byte [rbx + 0x1be8], al
je 0x180012a86
cmp qword [rbx + 0x1b80], rsi
je 0x180012a89
movzx r15d, r12b
mov qword [rbx + 0x1bc8], rsi
jmp 0x180012b0f
mov rdi, r8
mov qword [rbx + 0x1bc8], rsi
jmp 0x180012b0f
test r8, r8
je 0x180012b0f
cmp dword [rbx + 0x1bac], 3
jne 0x180012b0f
movss xmm0, dword [rbx + 0x1be0]
subss xmm0, dword [0x180093874]
divss xmm0, dword [0x18009385c]
comiss xmm6, xmm0
jbe 0x180012ac2
xorps xmm5, xmm5
jmp 0x180012ac6
minss xmm5, xmm0
movss xmm0, dword [rbx + 0x1be4]
maxss xmm0, xmm5
movss dword [rbx + 0x1be4], xmm0
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x180012b04
call fcn.1800089b0
test al, al
je 0x180012b04
cmp byte [rbx + 0x149], sil
cmovne r14d, r12d
mov ecx, r14d
call fcn.1800126b0
mov r8, qword [rbx + 0x1bc8]
cmp byte [rbx + 0x148], sil
cmove rdi, r8
mov edx, r12d
mov ecx, 0x10
call fcn.180010910
comiss xmm0, xmm6
mov r14, qword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x30]
jbe 0x180012b31
mov byte [rbx + 0x1be8], dl
cmp dword [rbx + 0x1a60], esi
je 0x180012b46
cmp byte [rbx + 0x1a6d], sil
je 0x180012bd3
cmp byte [rbx + 0x1be8], sil
je 0x180012bd3
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.180010910
comiss xmm0, xmm6
jbe 0x180012bd3
lea rax, [rbx + 0x3c8]
test rax, rax
jne 0x180012b78
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
movss xmm1, dword [0x1800939b0]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x180012b99
comiss xmm2, xmm1
jb 0x180012b99
movzx ecx, r12b
jmp 0x180012b9b
xor cl, cl
lea rax, [rbx + 0x130]
test rax, rax
jne 0x180012bae
lea rax, [rbx + 0x130]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x180012bc7
comiss xmm2, xmm1
jb 0x180012bc7
movzx eax, r12b
jmp 0x180012bc9
xor al, al
cmp al, cl
movzx r15d, r15b
cmove r15d, r12d
mov r11, qword [rbx + 0x1bc8]
test r11, r11
je 0x180012d87
test byte [r11 + 0xc], 4
jne 0x180012d87
mov eax, dword [rbx + 0x1bac]
cmp eax, 3
jne 0x180012c13
cmp byte [rbx + 0x149], sil
jne 0x180012d87
mov edx, r12d
lea rcx, [rsp + 0x80]
jmp 0x180012c26
cmp eax, 4
jne 0x180012d87
mov edx, eax
lea rcx, [rsp + 0x88]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm6
call fcn.180010a90
movss xmm4, dword [rax]
ucomiss xmm4, xmm6
movss xmm3, dword [rax + 4]
jp 0x180012c4f
jne 0x180012c4f
ucomiss xmm3, xmm6
jp 0x180012c4f
je 0x180012d87
mov rcx, qword [r11 + 0x360]
movss xmm1, dword [rbx + 0xc0]
movss xmm0, dword [rbx + 0x18]
minss xmm1, dword [rbx + 0xc4]
mulss xmm0, dword [0x180093978]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
mov eax, dword [rcx + 0xa4]
cvtdq2ps xmm2, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm2
addss xmm4, dword [rcx + 0x10]
addss xmm3, dword [rcx + 0x14]
test r12b, al
je 0x180012d5e
movss xmm0, dword [rcx + 0x10]
and eax, 0xfffffff1
movss xmm1, dword [rcx + 0x14]
mov dword [rcx + 0xa4], eax
mov dword [rcx + 0xb0], 0x7f7fffff
mov dword [rcx + 0xb4], 0x7f7fffff
cvttss2si eax, xmm4
movd xmm2, eax
cvtdq2ps xmm2, xmm2
cvttss2si eax, xmm3
movss dword [rcx + 0x10], xmm2
subss xmm2, xmm0
movd xmm3, eax
cvtdq2ps xmm3, xmm3
movaps xmm0, xmm2
movss dword [rcx + 0x14], xmm3
subss xmm3, xmm1
addss xmm0, dword [rcx + 0xd0]
movaps xmm1, xmm3
addss xmm1, dword [rcx + 0xd4]
movss dword [rcx + 0xd0], xmm0
movaps xmm0, xmm2
addss xmm0, dword [rcx + 0xe8]
addss xmm2, dword [rcx + 0xe0]
movss dword [rcx + 0xd4], xmm1
movaps xmm1, xmm3
addss xmm1, dword [rcx + 0xec]
addss xmm3, dword [rcx + 0xe4]
movss dword [rcx + 0xe8], xmm0
movss dword [rcx + 0xe0], xmm2
movss dword [rcx + 0xec], xmm1
movss dword [rcx + 0xe4], xmm3
mov rax, qword [rbx + 0x1bc8]
mov byte [rbx + 0x1bf7], r12b
test dword [rax + 0xc], 0x100
jne 0x180012d87
comiss xmm6, dword [rbx + 0x2ef8]
jb 0x180012d87
mov eax, dword [rbx + 0x1c]
mov dword [rbx + 0x2ef8], eax
movaps xmm6, xmmword [rsp + 0x40]
test rdi, rdi
je 0x180012eb8
mov rax, qword [rbx + 0x1b80]
test rax, rax
je 0x180012dae
cmp rdi, qword [rax + 0x360]
je 0x180012eb1
mov ecx, dword [rbx + 0x1a60]
test ecx, ecx
setne al
mov byte [rbx + 0x1a6c], al
test ecx, ecx
je 0x180012dd0
mov dword [rbx + 0x1a68], esi
mov word [rbx + 0x1a6e], si
mov dword [rbx + 0x1a60], esi
mov byte [rbx + 0x1a6d], sil
mov qword [rbx + 0x1a90], rsi
mov byte [rbx + 0x1a70], sil
mov qword [rbx + 0x1a74], rsi
mov qword [rbx + 0x1a80], rsi
mov word [rbx + 0x1bf6], 0x100
mov rax, qword [rdi + 0x378]
test rax, rax
cmovne rdi, rax
xor edx, edx
mov rcx, rdi
call fcn.18000f340
mov rcx, rdi
call fcn.18000dda0
mov eax, dword [rdi + 0x380]
test eax, eax
jne 0x180012ea1
test dword [rdi + 0xc], 0x40000
mov rdx, qword [0x1800a3510]
jne 0x180012e9b
movsxd rcx, dword [rdx + 0x1bec]
mov rax, qword [rdx + 0x1b80]
mov dword [rdx + 0x1b88], esi
mov dword [rax + rcx*4 + 0x380], esi
mov word [rdx + 0x1bf9], r12w
mov qword [rdx + 0x1bfc], rsi
mov qword [rdx + 0x1c04], rsi
mov dword [rdx + 0x1c0c], esi
cmp byte [rdx + 0x1c11], sil
jne 0x180012e8f
cmp byte [rdx + 0x1bf9], sil
jne 0x180012e8f
xor al, al
mov byte [rdx + 0x1bf8], al
jmp 0x180012ea1
movzx eax, r12b
mov byte [rdx + 0x1bf8], al
jmp 0x180012ea1
mov dword [rdx + 0x1b88], eax
cmp dword [rdi + 0x140], 2
jne 0x180012eb1
mov dword [rbx + 0x1bec], r12d
mov qword [rbx + 0x1bc8], rsi
mov r12, qword [rsp + 0x98]
test r15b, r15b
je 0x180012f48
mov rbp, qword [rbx + 0x1b80]
test rbp, rbp
je 0x180012f48
lea rcx, [rbp + 0x358]
mov rdi, rbp
cmp qword [rcx], rsi
je 0x180012f1f
test byte [rdi + 0x140], 2
jne 0x180012f0b
mov eax, dword [rdi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x180012f0b
mov rdi, qword [rcx]
lea rcx, [rdi + 0x358]
cmp qword [rcx], rsi
jne 0x180012ee4
cmp rdi, rbp
je 0x180012f1f
mov rcx, rdi
call fcn.18000dda0
mov qword [rdi + 0x378], rbp
mov rax, qword [rbx + 0x1b80]
mov word [rbx + 0x1bf6], 0x100
test byte [rax + 0x140], 2
je 0x180012f41
mov esi, dword [rbx + 0x1bec]
xor esi, 1
mov ecx, esi
call fcn.1800106f0
mov rbp, qword [rsp + 0x90]
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret