PeHeaderReader class, fixed bug in e0eb8c8

Added PeHeaderReader class, which is used to check whether an application is CUI. This fixes the issue introduced in e0eb8c8.