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

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x98]
sub rsp, 0x188
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdx, qword [rcx]
mov qword [r11 + 0x18], rdi
mov rdi, rcx
mov qword [r11 - 0x18], r14
xor r14d, r14d
lea rcx, str.ResetFileSecurity:__s_r_n
xor sil, sil
mov qword [rbp - 0x70], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x80], r14
call fcn.1401b1eb0
lea rax, [rsp + 0x70]
lea r8d, [r14 + 0x12]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
xor r9d, r9d
mov dl, 1
mov dword [rsp + 0x28], r14d
mov dword [rbp - 0x68], r14d
mov dword [rsp + 0x20], r14d
mov word [rbp - 0x64], 0x500
mov dword [rbp - 0x60], r14d
mov word [rbp - 0x5c], 0x100
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1401bbb62
lea rax, [rsp + 0x60]
lea r8d, [r14 + 0x20]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1401bbb62
lea rax, [rsp + 0x68]
lea r8d, [r14 + 0x20]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov r9d, 0x221
mov dl, 2
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1401bbb62
lea rax, [rsp + 0x78]
lea rcx, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
xor r8d, r8d
mov dl, 1
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1401bbb62
mov rcx, qword [rdi]
lea rax, [rbp - 0x70]
lea edx, [r14 + 1]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 4]
xor r9d, r9d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x1401bb9a8
lea rcx, str.GetNamedSecurityInfo____d__ignore__r_n
mov edx, eax
call fcn.1401b1eb0
lea rcx, [rbp - 0x50]
xor edx, edx
mov r8d, 0xc0
call fcn.1402bfa30
mov rax, qword [rsp + 0x70]
mov r8, qword [rbp - 0x78]
mov qword [rbp - 0x28], rax
mov rax, qword [rsp + 0x60]
lea r9, [rbp - 0x80]
mov qword [rbp + 8], rax
mov rax, qword [rsp + 0x68]
lea rdx, [rbp - 0x50]
mov qword [rbp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov ecx, 4
mov dword [rbp - 0x4c], 1
mov dword [rbp - 0x50], 0x10000000
mov dword [rbp - 0x48], 3
mov qword [rbp + 0x68], rax
mov dword [rbp - 0x34], r14d
mov dword [rbp - 0x30], 5
mov dword [rbp - 0x1c], 1
mov dword [rbp - 0x20], 0x10000000
mov dword [rbp - 0x18], 3
mov dword [rbp - 4], r14d
mov dword [rbp], 2
mov dword [rbp + 0x14], 1
mov dword [rbp + 0x10], 0xa0000000
mov dword [rbp + 0x18], 3
mov dword [rbp + 0x2c], r14d
mov dword [rbp + 0x30], 2
mov dword [rbp + 0x44], 2
mov dword [rbp + 0x40], 0x1000ffff
mov dword [rbp + 0x48], r14d
mov dword [rbp + 0x5c], r14d
mov dword [rbp + 0x60], 5
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x1401bba81
lea rcx, str.SetEntriesInAcl____d_r_n
jmp 0x1401bbb5b
mov qword [rsp + 0x1a8], rbx
mov ebx, r14d
nop dword [rax]
mov rax, qword [rbp - 0x80]
mov rcx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
je 0x1401bbb1f
test ebx, ebx
jle 0x1401bbacf
lea rcx, str.SetNamedSecurityInfo____d_r_n
mov edx, eax
call fcn.1401b1eb0
test ebx, ebx
jne 0x1401bbb06
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.1400fe3d0
mov r9, qword [rsp + 0x60]
mov rcx, qword [rdi]
mov edx, 1
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov r8d, edx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x1401bbb0f
inc ebx
cmp ebx, 2
jl 0x1401bba90
jmp 0x1401bbb22
lea rcx, str.SetNamedSecurityInfo____d_r_n
mov edx, eax
call fcn.1401b1eb0
jmp 0x1401bbb22
mov sil, 1
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rbx, qword [rsp + 0x1a8]
cmp eax, 0xffffffff
je 0x1401bbb62
test al, 1
je 0x1401bbb62
mov rcx, qword [rdi]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1401bbb62
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__SetFileAttributes_failed__error__d__r_n
mov edx, eax
call fcn.1401b1eb0
mov rcx, qword [rbp - 0x80]
mov r14, qword [rsp + 0x180]
mov rdi, qword [rsp + 0x1b0]
test rcx, rcx
je 0x1401bbb81
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401bbb91
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401bbba1
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1401bbbb1
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1401bbbc1
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1401bbbd0
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rax, [0x14030a5a0]
test sil, sil
lea rdx, str.FAIL
lea rcx, str.___s_n
cmovne rdx, rax
call fcn.1401b1eb0
movzx eax, sil
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x188
pop rsi
pop rbp
ret