Function at 0x1400bc700
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.1400bc5d0
test al, al
jne 0x14009bfea
lea rax, [0x14009cb00]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.14005ac80
movaps xmm0, xmmword [rsp + 0x20]
lea r8, [rsp + 0x20]
mov r9d, reloc.WLDAP32.dll_Ordinal_200
movdqa xmmword [rsp + 0x20], xmm0
mov rdx, rbx
lea rcx, [rax + 0x10]
call fcn.140099110
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp 0x1400bc700
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rcx
xor esi, esi
lea rdi, [rcx + 0x18]
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x40], sil
mov rcx, rdi
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400bc9ce
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
je 0x1400bc9d9
mov byte [rsp + 0x40], 1
movzx eax, byte [rbx + 0x68]
nop
test al, al
jne 0x1400bc802
movzx eax, byte [rbx + 0x69]
nop
test al, al
je 0x1400bc802
mov eax, esi
xchg byte [rbx + 0x69], al
mov ecx, 1
mov eax, ecx
xchg byte [rbx + 0x68], al
xchg byte [rbx + 0x6a], cl
lea ecx, [rsi + 0x10]
call fcn.1400be430
test rax, rax
je 0x1400bc7af
lea rcx, [0x1400bc5e0]
mov qword [rax], rcx
mov qword [rax + 8], rbx
jmp 0x1400bc7b2
mov rax, rsi
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400bc4f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400bc9bf
cmp dword [rbx + 0x10], 0
jne 0x1400bc7fb
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 8], xmm1
jmp 0x1400bc98d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 8
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
movabs rax, 0x646165726854666f
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 0
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.14006c610
nop
lea rdi, [rax + 0x40]
lea rdx, str.__name:
mov rcx, rdi
call fcn.140006d80
mov rsi, rax
call fcn.14006ce70
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400bc866
mov rax, qword [rax]
mov rdx, rax
mov rcx, rsi
call fcn.1400072b0
lea rdx, [rbx + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140007b40
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1400072b0
mov rbx, rax
call fcn.14006ce70
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400bc8b4
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400072b0
lea rdx, str.___Cannot_start__thread_already_running.
mov rcx, rdi
call fcn.140006d80
mov rbx, rax
call fcn.14006ce70
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400bc8e4
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400072b0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400bc930
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bc92b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bc92b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400be46c
movdqa xmm0, xmmword [0x140292e20]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rcx, [rbp - 0x70]
call fcn.14006c6d0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x1400bc98d
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bc987
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bc987
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400be46c
nop
mov rcx, qword [rsp + 0x38]
call fcn.1400bdfec
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400be7c0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rsp + 0x58], esi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3