Function at 0x42ce61
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0xa44], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5c69a8
push str.CPrinterDriverInf::SetDirectoryId
push 5
mov esi, ecx
mov dword [ebp - 0xa48], eax
call fcn.00423f75
add esp, 0xc
mov ecx, esi
push dword [ebp + 0x18]
push dword [ebp - 0xa48]
push dword [ebp + 0x10]
push ebx
push edi
call sym.SETUP.exe_protected_virtual:_int___thiscall_CDeviceInf::SetDirectoryId_void___wchar_t_const___unsigned_int__wchar_t_const___unsigned_int_
test eax, eax
je 0x42d015
and dword [ebp - 0xa44], 0
lea eax, [ebp - 0xa44]
push eax
push 0x20a
lea eax, [ebp - 0x41c]
push eax
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
test eax, eax
jne 0x42cef3
push str.Getting_the_directory_of_66000_is_failed._n
jmp 0x42d006
mov esi, dword [sym.imp.SETUPAPI.dll_SetupSetDirectoryIdW]
lea eax, [ebp - 0x41c]
push eax
push 0x101d0
push edi
call esi
test eax, eax
je 0x42d04f
lea eax, [ebp - 0x41c]
push eax
push str.66000____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00423f75
add esp, 0x10
lea eax, [ebp - 0xa44]
push eax
push 0x20a
lea eax, [ebp - 0x628]
push eax
xor ecx, ecx
push 1
push ecx
push ecx
mov dword [ebp - 0xa44], ecx
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryW
test eax, eax
jne 0x42cf5d
push str.Getting_the_directory_of_66001_is_failed._n
jmp 0x42d006
lea eax, [ebp - 0x628]
push eax
push 0x101d1
push edi
call esi
test eax, eax
je 0x42d04f
lea eax, [ebp - 0x628]
push eax
push str.66001____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00423f75
add esp, 0x10
lea eax, [ebp - 0x834]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42cfac
push str.Getting_the_directory_of_66002_is_failed._n
jmp 0x42d006
lea eax, [ebp - 0x834]
push eax
push 0x101d2
push edi
call esi
test eax, eax
je 0x42d04f
lea eax, [ebp - 0x834]
push eax
push str.66002____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00423f75
add esp, 0x10
lea eax, [ebp - 0xa44]
push eax
lea eax, [ebp - 0xa40]
push eax
push 0
mov dword [ebp - 0xa44], 0x20a
call sub.mscms.dll_GetColorDirectoryW
test eax, eax
jne 0x42d03c
push str.Getting_the_directory_of_66003_is_failed._n
push str.CPrinterDriverInf::SetDirectoryId
push 2
call fcn.00423f75
add esp, 0xc
push 0x5c69c4
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00423f75
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret 0x14
lea eax, [ebp - 0xa40]
push eax
push 0x101d3
push edi
call esi
test eax, eax
jne 0x42d06c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupSetDirectoryId_failed.__0x_1_lX___n
push str.CPrinterDriverInf::SetDirectoryId
push 2
call fcn.00423f75
add esp, 0x10
jmp 0x42d015
lea eax, [ebp - 0xa40]
push eax
push str.66003____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00423f75
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x42d0ae
push str.Getting_the_directory_of_66004_is_failed._n
push str.CPrinterDriverInf::SetDirectoryId
push 2
jmp 0x42d021
push str.webprinters_
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0058af59
push ebx
mov ebx, 0x105
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0058af59
push 0x5bef0c
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0058af59
push dword [ebp - 0xa48]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0058af59
add esp, 0x30
lea eax, [ebp - 0x210]
push eax
push 0x101d4
push edi
call esi
test eax, eax
je 0x42d04f
lea eax, [ebp - 0x210]
push eax
push str.66004____1_s__._n
mov ebx, str.CPrinterDriverInf::SetDirectoryId
push ebx
push 5
call fcn.00423f75
push 0x5c69c4
push ebx
push 5
call fcn.00423f75
xor eax, eax
add esp, 0x1c
inc eax
jmp 0x42d02b