Function at 0x140016560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, qword [0x14003b150]
mov r14, qword [0x14003b480]
mov r15, qword [0x14003b370]
mov ecx, 0x28
call fcn.140028348
mov rdi, rax
mov qword [rbp + 7], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_std::promise_bool__.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov rcx, rbx
call fcn.140026fc0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], rdi
movups xmmword [rbp + 0x17], xmm0
mov rax, qword [rbx]
test rax, rax
je 0x140016797
cmp byte [rbx + 8], 0
je 0x140016611
cmp byte [rax + 0xb8], 0
jne 0x140016797
cmp byte [rbx + 0x10], 0
jne 0x14001678c
mov byte [rbx + 0x10], 1
mov qword [rbp + 0x17], rax
mov byte [rbp + 0x1f], 1
lock inc dword [rax + 8]
mov qword [rbp - 0x29], r15
lock inc dword [rdi + 8]
mov rbx, qword [rbp + 0x27]
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], r14
mov byte [rbp - 9], 1
mov qword [rbp - 1], rsi
mov ecx, gethostbyname
call fcn.140028348
mov qword [rax], r15
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov qword [rax + 0x18], r14
mov byte [rax + 0x20], 1
mov qword [rax + 0x28], rsi
mov qword [rbp + 7], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140026b80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140016779
cmp dword [rbp - 0x31], 0
je 0x14001676d
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14001676d
xorps xmm0, xmm0
movaps xmmword [rbp + 0x27], xmm0
movdqa xmmword [rbp - 0x39], xmm0
mov ebx, 0xffffffff
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14001671d
mov eax, ebx
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001671d
mov rcx, qword [rbp + 0x17]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x140016712
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x14001671d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140016744
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140016744
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + VariantCopy]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140028320
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x31], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 2
call fcn.1400157a0
int3
mov ecx, 4
call fcn.1400157a0
int3