Function at 0x140022c50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x10], edx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140065040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov dword [rbp - 0x21], r9d
mov r14d, r8d
mov r12, rcx
xor esi, esi
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
mov qword [rbp + 0x17], rsi
mov eax, 1
xchg byte [0x1400650a0], al
mov edi, esi
test r8d, r8d
jle 0x140022d53
mov qword [rbp - 0x19], rcx
lea r15, [0x140020540]
mov r13d, dword [rbp + 0x6f]
mov rbx, qword [rbp + 0xf]
cmp rbx, qword [rbp + 0x17]
je 0x140022d28
mov ecx, 0x18
call fcn.1400312bc
mov dword [rax], r13d
mov qword [rax + 8], r12
mov qword [rax + 0x10], r15
mov qword [rbp + 0x1f], rax
lea r15, [rbx + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140027dd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140022d93
mov rbx, qword [rbp + 0xf]
add rbx, 0x10
mov qword [rbp + 0xf], rbx
lea r15, [0x140020540]
jmp 0x140022d48
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x19]
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140026460
mov rbx, qword [rbp + 0xf]
inc edi
cmp edi, r14d
jl 0x140022cc7
movsxd rbx, dword [rbp - 0x21]
lea rcx, [rbp - 0x11]
call fcn.14001b030
mov rax, qword [rbp - 0x11]
mov qword [rbp - 0x29], rax
test rbx, rbx
jle 0x140022da6
imul rdx, rbx, 0x3b9aca00
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rdx
cmp rax, rcx
jge 0x140022da2
lea rcx, [rdx + rax]
mov qword [rbp - 0x29], rcx
jmp 0x140022da6
mov dword [r15], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov qword [rbp - 0x29], r8
lea rcx, [rbp - 0x29]
call fcn.140026340
xchg byte [0x1400650a0], sil
mov rbx, qword [rbp + 7]
mov rdi, qword [rbp + 0xf]
cmp rbx, rdi
je 0x140022e06
cmp dword [rbx + 8], 0
je 0x140022df5
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
je 0x140022e61
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 9], xmm0
xor edx, edx
lea rcx, [rbp - 9]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140022e55
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140022dc3
mov rdi, qword [rbp + 0xf]
mov rbx, qword [rbp + 7]
test rbx, rbx
je 0x140022e7c
mov rax, rbx
cmp rbx, rdi
je 0x140022e22
cmp dword [rax + 8], 0
jne 0x140022e6d
add rax, 0x10
cmp rax, rdi
jne 0x140022e13
mov rdx, qword [rbp + 0x17]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140022e74
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022e74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
call fcn.1400312f8
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140031000
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret