Function at 0x1402846ac
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
mov qword [rbp - 0x69], rcx
xor r14d, r14d
mov qword [rcx], r14
lea rbx, [rcx + 0x18]
mov rcx, rbx
call fcn.14005da24
mov byte [rsi + 0x38], r14b
call fcn.1400550c0
mov r10, qword [rax + 8]
lea rdi, [0x1403cb630]
or r12, 0xffffffffffffffff
lea r15d, [r14 + 4]
cmp dword [r10], r15d
jbe 0x14028478a
lea rax, str.Setting_privilege
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x24
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14028473a
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, r14
test rax, rax
je 0x140284755
mov rdx, rax
mov rcx, r12
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x14028474b
mov qword [rbp + 7], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], r14d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048630f]
mov rcx, r10
call fcn.140001208
xor edx, edx
mov rcx, rsi
call fcn.1400543c8
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
mov r8, rsi
mov edx, 0x28
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
jne 0x14028485b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x69], eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140284b2f
lea rax, [rbp - 0x69]
mov qword [rbp - 9], rax
mov qword [rbp - 1], r15
lea rax, str.Failed_to_get_process_token
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x38
cmp qword [rbx + 0x18], 8
jb 0x140284809
mov rbx, qword [rbx]
mov rax, r14
test rbx, rbx
je 0x140284821
mov rdi, rbx
mov rax, r12
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140284817
mov qword [rbp + 0x17], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r14d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404862d5]
call fcn.140001208
jmp 0x140284b2f
mov qword [rbp - 0x51], r14
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14028486c
mov rdx, qword [rbx]
lea r8, [rbp - 0x51]
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 0x140284922
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x69], eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140284b2f
lea rax, [rbp - 0x69]
mov qword [rbp - 9], rax
mov qword [rbp - 1], r15
lea rax, str.Failed_to_lookup_for_privilege_value
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], VarR8FromUI1
cmp qword [rbx + 0x18], 8
jb 0x1402848d0
mov rbx, qword [rbx]
mov rax, r14
test rbx, rbx
je 0x1402848e8
mov rdi, rbx
mov rax, r12
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1402848de
mov qword [rbp + 0x17], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r14d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404862d5]
call fcn.140001208
jmp 0x140284b2f
lea r8, [rsi + 8]
mov dword [r8], 1
mov rax, qword [rbp - 0x51]
mov qword [rsi + 0xc], rax
mov dword [rsi + 0x14], 2
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
test eax, eax
jne 0x140284a07
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x69], eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140284b2f
lea rax, [rbp - 0x69]
mov qword [rbp - 9], rax
mov qword [rbp - 1], r15
lea rax, str.Failed_to_adjust_token_privileges
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x44
cmp qword [rbx + 0x18], 8
jb 0x1402849b5
mov rbx, qword [rbx]
mov rax, r14
test rbx, rbx
je 0x1402849cd
mov rdi, rbx
mov rax, r12
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1402849c3
mov qword [rbp + 0x17], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r14d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404862d5]
call fcn.140001208
jmp 0x140284b2f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
cmp eax, 0x514
jne 0x140284aae
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140284b2f
lea rax, [rbp - 0x59]
mov qword [rbp - 9], rax
mov qword [rbp - 1], r15
lea rax, str.Failed_to_assign_privileges
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x38
cmp qword [rbx + 0x18], 8
jb 0x140284a5c
mov rbx, qword [rbx]
mov rax, r14
test rbx, rbx
je 0x140284a74
mov rdi, rbx
mov rax, r12
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140284a6a
mov qword [rbp + 0x17], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r14d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404862d5]
call fcn.140001208
jmp 0x140284b2f
cmp dword [rbp - 0x39], r14d
jne 0x140284b2b
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], r15d
jbe 0x140284b2f
lea rax, str.Privilege_was_enabled_before_and_not_changed
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x5a
cmp qword [rbx + 0x18], 8
jb 0x140284adf
mov rbx, qword [rbx]
mov rax, r14
test rbx, rbx
je 0x140284af7
mov rdi, rbx
mov rax, r12
inc rax
cmp word [rbx + rax*2], r14w
jne 0x140284aed
mov qword [rbp + 7], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], r14d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048630f]
call fcn.140001208
jmp 0x140284b2f
mov byte [rsi + 0x38], 1
mov rax, rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret