Function at 0x1400602a0
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 r12, qword [rbp + 0x80]
cmp qword [r8], 0xffffffffffffffff
je 0x14006033c
mov rax, qword [0x140132168]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x140060305
mov rax, qword [0x140132160]
lea rcx, [0x140132160]
mov edx, 1
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14006030a
mov ecx, 3
mov qword [r12], 1
lea rax, [0x140132160]
mov qword [r12 + 8], rax
mov qword [r12 + 0x10], rcx
mov qword [rsi + 0x10], rcx
mov rax, qword [r12]
mov qword [rsi], rax
mov rax, qword [r12 + 8]
mov qword [rsi + 8], rax
jmp 0x1400605c1
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 r13d, r9d
mov ecx, r9d
mov edx, r14d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400603e5
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
cmp r13d, 0x17
jne 0x1400603b3
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 0x14006040d
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
jmp 0x1400604d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rax, qword [0x140134e38]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x140060437
test edi, edi
setne al
jmp 0x14006044a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [0x140134e38]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14006048f
test r15d, r15d
setne al
jmp 0x1400604a3
mov rax, qword [0x140134e30]
lea rcx, [0x140134e30]
mov edx, edi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r12], edi
mov dword [r12 + 4], 0
lea rcx, [0x140134e30]
mov qword [r12 + 8], rcx
mov qword [r12 + 0x10], rax
mov ecx, dword [r12]
mov dword [rsi], ecx
mov ecx, dword [r12 + 4]
mov dword [rsi + 4], ecx
mov rcx, qword [r12 + 8]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400605c1
mov rax, qword [0x140134e30]
lea rcx, [0x140134e30]
mov edx, r15d
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r12], r15d
mov dword [r12 + 4], 0
lea rcx, [0x140134e30]
mov qword [r12 + 8], rcx
mov qword [r12 + 0x10], rax
test al, 1
jne 0x14006057b
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.14007d624
movabs rcx, 0x100000001
mov qword [rax + 8], rcx
lea rcx, [0x1400fd3d0]
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 0x140060553
lock dec dword [rbx + 8]
jne 0x140060553
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x140060553
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rbx, qword [rbp - 0x10]
cmp rbx, 0xffffffffffffffff
jne 0x14006059b
jmp 0x1400605c1
mov rax, qword [r12 + 0x10]
mov qword [rsi + 0x10], rax
mov eax, dword [r12]
mov dword [rsi], eax
mov eax, dword [r12 + 4]
mov dword [rsi + 4], eax
mov rax, qword [r12 + 8]
mov qword [rsi + 8], rax
xorps xmm0, xmm0
movaps 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.14005fa70
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret