Function at 0x1401b1650
Capabilities:
Create tcp socket
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 - 0xa0]
sub rsp, 0x1a0
movzx r15d, r9w
mov r12, r8
mov r14, rdx
mov rsi, rcx
mov rcx, qword [rcx]
call fcn.1401af1a0
test al, al
jne 0x1401b1ca1
xor r13d, r13d
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], shutdown
mov byte [rbp - 0x58], r13b
lea edx, [r13 + 1]
mov ebx, 2
lea r8d, [r13 + 6]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401b1714
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x78]
call fcn.1401b2000
nop
mov r8, rax
lea rdx, str.socket_failed_
lea rcx, [rsp + 0x60]
call fcn.1400dbe30
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14003dbe0
lea rcx, [rsp + 0x60]
call fcn.14000a9e0
nop
lea rcx, [rbp - 0x78]
call fcn.14000a9e0
jmp 0x1401b1c28
mov qword [rbp + 0x10], rbx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1401b1775
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x78]
call fcn.1401b2000
nop
mov r8, rax
lea rdx, str.bind_failed_
lea rcx, [rsp + 0x60]
call fcn.1400dbe30
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14003dbe0
lea rcx, [rsp + 0x60]
call fcn.14000a9e0
nop
lea rcx, [rbp - 0x78]
jmp 0x1401b1c1a
mov dword [rsp + 0x50], 0x25a207b9
mov dword [rsp + 0x54], 0x4660ddf3
mov dword [rsp + 0x58], 0xe576e98e
mov dword [rsp + 0x5c], 0x3e06748c
mov dword [rbp + 0xd0], 8
cmp qword [0x1402f8500], 0
jne 0x1401b183a
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [0x1402f8500]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x50]
mov edx, 0xc8000006
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1401b183a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x78]
call fcn.1401b2000
nop
mov r8, rax
lea rdx, str.WSAIoctl_failed_
lea rcx, [rsp + 0x60]
call fcn.1400dbe30
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14003dbe0
lea rcx, [rsp + 0x60]
call fcn.14000a9e0
nop
lea rcx, [rbp - 0x78]
jmp 0x1401b1c1a
mov rcx, qword [rsi]
call fcn.1400d8ed0
mov rdx, rax
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rbx, rax
mov rcx, qword [rsi]
call fcn.1400d8ed0
cmp rbx, rax
je 0x1401b18a2
lea rcx, [rbp - 0x78]
call fcn.1401b23d0
nop
mov r8, rax
lea rdx, str.CreateIoCompletionPort_failed_
lea rcx, [rsp + 0x60]
call fcn.1400dbe30
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14003dbe0
lea rcx, [rsp + 0x60]
call fcn.14000a9e0
nop
lea rcx, [rbp - 0x78]
jmp 0x1401b1c1a
mov eax, 2
mov word [rbp - 0x78], ax
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x76], ax
mov rcx, r12
call fcn.1400eddb0
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x74], eax
mov qword [rbp + 0x78], r13
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8d, [r9 + 0x10]
lea rdx, [rbp - 0x78]
mov rcx, rdi
call qword [0x1402f8500]
cmp eax, 1
jne 0x1401b1911
lea rdx, str.ConnectEx_returned_immediately__which_is_not_supported.
lea rcx, [rbp - 0x58]
call fcn.1401b08a0
jmp 0x1401b1c1f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1401b195e
mov edx, eax
lea rcx, [rbp + 0x20]
call fcn.1401b2000
nop
mov r8, rax
lea rdx, str.ConnectEx_failed_
lea rcx, [rsp + 0x60]
call fcn.1400dbe30
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14003dbe0
lea rcx, [rsp + 0x60]
call fcn.14000a9e0
nop
lea rcx, [rbp + 0x20]
jmp 0x1401b1c1a
mov rcx, qword [rsi]
call fcn.1401aef80
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdi
mov byte [rbp + 0x90], 0
lea rax, [rbp + 0x60]
mov qword [rsi + 8], rax
mov rcx, qword [rsi]
call fcn.1401aef80
lea rbx, [rax + 0x70]
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_7a79f52411fc0b549beab9d6b67a5e4c___void___.0
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rsi
lea rax, [rbp - 0x38]
mov qword [rbp], rax
mov qword [rbp + 0x58], r13
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x38]
call qword [method.std::_Func_impl_no_alloc_class__lambda_7a79f52411fc0b549beab9d6b67a5e4c___void___.virtual_0]
mov r8, rax
mov qword [rbp + 0x58], rax
mov rcx, qword [rbp]
test rcx, rcx
je 0x1401b19e3
mov rax, qword [rcx]
lea rdx, [rbp - 0x38]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, r13
mov qword [rbp], rcx
mov r8, qword [rbp + 0x58]
mov r9, qword [rbx + 0x38]
test r9, r9
je 0x1401b1a35
mov rcx, r9
cmp r9, rbx
jne 0x1401b1a2d
mov rax, qword [r9]
lea rdx, [rbp - 0x38]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, rax
mov qword [rbp], rax
mov r8, qword [rbx + 0x38]
test r8, r8
je 0x1401b1a27
mov rax, qword [r8]
cmp r8, rbx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp]
mov r8, qword [rbp + 0x58]
jmp 0x1401b1a31
mov r8, qword [rbp + 0x58]
jmp 0x1401b1a35
mov qword [rbp], rcx
mov qword [rbx + 0x38], r13
test r8, r8
je 0x1401b1a76
lea rax, [rbp + 0x20]
cmp r8, rax
jne 0x1401b1a72
mov rax, qword [r8]
mov rdx, rbx
mov rcx, r8
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbx + 0x38], rax
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1401b1a6c
mov rax, qword [rcx]
lea rdx, [rbp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rbp]
jmp 0x1401b1a76
mov qword [rbx + 0x38], r8
test rcx, rcx
je 0x1401b1a8b
mov rax, qword [rcx]
lea rdx, [rbp - 0x38]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rsi]
call fcn.1401aec90
mov rcx, qword [rsi]
call fcn.1401aef80
lea rbx, [rax + 0x70]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1401b1ab8
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r13
mov qword [rsi + 8], r13
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0xc]
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
cmp eax, 1
je 0x1401b1b3c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e3
je 0x1401b1b26
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1401b2000
nop
mov r8, rax
lea rdx, str.ConnectEx_failed_
lea rcx, [rbp + 0x20]
call fcn.1400dbe30
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14003dbe0
lea rcx, [rbp + 0x20]
call fcn.14000a9e0
nop
jmp 0x1401b1c15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x1401b1c5c
jmp 0x1401b1cc8
mov dword [rbp - 0x80], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x80]
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1401b1bd8
mov r8, rdi
mov rdx, qword [rsi]
mov rcx, r14
call fcn.1401afd80
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1401b1bb4
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401b1baf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401b1baf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401dcf3c
mov rax, r14
lea r11, [rsp + 0x1a0]
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.WS2_32.dll_WSAGetLastError]
nop
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1401b2000
nop
mov r8, rax
lea rdx, str.setsockopt_failed_
lea rcx, [rbp + 0x20]
call fcn.1400dbe30
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14003dbe0
lea rcx, [rbp + 0x20]
call fcn.14000a9e0
nop
lea rcx, [rsp + 0x60]
call fcn.14000a9e0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
lea r8, [rbp - 0x58]
lea rdx, str.TcpConnector::connect_
lea rcx, [rbp - 0x38]
call fcn.14000e1c0
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400106b0
lea rdx, [0x1402ca490]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 0x20]
call fcn.1401b2000
nop
mov r8, rax
lea rdx, str.TcpConnector::connect__closesocket_failed_
lea rcx, [rbp - 0x38]
call fcn.1400dbe30
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400106b0
lea rdx, [0x1402ca490]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x78]
call fcn.140194c00
lea rdx, [0x1402cad98]
lea rcx, [rbp - 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
call fcn.140194c00
lea rdx, [0x1402cad98]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3