Function at 0x140131ea0
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 - 7]
sub rsp, 0xa0
mov rax, qword [0x14032aa00]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13, qword [rbp + 0x67]
mov rdi, rcx
mov rsi, qword [rbp + 0x77]
xor ecx, ecx
mov r12, qword [rbp + 0x7f]
mov ebx, r8d
mov r15, rdx
cmp r8d, 2
je 0x140131ef0
cmp ebx, 0x17
jne 0x14013209b
lea eax, [r9 - 1]
mov edx, select
test eax, 0xfffffffb
je 0x140131f08
mov r14, rcx
jmp 0x140131f98
xor eax, eax
lock cmpxchg qword [rdi + 0x18], rcx
mov r14, rax
mov qword [rbp - 0x41], rax
jne 0x140131f91
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 0x49]
mov qword [rsp + 0x38], rcx
lea r8, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov r9d, edx
lea rax, [rbp - 0x41]
mov dword [rbp - 0x49], ecx
mov rcx, qword [r15]
mov edx, 0xc8000006
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x39], 0x25a207b9
mov dword [rbp - 0x35], 0x4660ddf3
mov dword [rbp - 0x31], 0xe576e98e
mov dword [rbp - 0x2d], 0x3e06748c
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140131f7e
mov rax, rdi
mov qword [rbp - 0x41], rax
jmp 0x140131f82
mov rax, qword [rbp - 0x41]
xchg qword [rdi + 0x18], rax
mov r14, qword [rbp - 0x41]
xor ecx, ecx
mov edx, select
cmp r14, rdi
cmove r14, rcx
test r14, r14
je 0x14013209b
mov rcx, qword [r15]
xor eax, eax
mov qword [rbp - 0x19], rax
xorps xmm0, xmm0
mov dword [rbp - 0x11], eax
movups xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x29], bx
cmp rcx, 0xffffffffffffffff
jne 0x140131fd0
mov dword [rbp - 0x39], 0x2719
call fcn.14004cfa0
mov qword [rbp - 0x31], rax
jmp 0x140132007
mov r8d, 0x1c
cmp ebx, 2
cmove r8d, edx
lea rdx, [rbp - 0x29]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x140131ff2
xor ebx, ebx
mov dword [rsi + 0x38], ebx
jmp 0x140132011
call fcn.14004cfa0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
xor ebx, ebx
movups xmmword [rsi + 0x38], xmm0
cmp dword [rsi + 0x38], 0
je 0x14013203c
call fcn.14004cfa0
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x140132033
cmp dword [rsi + 0x38], 0x2726
je 0x14013203c
mov rcx, qword [rdi + 8]
jmp 0x1401320ea
mov byte [rsi + 0x68], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov r8d, dword [rbp + 0x6f]
xor r9d, r9d
mov rcx, qword [r15]
mov rdx, r13
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call r14
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14013208d
cmp eax, 0x3e5
je 0x14013208d
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, r12
call fcn.140122ca0
jmp 0x1401320f6
mov rcx, qword [rdi + 8]
mov rdx, r12
call fcn.140122db0
jmp 0x1401320f6
xor eax, eax
lock cmpxchg qword [rdi + 0x10], rcx
mov r14, rax
jne 0x1401320ba
mov rcx, qword [rdi]
mov rcx, qword [rcx]
call fcn.1400d1040
mov r14, rax
xchg qword [rdi + 0x10], rax
test byte [r15 + 8], 3
jne 0x14013214c
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x140132122
mov dword [rbp - 0x39], 0x2719
call fcn.14004cfa0
mov qword [rbp - 0x31], rax
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rsi + 0x38], xmm0
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rsi
call fcn.1401257a0
mov eax, 0xffffffff
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1401ae6a0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp - 0x49]
mov dword [rbp - 0x49], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x1401321ea
mov dword [rsi + 0x38], 0
or byte [r15 + 8], 2
mov r8, qword [rbp + 0x6f]
lea r9, [rsi + 0x38]
mov rcx, qword [r15]
mov rdx, r13
call fcn.14010cde0
test eax, eax
je 0x1401320e6
call fcn.14004cfa0
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x14013217f
cmp dword [rsi + 0x38], 0x2734
je 0x1401321a3
call fcn.14004cfa0
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1401320e6
cmp dword [rsi + 0x38], 0x2733
jne 0x1401320e6
lea rax, [0x1403275b8]
mov byte [rsp + 0x30], 0
mov qword [rbp - 0x31], rax
lea r9, [r15 + 0x20]
mov dword [rbp - 0x39], 0
mov edx, 3
movups xmm0, xmmword [rbp - 0x39]
mov byte [rsp + 0x28], 0
mov rcx, r14
mov qword [rsp + 0x20], rsi
movups xmmword [rsi + 0x38], xmm0
mov r8, qword [r15]
call fcn.140132350
mov eax, 3
jmp 0x1401320fb
call fcn.14004cfa0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x31], rbx
jmp 0x1401320de