Function at 0x1401443d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r15, r9
mov rbx, r8
mov ebp, edx
mov rdi, rcx
mov rax, qword [0x140362028]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.14019ff80
mov esi, pe_nt_image_headers64
cmp eax, 5
jge 0x140144421
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401a4270
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0x57
cmp ebp, 1
ja 0x140144405
test r15, r15
je 0x140144405
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.CreateAppContainerToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401444aa
mov rsi, rax
test rdi, rdi
je 0x1401444cb
xor r14d, r14d
lea r8, [rsp + 0x68]
mov qword [r8], 0
mov rcx, rdi
mov rdx, rbx
mov rax, rsi
call qword [case.0x1401f58d0.0]
test eax, eax
je 0x14014451c
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140144529
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rbx, 0xffffffffffffffff
je 0x14014453d
call fcn.1400c5840
jmp 0x14014453f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401a4270
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x40]
mov qword [rdi], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xf01ff
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14014452d
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x140144607
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp r14, 0xffffffffffffffff
je 0x140144612
call fcn.1400c5840
jmp 0x140144615
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140144713
xor ebx, ebx
jmp 0x140144547
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor r14d, r14d
jmp 0x140144713
xor ebx, ebx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebp, 1
jne 0x1401445a7
lea rdi, [rbx + 1]
cmp rdi, 2
jb 0x14014455b
call fcn.1400c5840
cmp qword [r15], rbx
je 0x14014459e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jb 0x140144588
call fcn.1400c5840
mov rcx, qword [r15]
call fcn.1400e21b0
mov qword [r15], 0
cmp rdi, 2
jb 0x140144596
mov qword [r15], rbx
call fcn.1400c5840
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
xor esi, esi
jmp 0x1401446fc
lea rax, [rsp + 0x60]
mov qword [rax], 0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1401445fa
mov rbp, qword [rsp + 0x60]
test rbp, rbp
je 0x14014460e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rbp, 0xffffffffffffffff
je 0x140144627
call fcn.1400c5840
jmp 0x140144629
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401446fc
xor edi, edi
jmp 0x14014445a
xor ebp, ebp
jmp 0x140144631
xor r14d, r14d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x40]
jmp 0x14014445d
xor ebp, ebp
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
lea r8, [rsp + 0x40]
movaps xmmword [r8], xmm0
xor eax, eax
mov qword [r8 + 0x10], rax
lea r9, [rsp + 0x38]
mov qword [r9], rax
mov rcx, rbx
mov edx, 4
call fcn.140144250
test eax, eax
je 0x140144660
mov esi, eax
jmp 0x1401446d1
mov r8, qword [rsp + 0x38]
mov rcx, rbp
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
je 0x140144733
lea rdi, [rbp + 1]
cmp rdi, 2
jb 0x14014468a
call fcn.1400c5840
cmp qword [r15], rbp
je 0x1401446cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [r15]
inc rax
cmp rax, 2
jb 0x1401446b7
call fcn.1400c5840
mov rcx, qword [r15]
call fcn.1400e21b0
mov qword [r15], 0
cmp rdi, 2
jb 0x1401446c5
mov qword [r15], rbp
call fcn.1400c5840
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
xor esi, esi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401446e5
mov qword [rsp + 0x48], rcx
call fcn.1401a2ea8
lea rax, [rbp + 1]
cmp rax, 2
jb 0x1401446fc
call fcn.1400c5840
mov rcx, rbp
call fcn.1400e21b0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140144713
call fcn.1400c5840
mov rcx, rbx
call fcn.1400e21b0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140144405
call fcn.1400c5840
mov rcx, r14
call fcn.1400e21b0
jmp 0x140144405
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14014465c