Function at 0x140049460
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1a20]
mov eax, 0x1b20
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x1a10], rax
mov rdi, rcx
lea rdx, str.CheckPrinterDriverInstall::ComparePrinterDriver
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea rsi, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x1400494f3
test byte [rcx + 0x1c], 1
je 0x1400494f3
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x18
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1210]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x9d0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x7c0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5b0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3a0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1000]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xdf0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xbe0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x1210]
lea rdx, str.INSTALLDIR
mov rcx, r9
call qword [case.0x1400136d6.0]
lea r9, [0x140254b48]
lea r8, [rbp + 0x1210]
lea rdx, [0x140254b50]
lea rcx, [rbp + 0x190]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x9d0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, [0x140254c08]
lea r8, [rbp + 0x1210]
lea rdx, [0x140254b50]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp + 0x1000]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x7e], 0x5c
je 0x14004968e
lea rdx, [0x140251df8]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x1400496d1
test byte [rcx + 0x1c], 4
je 0x1400496d1
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x19
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea r9, str.SPOOLDRIVERSW32X863_
lea r8, [rbp - 0x80]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.SPOOLDRIVERSx643_
lea r8, [rbp - 0x80]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0xdf0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.SPOOLDRIVERSCOLOR_
lea r8, [rbp - 0x80]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.SPOOLDRIVERSCOLOR_
lea r8, [rbp - 0x80]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0xbe0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
lea r8, [0x140254ca8]
lea rdx, str.DRVMDLEXIST
mov rcx, r9
call qword [case.0x1400136d6.0]
mov rax, qword [rdi]
lea rcx, [rbp + 0x5b0]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x7c0]
lea r8, [rbp + 0x9d0]
lea rdx, [rbp + 0x190]
mov rcx, rdi
mov rax, qword [rax + 0xb8]
call qword [case.0x1400136d6.0]
mov rax, qword [rdi]
lea rcx, [rbp + 0xbe0]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0xdf0]
lea r8, [rbp + 0x1000]
lea rdx, [rbp + 0x3a0]
mov rcx, rdi
mov rax, qword [rax + 0xb8]
call qword [case.0x1400136d6.0]
mov al, 1
mov byte [rsp + 0x38], al
mov rcx, qword [0x1402a8360]
cmp rcx, rsi
je 0x14004983d
test byte [rcx + 0x1c], al
je 0x14004983d
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x1a
mov dword [rsp + 0x20], 0
lea r8, [0x140254a20]
mov rcx, qword [rcx + 0x10]
call fcn.140001b40
movzx eax, byte [rsp + 0x38]
mov rcx, qword [0x1402a8360]
lea rdx, vtable.WppTrace.0
mov qword [rsp + 0x30], rdx
test al, al
jne 0x140049896
cmp rcx, rsi
je 0x140049896
test byte [rcx + 0x1c], 1
je 0x140049896
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
xor eax, eax
mov rcx, qword [rbp + 0x1a10]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x1b20]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret