Function at 0x140094c90
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1404fa650]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
mov qword [rbp + 0xf], rdi
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 4
jbe 0x140094d03
mov rcx, rbx
call fcn.1400c75e0
mov qword [rbp - 1], rax
lea rax, str.Setting_privilege
mov qword [rbp - 9], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045af05]
mov rcx, r8
call fcn.140002fac
xor edx, edx
lea rcx, [rbp + 0xf]
call fcn.1400e25e8
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 0x140094dbd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 2
jbe 0x140094d99
mov rcx, rbx
call fcn.1400c75e0
mov qword [rbp - 9], rax
lea rax, str.Failed_to_get_process_token
mov qword [rbp + 7], rax
mov dword [rbp - 1], edi
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045af34]
mov rcx, r8
call fcn.140001c60
mov rcx, qword [rbp + 0xf]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140094fbd
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x140094fbd
mov qword [rbp + 0x17], rdi
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140094dce
mov rdx, qword [rbx]
lea r8, [rbp + 0x17]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140094e6b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 2
jbe 0x140094e47
mov rcx, rbx
call fcn.1400c75e0
mov qword [rbp + 7], rax
lea rax, str.Failed_to_lookup_for_privilege_value
mov qword [rbp - 9], rax
mov dword [rbp - 1], edi
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045af34]
mov rcx, r8
call fcn.140001c60
mov rcx, qword [rbp + 0xf]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140094fbd
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x140094fbd
mov dword [rbp + 0x27], 1
mov rax, qword [rbp + 0x17]
mov qword [rbp + 0x2b], rax
mov dword [rbp + 0x33], 2
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rbp + 0x27]
xor edx, edx
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
test eax, eax
jne 0x140094f3a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 2
jbe 0x140094f16
mov rcx, rbx
call fcn.1400c75e0
mov qword [rbp + 7], rax
lea rax, str.Failed_to_adjust_token_privileges
mov qword [rbp - 9], rax
mov dword [rbp - 1], edi
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045af34]
mov rcx, r8
call fcn.140001c60
mov rcx, qword [rbp + 0xf]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140094fbd
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
jmp 0x140094fbd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x514
jne 0x140094fc1
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 2
jbe 0x140094fa2
mov rcx, rbx
call fcn.1400c75e0
mov qword [rbp + 7], rax
lea rax, str.Failed_to_assign_privileges
mov qword [rbp - 9], rax
mov dword [rbp - 1], 0x514
lea rax, [rbp + 7]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045af34]
mov rcx, r8
call fcn.140001c60
mov rcx, qword [rbp + 0xf]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140094fbd
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
xor al, al
jmp 0x140095028
cmp dword [rbp + 0x37], edi
jne 0x14009500b
call fcn.1400abd44
mov r8, rax
cmp dword [rax], 4
jbe 0x14009500b
mov rcx, rbx
call fcn.1400c75e0
mov qword [rbp + 7], rax
lea rax, str.Privilege_was_enabled_before_and_not_changed
mov qword [rbp - 9], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea rdx, [0x14045af05]
mov rcx, r8
call fcn.140002fac
mov rcx, qword [rbp + 0xf]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140095026
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
nop
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140157600
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret