Function at 0x4114b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push str.CPrinterDriverInf::SetDirectoryId__________________________IN._n
push 5
mov esi, ecx
mov dword [ebp - 0xa48], eax
mov dword [ebp - 0xa44], 0
call fcn.00403750
mov ecx, dword [ebp - 0xa48]
add esp, 8
push ecx
push ebx
push edi
mov ecx, esi
call sym.DelDrv.exe_protected_virtual:_int___thiscall_CDeviceInf::SetDirectoryId_void___wchar_t_const___wchar_t_const__
test eax, eax
je 0x411717
lea edx, [ebp - 0xa44]
push edx
push 0x20a
lea eax, [ebp - 0x41c]
push eax
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 0xa44], esi
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
test eax, eax
jne 0x41153a
push str.CPrinterDriverInf::SetDirectoryId_Getting_the_directory_of_66000_is_failed._n
jmp 0x41170d
lea ecx, [ebp - 0x41c]
push ecx
push 0x101d0
push edi
call dword [0x5a8104]
test eax, eax
je 0x411708
lea edx, [ebp - 0x41c]
push edx
push str.CPrinterDriverInf::SetDirectoryId_66000____1_s__._n
push 5
call fcn.00403750
add esp, 0xc
lea eax, [ebp - 0xa44]
push eax
push 0x20a
lea ecx, [ebp - 0x628]
push ecx
push 1
push esi
push esi
mov dword [ebp - 0xa44], esi
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryW
test eax, eax
jne 0x41159b
push str.CPrinterDriverInf::SetDirectoryId_Getting_the_directory_of_66001_is_failed._n
jmp 0x41170d
lea edx, [ebp - 0x628]
push edx
push 0x101d1
push edi
call dword [0x5a8104]
test eax, eax
je 0x411708
lea eax, [ebp - 0x628]
push eax
push str.CPrinterDriverInf::SetDirectoryId_66001____1_s__._n
push 5
call fcn.00403750
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x834]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4115ec
push str.CPrinterDriverInf::SetDirectoryId_Getting_the_directory_of_66002_is_failed._n
jmp 0x41170d
lea edx, [ebp - 0x834]
push edx
push 0x101d2
push edi
call dword [0x5a8104]
test eax, eax
je 0x411708
lea eax, [ebp - 0x834]
push eax
push str.CPrinterDriverInf::SetDirectoryId_66002____1_s__._n
push 5
call fcn.00403750
add esp, 0xc
lea ecx, [ebp - 0xa44]
push ecx
lea edx, [ebp - 0xa40]
push edx
push esi
mov dword [ebp - 0xa44], 0x20a
call dword [0x5a8100]
test eax, eax
jne 0x41164a
push str.CPrinterDriverInf::SetDirectoryId_Getting_the_directory_of_66003_is_failed._n
jmp 0x41170d
lea eax, [ebp - 0xa40]
push eax
push 0x101d3
push edi
call dword [0x5a8104]
test eax, eax
je 0x411708
lea ecx, [ebp - 0xa40]
push ecx
push str.CPrinterDriverInf::SetDirectoryId_66003____1_s__._n
push 5
call fcn.00403750
add esp, 0xc
push 0x105
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4116b5
push str.CPrinterDriverInf::SetDirectoryId_Getting_the_directory_of_66004_is_failed._n
push 2
call fcn.00403750
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.webprinters_
lea eax, [ebp - 0x210]
push eax
call esi
push ebx
lea ecx, [ebp - 0x210]
push ecx
call esi
push 0x5457b4
lea edx, [ebp - 0x210]
push edx
call esi
mov eax, dword [ebp - 0xa48]
push eax
lea ecx, [ebp - 0x210]
push ecx
call esi
lea edx, [ebp - 0x210]
push edx
push 0x101d4
push edi
call dword [0x5a8104]
test eax, eax
jne 0x41173b
push str.CPrinterDriverInf::SetDirectoryId_SetupSetDirectoryId_failed.__0x_1_lX___n
push 2
call fcn.00403750
add esp, 8
push str.CPrinterDriverInf::SetDirectoryId__________________________Error_OUT._n
push 5
call fcn.00403750
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x210]
push eax
push str.CPrinterDriverInf::SetDirectoryId_66004____1_s__._n
push 5
call fcn.00403750
push str.CPrinterDriverInf::SetDirectoryId__________________________OUT._n
push 5
call fcn.00403750
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0051e701
mov esp, ebp
pop ebp
ret 0xc