Function at 0x140033680
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, 0xa0
mov rax, qword [0x1400eb0c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r15d, r15d
mov r14, qword [0x1400ecf80]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [0x1400ecc18]
call qword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
cmp rax, 1
je 0x14003372c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], r15
lea r9, [0x14000b130]
mov r8, r14
mov edx, WSAStartup
mov rcx, rax
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov rsi, rax
cmp eax, 0xffffffff
jne 0x140033759
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400bbb00
lea r11, [rsp + 0xa0]
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
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], r15
lea r9, [0x14000b020]
mov r8, r14
mov edx, WSAStartup
mov rcx, rax
call qword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 0xffffffff
je 0x140033703
mov esi, 0x309
mov ecx, Ordinal_41
call fcn.1400bbb28
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.140051890
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 0x140033919
cmp byte [rbx + 8], 0
je 0x1400337c7
cmp byte [rax + 0xb8], 0
jne 0x140033919
cmp byte [rbx + 0x10], 0
jne 0x14003390e
mov byte [rbx + 0x10], 1
mov qword [rbp + 0x17], rax
mov byte [rbp + 0x1f], 1
lock inc dword [rax + 8]
mov qword [rbp - 0x19], r14
lock inc dword [rdi + 8]
mov rbx, qword [rbp + 0x27]
mov qword [rbp - 0x11], rbx
mov qword [rbp - 9], rdi
mov dword [rbp - 1], esi
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400bbb28
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov dword [rax + 0x18], esi
mov qword [rbp + 7], rax
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x14004e5e0]
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 0x1400338fe
cmp dword [rbp - 0x21], 0
je 0x1400338f2
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400338f2
xorps xmm0, xmm0
movaps xmmword [rbp + 0x27], xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov ebx, 0xffffffff
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1400338be
mov eax, ebx
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400338be
mov rcx, qword [rbp + 0x17]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x1400338b3
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400338be
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140033703
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x140033703
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140033703
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x21], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 2
call fcn.140002ee0
int3
mov ecx, 4
call fcn.140002ee0
int3