fixed function checking valid pe header signature