Function at 0x4313d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cb8b
mov eax, dword fs:[0]
push eax
mov eax, 0x1a84
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ecx
push str.CheckPrinterDriverInstall::ComparePrinterDriver
lea ecx, [ebp - 0x1a90]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x43145b
test byte [ecx + 0x1c], 1
je 0x43145b
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5caa20
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x18
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0x1a58]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00571c00
add esp, 0x48
lea eax, [ebp - 0x1258]
push 0x208
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1a58]
add esp, 0x30
mov ecx, dword [ecx + 0x1c]
push eax
push str.INSTALLDIR
call fcn.004f65f0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1a58]
push 0x5ca344
push eax
lea eax, [ebp - 0x420]
push 0x5ca318
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5ca324
lea eax, [ebp - 0x1a58]
push eax
lea eax, [ebp - 0x628]
push 0x5ca318
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x1258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x4315dd
push 0x5c692c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x431624
test byte [ecx + 0x1c], 4
je 0x431624
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5caa20
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x19
call fcn.00405920
add esp, 0x10
push str.SPOOLDRIVERSW32X863_
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
push 0x5c70f4
push eax
call edi
push str.SPOOLDRIVERSx643_
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1050]
push 0x5c70f4
push eax
call edi
push str.SPOOLDRIVERSCOLOR_
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push 0x5c70f4
push eax
call edi
push str.SPOOLDRIVERSCOLOR_
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xe48]
push 0x5c70f4
push eax
call edi
mov ecx, dword [0x6184f0]
add esp, 0x40
mov ecx, dword [ecx + 0x1c]
push 0x5ca378
push str.DRVMDLEXIST
call fcn.004f6860
lea eax, [ebp - 0x830]
mov ecx, ebx
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004370a0
lea eax, [ebp - 0xe48]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.004370a0
mov byte [ebp - 0x1a8c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x431736
test byte [ecx + 0x1c], 1
je 0x431736
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5caa20
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1a
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x1a90]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret