Function at 0x140018280
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r13, qword [rcx]
mov r12, qword [rcx + 8]
sub r12, r13
sar r12, 4
inc r12
mov qword [rbp - 0x18], rcx
mov rax, qword [rcx + 0x10]
sub rax, r13
sar rax, 4
mov r8, rax
shr r8, 1
movabs rcx, 0xfffffffffffffff
mov rdx, rcx
sub rdx, r8
add r8, rax
cmp r8, r12
cmovbe r8, r12
cmp rax, rdx
cmova r8, rcx
mov rax, r8
shr rax, 0x3c
jne 0x140018521
mov r15, r9
mov rdi, r8
shl rdi, 4
cmp r8, 0x100
mov qword [rbp - 0x28], r8
jb 0x140018338
movabs rax, 0xffffffffffffffe
cmp r8, rax
jae 0x140018521
lea rcx, [rdi + 0x27]
call fcn.14002846c
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x14001834c
test r8, r8
je 0x14001834a
mov rcx, rdi
call fcn.14002846c
mov rcx, rax
jmp 0x14001834c
xor ecx, ecx
mov qword [rbp - 8], rcx
mov rbx, rsi
sub rbx, r13
sar rbx, 4
shl rbx, 4
lea rax, [rcx + rbx]
add rax, 0x10
mov qword [rbp - 0x10], rax
mov ecx, 0x18
call fcn.14002846c
mov rcx, qword [rbp + 0x70]
add rbx, qword [rbp - 8]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rcx, qword [r15]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r14
lea r14, [rbx + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0
lea r8, [0x140024370]
xor ecx, ecx
xor edx, edx
mov qword [rbp - 0x20], rax
mov r9, rax
call fcn.14002dff8
mov qword [rbx], rax
test rax, rax
je 0x140018526
mov r14, qword [rbp - 0x18]
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
cmp rcx, rsi
mov r8, qword [rbp - 8]
mov r9, qword [rbp - 0x10]
je 0x14001845e
cmp rax, rsi
je 0x140018420
xor ecx, ecx
nop word cs:[rax + rax]
vmovups xmm0, xmmword [rax + rcx]
vmovups xmmword [r8 + rcx], xmm0
mov qword [rax + rcx], 0
mov dword [rax + rcx + 8], 0
lea rdx, [rax + rcx]
add rdx, 0x10
add rcx, 0x10
cmp rdx, rsi
jne 0x1400183f0
mov rcx, qword [r14 + 8]
cmp rcx, rsi
je 0x14001849c
xor eax, eax
nop word [rax + rax]
vmovups xmm0, xmmword [rsi + rax]
vmovups xmmword [r9 + rax], xmm0
mov qword [rsi + rax], 0
mov dword [rsi + rax + 8], 0
lea rdx, [rsi + rax]
add rdx, 0x10
add rax, 0x10
cmp rdx, rcx
jne 0x140018430
jmp 0x14001849c
cmp rax, rsi
je 0x14001849f
xor ecx, ecx
nop word cs:[rax + rax]
vmovups xmm0, xmmword [rax + rcx]
vmovups xmmword [r8 + rcx], xmm0
mov qword [rax + rcx], 0
mov dword [rax + rcx + 8], 0
lea rdx, [rax + rcx]
add rdx, 0x10
add rcx, 0x10
cmp rdx, rsi
jne 0x140018470
mov rsi, qword [r14]
test rsi, rsi
je 0x1400184f3
mov rax, qword [r14 + 8]
cmp rsi, rax
je 0x1400184bf
mov rcx, rsi
cmp dword [rcx + 8], 0
jne 0x14001851c
add rcx, 0x10
cmp rcx, rax
jne 0x1400184b0
mov rdx, qword [r14 + 0x10]
sub rdx, rsi
cmp rdx, 0x1000
jb 0x1400184e7
mov rax, qword [rsi - 8]
add rsi, 0xfffffffffffffff8
sub rsi, rax
cmp rsi, 0x20
jae 0x140018537
add rdx, 0x27
mov rsi, rax
mov rcx, rsi
call fcn.1400284fc
mov r8, qword [rbp - 8]
mov qword [r14], r8
shl r12, 4
add r12, r8
mov qword [r14 + 8], r12
add rdi, r8
mov qword [r14 + 0x10], rdi
mov rax, rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14003a530
call fcn.140016dc0
mov dword [r14], 0
mov ecx, 6
call fcn.140025750
call fcn.140030d48
int3