Function at 0x1400094d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, rcx
call fcn.14001a4c0
test al, al
je 0x1400096ff
movzx eax, byte [rdi + 0xc0]
test al, al
jne 0x1400096ff
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov dword [rbp + 0x6f], eax
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x39]
call fcn.1400081e0
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.14001a670
nop
mov qword [rbp + 0x17], rdi
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x14000954b
lock inc dword [rax + 8]
mov rbx, qword [rbp - 0x19]
jmp 0x14000954d
xor ebx, ebx
mov qword [rbp + 0x1f], rbx
mov byte [rbp + 0x27], 0
mov rsi, qword [rbp - 0x31]
test rsi, rsi
je 0x14000956a
lock inc dword [rsi + 8]
mov rsi, qword [rbp - 0x31]
mov rbx, qword [rbp + 0x1f]
mov r14, qword [rbp - 0x39]
mov qword [rbp + 0x2f], r14
mov qword [rbp + 0x37], rsi
mov ecx, 0x28
call fcn.14001dd80
test rax, rax
je 0x1400095bd
mov qword [rax], rdi
lea rcx, [rax + 8]
mov qword [rcx], 0
lea rdx, [rbp + 0x1f]
cmp rcx, rdx
je 0x1400095a5
mov qword [rcx], rbx
xor ebx, ebx
mov qword [rbp + 0x1f], rbx
mov byte [rcx + 8], 0
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x2f], xmm0
mov rsi, qword [rbp + 0x37]
mov qword [rbp + 0x77], rax
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400081a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x29], rax
test rax, rax
je 0x14000971f
cmp dword [rbp - 0x21], 0
je 0x140009731
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x140009717
xorps xmm0, xmm0
movaps xmmword [rbp + 7], xmm0
movdqa xmmword [rbp - 0x29], xmm0
lea edi, [rax - 1]
test rsi, rsi
je 0x14000965d
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140009659
mov rbx, qword [rbp + 0x37]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140009659
mov rcx, qword [rbp + 0x37]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x1f]
test rbx, rbx
je 0x140009696
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140009696
mov rcx, qword [rbp + 0x1f]
mov r8, qword [rcx + 0xe8]
test r8, r8
je 0x14000968b
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140009696
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400096cf
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400096cf
mov r8, qword [rcx + 0xe8]
test r8, r8
je 0x1400096c4
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400096cf
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rbx, qword [rbp - 0x31]
test rbx, rbx
je 0x1400096ff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400096ff
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400096ff
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
mov dword [rbp - 0x21], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3