Function at 0x1400f60e0
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 [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [rcx + 0x6c], 0
je 0x1400f6409
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 [0x1401c9ef0]
movaps xmmword [rdi], xmm6
mov rcx, rdi
mov r8d, 0x10
call fcn.1400f6480
lea r14, [rsp + 0x50]
mov qword [r14 + 0x10], r13
movaps xmmword [r14], xmm6
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400f6480
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 0x1400f618c
cmp rdi, rax
je 0x1400f6438
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 0x1400f6410
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x1400f63d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp r14, 0xffffffffffffffff
je 0x1400f63f4
call fcn.140119620
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [r15 + 0x6e], 0
je 0x1400f6277
cmp byte [r15 + 0x6f], 0
je 0x1400f6277
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 0x1400f63fc
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 0x1400f63fc
cmp byte [r15 + 0x6d], 0
je 0x1400f641d
mov rcx, r14
call fcn.1400f73b0
test al, al
je 0x1400f63fc
mov r12, qword [r15 + 0x30]
mov rbp, qword [r15 + 0x38]
cmp r12, rbp
je 0x1400f62c2
mov r8d, dword [r12 + 0x18]
mov r9d, dword [r12 + 0x1c]
mov rcx, r14
mov rdx, r12
call fcn.1400f7160
test al, al
je 0x1400f63fc
add r12, 0x20
jmp 0x1400f629a
mov rcx, r14
mov edx, 0x10000000
call fcn.1400f74b0
test al, al
je 0x1400f63fc
mov edx, dword [r15 + 0x68]
mov rcx, r14
call fcn.1400e4fb0
test eax, eax
jne 0x1400f6402
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 0x1400f63fc
mov r12, qword [rsp + 0x88]
cmp qword [rbx], r12
je 0x1400f6374
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x1400f63db
lea rax, [r12 + 1]
cmp rax, 2
jb 0x1400f636b
mov qword [rbx], r12
call fcn.140119620
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400f638b
call fcn.140119620
mov rcx, r14
call fcn.140124bd0
test rdi, rdi
je 0x1400f6398
mov rcx, rdi
call fcn.14013a790
test rsi, rsi
je 0x1400f63a5
mov rcx, rsi
call fcn.14013a790
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14013bb80
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 0x1400f6205
call fcn.140119620
mov rcx, qword [rbx]
call fcn.140124bd0
mov qword [rbx], 0
jmp 0x1400f6358
xor r14d, r14d
jmp 0x1400f61fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400f6374
mov ebp, 0x3f0
jmp 0x1400f63a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400f638b
mov rcx, r14
mov edx, 0xa
xor r8d, r8d
mov r9d, 0x10000000
call fcn.14019ecc0
jmp 0x1400f628a
cmp byte [r15 + 0x6e], 0
mov rax, rdi
jne 0x1400f618c
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 0x1400f61d0