0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-19 16:08:02 +03:00

Separate construction from parsing in PEFormat class

This commit is contained in:
bird_egop
2025-04-12 17:05:23 +03:00
parent 666a592217
commit 61a86f6681
2 changed files with 59 additions and 42 deletions

View File

@ -22,9 +22,16 @@ namespace X86Disassembler
Console.WriteLine($"Successfully loaded {DllPath}");
Console.WriteLine($"File size: {binaryData.Length} bytes");
// Create the PE format parser
PEFormat peFile = new PEFormat(binaryData);
// Parse the PE format
Console.WriteLine("\nParsing PE format...");
PEFormat peFile = new PEFormat(binaryData);
if (!peFile.Parse())
{
Console.WriteLine("Failed to parse PE file. Exiting.");
return;
}
// Display basic PE information
DisplayPEInfo(peFile);