Function at 0x1400a4580
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, rdx
mov rsi, rcx
xor r15d, r15d
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
lea r8d, [r15 + 0x26]
lea rdx, str.ClientIntegrationIntegrationRootUser
lea rcx, [rsp + 0x58]
call fcn.140007d00
nop
mov byte [rsp + 0x20], r15b
lea r9, [rsp + 0x20]
lea r8d, [r15 + 2]
lea rdx, [rsp + 0x58]
call fcn.140093b70
mov rdi, rax
shr rax, 0x27
not eax
or rbx, 0xffffffffffffffff
test al, 1
jne 0x1400a46c4
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r15
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r15
mov word [rbp - 0x20], r15w
mov r9, rbx
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call fcn.140007bc0
nop
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r15
mov word [rbp + 0x20], r15w
mov qword [rbp + 0x40], r15
movzx eax, byte [rsp + 0x20]
mov byte [rbp + 0x48], al
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x20]
call fcn.140093e50
mov rdi, rax
lea rcx, [rbp - 0x20]
call fcn.140093db0
nop
cmp qword [rsp + 0x70], 8
jb 0x1400a46d7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
mov rax, rdi
shr rax, 0x27
not eax
test al, 1
jne 0x1400a4a45
lea r12, vtable.ATL::CAccessToken.0
mov qword [rsp + 0x28], r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140015110
test al, al
jne 0x1400a477c
mov edx, MsiPreviewDialogW
lea rcx, str...ClientPackageUtilities.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x1400a4742
inc rax
jmp 0x1400a4749
lea rax, str...ClientPackageUtilities.cpp
mov rdx, rax
lea rcx, [0x140209428]
call fcn.140005ff0
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or rdi, rbx
movabs rax, 0x72800000000
or rdi, rax
jmp 0x1400a49fc
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140030f90
nop
mov r8, rax
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.1400181b0
nop
cmp qword [rsp + 0x70], 8
jb 0x1400a47b2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
cmp qword [rbp - 0x70], 8
jb 0x1400a47e0
mov rdx, qword [rsp + 0x78]
test rdx, rdx
jne 0x1400a47e5
lea rdx, [0x140160794]
jmp 0x1400a47e5
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
cmp word [rdx], 0
jne 0x1400a4810
mov rbx, r15
jmp 0x1400a481a
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400a4810
mov r8, rbx
lea rcx, [rsp + 0x58]
call fcn.140007d00
nop
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140015f20
mov rbx, rax
lea rax, [rsp + 0x78]
cmp rax, rbx
je 0x1400a487a
cmp qword [rbp - 0x70], 8
jb 0x1400a485a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r15
mov word [rsp + 0x78], r15w
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140007b30
nop
cmp qword [rbp - 0x30], 8
jb 0x1400a488b
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r15
mov word [rbp - 0x48], r15w
cmp qword [rsp + 0x70], 8
jb 0x1400a48af
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400a49ce
lea rcx, [rsp + 0x58]
call fcn.140041ca0
nop
lea rcx, [rsp + 0x78]
call fcn.14000f280
mov rdi, rax
shr rax, 0x27
not eax
test al, 1
jne 0x1400a492e
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140060df0
mov ebx, eax
test eax, eax
je 0x1400a4981
call fcn.1400a4540
mov rdi, rax
or rdi, rbx
movabs rax, 0x92800000000
or rdi, rax
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1400a49d8
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x1400a495f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x58], 0
jmp 0x1400a49d8
test rcx, rcx
je 0x1400a496a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1400a49ce
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x1400a49ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x58], 0
jmp 0x1400a49ce
test rcx, rcx
je 0x1400a49b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
movabs rdi, 0x8000000000
cmp qword [rbp - 0x70], 8
jb 0x1400a49ea
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r15
mov word [rsp + 0x78], r15w
mov qword [rsp + 0x28], r12
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400a4a25
test rcx, rcx
je 0x1400a4a20
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], r15
test rcx, rcx
je 0x1400a4a35
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r15
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x40], r15
cmp qword [rbp - 0x50], 8
jb 0x1400a4a56
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r15
mov word [rbp - 0x68], r15w
mov rax, rdi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140107280
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret