Function at 0x140232dc0
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 [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor esi, esi
mov rbx, rcx
cmp byte [rcx + 0x38], sil
je 0x140232fed
call fcn.14004acb4
or r15, 0xffffffffffffffff
lea rdi, [0x14030cae0]
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140232e83
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 0x140232e32
mov rax, qword [rax]
mov rdx, rdi
mov rcx, rsi
test rax, rax
je 0x140232e4c
mov rdx, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140232e43
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, [0x14039f1e8]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001158
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 0x140232f4b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x29], eax
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140232fed
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 0x140232ef8
mov rax, qword [rax]
mov rcx, rsi
test rax, rax
je 0x140232f0f
mov rdi, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140232f06
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, [0x14039f217]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
jmp 0x140232fed
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x25], eax
cmp eax, 0x514
jne 0x140232fed
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140232fed
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 0x140232f9f
mov rax, qword [rax]
mov rcx, rsi
test rax, rax
je 0x140232fb6
mov rdi, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140232fad
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, [0x14039f217]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
lea rcx, [rbx + 0x18]
call fcn.14004b500
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140233009
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402ae860
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret