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 qword [rax + 0x20], r12
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rbp + 0x880], rax
xor r12d, r12d
mov dword [rsp + 0x24], r12d
lea edi, [r12 + 0xb]
lea rdx, [rbp + 0x460]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14001a71d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [rdi - 8]
jmp 0x14001ab57
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 rsi, rax
mov word [rsp + 0x20], r12w
mov qword [rax + 0x10], r12
cmp qword [rax + 0x18], 8
jb 0x14001a75b
mov rcx, qword [rax]
jmp 0x14001a75e
mov rcx, rsi
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 0x14001a7c5
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400044f0
lea rcx, [rsp + 0x38]
call fcn.1400044e0
mov r14, rax
cmp qword [rax + 0x18], 8
jb 0x14001a7de
mov rcx, qword [rax]
jmp 0x14001a7e1
mov rcx, r14
lea rdx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, rbx
jne 0x14001a91e
lea rcx, [rsp + 0x78]
call fcn.1400044e0
mov word [rsp + 0x20], r12w
mov qword [rax + 0x10], r12
cmp qword [rax + 0x18], 8
jb 0x14001a818
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140004a60
cmp word [rbp + 0x460], r12w
jne 0x14001a834
mov r8, r12
jmp 0x14001a848
lea rax, [rbp + 0x460]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r12w
jne 0x14001a83e
lea rdx, [rbp + 0x460]
lea rcx, [rsp + 0x78]
call fcn.140005e00
mov word [rsp + 0x20], r12w
mov qword [rsi + 0x10], r12
cmp qword [rsi + 0x18], 8
jb 0x14001a86d
mov rsi, qword [rsi]
lea rdx, [rsp + 0x20]
mov rcx, rsi
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 0x14001a8ae
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400044f0
cmp qword [r14 + 0x18], 8
jb 0x14001a8b8
mov r14, qword [r14]
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, rbx
jne 0x14001a8d7
mov esi, 2
jmp 0x14001ab35
mov r8d, 1
lea rdx, [0x140270ca8]
lea rcx, [rsp + 0x58]
call fcn.140005e00
cmp word [rbp - 0x14], r12w
jne 0x14001a8fa
mov rbx, r12
jmp 0x14001a908
lea rax, [rbp - 0x14]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14001a8fe
mov r8, rbx
lea rdx, [rbp - 0x14]
lea rcx, [rsp + 0x58]
call fcn.140005e00
mov rcx, rsi
jmp 0x14001a96c
mov r8d, 1
lea rdx, [0x140270ca8]
lea rcx, [rsp + 0x58]
call fcn.140005e00
cmp word [rbp + 0x23c], r12w
jne 0x14001a944
mov rbx, r12
jmp 0x14001a955
lea rax, [rbp + 0x23c]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14001a94b
mov r8, rbx
lea rdx, [rbp + 0x23c]
lea rcx, [rsp + 0x58]
call fcn.140005e00
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dword [rsp + 0x28], 0x104
xor edx, edx
lea esi, [rdx + 2]
mov ecx, esi
call qword [sym.imp.msi.dll_MsiSetPropertyW]
lea rcx, [rsp + 0x58]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14001a99b
mov rax, qword [rax]
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.msi.dll_MsiPreviewBillboardW]
test eax, eax
jne 0x14001ab33
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 0x14001ab25
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 0x14001a9ff
mov rcx, qword [rax]
jmp 0x14001aa02
mov rcx, rbx
lea rdx, str.InkPDL_PWP
call fcn.1401cb430
test eax, eax
jne 0x14001aa1a
lea edi, [rax + 6]
jmp 0x14001ab1c
cmp qword [rbx + 0x18], 8
jb 0x14001aa26
mov rcx, qword [rbx]
jmp 0x14001aa29
mov rcx, rbx
lea rdx, str.InkPDL_PWE
call fcn.1401cb430
test eax, eax
jne 0x14001aa41
lea edi, [rax + 7]
jmp 0x14001ab1c
cmp qword [rbx + 0x18], 8
jb 0x14001aa4d
mov rcx, qword [rbx]
jmp 0x14001aa50
mov rcx, rbx
lea rdx, [0x140274868]
call fcn.1401cb430
test eax, eax
jne 0x14001aa68
lea edi, [rax + 5]
jmp 0x14001ab1c
cmp qword [rbx + 0x18], 8
jb 0x14001aa74
mov rcx, qword [rbx]
jmp 0x14001aa77
mov rcx, rbx
lea rdx, str.ScanJet
call fcn.1401cb430
test eax, eax
jne 0x14001aa8e
mov edi, esi
jmp 0x14001ab1c
cmp qword [rbx + 0x18], 8
jb 0x14001aa9a
mov rcx, qword [rbx]
jmp 0x14001aa9d
mov rcx, rbx
lea rdx, str.LaserJet
call fcn.1401cb430
test eax, eax
jne 0x14001aab2
lea edi, [rax + 3]
jmp 0x14001ab1c
cmp qword [rbx + 0x18], 8
jb 0x14001aabe
mov rcx, qword [rbx]
jmp 0x14001aac1
mov rcx, rbx
lea rdx, str.LaserPro
call fcn.1401cb430
test eax, eax
jne 0x14001aad6
lea edi, [rax + 8]
jmp 0x14001ab1c
cmp qword [rbx + 0x18], 8
jb 0x14001aae2
mov rcx, qword [rbx]
jmp 0x14001aae5
mov rcx, rbx
lea rdx, str.LaserEnt
call fcn.1401cb430
test eax, eax
jne 0x14001aafa
lea edi, [rax + 9]
jmp 0x14001ab1c
cmp qword [rbx + 0x18], 8
jb 0x14001ab04
mov rbx, qword [rbx]
lea rdx, str.TypeNotSet
mov rcx, rbx
call fcn.1401cb430
neg eax
sbb ecx, ecx
and ecx, 0xfffffff9
add edi, ecx
lea rcx, [rbp - 0x68]
call fcn.140004af0
mov ecx, dword [rsp + 0x24]
test ecx, ecx
je 0x14001ab33
call qword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov esi, edi
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, esi
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.1401c44c0
lea r11, [rsp + 0x990]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret