Function at 0x14007a090
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 [0x1401970d0]
xor rax, rsp
mov qword [rbp - 1], rax
mov r14d, r8d
mov r12, rdx
mov rdi, rcx
mov r13, qword [rbp + 0x6f]
mov r15, qword [rbp + 0x7f]
xor esi, esi
cmp r8d, 2
je 0x14007a0dd
cmp r8d, 0x17
jne 0x14007a241
lea eax, [r9 - 1]
test eax, 0xfffffffb
jne 0x14007a241
xor eax, eax
lea ecx, [rax + 0x10]
lock cmpxchg qword [rdi + 0x18], rsi
mov rbx, rax
mov qword [rbp - 0x41], rax
jne 0x14007a177
mov dword [rbp - 0x39], 0x25a207b9
mov dword [rbp - 0x35], 0x4660ddf3
mov dword [rbp - 0x31], 0xe576e98e
mov dword [rbp - 0x2d], 0x3e06748c
mov dword [rbp - 0x29], esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp - 0x39]
mov edx, 0xc8000006
mov rcx, qword [r12]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14007a166
mov rax, rdi
mov qword [rbp - 0x41], rax
jmp 0x14007a16a
mov rax, qword [rbp - 0x41]
xchg qword [rdi + 0x18], rax
mov rbx, qword [rbp - 0x41]
mov ecx, select
cmp rbx, rdi
cmove rbx, rsi
test rbx, rbx
je 0x14007a241
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rax
mov dword [rbp - 9], eax
mov word [rbp - 0x21], r14w
mov r8d, 0x1c
cmp r14d, 2
cmove r8, rcx
lea r9, [r15 + 0x38]
lea rdx, [rbp - 0x21]
mov rcx, qword [r12]
call fcn.140077a00
cmp dword [r15 + 0x38], esi
je 0x14007a1df
call fcn.14010c950
cmp qword [r15 + 0x40], rax
jne 0x14007a1d6
cmp dword [r15 + 0x38], 0x2726
je 0x14007a1df
mov rcx, qword [rdi + 8]
jmp 0x14007a296
mov byte [r15 + 0x60], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov qword [rsp + 0x30], r15
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r12]
call rbx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14007a233
cmp eax, 0x3e5
je 0x14007a233
xor r9d, r9d
mov r8d, eax
mov rdx, r15
mov rcx, qword [rdi + 8]
call fcn.140076f30
jmp 0x14007a2a2
mov rdx, r15
mov rcx, qword [rdi + 8]
call fcn.140076ea0
jmp 0x14007a2a2
xor eax, eax
lock cmpxchg qword [rdi + 0x10], rsi
mov r14, rax
jne 0x14007a263
mov rcx, qword [rdi]
mov rdx, rcx
mov rcx, qword [rcx]
call fcn.140091d30
mov r14, rax
xchg qword [rdi + 0x10], rax
test byte [r12 + 8], 3
jne 0x14007a329
mov rbx, qword [r12]
cmp rbx, 0xffffffffffffffff
jne 0x14007a2c9
call fcn.14010c950
mov dword [rbp - 0x61], 0x2719
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [r15 + 0x38], xmm0
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r15
call fcn.140076e20
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14010a950
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]
mov dword [rbp - 0x25], 1
lea r8, [rbp - 0x25]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.14010c950
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x61], eax
mov qword [rbp - 0x59], rbx
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [r15 + 0x38], xmm0
test edi, edi
js 0x14007a292
mov dword [rbp - 0x61], esi
call fcn.14010c950
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [r15 + 0x38], xmm0
or byte [r12 + 8], 2
lea r9, [r15 + 0x38]
mov r8, qword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r12]
call fcn.140077c30
test eax, eax
je 0x14007a292
call fcn.14010c950
cmp qword [r15 + 0x40], rax
jne 0x14007a35a
cmp dword [r15 + 0x38], 0x2734
je 0x14007a377
call fcn.14010c950
cmp qword [r15 + 0x40], rax
jne 0x14007a292
cmp dword [r15 + 0x38], 0x2733
jne 0x14007a292
mov dword [rbp - 0x61], esi
call fcn.14010c950
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [r15 + 0x38], xmm0
mov rbx, qword [r12]
lea rcx, [r14 + 0x30]
mov qword [rbp - 0x51], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x49], 1
cmp byte [r14 + 0x1a8], 0
je 0x14007a3cc
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r15
call fcn.140076e20
nop
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14007a2a2
lea rcx, [r14 + 0x110]
mov r8, r15
mov rdx, rbx
call fcn.140080b70
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x14007a3f4
lea rcx, [r14 + 0x58]
call fcn.140078d70
nop
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14007a2a2