Function at 0x14017d720
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa8
mov r15, rcx
xor edi, edi
mov rcx, qword [r8]
mov r12, 0xffffffffffffffff
mov ebx, r9d
mov r13, r8
cmp rcx, r12
je 0x14017d786
vpxor xmm0, xmm0, xmm0
lea r9, [rbp - 0x31]
mov qword [rbp - 0x21], rdi
mov r8b, 1
mov byte [rbp + 0x4f], dil
lea rdx, [rbp + 0x4f]
vmovups xmmword [rbp - 0x31], xmm0
call fcn.1400301b0
mov qword [r13], r12
mov rax, qword [r15 + 8]
lock inc dword [rax + 0x30]
mov r14, qword [rbp + 0x8f]
mov rsi, qword [rbp + 0x97]
test r14, r14
je 0x14017d7c2
mov eax, edi
lock xadd dword [r14], eax
cmp eax, 1
jne 0x14017d7c2
mov rcx, qword [r15 + 8]
xor r9d, r9d
mov r8d, 0x3e3
mov rdx, rsi
call fcn.14002d860
mov r8d, dword [rbp + 0x77]
xor r9d, r9d
mov edx, dword [rbp + 0x6f]
mov ecx, ebx
vpxor xmm0, xmm0, xmm0
mov dword [rsp + 0x28], 1
vmovups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, r12
lea rcx, [rbp - 0x31]
mov rbx, rax
sete dl
call fcn.1400300f0
cmp rbx, r12
je 0x14017d836
cmp dword [rbp + 0x67], 0x17
jne 0x14017d833
lea r9, [rbp + 0x8f]
mov dword [rbp + 0x8f], edi
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r12, rbx
mov r13, qword [r13]
cmp r13, 0xffffffffffffffff
je 0x14017d992
vpxor xmm0, xmm0, xmm0
mov rcx, r13
mov qword [rbp - 0x39], rdi
vmovups xmmword [rbp - 0x49], xmm0
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
lea rcx, [rbp - 0x49]
mov ebx, eax
setne dl
call fcn.1400300f0
test ebx, ebx
je 0x14017d992
mov rbx, qword [0x14025e378]
lea rcx, [0x14025e370]
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x5d], edi
add rax, rbx
cmp rax, 1
jbe 0x14017d8b5
mov rax, qword [0x14025e370]
mov edx, 0x2733
call qword [rax + 0x30]
mov rbx, qword [0x14025e378]
lea rcx, [0x14025e370]
jmp 0x14017d8b7
mov al, 1
mov qword [rbp - 0x59], rcx
lea rdx, [rbp - 0x19]
movzx eax, al
lea rcx, [rbp - 0x49]
add rax, 2
mov dword [rbp - 0x61], 0x2733
vmovups xmm0, xmmword [rbp - 0x61]
mov qword [rbp - 0x51], rax
vmovsd xmm1, qword [rbp - 0x51]
vmovsd qword [rbp - 9], xmm1
vmovups xmmword [rbp - 0x19], xmm0
call fcn.140030520
test al, al
jne 0x14017d960
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x5d], edi
add rax, rbx
lea rbx, [0x14025e370]
cmp rax, 1
jbe 0x14017d923
mov rax, qword [0x14025e370]
mov edx, 0x4d5
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14017d925
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x19]
add rax, 2
mov dword [rbp - 0x61], 0x4d5
mov qword [rbp - 0x51], rax
lea rcx, [rbp - 0x49]
vmovsd xmm1, qword [rbp - 0x51]
mov qword [rbp - 0x59], rbx
vmovups xmm0, xmmword [rbp - 0x61]
vmovsd qword [rbp - 9], xmm1
vmovups xmmword [rbp - 0x19], xmm0
call fcn.140030520
test al, al
je 0x14017d992
lea r8, [rbp + 0x8f]
mov dword [rbp + 0x8f], edi
mov edx, 0x8004667e
mov rcx, r13
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
lea rcx, [rbp - 0x49]
setne dl
call fcn.1400300f0
mov rax, qword [rbp + 0x5f]
mov qword [rax], r12
cmp r12, 0xffffffffffffffff
jne 0x14017d9b4
mov rcx, qword [r15 + 8]
lea r8, [rbp - 0x31]
mov rdx, rsi
call fcn.14017dce0
jmp 0x14017da38
mov r8, qword [rbp + 0x7f]
lea rax, [rbp + 0x5f]
mov qword [rsp + 0x38], rsi
mov rdx, r12
mov r12, qword [rbp + 0x57]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov rcx, r12
mov eax, dword [rbp + 0x87]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rbp + 0x5f], edi
call qword [sym.imp.MSWSOCK.dll_AcceptEx]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14017da11
cmp eax, 0x3e5
je 0x14017da11
mov rcx, qword [r15 + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call fcn.14002d860
jmp 0x14017da38
test r14, r14
je 0x14017da2c
lock xadd dword [r14], edi
cmp edi, 1
jne 0x14017da2c
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [r15 + 8]
mov rdx, rsi
call fcn.14002d910
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret