Function at 0x14001a6ac
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x8a8]
sub rsp, 0x990
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rbp + 0x880], rax
mov eax, dword [0x1402bc948]
cmp eax, 0xb
jne 0x14001ab97
xor r15d, r15d
mov dword [rsp + 0x24], r15d
lea rdx, [rbp + 0x460]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14001a724
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [r15 + 3]
jmp 0x14001ab97
lea rcx, [rsp + 0x38]
call fcn.1400049d0
lea rcx, [rsp + 0x38]
call fcn.140004a50
mov qword [rax], 7
lea rcx, [rsp + 0x38]
call fcn.1400044e0
mov rdi, rax
mov word [rsp + 0x20], r15w
mov qword [rax + 0x10], r15
cmp qword [rax + 0x18], 8
jb 0x14001a762
mov rcx, qword [rax]
jmp 0x14001a765
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.140004a60
nop
lea rdx, [rbp + 0x460]
lea rcx, [rsp + 0x78]
call fcn.1400043a0
nop
lea rdx, [rbp + 0x460]
lea rcx, [rsp + 0x58]
call fcn.1400043a0
nop
mov r8d, 0xa
lea rdx, str._x64.msi
lea rcx, [rsp + 0x78]
call fcn.140005e00
lea rcx, [rsp + 0x38]
or rbx, 0xffffffffffffffff
cmp rcx, rax
je 0x14001a7cc
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400044f0
lea rcx, [rsp + 0x38]
call fcn.1400044e0
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x14001a7e5
mov rcx, qword [rax]
jmp 0x14001a7e8
mov rcx, rsi
lea rdx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, rbx
jne 0x14001a925
lea rcx, [rsp + 0x78]
call fcn.1400044e0
mov word [rsp + 0x20], r15w
mov qword [rax + 0x10], r15
cmp qword [rax + 0x18], 8
jb 0x14001a81f
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140004a60
cmp word [rbp + 0x460], r15w
jne 0x14001a83b
mov r8, r15
jmp 0x14001a84f
lea rax, [rbp + 0x460]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r15w
jne 0x14001a845
lea rdx, [rbp + 0x460]
lea rcx, [rsp + 0x78]
call fcn.140005e00
mov word [rsp + 0x20], r15w
mov qword [rdi + 0x10], r15
cmp qword [rdi + 0x18], 8
jb 0x14001a874
mov rdi, qword [rdi]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140004a60
mov r8d, 0xa
lea rdx, str._x86.msi
lea rcx, [rsp + 0x78]
call fcn.140005e00
lea rcx, [rsp + 0x38]
cmp rcx, rax
je 0x14001a8b5
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400044f0
cmp qword [rsi + 0x18], 8
jb 0x14001a8bf
mov rsi, qword [rsi]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, rbx
jne 0x14001a8de
mov edi, 2
jmp 0x14001ab75
mov r8d, 1
lea rdx, [0x140270ca8]
lea rcx, [rsp + 0x58]
call fcn.140005e00
cmp word [rbp - 0x14], r15w
jne 0x14001a901
mov rbx, r15
jmp 0x14001a90f
lea rax, [rbp - 0x14]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x14001a905
mov r8, rbx
lea rdx, [rbp - 0x14]
lea rcx, [rsp + 0x58]
call fcn.140005e00
mov rcx, rdi
jmp 0x14001a973
mov r8d, 1
lea rdx, [0x140270ca8]
lea rcx, [rsp + 0x58]
call fcn.140005e00
cmp word [rbp + 0x23c], r15w
jne 0x14001a94b
mov rbx, r15
jmp 0x14001a95c
lea rax, [rbp + 0x23c]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x14001a952
mov r8, rbx
lea rdx, [rbp + 0x23c]
lea rcx, [rsp + 0x58]
call fcn.140005e00
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dword [rsp + 0x28], 0x104
xor edx, edx
lea edi, [rdx + 2]
mov ecx, edi
call qword [sym.imp.msi.dll_MsiSetPropertyW]
lea rcx, [rsp + 0x58]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14001a9a2
mov rax, qword [rax]
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.msi.dll_MsiPreviewBillboardW]
test eax, eax
jne 0x14001ab6f
lea r9, [rsp + 0x28]
lea r8, [rbp + 0x670]
lea rdx, str.DeviceGroup
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.msi.dll_MsiGetSourcePathW]
test eax, eax
jne 0x14001ab61
lea rdx, [rbp + 0x670]
lea rcx, [rbp - 0x68]
call fcn.1400043a0
nop
lea rcx, [rbp - 0x68]
call fcn.1400044e0
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x14001aa06
mov rcx, qword [rax]
jmp 0x14001aa09
mov rcx, rbx
lea rdx, str.InkPDL_PWP
call fcn.1401cb470
test eax, eax
jne 0x14001aa28
mov dword [0x1402bc948], 6
jmp 0x14001ab58
cmp qword [rbx + 0x18], 8
jb 0x14001aa34
mov rcx, qword [rbx]
jmp 0x14001aa37
mov rcx, rbx
lea rdx, str.InkPDL_PWE
call fcn.1401cb470
test eax, eax
jne 0x14001aa56
mov dword [0x1402bc948], 7
jmp 0x14001ab58
cmp qword [rbx + 0x18], 8
jb 0x14001aa62
mov rcx, qword [rbx]
jmp 0x14001aa65
mov rcx, rbx
lea rdx, [0x140274868]
call fcn.1401cb470
test eax, eax
jne 0x14001aa84
mov dword [0x1402bc948], 5
jmp 0x14001ab58
cmp qword [rbx + 0x18], 8
jb 0x14001aa90
mov rcx, qword [rbx]
jmp 0x14001aa93
mov rcx, rbx
lea rdx, str.ScanJet
call fcn.1401cb470
test eax, eax
jne 0x14001aaae
mov dword [0x1402bc948], edi
jmp 0x14001ab58
cmp qword [rbx + 0x18], 8
jb 0x14001aaba
mov rcx, qword [rbx]
jmp 0x14001aabd
mov rcx, rbx
lea rdx, str.LaserJet
call fcn.1401cb470
test eax, eax
jne 0x14001aad9
mov dword [0x1402bc948], 3
jmp 0x14001ab58
cmp qword [rbx + 0x18], 8
jb 0x14001aae5
mov rcx, qword [rbx]
jmp 0x14001aae8
mov rcx, rbx
lea rdx, str.LaserPro
call fcn.1401cb470
test eax, eax
jne 0x14001ab04
mov dword [0x1402bc948], 8
jmp 0x14001ab58
cmp qword [rbx + 0x18], 8
jb 0x14001ab10
mov rcx, qword [rbx]
jmp 0x14001ab13
mov rcx, rbx
lea rdx, str.LaserEnt
call fcn.1401cb470
test eax, eax
jne 0x14001ab2f
mov dword [0x1402bc948], 9
jmp 0x14001ab58
cmp qword [rbx + 0x18], 8
jb 0x14001ab39
mov rbx, qword [rbx]
lea rdx, str.TypeNotSet
mov rcx, rbx
call fcn.1401cb470
neg eax
sbb ecx, ecx
and ecx, 0xfffffff9
add ecx, 0xb
mov dword [0x1402bc948], ecx
lea rcx, [rbp - 0x68]
call fcn.140004af0
mov ecx, dword [rsp + 0x24]
test ecx, ecx
je 0x14001ab6f
call qword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov edi, dword [0x1402bc948]
lea rcx, [rsp + 0x58]
call fcn.140004af0
nop
lea rcx, [rsp + 0x78]
call fcn.140004af0
nop
lea rcx, [rsp + 0x38]
call fcn.140004af0
mov eax, edi
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.1401c4500
lea r11, [rsp + 0x990]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret