Function at 0x140096094
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140477ad0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
mov qword [rbp + 7], rcx
xor esi, esi
mov qword [rcx], rsi
lea rbx, [rcx + 0x18]
mov rcx, rbx
call fcn.140079070
mov byte [rdi + 0x38], sil
call fcn.1400a4e1c
mov rcx, rax
cmp dword [rax], 4
jbe 0x140096119
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400960ec
mov rax, qword [rbx]
mov qword [rbp + 0x17], rax
lea rax, str.Setting_privilege
mov qword [rbp - 9], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
lea rdx, [0x1403f438f]
call fcn.140005770
xor edx, edx
mov rcx, rdi
call fcn.1400a75a0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov r8, rdi
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400961b1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.1400a4e1c
cmp dword [rax], 2
jbe 0x140096362
cmp qword [rbx + 0x18], 8
jb 0x140096170
mov rbx, qword [rbx]
mov qword [rbp - 9], rbx
lea rcx, str.Failed_to_get_process_token
mov qword [rbp + 7], rcx
lea rcx, [rbp - 9]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 7]
lea rdx, [0x1403f4355]
mov dword [rbp + 0x17], esi
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000343c
jmp 0x140096362
mov qword [rbp + 0x1f], rsi
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400961c2
mov rdx, qword [rbx]
lea r8, [rbp + 0x1f]
xor ecx, ecx
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupPrivilegeValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140096226
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.1400a4e1c
cmp dword [rax], 2
jbe 0x140096362
cmp qword [rbx + 0x18], 8
jb 0x1400961fe
mov rbx, qword [rbx]
mov qword [rbp + 7], rbx
lea rcx, str.Failed_to_lookup_for_privilege_value
mov qword [rbp - 9], rcx
lea rcx, [rbp + 7]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 9]
lea rdx, [0x1403f4355]
jmp 0x140096193
lea r8, [rdi + 8]
mov dword [r8], 1
mov rax, qword [rbp + 0x1f]
mov qword [rdi + 0xc], rax
mov dword [rdi + 0x14], 2
lea rax, [rbp + 0x27]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
test eax, eax
jne 0x1400962b9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
call fcn.1400a4e1c
cmp dword [rax], 2
jbe 0x140096362
cmp qword [rbx + 0x18], 8
jb 0x140096291
mov rbx, qword [rbx]
mov qword [rbp + 7], rbx
lea rcx, str.Failed_to_adjust_token_privileges
mov qword [rbp - 9], rcx
lea rcx, [rbp + 7]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 9]
lea rdx, [0x1403f4355]
jmp 0x140096193
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x514
jne 0x140096313
call fcn.1400a4e1c
cmp dword [rax], 2
jbe 0x140096362
cmp qword [rbx + 0x18], 8
jb 0x1400962e4
mov rbx, qword [rbx]
mov qword [rbp + 7], rbx
lea rcx, str.Failed_to_assign_privileges
mov qword [rbp - 9], rcx
mov dword [rbp + 0x17], 0x514
lea rcx, [rbp + 7]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 9]
lea rdx, [0x1403f4355]
jmp 0x140096196
cmp dword [rbp + 0x2f], esi
jne 0x14009635e
call fcn.1400a4e1c
cmp dword [rax], 4
jbe 0x140096362
cmp qword [rbx + 0x18], 8
jb 0x14009632c
mov rbx, qword [rbx]
mov qword [rbp + 7], rbx
lea rcx, str.Privilege_was_enabled_before_and_not_changed
mov qword [rbp - 9], rcx
lea rcx, [rbp + 7]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 9]
mov qword [rsp + 0x20], rcx
lea rdx, [0x1403f438f]
mov rcx, rax
call fcn.140005770
jmp 0x140096362
mov byte [rdi + 0x38], 1
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140123570
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret