Function at 0x140051860
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rbx, rcx
mov qword [rcx + 0x38], rdx
lea rcx, str.SelfFree_MSIApi
call sym.Installer.exe_Get
mov rsi, rax
test rax, rax
jne 0x1400518b9
mov eax, 0x80004005
jmp 0x140051d6c
lea rcx, [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov rax, qword [rbx]
mov edx, 0xd
mov rcx, rbx
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xe8]
call qword [0x1400926f0]
mov rdi, qword [rbx]
test eax, eax
je 0x140051d58
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1400659a0
mov rcx, rbx
mov rax, qword [rdi + 0x40]
call qword [0x1400926f0]
mov r8, qword [rax + 0x40]
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.14006e308
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x40]
call qword [0x1400926f0]
mov rdx, qword [rax + 0x28]
lea rcx, [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14005bc00
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
mov rax, qword [rax + 0x10]
call qword [0x1400926f0]
mov dword [rbx + 0x14], r14d
mov rax, qword [rsi]
lea r8, str.ReallySuppress
lea rdx, str.REBOOT
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [0x1400926f0]
mov rax, qword [rsi]
lea r8, [0x1400a385c]
lea rdx, str.LIMITUI
mov rcx, rsi
mov rax, qword [rax + 0x20]
call qword [0x1400926f0]
nop
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r14w
mov qword [rsp + 0x68], r14
lea r9, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140093540]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
lea rdi, [r14 - 1]
test eax, eax
js 0x140051a08
mov rdx, qword [rsp + 0x68]
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400519f3
lea rcx, [rsp + 0x70]
call fcn.14001c900
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rsp + 0x70]
call fcn.14005b560
nop
mov r8d, 7
lea rdx, str.msi.dll
lea rcx, [rsp + 0x70]
call fcn.140012f00
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
test rax, rax
je 0x140051a8a
lea rdx, str.MsiSetExternalUIRecord
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140051a81
xor r9d, r9d
mov r8, rbx
mov edx, 0x400
lea rcx, [0x140050a40]
call qword [sym.imp.msi.dll_MsiBeginTransactionW]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [0x1400926f0]
mov esi, eax
cmp eax, 0x645
jne 0x140051ac0
mov rax, qword [rbx]
mov edx, 0xe
mov rcx, rbx
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
mov esi, r14d
jmp 0x140051cf2
cmp esi, 0x666
jne 0x140051c8e
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.1400659a0
lea rcx, str.String_ProductCode
call sym.Installer.exe_Get
mov r15, qword [rax + 8]
mov r9, r15
lea r8, str.msiexec.exe__x__s__qn_REBOOTReallySuppress_REMOVEALL_LIMITUI1
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.14002b970
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r14w
xor r8d, r8d
lea rdx, [0x1400a2ff8]
lea rcx, [rsp + 0x48]
call fcn.14001c900
nop
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
lea rax, [rbp + 0x1c0]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140051b53
mov r8, rdi
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x28]
call fcn.14001c900
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x70]
call fcn.140058980
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140051bc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051bc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051d9e
call fcn.140062610
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140051c1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051c17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051da4
call fcn.140062610
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x140051c34
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, r15
call qword [sym.imp.msi.dll_MsiRecordGetStringA]
lea ecx, [rax + 2]
cmp ecx, 1
jbe 0x140051c5f
cmp eax, 1
je 0x140051c5f
mov r8, r15
mov edx, eax
lea rcx, str.Install_state___d__product_code:__s
call fcn.14005cb30
mov al, 1
jmp 0x140051c61
xor al, al
test al, al
cmove esi, r14d
mov rcx, qword [rbp - 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140051c7b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140051c8e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140051aa3
cmp esi, 0xbc3
je 0x140051aa3
cmp esi, 0xbc2
je 0x140051aa3
cmp esi, 0x652
jne 0x140051cdd
lea rcx, str.int_PerformingInstall
call sym.Installer.exe_Get
mov rdi, rax
lea rcx, str.int_SetupCancelled
call sym.Installer.exe_Get
test edi, edi
je 0x140051cdd
test eax, eax
jne 0x140051aa3
mov rax, qword [rbx]
mov edx, 0xf
mov rcx, rbx
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
mov rcx, qword [rsp + 0x20]
call fcn.140069370
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x40]
call qword [0x1400926f0]
mov byte [rax + 0x19], 1
test esi, esi
setne r14b
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140051d53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051d4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051d98
call fcn.140062610
mov eax, r14d
jmp 0x140051d6c
mov edx, 0xb
mov rcx, rbx
mov rax, qword [rdi + 0x78]
call qword [0x1400926f0]
xor eax, eax
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1400625f0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400695b8
nop
call fcn.1400695b8
nop
call fcn.1400695b8
int3