Function at 0x14006c160
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
mov esi, r14d
cmp qword [0x1401b9960], rsi
jne 0x14006c349
lea rdx, [0x14018b870]
mov ecx, 0x110
call fcn.1401268ec
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14006c21e
mov qword [rax], r14
mov dword [rax + 8], r14d
mov byte [rax + 0xc], 1
lea rbx, [rax + 0x10]
mov qword [rsp + 0x38], rbx
mov dword [rbx], 0xffffffff
lea rcx, [rbx + 8]
lea edx, [r14 + 2]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
lea rcx, [rbx + 0xa0]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
mov qword [rbx + 0xe8], r14
mov qword [rbx + 0xf0], r14
lea ecx, [r14 + 0x20]
call fcn.14006ab20
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 0xe8], rax
mov word [rbx + 0xf8], 1
jmp 0x14006c221
mov rdi, r14
mov qword [0x1401b9960], rdi
test rdi, rdi
jne 0x14006c237
mov eax, 0x630002
jmp 0x14006c4d3
cmp qword [rdi], 0
je 0x14006c247
mov esi, 0x1f0004
jmp 0x14006c4b3
lea rdx, [0x14018b870]
mov ecx, 0x38
call fcn.140126c4c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14006c293
mov qword [rax], 1
lea rbx, [rax + 8]
lea rax, [0x1400764c0]
mov qword [rsp + 0x20], rax
lea r9, [0x140076490]
mov edx, 0x30
lea r8d, [rdx - 0x2f]
mov rcx, rbx
call fcn.140126c54
jmp 0x14006c296
mov rbx, r14
mov qword [rdi], rbx
test rbx, rbx
jne 0x14006c2a8
mov esi, 0x270002
jmp 0x14006c4ac
mov byte [rdi + 0xc], 0
lea rcx, [rdi + 0x18]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14006c2c3
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov word [rdi + 0x108], 0
lea rcx, [rdi + 0x18]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rsi, r14
lea r15, [0x140076550]
mov rbx, qword [rdi]
add rbx, rsi
cmp qword [rbx + 8], 0
jne 0x14006c45e
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x10], rdi
mov dword [rsp + 0x30], 0xffffffff
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rbx
lea r8, [0x140076520]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx + 8], rax
test rax, rax
je 0x14006c44f
mov byte [rbx + 0x28], 0
add rsi, 0x30
cmp rsi, 0x30
jl 0x14006c2e0
mov dword [rdi + 8], 1
mov esi, r14d
lea rax, [0x1401b21f0]
mov qword [0x1401b9630], rax
call fcn.14010c530
mov qword [0x1401b9628], rax
mov byte [0x1401b9614], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.14006bf60
mov rbp, qword [rsp + 0x40]
mov rbx, rbp
mov rdi, qword [rsp + 0x48]
cmp rbp, rdi
je 0x14006c3d1
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbx]
mov dword [rsp + 0x58], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x60]
call fcn.14006df30
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x58]
call fcn.140105910
add rbx, 0x30
cmp rbx, rdi
jne 0x14006c3a0
test rbp, rbp
je 0x14006c4d1
mov rbx, rbp
cmp rbp, rdi
je 0x14006c3f4
lea rcx, [rbx + 8]
call fcn.140069470
add rbx, 0x30
cmp rbx, rdi
jne 0x14006c3e2
mov rcx, qword [rsp + 0x50]
sub rcx, rbp
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, rbp
cmp rdx, 0x1000
jb 0x14006c4c9
add rdx, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006c4c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x10], r14
mov esi, 0x39001d
jmp 0x14006c463
mov esi, 0x2f0004
mov byte [rdi + 0xc], 1
lea rcx, [rdi + 0x10]
call fcn.140076910
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006c4a0
cmp qword [rcx - 8], 0
je 0x14006c492
mov rax, qword [rcx]
mov edx, 3
mov rax, qword [rax]
call qword [case.0x14008f836.32]
jmp 0x14006c4a0
mov edx, 8
add rcx, 0xfffffffffffffff8
call fcn.140126c44
mov qword [rdi], r14
test si, si
je 0x14006c349
mov rdi, qword [0x1401b9960]
test rdi, rdi
je 0x14006c4c0
mov rcx, rdi
call fcn.14006c4f0
mov qword [0x1401b9960], r14
jmp 0x14006c4d1
mov rcx, rbp
call fcn.140126380
mov eax, esi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret