Function at 0x14017b140
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov qword [rbp + 0x98], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movzx r15d, r9w
mov r12, r8
mov r14, rdx
mov rsi, rcx
mov rcx, qword [rcx]
call fcn.1401785f0
test al, al
jne 0x14017b713
movdqa xmm0, xmmword [0x140256c60]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], al
mov edx, 1
mov ebx, 2
lea r8d, [rdx + 5]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14017b208
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14017b830
nop
mov r8, rax
lea rdx, str.socket_failed_
lea rcx, [rsp + 0x50]
call fcn.14009e830
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14008e9f0
lea rcx, [rsp + 0x50]
call fcn.140021000
nop
lea rcx, [rbp - 0x80]
call fcn.140021000
jmp 0x14017b7e4
mov qword [rbp - 0x30], rbx
xor r13d, r13d
lea r8d, [r13 + 0x10]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14017b26a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14017b830
nop
mov r8, rax
lea rdx, str.bind_failed_
lea rcx, [rsp + 0x50]
call fcn.14009e830
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14008e9f0
lea rcx, [rsp + 0x50]
call fcn.140021000
nop
lea rcx, [rbp - 0x80]
jmp 0x14017b7d6
mov dword [rsp + 0x70], 0x25a207b9
mov dword [rsp + 0x74], 0x4660ddf3
mov dword [rsp + 0x78], 0xe576e98e
mov dword [rsp + 0x7c], 0x3e06748c
mov dword [rbp + 0xd0], 8
cmp qword [0x14035dc80], r13
jne 0x14017b32e
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, [0x14035dc80]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x70]
mov edx, 0xc8000006
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14017b32e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14017b830
nop
mov r8, rax
lea rdx, str.WSAIoctl_failed_
lea rcx, [rsp + 0x50]
call fcn.14009e830
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14008e9f0
lea rcx, [rsp + 0x50]
call fcn.140021000
nop
lea rcx, [rbp - 0x80]
jmp 0x14017b7d6
mov rcx, qword [rsi]
call fcn.1400653b0
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.1400653b0
cmp rbx, rax
je 0x14017b396
lea rcx, [rbp - 0x80]
call fcn.14017bc00
nop
mov r8, rax
lea rdx, str.CreateIoCompletionPort_failed_
lea rcx, [rsp + 0x50]
call fcn.14009e830
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14008e9f0
lea rcx, [rsp + 0x50]
call fcn.140021000
nop
lea rcx, [rbp - 0x80]
jmp 0x14017b7d6
mov eax, 2
mov word [rbp - 0x80], ax
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x7e], ax
mov rcx, r12
call fcn.14012e840
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x7c], eax
mov qword [rbp + 0x78], r13
mov rax, qword [0x14035dc80]
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8d, [r9 + 0x10]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call rax
cmp eax, 1
jne 0x14017b408
lea rdx, str.ConnectEx_returned_immediately__which_is_not_supported.
lea rcx, [rbp - 0x58]
call fcn.14017b050
jmp 0x14017b7db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x14017b455
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.14017b830
nop
mov r8, rax
lea rdx, str.ConnectEx_failed_
lea rcx, [rsp + 0x50]
call fcn.14009e830
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14008e9f0
lea rcx, [rsp + 0x50]
call fcn.140021000
nop
lea rcx, [rbp - 0x20]
jmp 0x14017b7d6
mov rcx, qword [rsi]
call fcn.1401782d0
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdi
mov byte [rbp + 0x90], r13b
lea rax, [rbp + 0x60]
mov qword [rsi + 8], rax
mov rcx, qword [rsi]
call fcn.1401782d0
mov rbx, rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_05ea5297a8090ea68f48009bbb43a491___void___.0
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rsi
lea rax, [rbp + 0x20]
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x18], r13
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x20]
call qword [method.std::_Func_impl_no_alloc_class__lambda_05ea5297a8090ea68f48009bbb43a491___void___.virtual_0]
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14017b4cf
mov rax, qword [rcx]
lea rdx, [rbp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x58], r13
lea rdx, [rbx + 0x70]
lea rcx, [rbp + 0x20]
call fcn.14003ab60
lea rdx, [rbp - 0x20]
lea rcx, [rbx + 0x70]
call fcn.14003ab60
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14017b503
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14017b51c
mov rax, qword [rcx]
lea rdx, [rbp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rsi]
call fcn.140177fa0
mov rcx, qword [rsi]
call fcn.1401782d0
lea rbx, [rax + 0x70]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14017b549
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 - 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x34]
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
cmp eax, 1
je 0x14017b5cd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e3
je 0x14017b5b7
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14017b830
nop
mov r8, rax
lea rdx, str.ConnectEx_failed_
lea rcx, [rbp - 0x20]
call fcn.14009e830
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14008e9f0
lea rcx, [rbp - 0x20]
call fcn.140021000
nop
jmp 0x14017b7d1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x14017b688
jmp 0x14017b73b
mov rcx, rdi
cmp byte [rbp + 0x90], 0
je 0x14017b5ec
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x14017b6ce
jmp 0x14017b768
mov dword [rbp - 0x60], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x60]
mov edx, 0xffff
mov r8d, 0x7010
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14017b795
mov r8, rdi
mov rdx, qword [rsi]
mov rcx, r14
call fcn.14017a1f0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14017b65e
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017b659
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14017b682
call fcn.1401de460
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 fcn.140205adc
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov edx, eax
lea rcx, [rbp - 0x20]
call fcn.14017b830
nop
mov r8, rax
lea rdx, str.TcpConnector::connect__closesocket_failed_
lea rcx, [rbp + 0x20]
call fcn.14009e830
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400ac290
lea rdx, [0x14033f5a0]
lea rcx, [rsp + 0x50]
call fcn.1401fbcb4
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 0x20]
call fcn.14017b830
nop
mov r8, rax
lea rdx, str.TcpConnector::connect__closesocket_failed_
lea rcx, [rbp - 0x20]
call fcn.14009e830
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400ac290
lea rdx, [0x14033f5a0]
lea rcx, [rsp + 0x50]
call fcn.1401fbcb4
nop
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x80]
call fcn.140179a00
lea rdx, [0x140340ed0]
lea rcx, [rbp - 0x80]
call fcn.1401fbcb4
nop
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call fcn.140179a00
lea rdx, [0x140340ed0]
lea rcx, [rsp + 0x50]
call fcn.1401fbcb4
int3
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call fcn.140179a00
lea rdx, [0x140340ed0]
lea rcx, [rsp + 0x50]
call fcn.1401fbcb4
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14017b830
nop
mov r8, rax
lea rdx, str.setsockopt_failed_
lea rcx, [rbp - 0x20]
call fcn.14009e830
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14008e9f0
lea rcx, [rbp - 0x20]
call fcn.140021000
nop
lea rcx, [rsp + 0x50]
call fcn.140021000
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
lea r8, [rbp - 0x58]
lea rdx, str.TcpConnector::connect_
lea rcx, [rbp + 0x20]
call fcn.14001c560
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400ac290
lea rdx, [0x14033f5a0]
lea rcx, [rsp + 0x50]
call fcn.1401fbcb4
int3