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:
@ -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);
|
||||
|
Reference in New Issue
Block a user