Function at 0x140005390
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13d, r9d
mov r15, r8
mov rsi, rdx
mov qword [rbp - 0x30], rcx
mov ebx, dword [rbp + 0x68]
mov r8d, dword [rbp + 0x70]
mov rdi, qword [rbp + 0x78]
cmp qword [r15], 0xffffffffffffffff
je 0x14000543a
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14001f4b0], eax
jle 0x140005419
lea rcx, [0x14001f4b0]
call fcn.14001277c
cmp dword [0x14001f4b0], 0xffffffff
jne 0x140005419
lea rcx, [0x140014360]
call fcn.140012a58
lea rcx, [0x14001f4b0]
call fcn.140012710
mov dword [rbp - 0x28], 1
lea rax, [0x14001e0e8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
movups xmmword [rsi], xmm0
jmp 0x14000568b
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, ebx
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r12, rax
mov r14, 0xffffffffffffffff
cmp rax, r14
je 0x140005498
xor eax, eax
mov dword [rdi], eax
cmp r13d, 0x17
jne 0x140005490
mov dword [rbp - 0x18], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x18]
lea edx, [rax + 0x29]
lea r8d, [r14 + 0x1c]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r13d, 4
jmp 0x140005501
mov r13d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rcx + r13]
cmp dword [0x14001f4b4], eax
jle 0x1400054e3
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], r14d
jne 0x1400054e3
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x28], eax
lea rax, [0x14001e0c8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
mov r12, r14
cmp r12, 0xffffffffffffffff
jne 0x14000550f
movups xmm0, xmmword [rdi]
jmp 0x140005688
mov rdx, qword [rbp - 0x30]
mov rdx, qword [rdx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
lea rcx, [0x14001e0d8]
test rax, rax
jne 0x1400055a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov rdx, qword gs:[0x58]
mov r8, qword [rdx]
mov edx, dword [r8 + r13]
cmp dword [0x14001f4b4], edx
jle 0x140005584
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140005584
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x28], eax
lea rax, [0x14001e0c8]
mov qword [rbp - 0x20], rax
xor r13d, r13d
lea rcx, [0x14001e0d8]
jmp 0x1400055ac
xor r13d, r13d
mov dword [rbp - 0x28], r13d
mov qword [rbp - 0x20], rcx
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
cmp dword [rdi], 0
je 0x1400055e3
movups xmmword [rsi], xmm0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], rcx
mov byte [rbp - 0x38], 0
lea r9, [rbp - 0x28]
mov r8b, 1
lea rdx, [rbp - 0x38]
mov rcx, r12
call fcn.140003b80
jmp 0x14000568b
mov qword [rbp - 0x30], r14
mov qword [r15], r12
sub ebx, 1
je 0x140005602
cmp ebx, 1
je 0x1400055fb
mov byte [r15 + 8], 0
jmp 0x140005607
mov byte [r15 + 8], 0x20
jmp 0x140005607
mov byte [r15 + 8], select
mov ecx, 0x18
call fcn.1400127f4
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, vtable.std::_Ref_count_resource_void____ptr64__struct_asio::detail::socket_ops::noop_deleter_.0
mov qword [rax], rcx
mov qword [rax + 0x10], r13
mov qword [r15 + 0x10], r13
mov rbx, qword [r15 + 0x18]
mov qword [r15 + 0x18], rax
test rbx, rbx
je 0x140005672
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140005672
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140005672
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov dword [rbp - 0x28], r13d
lea rax, [0x14001e0d8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
movups xmmword [rsi], xmm0
mov rax, rsi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400126f0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret