Function at 0x14004d4b4
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
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov rax, qword [0x1400841b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor edi, edi
mov rsi, rcx
mov qword [rbp - 0x61], rdi
call fcn.1400097d0
or r13, 0xffffffffffffffff
lea r12d, [rdi + 4]
mov r8, rax
lea r14, [0x14005ca08]
cmp dword [rax], r12d
jbe 0x14004d572
cmp qword [rsi + 0x18], 8
lea rax, str.Setting_privilege
mov qword [rbp - 9], rax
mov rcx, rsi
mov qword [rbp - 1], 0x24
jb 0x14004d52a
mov rcx, qword [rsi]
mov rdx, r14
mov rax, rdi
test rcx, rcx
je 0x14004d544
mov rdx, rcx
mov rax, r13
inc rax
cmp word [rcx + rax*2], di
jne 0x14004d53b
lea eax, [rax*2 + 2]
mov qword [rbp + 7], rdx
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], edi
lea rax, [rbp - 0x29]
mov rcx, r8
mov qword [rsp + 0x28], rax
lea rdx, [0x14006f0e0]
mov dword [rsp + 0x20], r12d
call fcn.1400011b0
mov r15, qword [rbp - 0x61]
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004d5ab
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov qword [rbp - 0x61], rdi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rbp - 0x61]
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 0x14004d670
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.1400097d0
mov rcx, rax
cmp dword [rax], 2
jbe 0x14004d924
cmp qword [rsi + 0x18], 8
lea rax, [rbp - 0x69]
mov qword [rbp - 9], rax
lea rax, str.Failed_to_get_process_token
mov qword [rbp + 7], rax
mov dword [rbp - 0x69], ebx
mov qword [rbp - 1], r12
mov qword [rbp + 0xf], 0x38
jb 0x14004d626
mov rsi, qword [rsi]
mov rax, rdi
test rsi, rsi
je 0x14004d63d
mov r14, rsi
mov rax, r13
inc rax
cmp word [rsi + rax*2], di
jne 0x14004d634
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], r14
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], edi
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006f0a2]
mov dword [rsp + 0x20], 5
call fcn.1400011b0
jmp 0x14004d924
xor eax, eax
mov rdx, rsi
cmp qword [rsi + 0x18], 8
mov qword [rbp - 0x59], rax
jb 0x14004d683
mov rdx, qword [rsi]
lea r8, [rbp - 0x59]
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 0x14004d732
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.1400097d0
mov rcx, rax
cmp dword [rax], 2
jbe 0x14004d924
cmp qword [rsi + 0x18], 8
lea rax, [rbp - 0x69]
mov qword [rbp - 9], rax
lea rax, str.Failed_to_lookup_for_privilege_value
mov qword [rbp + 7], rax
mov dword [rbp - 0x69], ebx
mov qword [rbp - 1], r12
mov qword [rbp + 0xf], VarR8FromUI1
jb 0x14004d6e8
mov rsi, qword [rsi]
mov rax, rdi
test rsi, rsi
je 0x14004d6ff
mov r14, rsi
mov rax, r13
inc rax
cmp word [rsi + rax*2], di
jne 0x14004d6f6
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], r14
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], edi
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006f0a2]
mov dword [rsp + 0x20], 5
call fcn.1400011b0
jmp 0x14004d924
mov rax, qword [rbp - 0x59]
lea r8, [rbp - 0x49]
mov rcx, qword [rbp - 0x61]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rbp - 0x45], rax
xor edx, edx
lea rax, [rbp - 0x51]
mov dword [rbp - 0x49], 1
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x3d], 2
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
test eax, eax
jne 0x14004d813
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.1400097d0
mov rcx, rax
cmp dword [rax], 2
jbe 0x14004d924
cmp qword [rsi + 0x18], 8
lea rax, [rbp - 0x69]
mov qword [rbp - 9], rax
lea rax, str.Failed_to_adjust_token_privileges
mov qword [rbp + 7], rax
mov dword [rbp - 0x69], ebx
mov qword [rbp - 1], r12
mov qword [rbp + 0xf], 0x44
jb 0x14004d7c9
mov rsi, qword [rsi]
mov rax, rdi
test rsi, rsi
je 0x14004d7e0
mov r14, rsi
mov rax, r13
inc rax
cmp word [rsi + rax*2], di
jne 0x14004d7d7
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], r14
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], edi
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006f0a2]
mov dword [rsp + 0x20], 5
call fcn.1400011b0
jmp 0x14004d924
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, 0x514
cmp eax, ebx
jne 0x14004d8b0
call fcn.1400097d0
mov rcx, rax
cmp dword [rax], 2
jbe 0x14004d924
cmp qword [rsi + 0x18], 8
lea rax, [rbp - 0x69]
mov qword [rbp - 9], rax
lea rax, str.Failed_to_assign_privileges
mov qword [rbp + 7], rax
mov dword [rbp - 0x69], ebx
mov qword [rbp - 1], r12
mov qword [rbp + 0xf], 0x38
jb 0x14004d869
mov rsi, qword [rsi]
mov rax, rdi
test rsi, rsi
je 0x14004d880
mov r14, rsi
mov rax, r13
inc rax
cmp word [rsi + rax*2], di
jne 0x14004d877
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], r14
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], edi
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006f0a2]
mov dword [rsp + 0x20], 5
call fcn.1400011b0
jmp 0x14004d924
cmp dword [rbp - 0x39], edi
jne 0x14004d921
call fcn.1400097d0
mov rcx, rax
cmp dword [rax], r12d
jbe 0x14004d921
cmp qword [rsi + 0x18], 8
lea rax, str.Privilege_was_enabled_before_and_not_changed
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x5a
jb 0x14004d8df
mov rsi, qword [rsi]
mov rax, rdi
test rsi, rsi
je 0x14004d8f6
mov r14, rsi
mov rax, r13
inc rax
cmp word [rsi + rax*2], di
jne 0x14004d8ed
lea eax, [rax*2 + 2]
mov qword [rbp + 7], r14
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], edi
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rdx, [0x14006f0e0]
mov dword [rsp + 0x20], r12d
call fcn.1400011b0
mov dil, 1
mov rcx, qword [rbp - 0x61]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14004d93e
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov al, dil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14004ddf0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret