Function at 0x140008ce0
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 [0x140028040]
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 0x140008d8a
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140029510], eax
jle 0x140008d69
lea rcx, [0x140029510]
call fcn.14001ce34
cmp dword [0x140029510], 0xffffffff
jne 0x140008d69
lea rcx, [0x14001e820]
call fcn.14001cdb0
lea rcx, [0x140029510]
call fcn.14001cdc8
mov dword [rbp - 0x28], 1
lea rax, [0x1400280e8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
movups xmmword [rsi], xmm0
jmp 0x140008fd8
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 0x140008de8
xor eax, eax
mov dword [rdi], eax
cmp r13d, 0x17
jne 0x140008de0
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 0x140008e51
mov r13d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rcx + r13]
cmp dword [0x140029514], eax
jle 0x140008e33
lea rcx, [0x140029514]
call fcn.14001ce34
cmp dword [0x140029514], r14d
jne 0x140008e33
lea rcx, [0x14001e810]
call fcn.14001cdb0
lea rcx, [0x140029514]
call fcn.14001cdc8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x28], eax
lea rax, [0x1400280d8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
mov r12, r14
cmp r12, 0xffffffffffffffff
jne 0x140008e5f
movups xmm0, xmmword [rdi]
jmp 0x140008fd5
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, [0x1400280c8]
test rax, rax
jne 0x140008ef1
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 [0x140029514], edx
jle 0x140008ed4
lea rcx, [0x140029514]
call fcn.14001ce34
cmp dword [0x140029514], 0xffffffff
jne 0x140008ed4
lea rcx, [0x14001e810]
call fcn.14001cdb0
lea rcx, [0x140029514]
call fcn.14001cdc8
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x28], eax
lea rax, [0x1400280d8]
mov qword [rbp - 0x20], rax
xor r13d, r13d
lea rcx, [0x1400280c8]
jmp 0x140008efc
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 0x140008f30
movups xmmword [rsi], xmm0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], rcx
mov byte [rbp - 0x38], 0
lea r9, [rbp - 0x28]
lea rdx, [rbp - 0x38]
mov rcx, r12
call fcn.140007710
jmp 0x140008fd8
mov qword [rbp - 0x30], r14
mov qword [r15], r12
sub ebx, 1
je 0x140008f4f
cmp ebx, 1
je 0x140008f48
mov byte [r15 + 8], 0
jmp 0x140008f54
mov byte [r15 + 8], 0x20
jmp 0x140008f54
mov byte [r15 + 8], select
mov ecx, 0x18
call fcn.14001ca40
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 0x140008fbf
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140008fbf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140008fbf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov dword [rbp - 0x28], r13d
lea rax, [0x1400280c8]
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.14001ca20
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret