Add PE version info parsing

This commit is contained in:
Matt Nadareski
2022-11-09 15:53:40 -08:00
parent 72f6af7019
commit c21c0ff411
4 changed files with 290 additions and 1 deletions

View File

@@ -931,6 +931,15 @@ namespace ExecutableTest
break;
case BurnOutSharp.Models.PortableExecutable.ResourceType.RT_VERSION:
Console.WriteLine($"{padding}Version resource found, not parsed yet");
var versionInfo = entry.AsVersionInfo();
if (versionInfo == null)
{
Console.WriteLine($"{padding}Version info resource found, but malformed");
}
else
{
// TODO: Add pretty-printing for version info
}
break;
case BurnOutSharp.Models.PortableExecutable.ResourceType.RT_DLGINCLUDE:
Console.WriteLine($"{padding}External header resource found, not parsed yet");