Function at 0x1400053b0
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 [0x14001f040]
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 0x14000545a
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400204f4], eax
jle 0x140005439
lea rcx, [0x1400204f4]
call fcn.1400139fc
cmp dword [0x1400204f4], 0xffffffff
jne 0x140005439
lea rcx, [0x140015640]
call fcn.140013cd8
lea rcx, [0x1400204f4]
call fcn.140013990
mov dword [rbp - 0x28], 1
lea rax, [0x14001f0e8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
movups xmmword [rsi], xmm0
jmp 0x1400056ab
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 0x1400054b8
xor eax, eax
mov dword [rdi], eax
cmp r13d, 0x17
jne 0x1400054b0
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 0x140005521
mov r13d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rcx + r13]
cmp dword [0x1400204f8], eax
jle 0x140005503
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], r14d
jne 0x140005503
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x28], eax
lea rax, [0x14001f0c8]
mov qword [rbp - 0x20], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
mov r12, r14
cmp r12, 0xffffffffffffffff
jne 0x14000552f
movups xmm0, xmmword [rdi]
jmp 0x1400056a8
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, [0x14001f0d8]
test rax, rax
jne 0x1400055c1
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 [0x1400204f8], edx
jle 0x1400055a4
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x1400055a4
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x28], eax
lea rax, [0x14001f0c8]
mov qword [rbp - 0x20], rax
xor r13d, r13d
lea rcx, [0x14001f0d8]
jmp 0x1400055cc
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 0x140005603
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.140003ba0
jmp 0x1400056ab
mov qword [rbp - 0x30], r14
mov qword [r15], r12
sub ebx, 1
je 0x140005622
cmp ebx, 1
je 0x14000561b
mov byte [r15 + 8], 0
jmp 0x140005627
mov byte [r15 + 8], 0x20
jmp 0x140005627
mov byte [r15 + 8], select
mov ecx, 0x18
call fcn.140013a74
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 0x140005692
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140005692
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140005692
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov dword [rbp - 0x28], r13d
lea rax, [0x14001f0d8]
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.140013970
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret