Function at 0x140033148
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
lea rbp, [rax - 0x898]
sub rsp, 0x980
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140729900]
xor rax, rsp
mov qword [rbp + 0x870], rax
mov eax, dword [reloc.WS2_32.dll_inet_addr]
cmp eax, 0xb
jne 0x14003367d
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp + 0x450]
mov esi, 0x104
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400331c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [r14 + 3]
jmp 0x14003367d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov r12d, 7
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r14
mov word [rsp + 0x30], r14w
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
cmp word [rbp + 0x450], r14w
jne 0x140033206
mov rax, r14
jmp 0x140033212
lea rcx, [rbp + 0x450]
call fcn.140288ad0
mov r8, rax
lea rdx, [rbp + 0x450]
lea rcx, [rbp - 0x70]
call fcn.140009ed0
nop
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r14
mov word [rsp + 0x70], r14w
cmp word [rbp + 0x450], r14w
jne 0x14003324b
mov rax, r14
jmp 0x140033257
lea rcx, [rbp + 0x450]
call fcn.140288ad0
mov r8, rax
lea rdx, [rbp + 0x450]
lea rcx, [rsp + 0x70]
call fcn.140009ed0
nop
lea rcx, str._x64.msi
call fcn.140288ad0
mov r8, rax
lea rdx, str._x64.msi
lea rcx, [rbp - 0x70]
call fcn.14000af30
lea rcx, [rsp + 0x30]
or rdi, 0xffffffffffffffff
cmp rcx, rax
je 0x1400332ac
mov r9, rdi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000a070
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, rdi
jne 0x1400333d8
mov qword [rbp - 0x60], r14
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rax, qword [rbp - 0x70]
mov word [rax], r14w
cmp word [rbp + 0x450], r14w
jne 0x1400332fb
mov rax, r14
jmp 0x140033307
lea rcx, [rbp + 0x450]
call fcn.140288ad0
mov r8, rax
lea rdx, [rbp + 0x450]
lea rcx, [rbp - 0x70]
call fcn.14000af30
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov word [rax], r14w
lea rcx, str._x86.msi
call fcn.140288ad0
mov r8, rax
lea rdx, str._x86.msi
lea rcx, [rbp - 0x70]
call fcn.14000af30
lea rcx, [rsp + 0x30]
cmp rcx, rax
je 0x140033370
mov r9, rdi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000a070
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, rdi
jne 0x14003339d
mov esi, 2
jmp 0x14003364d
lea rcx, [0x1405df1e8]
call fcn.140288ad0
mov r8, rax
lea rdx, [0x1405df1e8]
lea rcx, [rsp + 0x70]
call fcn.14000af30
cmp word [rbp - 0x24], r14w
jne 0x1400333c9
mov rax, r14
jmp 0x1400333d2
lea rcx, [rbp - 0x24]
call fcn.140288ad0
lea rdx, [rbp - 0x24]
jmp 0x14003341a
lea rcx, [0x1405df1e8]
call fcn.140288ad0
mov r8, rax
lea rdx, [0x1405df1e8]
lea rcx, [rsp + 0x70]
call fcn.14000af30
cmp word [rbp + 0x22c], r14w
jne 0x140033407
mov rax, r14
jmp 0x140033413
lea rcx, [rbp + 0x22c]
call fcn.140288ad0
lea rdx, [rbp + 0x22c]
mov r8, rax
lea rcx, [rsp + 0x70]
call fcn.14000af30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dword [rsp + 0x24], esi
xor edx, edx
lea esi, [rdx + 2]
mov ecx, esi
call qword [sym.imp.msi.dll_MsiSetPropertyW]
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x20]
call qword [sym.imp.msi.dll_MsiPreviewBillboardW]
test eax, eax
jne 0x140033647
lea r9, [rsp + 0x24]
lea r8, [rbp + 0x660]
lea rdx, str.DeviceGroup
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.msi.dll_MsiGetSourcePathW]
test eax, eax
jne 0x140033639
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp word [rbp + 0x660], r14w
jne 0x1400334b2
mov rax, r14
jmp 0x1400334be
lea rcx, [rbp + 0x660]
call fcn.140288ad0
mov r8, rax
lea rdx, [rbp + 0x660]
lea rcx, [rsp + 0x50]
call fcn.140009ed0
nop
lea rcx, [rsp + 0x50]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
cmp rdi, 8
cmovae rcx, rbx
lea rdx, str.InkPDL_PWP
call fcn.14029ccc0
test eax, eax
jne 0x140033509
mov dword [reloc.WS2_32.dll_inet_addr], 6
jmp 0x14003362a
lea rcx, [rsp + 0x50]
cmp rdi, 8
cmovae rcx, rbx
lea rdx, str.InkPDL_PWE
call fcn.14029ccc0
test eax, eax
jne 0x140033532
mov dword [reloc.WS2_32.dll_inet_addr], r12d
jmp 0x14003362a
lea rcx, [rsp + 0x50]
cmp rdi, 8
cmovae rcx, rbx
lea rdx, [0x1405dfdf0]
call fcn.14029ccc0
test eax, eax
jne 0x14003355e
mov dword [reloc.WS2_32.dll_inet_addr], 5
jmp 0x14003362a
lea rcx, [rsp + 0x50]
cmp rdi, 8
cmovae rcx, rbx
lea rdx, str.ScanJet
call fcn.14029ccc0
test eax, eax
jne 0x140033586
mov dword [reloc.WS2_32.dll_inet_addr], esi
jmp 0x14003362a
lea rcx, [rsp + 0x50]
cmp rdi, 8
cmovae rcx, rbx
lea rdx, str.LaserJet
call fcn.14029ccc0
test eax, eax
jne 0x1400335af
mov dword [reloc.WS2_32.dll_inet_addr], 3
jmp 0x14003362a
lea rcx, [rsp + 0x50]
cmp rdi, 8
cmovae rcx, rbx
lea rdx, str.LaserPro
call fcn.14029ccc0
test eax, eax
jne 0x1400335d8
mov dword [reloc.WS2_32.dll_inet_addr], 8
jmp 0x14003362a
lea rcx, [rsp + 0x50]
cmp rdi, 8
cmovae rcx, rbx
lea rdx, str.LaserEnt
call fcn.14029ccc0
test eax, eax
jne 0x140033601
mov dword [reloc.WS2_32.dll_inet_addr], 9
jmp 0x14003362a
lea rcx, [rsp + 0x50]
cmp rdi, 8
cmovae rcx, rbx
lea rdx, str.TypeNotSet
call fcn.14029ccc0
neg eax
sbb ecx, ecx
and ecx, 0xfffffff9
add ecx, 0xb
mov dword [reloc.WS2_32.dll_inet_addr], ecx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.140009e10
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x140033647
call qword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov esi, dword [reloc.WS2_32.dll_inet_addr]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x70]
call fcn.140009e10
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x70]
call fcn.140009e10
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140009e10
mov eax, esi
mov rcx, qword [rbp + 0x870]
xor rcx, rsp
call fcn.1402812e0
lea r11, [rsp + 0x980]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret