Function at 0x140041160
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400992c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov byte [rcx + 0x23a], sil
mov byte [rcx + 0x238], sil
mov byte [rcx + 0x239], sil
lea r12, [rcx + 0x310]
lea ecx, [rsi + 0x78]
call fcn.140066550
mov rbx, rax
mov qword [rsp + 0x60], rax
lea r15, [rsi - 1]
test rax, rax
je 0x1400412be
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_boost::asio::basic_stream_socket_class_boost::asio::ip::tcp__.0
mov qword [rbx], rax
mov rdx, r12
mov rcx, qword [r12]
call fcn.14003d330
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], rsi
mov ecx, 2
mov dword [rbx + 0x50], ecx
mov byte [rbx + 0x54], sil
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x58], xmm0
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x70], eax
mov qword [rbx + 0x58], rcx
lea r12, [rbx + 0x18]
mov r13, qword [rbx + 0x10]
mov qword [r12], r15
mov byte [r12 + 8], al
mov qword [r12 + 0x10], rsi
mov r14, qword [r12 + 0x18]
mov qword [r12 + 0x18], rsi
test r14, r14
je 0x140041282
mov eax, r15d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x140041282
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov eax, r15d
lock xadd dword [r14 + 0xc], eax
cmp eax, 1
jne 0x140041282
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [r13 + 0x50]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [r13 + 0x78]
mov qword [r12 + 0x28], rax
mov qword [r12 + 0x30], rsi
mov rax, qword [r13 + 0x78]
test rax, rax
je 0x1400412a7
mov qword [rax + 0x30], r12
mov qword [r13 + 0x78], r12
lea rcx, [r13 + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r12, [rdi + 0x310]
jmp 0x1400412c1
mov rbx, rsi
or dword [rsp + 0x30], 1
lea rax, [rbx + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x38]
lea rcx, [rdi + 0x330]
call fcn.14003ef70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140041320
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140041320
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r15d
cmp r15d, 1
jne 0x140041320
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi + 0x330]
mov qword [rdi + 0x328], rax
mov dword [rsp + 0x34], 0x2710
mov rcx, qword [rax + 8]
mov qword [rbp - 0x80], rcx
cmp byte [rax + 0x44], 0
jne 0x140041354
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x74], xmm0
mov qword [rbp - 0x64], rax
mov dword [rbp - 0x5c], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rdi + 0x328]
mov rcx, qword [rax + 8]
mov qword [rbp - 0x58], rcx
cmp byte [rax + 0x44], 0
jne 0x140041397
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x3c], rax
mov dword [rbp - 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx ebx, word [rdi + 0x48]
lea rax, [0x140083078]
mov qword [rbp - 0x30], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or dword [rsp + 0x30], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x30], r14
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x88]
mov dword [rbp + rcx - 0x34], r8d
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x40], rsi
mov dword [rbp + 0x48], 4
movzx edx, bx
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x28]
call fcn.140013d40
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r14
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x28]
call fcn.140012df0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rdx, [rdi + 0x28]
lea rcx, [rbp + 0xe0]
call fcn.1400131b0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x130]
call fcn.1400131b0
nop
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x150]
call fcn.1400131b0
movdqa xmm0, xmmword [0x140076500]
movdqa xmmword [rbp + 0x100], xmm0
mov qword [rbp + 0x110], rsi
mov qword [rbp + 0x118], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x14004154a
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041544
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041544
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066980
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x14004158e
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041589
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041589
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066980
movdqa xmm0, xmmword [0x1400837c0]
movdqu xmmword [rbp + 0xd0], xmm0
mov byte [rbp + 0xc0], 0
lea rax, [0x1400491b0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rdi
lea rdx, [rdi + 0x558]
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x100]
mov rcx, qword [rdi + 0x550]
call fcn.14003bc30
cmp dword [rdi + 0x308], 0
je 0x1400415ea
mov rax, qword [rdi + 0x320]
xchg dword [rax + 0x34], esi
jmp 0x140041652
mov ecx, SafeArrayGetElemsize
call fcn.140066550
test rax, rax
je 0x140041609
lea rcx, [0x140005a80]
mov qword [rax], rcx
mov qword [rax + 8], r12
jmp 0x14004160c
mov rax, rsi
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14001d960]
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 0x140041695
cmp dword [rdi + 0x308], 0
jne 0x14004168e
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rdi + 0x300], xmm1
lea rcx, [rbp + 0x100]
call fcn.14003e5e0
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140066410
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x58], esi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3