Function at 0x140167150
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xc0
mov rax, qword [0x1403b9868]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, qword [rbp + 0x6f]
xor esi, esi
mov r14, qword [rbp + 0x7f]
mov r12d, r8d
mov qword [rbp - 0x41], r13
mov r15, rdx
mov rdi, rcx
cmp r8d, 2
je 0x1401671a1
cmp r8d, 0x17
jne 0x140167304
lea eax, [r9 - 1]
test eax, 0xfffffffb
jne 0x140167304
xor eax, eax
lea ecx, [rax + 0x10]
lock cmpxchg qword [rdi + 0x18], rsi
mov rbx, rax
mov qword [rbp - 0x61], rax
jne 0x14016723a
mov qword [rsp + 0x40], rsi
lea rax, [rbp - 0x49]
mov qword [rsp + 0x38], rsi
lea r8, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov r9d, ecx
mov rcx, qword [r15]
lea rax, [rbp - 0x61]
mov dword [rsp + 0x28], 8
mov edx, 0xc8000006
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x31], 0x25a207b9
mov dword [rbp - 0x2d], 0x4660ddf3
mov dword [rbp - 0x29], 0xe576e98e
mov dword [rbp - 0x25], 0x3e06748c
mov dword [rbp - 0x49], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140167229
mov rax, rdi
mov qword [rbp - 0x61], rax
jmp 0x14016722d
mov rax, qword [rbp - 0x61]
xchg qword [rdi + 0x18], rax
mov rbx, qword [rbp - 0x61]
mov ecx, reloc.WS2_32.dll_recv
cmp rbx, rdi
cmove rbx, rsi
test rbx, rbx
je 0x140167304
xor eax, eax
lea r9, [r14 + 0x38]
xorps xmm0, xmm0
mov qword [rbp - 0x11], rax
movups xmmword [rbp - 0x21], xmm0
cmp r12d, 2
mov dword [rbp - 9], eax
mov r8d, 0x1c
mov word [rbp - 0x21], r12w
cmove r8, rcx
lea rdx, [rbp - 0x21]
mov rcx, qword [r15]
call fcn.140131a90
cmp dword [r14 + 0x38], esi
je 0x1401672a1
call fcn.14018e9e0
cmp qword [r14 + 0x40], rax
jne 0x140167298
cmp dword [r14 + 0x38], 0x2726
je 0x1401672a1
mov rcx, qword [rdi + 8]
jmp 0x140167340
mov byte [r14 + 0x60], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov r8d, dword [rbp + 0x77]
xor r12d, r12d
mov rcx, qword [r15]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov rdx, r13
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call rbx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1401672f6
cmp eax, 0x3e5
je 0x1401672f6
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, r14
call fcn.14015cdd0
jmp 0x14016734c
mov rcx, qword [rdi + 8]
mov rdx, r14
call fcn.14015ce80
jmp 0x14016734c
mov rcx, rdi
call fcn.1401595e0
test byte [r15 + 8], 3
mov r13, rax
jne 0x1401673d8
mov rbx, qword [r15]
cmp rbx, 0xffffffffffffffff
jne 0x140167373
mov dword [rbp - 0x41], 0x2719
call fcn.14018e9e0
mov qword [rbp - 0x39], rax
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [r14 + 0x38], xmm0
mov rcx, qword [r13 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r14
call fcn.140064ee0
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1402806f0
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x45]
mov dword [rbp - 0x45], 1
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.14018e9e0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 0x51], rbx
mov dword [rbp - 0x59], eax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [r14 + 0x38], xmm0
test edi, edi
js 0x14016733c
xor r12d, r12d
mov dword [rbp - 0x59], r12d
call fcn.14018e9e0
mov qword [rbp - 0x51], rax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [r14 + 0x38], xmm0
or byte [r15 + 8], 2
jmp 0x1401673db
xor r12d, r12d
mov r8, qword [rbp + 0x77]
lea r9, [r14 + 0x38]
mov rdx, qword [rbp - 0x41]
mov rcx, qword [r15]
call fcn.140133610
test eax, eax
je 0x14016733c
call fcn.14018e9e0
cmp qword [r14 + 0x40], rax
jne 0x14016740c
cmp dword [r14 + 0x38], 0x2734
je 0x140167429
call fcn.14018e9e0
cmp qword [r14 + 0x40], rax
jne 0x14016733c
cmp dword [r14 + 0x38], 0x2733
jne 0x14016733c
mov dword [rbp - 0x59], r12d
call fcn.14018e9e0
mov qword [rbp - 0x51], rax
lea r9, [r15 + 0x20]
movups xmm0, xmmword [rbp - 0x59]
mov byte [rsp + 0x30], sil
mov edx, 3
mov byte [rsp + 0x28], sil
mov rcx, r13
movups xmmword [r14 + 0x38], xmm0
mov r8, qword [r15]
mov qword [rsp + 0x20], r14
call fcn.140167560
jmp 0x14016734c