Function at 0x423470
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x433ceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
call fcn.00426150
mov ebx, dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
push edi
push str.CCreatedPrinter::ShowProperty_OldOs
push str._s:__08x:_begin
push 0x10
push eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], str.CCreatedPrinter::ShowProperty_OldOs
call ebx
add esp, 0x14
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
mov dword [esp + 0x284], ebp
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 0x24]
push ecx
push 4
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, eax
cmp esi, ebp
je 0x423526
push str.SHGetSpecialFolderLocation___failed
push 1
call fcn.00426150
push eax
call ebx
add esp, 0xc
jmp 0x4237bf
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov esi, eax
cmp esi, ebp
je 0x42354e
push str.SHGetDesktopFolder___failed
push 1
call fcn.00426150
push eax
call ebx
add esp, 0xc
jmp 0x4237bf
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push 0x438ed0
push ebp
push edx
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebp
je 0x423585
push str.psfDesktop__BindToObject___failed
push 0x10
call fcn.00426150
push eax
call ebx
add esp, 0xc
jmp 0x4237bf
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x40
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x10]
mov esi, eax
cmp esi, ebp
je 0x4235b4
push str.psfPrinters__EnumObjects___failed
push 0x10
call fcn.00426150
push eax
call ebx
add esp, 0xc
jmp 0x4237bf
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebp
jne 0x4237a8
cmp dword [esp + 0x34], 1
jne 0x4237a8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x170]
push edx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push 0x8000
push edx
push eax
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x170]
sub eax, ebp
je 0x423667
dec eax
je 0x42362b
dec eax
jne 0x423697
push str.___uType_of_DisplayName:_STRRET_CSTR
push 0x10
call fcn.00426150
push eax
call ebx
add esp, 0xc
lea edi, [esp + 0x174]
jmp 0x423644
push str.___uType_of_DisplayName:_STRRET_OFFSET
push 0x10
call fcn.00426150
push eax
call ebx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edi, [ecx + 2]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x6c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x423697
push str.___uType_of_DisplayName:_STRRET_WSTR
push 0x10
call fcn.00426150
push eax
call ebx
mov edx, dword [esp + 0x180]
add esp, 0xc
lea ecx, [esp + 0x6c]
push ebp
push ebp
push 0x104
push ecx
push 0xffffffffffffffff
push edx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x6c]
push eax
push str.DisplayName_of_a_printer__in_while_statement_:__s
push 0x10
call fcn.00426150
push eax
call ebx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x7c]
push edx
mov eax, dword [ecx]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x18
test eax, eax
je 0x4236fc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, ebp
je 0x4235d4
jmp 0x4237a8
lea eax, [esp + 0x6c]
push eax
push str.strFriendlyName_and_pszDisplayName_is_the_same_name:__s
push 0x10
call fcn.00426150
push eax
call ebx
mov eax, dword [esp + 0x24]
add esp, 0x10
lea edx, [esp + 0x28]
mov ecx, dword [eax]
push edx
push ebp
lea edx, [esp + 0x18]
push 0x438ec0
push edx
push 1
push ebp
push eax
call dword [ecx + 0x28]
test eax, eax
mov eax, str.succeeded
je 0x42373e
mov eax, str.error
push eax
push str.psfPrinters__GetUIObjectOf__:__s
push 0x10
call fcn.00426150
push eax
call ebx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x58]
add esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0x24
mov dword [esp + 0x54], str.properties
mov dword [esp + 0x60], 5
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, str.succeeded
cmp esi, ebp
je 0x423795
mov eax, str.error
push eax
push str.pcmMenu__InvokeCommand__:__s
push 0x10
call fcn.00426150
push eax
call ebx
add esp, 0x10
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x4237bb
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov edi, dword [esp + 0x2c]
cmp esi, ebp
je 0x4237c7
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x4237d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4237e3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4237f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4237ff
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x423812
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 0x38]
push edi
push str.CCreatedPrinter::ShowProperty_OldOs
push str._s:__08x:_end
push 0x10
push eax
mov dword [esp + 0x294], 0xffffffff
call ebx
mov ecx, dword [esp + 0x28c]
mov eax, dword [esp + 0x44]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x274
ret