Function at 0x1400cd8f0
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 [0x1402e7d18]
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 0x1400cd989
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.140145e60
mov word [rbx + rdi*2], bp
jmp 0x1400cd9ad
lfence
mov qword [rsp + 0x20], 0x18
lea r9, str.c:IntelIntelOptaneData
xor r8d, r8d
lea edx, [r8 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.14001b830
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400cdb90
mov ebx, eax
test eax, eax
je 0x1400cdb22
cmp eax, 2
je 0x1400cda1c
cmp eax, 0xc
je 0x1400cda33
cmp eax, 0x50
je 0x1400cdb22
lea rdi, [0x1402eb3e0]
mov rcx, qword [0x1402eb3e0]
cmp rcx, rdi
je 0x1400cdb22
test byte [rcx + 0x44], 0x40
je 0x1400cdb22
cmp byte [rcx + 0x41], 2
jb 0x1400cdb22
mov edx, 0x22
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
jmp 0x1400cdb22
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400cdfa0
mov ebx, eax
test eax, eax
jne 0x1400cdb22
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, [0x1402eb3e0]
mov rcx, qword [0x1402eb3e0]
cmp rcx, rdi
je 0x1400cda86
test byte [rcx + 0x44], 0x40
je 0x1400cda86
cmp byte [rcx + 0x41], 4
jb 0x1400cda86
mov edx, 0x1f
mov r9d, ebx
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140026620
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 0x1400cdb20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1402eb3e0]
cmp rcx, rdi
je 0x1400cdb20
test byte [rcx + 0x44], 0x40
je 0x1400cdafa
cmp byte [rcx + 0x41], 2
jb 0x1400cdafa
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, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.1400d0a20
mov rcx, qword [0x1402eb3e0]
cmp rcx, rdi
je 0x1400cdb20
test byte [rcx + 0x44], 0x40
je 0x1400cdb20
cmp byte [rcx + 0x41], 3
jb 0x1400cdb20
mov edx, 0x21
lea r8, [0x140273968]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov ebx, ebp
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400cdb60
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400cdb5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400cdb85
call fcn.1401544b8
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140154650
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.1400e3a60
int3