Function at 0x140080cf0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [rcx + 0x6c], 0
je 0x140081019
mov rbx, rdx
mov r15, rcx
lea rdx, [rcx + 0x18]
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x10], r13
movaps xmm6, xmmword [0x14014b720]
movaps xmmword [rdi], xmm6
mov rcx, rdi
mov r8d, 0x10
call fcn.140081090
lea r14, [rsp + 0x50]
mov qword [r14 + 0x10], r13
movaps xmmword [r14], xmm6
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140081090
mov qword [rsp + 0x48], 0
mov rsi, qword [rdi]
mov r8, qword [rdi + 8]
mov rdi, qword [r14]
mov rax, qword [r14 + 8]
cmp rsi, r8
jne 0x140080d9c
cmp rdi, rax
je 0x140081048
sub rax, rdi
shr rax, 4
sub r8, rsi
shr r8, 4
movzx edx, byte [r15 + 0x6e]
mov rcx, qword [r15 + 0x48]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rsi
call qword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x140081020
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x140080fe3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r14, 0xffffffffffffffff
je 0x140081004
call fcn.1400a33d0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [r15 + 0x6e], 0
je 0x140080e87
cmp byte [r15 + 0x6f], 0
je 0x140080e87
lea r8, [rsp + 0x8c]
mov dword [r8 + 8], 0
mov qword [r8], 0
mov dword [r8 - 4], 1
lea rdx, str.SeChangeNotifyPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14008100c
lea r8, [rsp + 0x88]
mov dword [r8 + 0xc], 4
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov rcx, r14
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x14008100c
cmp byte [r15 + 0x6d], 0
je 0x14008102d
mov rcx, r14
call fcn.140081fc0
test al, al
je 0x14008100c
mov r12, qword [r15 + 0x30]
mov rbp, qword [r15 + 0x38]
cmp r12, rbp
je 0x140080ed2
mov r8d, dword [r12 + 0x18]
mov r9d, dword [r12 + 0x1c]
mov rcx, r14
mov rdx, r12
call fcn.140081d70
test al, al
je 0x14008100c
add r12, 0x20
jmp 0x140080eaa
mov rcx, r14
mov edx, 0x10000000
call fcn.1400820c0
test al, al
je 0x14008100c
mov edx, dword [r15 + 0x68]
mov rcx, r14
call fcn.14006eba0
test eax, eax
jne 0x140081012
lea r15, [rsp + 0x88]
mov qword [r15], r13
mov r13, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r13
mov r12, rax
call r13
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 0xf01ff
mov rcx, rax
mov rdx, r14
mov r8, r12
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14008100c
mov r12, qword [rsp + 0x88]
cmp qword [rbx], r12
je 0x140080f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x140080feb
lea rax, [r12 + 1]
cmp rax, 2
jb 0x140080f7b
mov qword [rbx], r12
call fcn.1400a33d0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140080f9b
call fcn.1400a33d0
mov rcx, r14
call fcn.1400ae980
test rdi, rdi
je 0x140080fa8
mov rcx, rdi
call fcn.1400c46a0
test rsi, rsi
je 0x140080fb5
mov rcx, rsi
call fcn.1400c46a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400c59b0
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140080e15
call fcn.1400a33d0
mov rcx, qword [rbx]
call fcn.1400ae980
mov qword [rbx], 0
jmp 0x140080f68
xor r14d, r14d
jmp 0x140080e0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x140080f84
mov ebp, 0x3f0
jmp 0x140080fb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x140080f9b
mov rcx, r14
mov edx, 0xa
xor r8d, r8d
mov r9d, 0x10000000
call fcn.1401253c0
jmp 0x140080e9a
cmp byte [r15 + 0x6e], 0
mov rax, rdi
jne 0x140080d9c
mov rcx, qword [r15 + 0x48]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x140080de0