Function at 0x140004410
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r12, r9
mov qword [rsp + 0x50], r8
mov rdi, rdx
mov r14, rcx
mov rdx, qword [rcx]
mov rbx, rdi
sub rbx, rdx
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
movabs r9, 0xfffffffffffffff
cmp rax, r9
je 0x140004746
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 0x140004740
lea rax, [rdx + rcx]
mov rcx, r8
cmp rax, r8
cmovae rcx, rax
cmp rcx, r9
ja 0x140004740
mov r13, rcx
shl r13, 4
mov qword [rsp + 0x48], rcx
test r13, r13
jne 0x1400044c1
xor esi, esi
mov qword [rsp + 0x48], rcx
jmp 0x1400044fe
cmp r13, 0x1000
jb 0x1400044f3
lea rcx, [r13 + 0x27]
cmp rcx, r13
jbe 0x140004740
call fcn.140005c90
test rax, rax
je 0x140004725
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400044fe
mov rcx, r13
call fcn.140005c90
mov rsi, rax
mov qword [rsp + 0x38], rsi
and rbx, 0xfffffffffffffff0
lea rax, [rbx + rsi]
mov qword [rsp + 0x40], rax
lea r15, [rax + 0x10]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x30], r15
mov ecx, 0x430
call fcn.140005c90
mov rbx, rax
mov qword [rsp + 0x68], rax
mov rdx, r12
mov rcx, rax
call fcn.1400015c0
mov eax, dword [r12 + 0x20]
mov dword [rbx + 0x20], eax
mov eax, dword [r12 + 0x24]
mov dword [rbx + 0x24], eax
lea rax, [rbx + 0x28]
lea rcx, [r12 + 0x28]
mov edx, 8
nop dword [rax]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rdx, 1
jne 0x140004560
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rbx + 0x428], rax
mov qword [rsp + 0x68], rbx
mov r12, qword [rsp + 0x40]
add r12, 8
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edx
mov r9, rbx
lea r8, [0x140004d70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rbx, qword [rsp + 0x40]
mov qword [rbx], rax
test rax, rax
je 0x14000472c
mov qword [rsp + 0x30], rbx
mov rdx, qword [r14 + 8]
mov rax, qword [r14]
cmp rdi, rdx
jne 0x140004638
cmp rax, rdx
je 0x140004687
mov rcx, rsi
sub rcx, rax
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx + rax], xmm1
add rax, 0x10
cmp rax, rdx
jne 0x140004620
jmp 0x140004687
cmp rax, rdi
je 0x140004659
mov rcx, rsi
sub rcx, rax
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rcx + rax], xmm1
add rax, 0x10
cmp rax, rdi
jne 0x140004643
mov qword [rsp + 0x30], rsi
mov rax, qword [r14 + 8]
cmp rdi, rax
je 0x140004687
sub r15, rdi
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rdi]
movups xmmword [rdi], xmm0
movups xmmword [rdi + r15], xmm1
add rdi, 0x10
cmp rdi, rax
jne 0x140004670
mov rcx, qword [r14]
test rcx, rcx
je 0x1400046e0
mov rdx, qword [r14 + 8]
mov rax, rcx
cmp rcx, rdx
je 0x1400046af
nop dword [rax + rax]
cmp dword [rax + 8], 0
jne 0x14000471e
add rax, 0x10
cmp rax, rdx
jne 0x1400046a0
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x1400046db
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004725
mov rcx, r8
call fcn.140005ccc
mov qword [r14], rsi
mov rax, qword [rsp + 0x58]
shl rax, 4
add rax, rsi
mov qword [r14 + 8], rax
lea rcx, [rsi + r13]
mov qword [r14 + 0x10], rcx
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140005c70
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 [r12], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140001110
int3
call fcn.140004940
int3