Function at 0x14005fa70
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
xor eax, eax
cmp rcx, 0xffffffffffffffff
je 0x14005fcfb
mov rsi, r9
mov rbx, rdx
mov rdi, rcx
test r8b, r8b
je 0x14005fafd
test byte [rbx], 8
je 0x14005fafd
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14005fafd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x140134e38]
shr rcx, 1
movabs rdx, 0x595588bd12bf6fe8
cmp rcx, rdx
je 0x14005fafd
mov r8, qword [0x140134e30]
lea rcx, [0x140134e30]
mov edx, eax
call qword [r8 + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14005fb35
mov r15d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov rax, qword [0x140134e38]
shr rax, 1
movabs r14, 0x595588bd12bf6fe8
cmp rax, r14
jne 0x14005fb4a
test ebp, ebp
setne al
jmp 0x14005fb5d
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
xor eax, eax
jmp 0x14005fcfb
mov rax, qword [0x140134e30]
lea rcx, [0x140134e30]
mov edx, ebp
call qword [rax + 0x30]
movzx ecx, al
or rcx, 2
mov dword [rsi], ebp
mov dword [rsi + 4], 0
lea r12, [0x140134e30]
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], rcx
mov rdx, qword [0x140134e38]
mov rax, rdx
shr rax, 1
cmp rax, r14
je 0x14005fbb1
mov rax, qword [0x140134e30]
lea rcx, [0x140134e30]
mov edx, 0x2733
call qword [rax + 0x30]
mov rcx, qword [rsi + 0x10]
mov ebp, dword [rsi]
mov rdx, qword [0x140134e38]
cmp rcx, 1
mov eax, r15d
je 0x14005fbf6
cmp ebp, 0x2733
jne 0x14005fbf6
lea r9, [0x140134e30]
mov r8, r9
test rcx, rcx
je 0x14005fbd5
mov r8, qword [rsi + 8]
xor r10d, r10d
cmp r8, r9
sete r10b
xor r9d, r9d
cmp qword [r8 + 8], rdx
sete r9b
test rdx, rdx
cmove r9d, r10d
test r9b, r9b
jne 0x14005fc6c
shr rdx, 1
cmp rdx, r14
je 0x14005fc1d
mov rax, qword [0x140134e30]
lea rcx, [0x140134e30]
mov edx, 0x4d5
call qword [rax + 0x30]
mov eax, r15d
mov rcx, qword [rsi + 0x10]
mov ebp, dword [rsi]
cmp rcx, 1
je 0x14005fcfb
cmp ebp, 0x4d5
jne 0x14005fcfb
mov rdx, r12
test rcx, rcx
je 0x14005fc3f
mov rdx, qword [rsi + 8]
mov rcx, qword [0x140134e38]
xor r8d, r8d
cmp rdx, r12
sete r8b
xor r9d, r9d
cmp qword [rdx + 8], rcx
sete r9b
test rcx, rcx
cmove r9d, r8d
cmp r9b, 1
jne 0x14005fcfb
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov rcx, rdi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rbx], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14005fcb7
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rax, qword [0x140134e38]
shr rax, 1
cmp rax, r14
jne 0x14005fcc7
test edi, edi
setne al
jmp 0x14005fcda
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x14005fcfb
mov rax, qword [0x140134e30]
lea rcx, [0x140134e30]
mov edx, edi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [rsi], edi
mov dword [rsi + 4], 0
lea rcx, [0x140134e30]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov eax, ebx
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret