Function at 0x1400562ac
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 [0x140093028]
xor rax, rsp
mov qword [rbp - 9], rax
mov eax, r9d
mov dword [rbp - 0x29], eax
mov r13, r8
mov r14, rdx
mov qword [rbp - 0x69], rcx
mov r12d, dword [rbp + 0x6f]
mov r8d, dword [rbp + 0x77]
mov rdi, qword [rbp + 0x7f]
xor ebx, ebx
lea esi, [rbx + 1]
cmp qword [r13], 0xffffffffffffffff
je 0x140056364
mov dword [rbp - 0x45], ebx
movabs rdx, 0x4d54ee85da812030
mov rcx, qword [0x140093070]
add rcx, rdx
lea rbx, str._b_b_
cmp rcx, rsi
jbe 0x14005632f
mov rax, qword [str._b_b_]
mov edx, esi
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140056332
mov al, sil
movzx eax, al
add rax, 2
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x49], esi
mov qword [rbp - 0x41], rbx
movups xmm1, xmmword [rbp - 0x49]
movups xmmword [rdi], xmm1
movsd xmm0, qword [rbp - 0x39]
movsd qword [rdi + 0x10], xmm0
movups xmmword [r14], xmm1
movsd qword [r14 + 0x10], xmm0
jmp 0x14005658e
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov edx, r12d
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r15, rax
cmp rax, 0xffffffffffffffff
sete dl
mov rcx, rdi
call fcn.140055b8c
cmp r15, 0xffffffffffffffff
jne 0x140056397
or r15, r15
jmp 0x1400563bf
cmp dword [rbp - 0x29], 0x17
jne 0x1400563bf
mov dword [rbp - 0x29], ebx
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x29]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
cmp r15, 0xffffffffffffffff
jne 0x1400563dc
movups xmm0, xmmword [rdi]
movups xmmword [r14], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [r14 + 0x10], xmm1
jmp 0x14005658e
mov rdx, qword [rbp - 0x69]
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 0x14005646e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
mov dword [rbp - 0x5d], ebx
movabs rdx, 0x4d54ee85da812030
add rdx, qword [0x140093510]
lea r9, str.Xb_b_
cmp rdx, rsi
jbe 0x140056441
mov rcx, qword [str.Xb_b_]
mov r8, qword [rcx + 0x30]
mov edx, eax
mov rcx, r9
call r8
lea r9, str.Xb_b_
jmp 0x140056446
test eax, eax
setne al
movzx eax, al
add rax, 2
mov qword [rbp - 0x51], rax
mov eax, dword [rbp - 0x69]
mov dword [rbp - 0x61], eax
mov qword [rbp - 0x59], r9
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rdi], xmm0
movsd xmm1, qword [rbp - 0x51]
movsd qword [rdi + 0x10], xmm1
jmp 0x140056486
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], rbx
movups xmmword [rdi], xmm0
movsd xmm0, qword [rbp - 0x51]
movsd qword [rdi + 0x10], xmm0
movups xmm1, xmmword [rdi]
movups xmmword [rbp - 0x21], xmm1
movsd xmm0, qword [rdi + 0x10]
movsd qword [rbp - 0x11], xmm0
test byte [rbp - 0x11], sil
je 0x1400564e5
cmp qword [rbp - 0x11], rsi
jne 0x1400564b0
movd eax, xmm1
test eax, eax
setne al
test al, al
je 0x1400564e5
movups xmmword [r14], xmm1
movsd xmm1, qword [rdi + 0x10]
movsd qword [r14 + 0x10], xmm1
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rbx
mov byte [rbp - 0x71], bl
lea r9, [rbp - 0x21]
mov r8b, sil
lea rdx, [rbp - 0x71]
mov rcx, r15
call fcn.140055c3c
jmp 0x14005658e
or qword [rbp - 0x69], 0xffffffffffffffff
mov qword [r13], r15
sub r12d, 1
je 0x140056507
cmp r12d, 1
je 0x140056500
mov byte [r13 + 8], bl
jmp 0x14005650c
mov byte [r13 + 8], 0x20
jmp 0x14005650c
mov byte [r13 + 8], select
mov ecx, 0x18
call fcn.140069794
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], esi
mov dword [rax + 0xc], esi
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 [r13 + 0x10], rbx
mov rsi, qword [r13 + 0x18]
mov qword [r13 + 0x18], rax
test rsi, rsi
je 0x140056570
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140056570
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x140056570
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + VariantCopy]
xorps xmm1, xmm1
mov qword [rbp - 0x11], rbx
movups xmmword [rdi], xmm1
movsd xmm0, qword [rbp - 0x11]
movsd qword [rdi + 0x10], xmm0
movups xmmword [r14], xmm1
movsd qword [r14 + 0x10], xmm0
mov rax, r14
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.140069020
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret