Function at 0x140013620
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
movzx r14d, r9b
movzx r15d, r8b
mov rdi, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rbp - 0x45], r12d
call fcn.14001a4c0
test al, al
je 0x1400138c5
movzx eax, byte [rsi + 0xc0]
test al, al
jne 0x1400138c5
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov dword [rbp - 0x49], eax
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.1400081e0
mov rbx, rax
mov dword [rbp - 0x45], 1
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 8]
mov r8d, eax
mov rdx, qword [rdi]
mov rcx, qword [rbp - 1]
mov rcx, qword [rcx]
call sub.VCRUNTIME140.dll_memcpy
mov r8, rbx
lea rdx, [rbp - 0x11]
mov rcx, rsi
call fcn.14001ae20
nop
lea edi, [r12 - 1]
mov rbx, qword [rbp + 7]
test rbx, rbx
je 0x1400136fb
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400136fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400136fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov qword [rbp - 0x41], rsi
mov rax, qword [rbp - 0x11]
test rax, rax
je 0x140013712
lock inc dword [rax + 8]
mov rbx, qword [rbp - 0x11]
jmp 0x140013715
mov rbx, r12
mov qword [rbp - 0x39], rbx
mov byte [rbp - 0x31], 0
mov byte [rbp - 0x29], r14b
test r15b, r15b
je 0x1400137b7
mov ecx, 0x20
call fcn.14001dd80
test rax, rax
je 0x140013766
mov qword [rax], rsi
lea rcx, [rax + 8]
mov qword [rcx], r12
lea rdx, [rbp - 0x39]
cmp rcx, rdx
je 0x14001375c
test rbx, rbx
je 0x14001375c
lock inc dword [rbx + 8]
mov rbx, qword [rbp - 0x39]
mov qword [rcx], rbx
mov byte [rcx + 8], 0
mov byte [rax + 0x18], r14b
jmp 0x140013769
mov rax, r12
mov qword [rbp + 0x2f], rax
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140011b40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x21], rax
test rax, rax
je 0x1400138fd
lea rcx, [rbp - 0x21]
call fcn.140008dc0
nop
cmp dword [rbp - 0x19], 0
je 0x140013855
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test rbx, rbx
je 0x1400138e6
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x10]
mov rdx, rax
movzx ecx, byte [rax]
mov byte [rbp + 0xf], cl
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x1400137e5
lock inc dword [rbx + 8]
mov rbx, qword [rax + 0x10]
mov rax, qword [rax + 8]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rbx
mov eax, dword [rdx + 0x18]
mov dword [rbp + 0x27], eax
movzx eax, byte [rsi + 0xc0]
test al, al
jne 0x140013823
cmp byte [rbp + 0xf], al
je 0x140013816
test r14b, r14b
je 0x140013823
mov rcx, rsi
call fcn.1400133b0
jmp 0x140013823
mov rax, qword [rsi]
mov edx, dword [rbp + 0x27]
mov rcx, rsi
call qword [rax + 0x20]
nop
test rbx, rbx
je 0x140013851
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140013851
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140013851
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x14001388e
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14001388e
mov rcx, qword [rbp - 0x39]
mov r8, qword [rcx + 0xe8]
test r8, r8
je 0x140013883
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x14001388e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400138c5
lock xadd dword [rcx + 8], edi
cmp edi, 1
jne 0x1400138c5
mov r8, qword [rcx + 0xe8]
test r8, r8
je 0x1400138ba
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400138c5
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edx, 4
lea rcx, [rbp + 0x37]
call fcn.140009070
mov rcx, rax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_future_error_class_std::error_code_const____ptr64_
nop
mov dword [rbp - 0x19], r12d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3