Function at 0x14000cca8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x14006afb8]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
mov rbx, rcx
mov qword [rbp + 0xf], rsi
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 4
jbe 0x14000cd1f
mov rcx, rbx
call fcn.14000a560
mov qword [rbp - 1], rax
lea rdx, [0x14005bad1]
lea rax, str.Setting_privilege
mov rcx, rdi
mov qword [rbp - 9], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.14000d0a0
xor edx, edx
lea rcx, [rbp + 0xf]
call fcn.14000cfb4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rbp + 0xf]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
jne 0x14000cda4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x14000cf04
mov rcx, rbx
call fcn.14000a560
mov qword [rbp - 9], rax
lea rdx, [0x14005bb00]
lea rax, str.Failed_to_get_process_token
mov dword [rbp - 1], esi
mov qword [rbp + 7], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 7]
jmp 0x14000ceee
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov qword [rbp + 0x1f], rsi
jb 0x14000cdb5
mov rdx, qword [rbx]
lea r8, [rbp + 0x1f]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14000ce0c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x14000cf04
mov rcx, rbx
call fcn.14000a560
mov qword [rbp + 7], rax
lea rdx, [0x14005bb00]
lea rax, str.Failed_to_lookup_for_privilege_value
mov dword [rbp - 1], esi
jmp 0x14000cedd
mov rax, qword [rbp + 0x1f]
lea r8, [rbp + 0x27]
mov rcx, qword [rbp + 0xf]
xorps xmm0, xmm0
mov qword [rbp + 0x2b], rax
mov r9d, 0x10
lea rax, [rbp + 0x17]
mov dword [rbp + 0x17], esi
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rbp + 0x37]
mov dword [rbp + 0x27], 1
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x37], xmm0
mov dword [rbp + 0x33], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
test eax, eax
jne 0x14000ce9c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x14000cf04
mov rcx, rbx
call fcn.14000a560
mov qword [rbp + 7], rax
lea rdx, [0x14005bb00]
lea rax, str.Failed_to_adjust_token_privileges
mov dword [rbp - 1], esi
jmp 0x14000cedd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x514
jne 0x14000cf22
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 2
jbe 0x14000cf04
mov rcx, rbx
call fcn.14000a560
mov qword [rbp + 7], rax
lea rdx, [0x14005bb00]
lea rax, str.Failed_to_assign_privileges
mov dword [rbp - 1], 0x514
mov qword [rbp - 9], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov rcx, rdi
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
call fcn.14000bf00
mov rcx, qword [rbp + 0xf]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000cf1e
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor al, al
jmp 0x14000cf88
cmp dword [rbp + 0x37], esi
jne 0x14000cf6c
call fcn.14001226c
mov rdi, rax
cmp dword [rax], 4
jbe 0x14000cf6c
mov rcx, rbx
call fcn.14000a560
mov qword [rbp + 7], rax
lea rdx, [0x14005bad1]
lea rax, str.Privilege_was_enabled_before_and_not_changed
mov rcx, rdi
mov qword [rbp - 9], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.14000d0a0
mov rcx, qword [rbp + 0xf]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14000cf86
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140015f80
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret