Function at 0x140006250
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, 0xa8
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rbp - 9], rax
mov eax, r9d
mov dword [rbp - 0x29], eax
mov r12, r8
mov rsi, rdx
mov qword [rbp - 0x69], rcx
mov edi, dword [rbp + 0x6f]
mov r8d, dword [rbp + 0x77]
mov rbx, qword [rbp + 0x7f]
xor r14d, r14d
cmp qword [r12], 0xffffffffffffffff
je 0x140006307
mov dword [rbp - 0x5d], r14d
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x1400120c0]
lea rdi, [0x1400120b8]
cmp rcx, 1
jbe 0x1400062d1
lea edx, [r14 + 1]
mov rcx, rdi
mov rax, qword [0x1400120b8]
call qword [rax + 0x30]
jmp 0x1400062d3
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x61], 1
mov qword [rbp - 0x59], rdi
movups xmm2, xmmword [rbp - 0x61]
movups xmmword [rbx], xmm2
movsd xmm1, qword [rbp - 0x51]
movsd qword [rbx + 0x10], xmm1
movups xmmword [rsi], xmm2
movsd qword [rsi + 0x10], xmm1
jmp 0x1400065b7
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov edx, edi
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r13, rax
mov r15, 0xffffffffffffffff
cmp rax, r15
je 0x140006375
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r14
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x51]
movsd qword [rbx + 0x10], xmm0
cmp dword [rbp - 0x29], 0x17
jne 0x1400063e3
mov dword [rbp - 0x29], r14d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x29]
lea edx, [r15 + 0x2a]
lea r8d, [r15 + 0x1c]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x1400063e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r13d, eax
mov dword [rbp - 0x5d], r14d
movabs rdx, 0x4d54ee85da812030
add rdx, qword [0x140012130]
cmp rdx, 1
jbe 0x1400063af
mov edx, eax
lea rcx, [0x140012128]
mov r8, qword [0x140012128]
call qword [r8 + 0x30]
jmp 0x1400063b5
test r13d, r13d
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x61], r13d
lea rax, [0x140012128]
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [rbx + 0x10], xmm1
mov r13, r15
cmp r13, 0xffffffffffffffff
jne 0x1400063f9
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbx + 0x10]
jmp 0x1400065b2
mov rdx, qword [rbp - 0x69]
mov rdx, qword [rdx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x140006491
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov dword [rbp - 0x69], eax
mov dword [rbp - 0x45], r14d
mov rdx, qword [0x140012130]
movabs rax, 0x4d54ee85da812030
add rdx, rax
cmp rdx, 1
jbe 0x14000645e
mov edx, r8d
lea rcx, [0x140012128]
mov r8, qword [0x140012128]
call qword [r8 + 0x30]
mov r8d, dword [rbp - 0x69]
jmp 0x140006464
test r8d, r8d
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x49], r8d
lea rax, [0x140012128]
mov qword [rbp - 0x41], rax
movups xmm0, xmmword [rbp - 0x49]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rbp - 0x39]
movsd qword [rbx + 0x10], xmm1
jmp 0x1400064a9
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r14
movups xmmword [rbx], xmm0
movsd xmm0, qword [rbp - 0x39]
movsd qword [rbx + 0x10], xmm0
movups xmm1, xmmword [rbx]
movups xmmword [rbp - 0x21], xmm1
movsd xmm0, qword [rbx + 0x10]
movsd qword [rbp - 0x11], xmm0
test byte [rbp - 0x11], 1
je 0x140006505
cmp qword [rbp - 0x11], 1
jne 0x1400064d4
movd eax, xmm1
test eax, eax
setne al
test al, al
je 0x140006505
movups xmmword [rsi], xmm1
movsd xmm1, qword [rbx + 0x10]
movsd qword [rsi + 0x10], xmm1
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r14
mov byte [rbp - 0x71], 0
lea r9, [rbp - 0x21]
lea rdx, [rbp - 0x71]
mov rcx, r13
call fcn.1400047f0
jmp 0x1400065b7
mov qword [rbp - 0x69], r15
mov qword [r12], r13
sub edi, 1
je 0x140006527
cmp edi, 1
je 0x14000651f
mov byte [r12 + 8], 0
jmp 0x14000652d
mov byte [r12 + 8], 0x20
jmp 0x14000652d
mov byte [r12 + 8], select
mov ecx, 0x18
call fcn.14000a608
mov qword [rbp - 0x31], 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_boost::asio::detail::socket_ops::noop_deleter_.0
mov qword [rax], rcx
mov qword [rax + 0x10], r14
mov qword [r12 + 0x10], r14
mov rdi, qword [r12 + 0x18]
mov qword [r12 + 0x18], rax
test rdi, rdi
je 0x14000659b
mov eax, r15d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000659b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], r15d
cmp r15d, 1
jne 0x14000659b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
xorps xmm2, xmm2
mov qword [rbp - 0x11], r14
movups xmmword [rbx], xmm2
movsd xmm1, qword [rbp - 0x11]
movsd qword [rbx + 0x10], xmm1
movups xmmword [rsi], xmm2
movsd qword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14000a570
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret