Function at 0x1400ca500
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea r8d, [rbp + 4]
lea rdx, str.._
lea rcx, [rsp + 0x30]
call fcn.140007240
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0x18
jb 0x1400ca599
lea rdi, [rcx + 0x18]
mov qword [rsp + 0x40], rdi
lea rbx, [rsp + 0x30]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x30]
lea rcx, [rbx + rcx*2]
lea r8d, [rbp + 0x30]
lea rdx, str.c:IntelIntelOptaneData
call fcn.140132e10
mov word [rbx + rdi*2], bp
jmp 0x1400ca5bd
lfence
mov qword [rsp + 0x20], 0x18
lea r9, str.c:IntelIntelOptaneData
xor r8d, r8d
lea edx, [r8 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.14001c380
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400ca7a0
mov ebx, eax
test eax, eax
je 0x1400ca732
cmp eax, 2
je 0x1400ca62c
cmp eax, 0xc
je 0x1400ca643
cmp eax, 0x50
je 0x1400ca732
lea rdi, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400ca732
test byte [rcx + 0x44], 0x40
je 0x1400ca732
cmp byte [rcx + 0x41], 2
jb 0x1400ca732
mov edx, 0x22
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
jmp 0x1400ca732
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400cabb0
mov ebx, eax
test eax, eax
jne 0x1400ca732
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ebx, eax
or ebx, 6
lea rdi, [0x1402aa8a0]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400ca696
test byte [rcx + 0x44], 0x40
je 0x1400ca696
cmp byte [rcx + 0x41], 4
jb 0x1400ca696
mov edx, 0x1f
mov r9d, ebx
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140026630
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x1400ca730
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400ca730
test byte [rcx + 0x44], 0x40
je 0x1400ca70a
cmp byte [rcx + 0x41], 2
jb 0x1400ca70a
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
mov edx, 0x20
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
mov r9d, ebx
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.1400cd630
mov rcx, qword [0x1402aa8a0]
cmp rcx, rdi
je 0x1400ca730
test byte [rcx + 0x44], 0x40
je 0x1400ca730
cmp byte [rcx + 0x41], 3
jb 0x1400ca730
mov edx, 0x21
lea r8, [0x140234758]
mov rcx, qword [rcx + 0x38]
call fcn.140024300
mov ebx, ebp
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400ca770
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ca76b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ca795
call fcn.14013ff64
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140140100
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400e0284
int3