Function at 0x140052b60
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
xor ebp, ebp
cmp rcx, 0xffffffffffffffff
je 0x140052df2
mov rsi, r9
mov rbx, rdx
mov rdi, rcx
test r8b, r8b
je 0x140052bf3
movzx eax, byte [rbx]
test al, 8
je 0x140052bf3
mov dword [rsp + 0x2c], 0
or al, 8
mov byte [rbx], al
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 0x140052bf3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x1400c1358]
shr rcx, 1
movabs rdx, 0x595588bd12bf6fe8
cmp rcx, rdx
je 0x140052bf3
mov r8, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, eax
call qword [r8 + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140052c2c
mov ebp, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
mov rax, qword [0x1400c1358]
shr rax, 1
movabs r15, 0x595588bd12bf6fe8
cmp rax, r15
jne 0x140052c43
test r14d, r14d
setne al
jmp 0x140052c57
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
xor ebp, ebp
jmp 0x140052df2
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, r14d
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [rsi], r14d
mov dword [rsi + 4], 0
lea r12, [0x1400c1350]
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], rax
mov rcx, qword [0x1400c1358]
mov rdx, rcx
shr rdx, 1
cmp rdx, r15
je 0x140052cad
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, 0x2733
call qword [rax + 0x30]
mov rax, qword [rsi + 0x10]
mov r14d, dword [rsi]
mov rcx, qword [0x1400c1358]
cmp rax, 1
je 0x140052cf0
cmp r14d, 0x2733
jne 0x140052cf0
lea r8, [0x1400c1350]
mov rdx, r8
test rax, rax
je 0x140052ccf
mov rdx, qword [rsi + 8]
xor r9d, r9d
cmp rdx, r8
sete r9b
xor r8d, r8d
cmp qword [rdx + 8], rcx
sete r8b
test rcx, rcx
cmove r8d, r9d
test r8b, r8b
jne 0x140052d63
shr rcx, 1
cmp rcx, r15
je 0x140052d15
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, 0x4d5
call qword [rax + 0x30]
mov rax, qword [rsi + 0x10]
mov r14d, dword [rsi]
cmp rax, 1
je 0x140052df2
cmp r14d, 0x4d5
jne 0x140052df2
mov rcx, r12
test rax, rax
je 0x140052d38
mov rcx, qword [rsi + 8]
mov rax, qword [0x1400c1358]
xor edx, edx
cmp rcx, r12
sete dl
xor r8d, r8d
cmp qword [rcx + 8], rax
sete r8b
test rax, rax
cmove r8d, edx
cmp r8b, 1
jne 0x140052df2
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]
mov ebp, eax
test eax, eax
je 0x140052dae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rax, qword [0x1400c1358]
shr rax, 1
cmp rax, r15
jne 0x140052dc0
test edi, edi
setne al
jmp 0x140052dd3
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140052df2
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, edi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [rsi], edi
mov dword [rsi + 4], 0
lea rcx, [0x1400c1350]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov eax, ebp
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret