Function at 0x425dfb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
mov eax, dword [0x467750]
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 0x45434c
push str.CPrinterDriverInf::SetDirectoryId
push 5
mov esi, ecx
mov dword [ebp - 0xa48], eax
call fcn.00405a24
add esp, 0xc
mov ecx, esi
push dword [ebp + 0x18]
push dword [ebp - 0xa48]
push dword [ebp + 0x10]
push ebx
push edi
call sym.DELDRV.exe_protected_virtual:_int___thiscall_CDeviceInf::SetDirectoryId_void___wchar_t_const___unsigned_int__wchar_t_const___unsigned_int_
test eax, eax
je 0x425faf
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 0x425e8d
push str.Getting_the_directory_of_66000_is_failed._n
jmp 0x425fa0
mov esi, dword [sym.imp.SETUPAPI.dll_SetupSetDirectoryIdW]
lea eax, [ebp - 0x41c]
push eax
push 0x101d0
push edi
call esi
test eax, eax
je 0x425fe9
lea eax, [ebp - 0x41c]
push eax
push str.66000____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00405a24
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 0x425ef7
push str.Getting_the_directory_of_66001_is_failed._n
jmp 0x425fa0
lea eax, [ebp - 0x628]
push eax
push 0x101d1
push edi
call esi
test eax, eax
je 0x425fe9
lea eax, [ebp - 0x628]
push eax
push str.66001____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00405a24
add esp, 0x10
lea eax, [ebp - 0x834]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x425f46
push str.Getting_the_directory_of_66002_is_failed._n
jmp 0x425fa0
lea eax, [ebp - 0x834]
push eax
push 0x101d2
push edi
call esi
test eax, eax
je 0x425fe9
lea eax, [ebp - 0x834]
push eax
push str.66002____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00405a24
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 0x425fd6
push str.Getting_the_directory_of_66003_is_failed._n
push str.CPrinterDriverInf::SetDirectoryId
push 2
call fcn.00405a24
add esp, 0xc
push 0x454368
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00405a24
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438628
leave
ret 0x14
lea eax, [ebp - 0xa40]
push eax
push 0x101d3
push edi
call esi
test eax, eax
jne 0x426006
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.00405a24
add esp, 0x10
jmp 0x425faf
lea eax, [ebp - 0xa40]
push eax
push str.66003____1_s__._n
push str.CPrinterDriverInf::SetDirectoryId
push 5
call fcn.00405a24
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x426048
push str.Getting_the_directory_of_66004_is_failed._n
push str.CPrinterDriverInf::SetDirectoryId
push 2
jmp 0x425fbb
push str.webprinters_
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004391ef
push ebx
mov ebx, 0x105
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004391ef
push 0x44d8a8
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004391ef
push dword [ebp - 0xa48]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004391ef
add esp, 0x30
lea eax, [ebp - 0x210]
push eax
push 0x101d4
push edi
call esi
test eax, eax
je 0x425fe9
lea eax, [ebp - 0x210]
push eax
push str.66004____1_s__._n
mov ebx, str.CPrinterDriverInf::SetDirectoryId
push ebx
push 5
call fcn.00405a24
push 0x454368
push ebx
push 5
call fcn.00405a24
xor eax, eax
add esp, 0x1c
inc eax
jmp 0x425fc5