Function at 0x140017bb0
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 r12, rdx
mov r13, qword [rbp + 0x80]
cmp qword [r8], 0xffffffffffffffff
je 0x140017c4c
mov rax, qword [0x1401090d0]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x140017c15
mov rax, qword [0x1401090c8]
lea rcx, [0x1401090c8]
mov edx, 1
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x140017c1a
mov ecx, 3
mov qword [r13], 1
lea rax, [0x1401090c8]
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rcx
mov qword [r12 + 0x10], rcx
mov rax, qword [r13]
mov qword [r12], rax
mov rax, qword [r13 + 8]
mov qword [r12 + 8], rax
jmp 0x140017ed4
mov esi, r9d
mov rdi, r8
mov rbx, rcx
mov r8d, dword [rbp + 0x78]
mov r14d, dword [rbp + 0x70]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r9d
mov edx, r14d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140017cf6
mov r15, rax
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
cmp esi, 0x17
jne 0x140017cc1
mov dword [rbp - 0x30], 0
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x30]
mov rcx, r15
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov qword [rbp - 0x10], r15
mov rax, qword [rbx + 8]
mov rdx, qword [rax + 0x28]
mov rcx, r15
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x140017d1e
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
jmp 0x140017ddc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov rax, qword [0x140109180]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x140017d46
test esi, esi
setne al
jmp 0x140017d59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [0x140109180]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x140017d9f
test esi, esi
setne al
jmp 0x140017db2
mov rax, qword [0x140109178]
lea rcx, [0x140109178]
mov edx, esi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r13], esi
mov dword [r13 + 4], 0
lea rcx, [0x140109178]
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
mov ecx, dword [r13]
mov dword [r12], ecx
mov ecx, dword [r13 + 4]
mov dword [r12 + 4], ecx
mov rcx, qword [r13 + 8]
mov qword [r12 + 8], rcx
mov qword [r12 + 0x10], rax
jmp 0x140017ed4
mov rax, qword [0x140109178]
lea rcx, [0x140109178]
mov edx, esi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r13], esi
mov dword [r13 + 4], 0
lea rcx, [0x140109178]
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
test al, 1
jne 0x140017e8b
mov qword [rbp - 0x10], 0xffffffffffffffff
mov qword [rdi], r15
cmp r14d, 2
sete al
shl al, 5
cmp r14d, 1
movzx eax, al
mov ecx, select
cmovne ecx, eax
mov byte [rdi + 8], cl
mov ecx, 0x18
call fcn.14009fdc4
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 rsi, qword [rdi + 0x18]
mov qword [rdi + 0x18], rax
test rsi, rsi
je 0x140017e61
lock sub dword [rsi + 8], 1
jne 0x140017e61
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock sub dword [rsi + 0xc], 1
jne 0x140017e61
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + VariantCopy]
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
mov r15, qword [rbp - 0x10]
cmp r15, 0xffffffffffffffff
jne 0x140017eae
jmp 0x140017ed4
mov rax, qword [r13 + 0x10]
mov qword [r12 + 0x10], rax
mov eax, dword [r13]
mov dword [r12], eax
mov eax, dword [r13 + 4]
mov dword [r12 + 4], eax
mov rax, qword [r13 + 8]
mov qword [r12 + 8], rax
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov byte [rbp - 1], 0
lea rdx, [rbp - 1]
lea r9, [rbp - 0x30]
mov rcx, r15
mov r8b, 1
call fcn.14000ede0
mov rax, r12
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret