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

Disassembly:
mov eax, 0x617624
call fcn.0044c384
sub esp, 0xa8
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x679548]
mov dword [ebp - 0x1c], eax
push str.adobeps
mov byte [ebp - 4], 3
push dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00598578
pop ecx
test eax, eax
pop ecx
jne 0x40f630
mov ebx, 0x105
push ebx
call fcn.005988ea
cmp eax, esi
pop ecx
mov dword [ebp - 0x18], eax
je 0x40f630
lea eax, [ebp + 0xc]
push 0x67485c
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.005f5ce0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005f5c7a
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.005f5b84
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.005f5a4b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.005f5a4b
mov esi, 0x104
mov edi, 0x6b4f90
push esi
push dword [ebp - 0x18]
push edi
push str.PrinterName
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
jbe 0x40f606
push ebx
call fcn.005988ea
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x40f51c
push dword [ebp - 0x18]
call fcn.005989b0
pop ecx
xor esi, esi
jmp 0x40f630
push ebx
call fcn.005988ea
mov ebx, eax
pop ecx
test ebx, ebx
mov dword [ebp - 0x14], ebx
jne 0x40f53f
push dword [ebp - 0x10]
call fcn.005989b0
push dword [ebp - 0x18]
call fcn.005989b0
pop ecx
jmp 0x40f514
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call fcn.00598476
test eax, eax
pop ecx
jbe 0x40f606
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00598476
cmp byte [eax + ebx - 1], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
je 0x40f577
push 0x67434c
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 - 0x10]
push edi
push str.Description
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40f606
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [ebp - 0xb4]
push 0x4000
push eax
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x40f606
lea eax, [ebp - 0xb4]
push 0
push eax
push dword [ebp - 0x10]
call esi
mov esi, eax
test esi, esi
je 0x40f606
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x20]
push eax
push str.PSPerformance
push esi
call fcn.0040f28b
test eax, eax
je 0x40f5ff
push 0
push dword [ebp - 0x20]
push esi
call fcn.0044caa5
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 - 0x18]
call fcn.005989b0
cmp dword [ebp - 0x10], 0
pop ecx
je 0x40f61e
push dword [ebp - 0x10]
call fcn.005989b0
pop ecx
cmp dword [ebp - 0x14], 0
je 0x40f62d
push dword [ebp - 0x14]
call fcn.005989b0
pop ecx
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005f5a4b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005f5a4b
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.005f5a4b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.005f5a4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10