Function at 0x14001a6b0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rdx
mov r14, qword [rbp + 0x80]
cmp qword [r8], 0xffffffffffffffff
je 0x14001a747
mov rax, qword [0x140032660]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001a715
mov rax, qword [0x140032658]
lea rcx, [0x140032658]
mov edx, 1
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14001a71a
mov ecx, 3
mov qword [r14], 1
lea rax, [0x140032658]
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rcx
mov qword [rsi + 0x10], rcx
mov rax, qword [r14]
mov qword [rsi], rax
mov rax, qword [r14 + 8]
mov qword [rsi + 8], rax
jmp 0x14001aa18
mov r12d, r9d
mov rdi, r8
mov r15, rcx
mov r8d, dword [rbp + 0x78]
mov edx, dword [rbp + 0x70]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r9d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14001a794
mov rbx, rax
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x14001a7c3
cmp rax, 1
jne 0x14001a7cc
lea r13, [0x1400326e0]
jmp 0x14001a7d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rax, qword [0x1400325d0]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14001a89a
test edi, edi
setne al
jmp 0x14001a8ad
lea r13, [0x1400325c8]
jmp 0x14001a7d0
mov r13, qword [r14 + 8]
mov rcx, qword [r13 + 8]
shr rcx, 1
mov eax, 2
movabs rdx, 0x595588bd12bf6fe8
cmp rcx, rdx
je 0x14001a7fe
mov rax, qword [r13]
mov rcx, r13
xor edx, edx
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov qword [r14], 0
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], rax
cmp r12d, 0x17
jne 0x14001a83a
mov dword [rbp - 0x30], 0
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x30]
mov rcx, rbx
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [r15 + 8]
mov rdx, qword [rax + 0x28]
mov rcx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
mov r12d, dword [rbp + 0x70]
je 0x14001a870
vxorps xmm0, xmm0, xmm0
vmovups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x14001a928
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [0x1400325d0]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14001a8eb
test r15d, r15d
setne al
jmp 0x14001a8ff
mov rax, qword [0x1400325c8]
lea rcx, [0x1400325c8]
mov edx, edi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r14], edi
mov dword [r14 + 4], 0
lea rcx, [0x1400325c8]
mov qword [r14 + 8], rcx
mov qword [r14 + 0x10], rax
mov ecx, dword [r14]
mov dword [rsi], ecx
mov ecx, dword [r14 + 4]
mov dword [rsi + 4], ecx
mov rcx, qword [r14 + 8]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x14001aa18
mov rax, qword [0x1400325c8]
lea rcx, [0x1400325c8]
mov edx, r15d
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r14], r15d
mov dword [r14 + 4], 0
lea rcx, [0x1400325c8]
mov qword [r14 + 8], rcx
mov qword [r14 + 0x10], rax
test al, 1
jne 0x14001a9d4
mov qword [rbp - 0x10], 0xffffffffffffffff
mov qword [rdi], rbx
cmp r12d, 2
sete al
shl al, 5
cmp r12d, 1
movzx eax, al
mov ecx, select
cmovne ecx, eax
mov byte [rdi + 8], cl
mov ecx, 0x18
call fcn.14001d8c0
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, vtable.std::_Ref_count_resource_void____ptr64__struct_boost::asio::detail::socket_ops::noop_deleter_.0
mov qword [rax], rcx
mov qword [rax + 0x10], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 0x18]
mov qword [rdi + 0x18], rax
test rbx, rbx
je 0x14001a9ab
lock dec dword [rbx + 8]
jne 0x14001a9ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x14001a9ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
vxorps xmm0, xmm0, xmm0
vmovups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
vmovups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rbx, qword [rbp - 0x10]
cmp rbx, 0xffffffffffffffff
jne 0x14001a9f0
jmp 0x14001aa18
mov rax, qword [r14 + 0x10]
mov qword [rsi + 0x10], rax
mov eax, dword [r14]
mov dword [rsi], eax
mov eax, dword [r14 + 4]
mov dword [rsi + 4], eax
mov rax, qword [r14 + 8]
mov qword [rsi + 8], rax
vxorps xmm0, xmm0, xmm0
vmovaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov byte [rbp - 1], 0
lea rdx, [rbp - 1]
lea r9, [rbp - 0x30]
mov rcx, rbx
mov r8b, 1
call fcn.140019520
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret