Function at 0x42dc78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
mov eax, dword [0x637190]
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]
mov esi, ecx
push 0x5cca70
push str.CPrinterDriverInf::SetDirectoryId
push 5
mov dword [ebp - 0xa48], eax
call fcn.00424dad
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 0x42de2c
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 0x42dd0a
push str.Getting_the_directory_of_66000_is_failed._n
jmp 0x42de1d
mov esi, dword [sym.imp.SETUPAPI.dll_SetupSetDirectoryIdW]
lea eax, [ebp - 0x41c]
push eax
push 0x101d0
push edi
call esi
test eax, eax
je 0x42de68
lea eax, [ebp - 0x41c]
push eax
push str.66000____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00424dad
add esp, 0x10
lea eax, [ebp - 0xa44]
xor ecx, ecx
mov dword [ebp - 0xa44], ecx
push eax
push 0x20a
lea eax, [ebp - 0x628]
push eax
push 1
push ecx
push ecx
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryW
test eax, eax
jne 0x42dd74
push str.Getting_the_directory_of_66001_is_failed._n
jmp 0x42de1d
lea eax, [ebp - 0x628]
push eax
push 0x101d1
push edi
call esi
test eax, eax
je 0x42de68
lea eax, [ebp - 0x628]
push eax
push str.66001____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00424dad
add esp, 0x10
lea eax, [ebp - 0x834]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42ddc3
push str.Getting_the_directory_of_66002_is_failed._n
jmp 0x42de1d
lea eax, [ebp - 0x834]
push eax
push 0x101d2
push edi
call esi
test eax, eax
je 0x42de68
lea eax, [ebp - 0x834]
push eax
push str.66002____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00424dad
add esp, 0x10
mov dword [ebp - 0xa44], 0x20a
lea eax, [ebp - 0xa44]
push eax
lea eax, [ebp - 0xa40]
push eax
push 0
call sub.mscms.dll_GetColorDirectoryW
test eax, eax
jne 0x42de55
push str.Getting_the_directory_of_66003_is_failed._n
push str.CPrinterDriverInf::SetDirectoryId
push 2
call fcn.00424dad
add esp, 0xc
push 0x5cca8c
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00424dad
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f6bb
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp - 0xa40]
push eax
push 0x101d3
push edi
call esi
test eax, eax
jne 0x42de85
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.00424dad
add esp, 0x10
jmp 0x42de2c
lea eax, [ebp - 0xa40]
push eax
push str.66003____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00424dad
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x42dec7
push str.Getting_the_directory_of_66004_is_failed._n
push str.CPrinterDriverInf::SetDirectoryId
push 2
jmp 0x42de38
push str.webprinters_
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00591c0a
push ebx
mov ebx, 0x105
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00591c0a
push 0x5c4f0c
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00591c0a
push dword [ebp - 0xa48]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00591c0a
add esp, 0x30
lea eax, [ebp - 0x210]
push eax
push 0x101d4
push edi
call esi
test eax, eax
je 0x42de68
lea eax, [ebp - 0x210]
mov ebx, str.CPrinterDriverInf::SetDirectoryId
push eax
push str.66004____1_s__._n
push ebx
push 5
call fcn.00424dad
push 0x5cca8c
push ebx
push 5
call fcn.00424dad
xor eax, eax
add esp, 0x1c
inc eax
jmp 0x42de42