Function at 0x415aec
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, 0x56ebd8
call fcn.00529900
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.0054c354
push str.adobeps
xor esi, esi
push dword [ebp + 8]
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00484350
pop ecx
test eax, eax
pop ecx
jne 0x415bec
mov ebx, 0x105
push ebx
call fcn.004868bd
cmp eax, esi
pop ecx
mov dword [ebp - 0x1c], eax
je 0x415bec
lea eax, [ebp + 0xc]
push 0x59373c
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0054c6f4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0054c68e
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0054c598
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0054c49f
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0054c49f
mov esi, 0x104
mov edi, 0x5b23e4
push esi
push dword [ebp - 0x1c]
push edi
push str.PrinterName
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
jbe 0x415cea
push ebx
call fcn.004868bd
test eax, eax
pop ecx
mov dword [ebp - 0x18], eax
je 0x415be3
push ebx
call fcn.004868bd
mov ebx, eax
pop ecx
test ebx, ebx
mov dword [ebp - 0x14], ebx
jne 0x415c23
push dword [ebp - 0x18]
call fcn.00486983
pop ecx
push dword [ebp - 0x1c]
call fcn.00486983
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0054c49f
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0054c49f
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0054c49f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0054c49f
xor eax, eax
jmp 0x415d44
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call fcn.0048427f
test eax, eax
pop ecx
jbe 0x415cea
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0048427f
cmp byte [eax + ebx - 1], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
je 0x415c5b
push 0x59320c
push dword [ebp - 0x14]
call ebx
push str.ENUM.EBF
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x14]
push esi
push dword [ebp - 0x18]
push edi
push str.Description
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x415cea
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [ebp - 0xb4]
push 0x4000
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x415cea
lea eax, [ebp - 0xb4]
push 0
push eax
push dword [ebp - 0x18]
call esi
mov esi, eax
test esi, esi
je 0x415cea
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x20]
push eax
push str.PSPerformance
push esi
call fcn.00415944
test eax, eax
je 0x415ce3
push 0
push dword [ebp - 0x20]
push esi
call fcn.0052a7e0
add esp, 0xc
push 1
pop edi
push edi
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x24], edi
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp - 0x1c]
call fcn.00486983
cmp dword [ebp - 0x18], 0
pop ecx
je 0x415d02
push dword [ebp - 0x18]
call fcn.00486983
pop ecx
cmp dword [ebp - 0x14], 0
je 0x415d11
push dword [ebp - 0x14]
call fcn.00486983
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0054c49f
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0054c49f
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0054c49f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0054c49f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10