Function at 0x140248b48
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 [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor esi, esi
mov rbx, rcx
cmp byte [rcx + 0x38], sil
je 0x140248d75
call fcn.14004d8a4
or r15, 0xffffffffffffffff
lea rdi, [0x140344690]
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140248c0b
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 0x140248bba
mov rax, qword [rax]
mov rdx, rdi
mov rcx, rsi
test rax, rax
je 0x140248bd4
mov rdx, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140248bcb
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, [0x1403e1890]
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 0x140248cd3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x29], eax
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140248d75
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 0x140248c80
mov rax, qword [rax]
mov rcx, rsi
test rax, rax
je 0x140248c97
mov rdi, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140248c8e
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, [0x1403e18bf]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
jmp 0x140248d75
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp - 0x25], eax
cmp eax, 0x514
jne 0x140248d75
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140248d75
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 0x140248d27
mov rax, qword [rax]
mov rcx, rsi
test rax, rax
je 0x140248d3e
mov rdi, rax
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], si
jne 0x140248d35
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, [0x1403e18bf]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
lea rcx, [rbx + 0x18]
call fcn.14004e0f0
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140248d91
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402dfdb0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret