Function at 0x14007cfa0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x140106010]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov qword [r11 + 0x10], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [r11 - 0x18], r14
lea rcx, [rbp - 0x78]
xor r14d, r14d
mov word [rbp - 0x74], 0x500
mov dword [rsp + 0x48], r14d
xor r9d, r9d
mov dword [rsp + 0x40], r14d
mov dl, 1
mov dword [rsp + 0x38], r14d
xor sil, sil
mov dword [rsp + 0x30], r14d
lea r8d, [r14 + 0x12]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov qword [rbp - 0x80], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], r14
mov dword [rbp - 0x78], r14d
mov dword [rbp - 0x70], r14d
mov word [rbp - 0x6c], 0x100
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14007d29d
lea rax, [rsp + 0x60]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea r8d, [r14 + 0x20]
mov dword [rsp + 0x48], r14d
lea rcx, [rbp - 0x78]
mov dword [rsp + 0x40], r14d
mov dl, 2
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14007d29d
lea rax, [rsp + 0x70]
mov r9d, 0x221
mov qword [rsp + 0x50], rax
lea r8d, [r14 + 0x20]
mov dword [rsp + 0x48], r14d
lea rcx, [rbp - 0x78]
mov dword [rsp + 0x40], r14d
mov dl, 2
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14007d29d
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x48], r14d
xor r8d, r8d
mov dword [rsp + 0x40], r14d
mov dl, 1
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14007d29d
xor edx, edx
lea rcx, [rbp - 0x5c]
mov r8d, 0xbc
call fcn.140096c20
mov rax, qword [rsp + 0x78]
lea r9, [rsp + 0x68]
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x60]
mov rax, qword [rsp + 0x60]
lea ecx, [r14 + 4]
mov qword [rbp - 8], rax
xor r8d, r8d
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0x58], rax
mov dword [rbp - 0x5c], 1
mov dword [rbp - 0x60], 0x10000000
mov dword [rbp - 0x58], 3
mov dword [rbp - 0x44], r14d
mov dword [rbp - 0x40], 5
mov dword [rbp - 0x2c], 1
mov dword [rbp - 0x30], 0x10000000
mov dword [rbp - 0x28], 3
mov dword [rbp - 0x14], r14d
mov dword [rbp - 0x10], 2
mov dword [rbp + 4], 1
mov dword [rbp], 0xa0000000
mov dword [rbp + 8], 3
mov dword [rbp + 0x1c], r14d
mov dword [rbp + 0x20], 2
mov dword [rbp + 0x34], 2
mov dword [rbp + 0x30], 0x1000ffff
mov dword [rbp + 0x38], r14d
mov dword [rbp + 0x4c], r14d
mov dword [rbp + 0x50], 5
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x14007d263
mov qword [rsp + 0x1a0], rdi
mov edi, r14d
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14007d1f3
mov rcx, qword [rbx]
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
je 0x14007d258
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14007d229
mov rcx, qword [rbx]
mov r9, qword [rsp + 0x60]
mov edx, 1
mov qword [rsp + 0x30], r14
mov r8d, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x14007d25b
inc edi
cmp edi, 2
jl 0x14007d1e6
jmp 0x14007d25b
mov sil, 1
mov rdi, qword [rsp + 0x1a0]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14007d270
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007d29d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x14007d29d
and eax, 0xfffffffe
cmp qword [rbx + 0x18], 8
jb 0x14007d292
mov rbx, qword [rbx]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x170]
mov rbx, qword [rsp + 0x198]
test rcx, rcx
je 0x14007d2bd
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14007d2cd
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14007d2dd
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14007d2ed
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14007d2fc
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movzx eax, sil
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140091ba0
add rsp, 0x178
pop rsi
pop rbp
ret