Function at 0x14001a040
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 r13, qword [rbp + 0x80]
cmp qword [r8], 0xffffffffffffffff
je 0x14001a0d9
mov rax, qword [0x14015f008]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001a0a5
mov rax, qword [section..data]
lea rcx, section..data
mov edx, 1
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14001a0aa
mov ecx, 3
mov qword [r13], 1
lea rax, section..data
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rcx
mov qword [rsi + 0x10], rcx
mov rax, qword [r13]
mov qword [rsi], rax
mov rax, qword [r13 + 8]
mov qword [rsi + 8], rax
jmp 0x14001a350
mov r12d, r9d
mov rdi, r8
mov r15, 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 0x14001a180
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
cmp r12d, 0x17
jne 0x14001a14f
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
je 0x14001a1a8
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
jmp 0x14001a263
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14001a1d2
test edi, edi
setne al
jmp 0x14001a1e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14001a225
test r15d, r15d
setne al
jmp 0x14001a239
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, edi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r13], edi
mov dword [r13 + 4], 0
lea rcx, [0x14015f248]
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
mov ecx, dword [r13]
mov dword [rsi], ecx
mov ecx, dword [r13 + 4]
mov dword [rsi + 4], ecx
mov rcx, qword [r13 + 8]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x14001a350
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, r15d
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r13], r15d
mov dword [r13 + 4], 0
lea rcx, [0x14015f248]
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
test al, 1
jne 0x14001a30d
mov qword [rbp - 0x10], 0xffffffffffffffff
mov qword [rdi], rbx
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.1400551c0
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 0x14001a2e6
lock dec dword [rbx + 8]
jne 0x14001a2e6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x14001a2e6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rbx, qword [rbp - 0x10]
cmp rbx, 0xffffffffffffffff
jne 0x14001a32a
jmp 0x14001a350
mov rax, qword [r13 + 0x10]
mov qword [rsi + 0x10], rax
mov eax, dword [r13]
mov dword [rsi], eax
mov eax, dword [r13 + 4]
mov dword [rsi + 4], eax
mov rax, qword [r13 + 8]
mov qword [rsi + 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, rbx
mov r8b, 1
call fcn.14000ed20
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret