Function at 0x140005188
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x98
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov eax, r9d
mov dword [rbp - 0x31], eax
mov r12, r8
mov r14, rdx
mov qword [rbp - 0x41], rcx
mov r13d, dword [rbp + 0x6f]
mov r8d, dword [rbp + 0x77]
mov rsi, qword [rbp + 0x7f]
xor ebx, ebx
lea edi, [rbx + 1]
cmp qword [r12], 0xffffffffffffffff
je 0x140005240
mov dword [rbp - 0x55], ebx
movabs rdx, 0x4d54ee85da812030
mov rcx, qword [0x14001d070]
add rcx, rdx
lea rbx, [0x14001d068]
cmp rcx, rdi
jbe 0x14000520b
mov rax, qword [0x14001d068]
mov edx, edi
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14000520e
mov al, dil
movzx eax, al
add rax, 2
mov qword [rbp - 0x49], rax
mov dword [rbp - 0x59], edi
mov qword [rbp - 0x51], rbx
movups xmm1, xmmword [rbp - 0x59]
movups xmmword [rsi], xmm1
movsd xmm0, qword [rbp - 0x49]
movsd qword [rsi + 0x10], xmm0
movups xmmword [r14], xmm1
movsd qword [r14 + 0x10], xmm0
jmp 0x14000546d
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov edx, r13d
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
sete dl
mov rcx, rsi
call fcn.140004bb0
cmp r15, 0xffffffffffffffff
jne 0x140005273
or r15, r15
jmp 0x14000529b
cmp dword [rbp - 0x31], 0x17
jne 0x14000529b
mov dword [rbp - 0x31], ebx
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x31]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
cmp r15, 0xffffffffffffffff
jne 0x1400052b8
movups xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
movsd xmm1, qword [rsi + 0x10]
movsd qword [r14 + 0x10], xmm1
jmp 0x14000546d
mov rdx, qword [rbp - 0x41]
mov rdx, qword [rdx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x14000534a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x41], eax
mov dword [rbp - 0x55], ebx
movabs rdx, 0x4d54ee85da812030
add rdx, qword [0x14001d0e0]
lea r9, [0x14001d0d8]
cmp rdx, rdi
jbe 0x14000531d
mov rcx, qword [0x14001d0d8]
mov r8, qword [rcx + 0x30]
mov edx, eax
mov rcx, r9
call r8
lea r9, [0x14001d0d8]
jmp 0x140005322
test eax, eax
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x49], rax
mov eax, dword [rbp - 0x41]
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x51], r9
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [rsi + 0x10], xmm1
jmp 0x140005362
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], rbx
movups xmmword [rsi], xmm0
movsd xmm0, qword [rbp - 0x49]
movsd qword [rsi + 0x10], xmm0
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x29], xmm0
movsd xmm1, qword [rsi + 0x10]
movsd qword [rbp - 0x19], xmm1
test byte [rbp - 0x19], dil
je 0x1400053be
cmp qword [rbp - 0x19], rdi
jne 0x140005389
cmp dword [rbp - 0x29], ebx
setne al
test al, al
je 0x1400053be
movups xmmword [r14], xmm0
movsd xmm1, qword [rsi + 0x10]
movsd qword [r14 + 0x10], xmm1
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rbx
mov byte [rbp - 0x61], bl
lea r9, [rbp - 0x29]
mov r8b, dil
lea rdx, [rbp - 0x61]
mov rcx, r15
call fcn.140004c60
jmp 0x14000546d
or qword [rbp - 0x41], 0xffffffffffffffff
mov qword [r12], r15
sub r13d, 1
je 0x1400053e2
cmp r13d, 1
je 0x1400053da
mov byte [r12 + 8], bl
jmp 0x1400053e8
mov byte [r12 + 8], 0x20
jmp 0x1400053e8
mov byte [r12 + 8], setsockopt
mov ecx, 0x18
call fcn.140011290
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
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], rbx
mov qword [r12 + 0x10], rbx
mov rdi, qword [r12 + 0x18]
mov qword [r12 + 0x18], rax
test rdi, rdi
je 0x14000544f
or eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000544f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14000544f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + ioctlsocket]
xorps xmm1, xmm1
mov qword [rbp - 0x19], rbx
movups xmmword [rsi], xmm1
movsd xmm0, qword [rbp - 0x19]
movsd qword [rsi + 0x10], xmm0
movups xmmword [r14], xmm1
movsd qword [r14 + 0x10], xmm0
mov rax, r14
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.140011270
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret