Function at 0x140214d70
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor esi, esi
mov rbx, rcx
cmp byte [rcx + 0x38], sil
je 0x140214f9d
call fcn.140048a14
or r15, 0xffffffffffffffff
lea rdi, [0x1402cb810]
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140214e33
lea rax, str.Disable_privilege
mov qword [rbp + 0xf], 0x24
mov qword [rbp + 7], rax
lea rax, [rbx + 0x18]
cmp qword [rax + 0x18], 8
jb 0x140214de2
mov rax, qword [rax]
mov rdx, rdi
mov rcx, rsi
test rax, rax
je 0x140214dfc
mov rdx, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140214df3
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], esi
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034fbfd]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001078
xor edx, edx
mov dword [rbx + 0x14], esi
mov rcx, qword [rbx]
lea r8, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140214efb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x29], eax
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140214f9d
lea rax, [rbp - 0x29]
mov qword [rbp + 0xf], 4
mov qword [rbp + 7], rax
lea rax, str.Failed_to_adjust_token_privileges
mov qword [rbp + 0x17], rax
lea rax, [rbx + 0x18]
cmp qword [rax + 0x18], 8
mov qword [rbp + 0x1f], 0x44
jb 0x140214ea8
mov rax, qword [rax]
mov rcx, rsi
test rax, rax
je 0x140214ebf
mov rdi, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140214eb6
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x27], rdi
mov dword [rbp + 0x2f], eax
mov dword [rbp + 0x33], esi
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034fc2c]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
jmp 0x140214f9d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x25], eax
cmp eax, 0x514
jne 0x140214f9d
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140214f9d
lea rax, [rbp - 0x25]
mov qword [rbp + 0xf], 4
mov qword [rbp + 7], rax
lea rax, str.Failed_to_disable_token_privileges
mov qword [rbp + 0x17], rax
lea rax, [rbx + 0x18]
cmp qword [rax + 0x18], 8
mov qword [rbp + 0x1f], VarR8FromUI1
jb 0x140214f4f
mov rax, qword [rax]
mov rcx, rsi
test rax, rax
je 0x140214f66
mov rdi, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140214f5d
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x27], rdi
mov dword [rbp + 0x2f], eax
mov dword [rbp + 0x33], esi
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14034fc2c]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
lea rcx, [rbx + 0x18]
call fcn.1400492c0
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140214fb9
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret