Function at 0x140004d30
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r13, r9
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x60], rax
mov rdx, qword [rcx]
mov r14, rbx
sub r14, rdx
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
movabs r9, 0xfffffffffffffff
cmp rax, r9
je 0x140005029
lea r8, [rax + 1]
mov qword [rsp + 0x68], 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 0x140005023
lea rax, [rdx + rcx]
mov rcx, r8
cmp rax, r8
cmovae rcx, rax
cmp rcx, r9
ja 0x140005023
mov r12, rcx
shl r12, 4
mov qword [rsp + 0x58], rcx
test r12, r12
jne 0x140004dec
xor edi, edi
mov qword [rsp + 0x58], rcx
jmp 0x140004e2a
cmp r12, 0x1000
jb 0x140004e1f
lea rcx, [r12 + 0x27]
cmp rcx, r12
jbe 0x140005023
call fcn.1400057c0
test rax, rax
je 0x140005008
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140004e2a
mov rcx, r12
call fcn.1400057c0
mov rdi, rax
mov qword [rsp + 0x48], rdi
and r14, 0xfffffffffffffff0
lea rax, [r14 + rdi]
mov qword [rsp + 0x50], rax
lea r14, [rax + 0x10]
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x40], r14
mov ecx, 0x60
call fcn.1400057c0
mov r15, rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8, r13
mov rcx, r15
call fcn.1400054d0
lea rax, [0x140002540]
mov qword [r15 + 0x58], rax
mov qword [rsp + 0x78], r15
mov r13, qword [rsp + 0x50]
add r13, 8
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0
mov r9, r15
lea r8, [0x140005480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov r15, qword [rsp + 0x50]
mov qword [r15], rax
test rax, rax
je 0x14000500f
mov qword [rsp + 0x40], r15
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
cmp rbx, rdx
jne 0x140004f18
cmp rax, rdx
je 0x140004f67
mov rcx, rdi
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 0x140004f00
jmp 0x140004f67
cmp rax, rbx
je 0x140004f39
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 0x140004f23
mov qword [rsp + 0x40], rdi
mov rax, qword [rsi + 8]
cmp rbx, rax
je 0x140004f67
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 0x140004f50
mov rcx, qword [rsi]
test rcx, rcx
je 0x140004fc0
mov rdx, qword [rsi + 8]
mov rax, rcx
cmp rcx, rdx
je 0x140004f8f
nop dword [rax + rax]
cmp dword [rax + 8], 0
jne 0x140005001
add rax, 0x10
cmp rax, rdx
jne 0x140004f80
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x140004fbb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005008
mov rcx, r8
call fcn.140005b0c
mov qword [rsi], rdi
mov rax, qword [rsp + 0x68]
shl rax, 4
add rax, rdi
mov qword [rsi + 8], rax
lea rcx, [r12 + rdi]
mov qword [rsi + 0x10], rcx
mov rax, r15
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140005680
add rsp, 0x90
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.140001110
int3
call fcn.140005040
int3