Function at 0x140005370
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140124040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], r9
mov rbx, rdx
mov rsi, rcx
mov rdx, qword [rcx]
mov r12, rbx
sub r12, rdx
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
movabs r9, 0xfffffffffffffff
cmp rax, r9
je 0x140005676
lea r8, [rax + 1]
mov qword [rsp + 0x58], r8
mov rcx, qword [rcx + 0x10]
sub rcx, rdx
sar rcx, 4
mov rdx, rcx
shr rdx, 1
mov rax, r9
sub rax, rdx
cmp rcx, rax
ja 0x140005670
lea rax, [rdx + rcx]
mov r14, r8
cmp rax, r8
cmovae r14, rax
cmp r14, r9
ja 0x140005670
mov r15, r14
shl r15, 4
mov qword [rsp + 0x38], r14
cmp r15, 0x1000
jb 0x140005442
lea rcx, [r15 + 0x27]
cmp rcx, r15
jbe 0x140005670
call fcn.14000dd10
test rax, rax
je 0x140005655
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140005465
test r15, r15
je 0x14000545e
mov rcx, r15
call fcn.14000dd10
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
jmp 0x14000546a
xor edi, edi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rdi
and r12, 0xfffffffffffffff0
lea r13, [r12 + rdi]
mov qword [rsp + 0x50], r13
lea r14, [r13 + 0x10]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x30], r14
mov ecx, 0x40
call fcn.14000dd10
mov r12, rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rax]
mov dword [r12], ecx
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rax]
mov dword [r12 + 4], ecx
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
mov qword [r12 + 8], rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax]
mov qword [r12 + 0x10], rcx
lea rcx, [r12 + 0x18]
mov qword [rsp + 0x70], rcx
mov rdx, qword [rsp + 0x48]
call fcn.140003c80
lea rax, [0x140001f10]
mov qword [r12 + 0x38], rax
mov qword [rsp + 0x70], r12
add r13, 8
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0
mov r9, r12
lea r8, [0x140005a20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov r12, qword [rsp + 0x50]
mov qword [r12], rax
test rax, rax
je 0x14000565c
mov qword [rsp + 0x30], r12
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
cmp rbx, rdx
jne 0x140005568
cmp rax, rdx
je 0x1400055b7
mov rcx, rdi
sub rcx, rax
nop dword [rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx + rax], xmm1
add rax, 0x10
cmp rax, rdx
jne 0x140005550
jmp 0x1400055b7
cmp rax, rbx
je 0x140005589
mov rcx, rdi
sub rcx, rax
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx + rax], xmm1
add rax, 0x10
cmp rax, rbx
jne 0x140005573
mov qword [rsp + 0x30], rdi
mov rax, qword [rsi + 8]
cmp rbx, rax
je 0x1400055b7
sub r14, rbx
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rbx]
movups xmmword [rbx], xmm0
movups xmmword [r14 + rbx], xmm1
add rbx, 0x10
cmp rbx, rax
jne 0x1400055a0
mov rcx, qword [rsi]
test rcx, rcx
je 0x140005610
mov rdx, qword [rsi + 8]
mov rax, rcx
cmp rcx, rdx
je 0x1400055df
nop dword [rax + rax]
cmp dword [rax + 8], 0
jne 0x14000564e
add rax, 0x10
cmp rax, rdx
jne 0x1400055d0
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x14000560b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005655
mov rcx, r8
call fcn.14000dd4c
mov qword [rsi], rdi
mov rax, qword [rsp + 0x58]
shl rax, 4
add rax, rdi
mov qword [rsi + 8], rax
lea rcx, [rdi + r15]
mov qword [rsi + 0x10], rcx
mov rax, r12
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000dcf0
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [r13], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140001180
int3
call fcn.140004ff0
int3