Function at 0x1400533a0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rdx
mov r13, qword [rbp + 0x80]
cmp qword [r8], 0xffffffffffffffff
je 0x140053439
mov rax, qword [0x1400be008]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x140053405
mov rax, qword [section..data]
lea rcx, section..data
mov edx, 1
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14005340a
mov ecx, 3
mov qword [r13], 1
lea rax, section..data
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rcx
mov qword [rsi + 0x10], rcx
mov rax, qword [r13]
mov qword [rsi], rax
mov rax, qword [r13 + 8]
mov qword [rsi + 8], rax
jmp 0x1400536b9
mov r12d, r9d
mov rdi, r8
mov r15, rcx
mov r8d, dword [rbp + 0x78]
mov r14d, dword [rbp + 0x70]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r9d
mov edx, r14d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400534e4
mov rbx, rax
vxorps xmm0, xmm0, xmm0
vmovups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
cmp r12d, 0x17
jne 0x1400534b1
mov dword [rbp - 0x30], 0
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x30]
mov rcx, rbx
mov edx, 0x29
mov r8d, 0x1b
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [r15 + 8]
mov rdx, qword [rax + 0x28]
mov rcx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x14005350c
vxorps xmm0, xmm0, xmm0
vmovups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
jmp 0x1400535c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rax, qword [0x1400c1358]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x140053536
test edi, edi
setne al
jmp 0x140053549
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [0x1400c1358]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x140053589
test r15d, r15d
setne al
jmp 0x14005359d
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, edi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r13], edi
mov dword [r13 + 4], 0
lea rcx, [0x1400c1350]
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
mov ecx, dword [r13]
mov dword [rsi], ecx
mov ecx, dword [r13 + 4]
mov dword [rsi + 4], ecx
mov rcx, qword [r13 + 8]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400536b9
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, r15d
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r13], r15d
mov dword [r13 + 4], 0
lea rcx, [0x1400c1350]
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
test al, 1
jne 0x140053674
mov qword [rbp - 0x10], 0xffffffffffffffff
mov qword [rdi], rbx
cmp r14d, 2
sete al
shl al, 5
cmp r14d, 1
movzx eax, al
mov ecx, 0x10
cmovne ecx, eax
mov byte [rdi + 8], cl
mov ecx, 0x18
call fcn.14006e254
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
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], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 0x18]
mov qword [rdi + 0x18], rax
test rbx, rbx
je 0x14005364a
lock dec dword [rbx + 8]
jne 0x14005364a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x14005364a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
vxorps xmm0, xmm0, xmm0
vmovups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
vmovups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rbx, qword [rbp - 0x10]
cmp rbx, 0xffffffffffffffff
jne 0x140053691
jmp 0x1400536b9
mov rax, qword [r13 + 0x10]
mov qword [rsi + 0x10], rax
mov eax, dword [r13]
mov dword [rsi], eax
mov eax, dword [r13 + 4]
mov dword [rsi + 4], eax
mov rax, qword [r13 + 8]
mov qword [rsi + 8], rax
vxorps xmm0, xmm0, xmm0
vmovaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov byte [rbp - 1], 0
lea rdx, [rbp - 1]
lea r9, [rbp - 0x30]
mov rcx, rbx
mov r8b, 1
call fcn.140052b60
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret