Function at 0x1801f1dd0
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, 0x90
mov rax, qword [0x180717100]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12d, r8d
mov r15, rdx
mov rdi, rcx
mov r13, qword [rbp + 0x6f]
mov rsi, qword [rbp + 0x7f]
xor r14d, r14d
cmp r8d, 2
je 0x1801f1e1e
cmp r8d, 0x17
jne 0x1801f1f8e
lea eax, [r9 - 1]
mov ecx, select
test eax, 0xfffffffb
je 0x1801f1e36
mov rbx, r14
jmp 0x1801f1ec5
xor eax, eax
lock cmpxchg qword [rdi + 0x18], r14
mov rbx, rax
mov qword [rbp - 0x29], rax
jne 0x1801f1ebe
mov dword [rbp - 0x21], 0x25a207b9
mov dword [rbp - 0x1d], 0x4660ddf3
mov dword [rbp - 0x19], 0xe576e98e
mov dword [rbp - 0x15], 0x3e06748c
mov dword [rbp - 0x31], r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp - 0x21]
mov edx, 0xc8000006
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1801f1ead
mov rax, rdi
mov qword [rbp - 0x29], rax
jmp 0x1801f1eb1
mov rax, qword [rbp - 0x29]
xchg qword [rdi + 0x18], rax
mov rbx, qword [rbp - 0x29]
mov ecx, select
cmp rbx, rdi
cmove rbx, r14
test rbx, rbx
je 0x1801f1f8e
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], r12w
mov r8d, 0x1c
cmp r12d, 2
cmove r8, rcx
lea r9, [rsi + 0x38]
lea rdx, [rbp - 0x21]
mov rcx, qword [r15]
call fcn.1801ef810
cmp dword [rsi + 0x38], r14d
je 0x1801f1f2c
call fcn.1801e1d10
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1801f1f23
cmp dword [rsi + 0x38], 0x2726
je 0x1801f1f2c
mov rcx, qword [rdi + 8]
jmp 0x1801f1fe7
mov byte [rsi + 0x60], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov qword [rsp + 0x30], rsi
xor r12d, r12d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r15]
call rbx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1801f1f80
cmp eax, 0x3e5
je 0x1801f1f80
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
mov rcx, qword [rdi + 8]
call fcn.1801eedd0
jmp 0x1801f1ff3
mov rdx, rsi
mov rcx, qword [rdi + 8]
call fcn.1801eed30
jmp 0x1801f1ff3
xor eax, eax
lock cmpxchg qword [rdi + 0x10], r14
mov r14, rax
jne 0x1801f1fb0
mov rcx, qword [rdi]
mov rdx, rcx
mov rcx, qword [rcx]
call fcn.180206650
mov r14, rax
xchg qword [rdi + 0x10], rax
lea rdi, [0x180717d40]
test byte [r15 + 8], 3
jne 0x1801f207f
mov rbx, qword [r15]
cmp rbx, 0xffffffffffffffff
jne 0x1801f201a
call fcn.1801e1d10
mov dword [rbp - 0x21], 0x2719
mov qword [rbp - 0x19], rax
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rsi + 0x38], xmm0
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rsi
call fcn.1801e25b0
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.18027f010
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
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 - 0x31], 1
lea r8, [rbp - 0x31]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.1801e1d10
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x21], eax
mov qword [rbp - 0x19], rbx
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rsi + 0x38], xmm0
test edi, edi
js 0x1801f1fe3
xor r12d, r12d
mov dword [rbp - 0x21], r12d
lea rdi, [0x180717d40]
mov qword [rbp - 0x19], rdi
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rsi + 0x38], xmm0
or byte [r15 + 8], 2
jmp 0x1801f2082
xor r12d, r12d
lea r9, [rsi + 0x38]
mov r8, qword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r15]
call fcn.1801efa30
test eax, eax
je 0x1801f1fe3
call fcn.1801e1d10
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1801f20b9
cmp dword [rsi + 0x38], 0x2734
je 0x1801f20dd
call fcn.1801e1d10
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1801f1fe3
cmp dword [rsi + 0x38], 0x2733
jne 0x1801f1fe3
mov dword [rbp - 0x21], r12d
mov qword [rbp - 0x19], rdi
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rsi + 0x38], xmm0
mov rbx, qword [r15]
lea rcx, [r14 + 0x30]
mov qword [rbp - 0x21], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x19], 1
cmp byte [r14 + 0x1a8], 0
je 0x1801f212c
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rsi
call fcn.1801e25b0
nop
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1801f1ff3
lea rcx, [r14 + 0x110]
mov r8, rsi
mov rdx, rbx
call fcn.1801f8600
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x1801f2154
lea rcx, [r14 + 0x58]
call fcn.1801f08f0
nop
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1801f1ff3