Added 'GetFileEntryMagic' function