public void Decompile(string filename)
{
try
{
Load(filename);
ScanPrograms();
AnalyzeDataFlow();
ReconstructTypes();
StructureProgram();
WriteDecompilerProducts();
}
catch (Exception ex)
{
eventListener.Error(
new NullCodeLocation(filename),
ex,
"An internal error occurred while decompiling.");
}
finally
{
eventListener.ShowStatus("Decompilation finished.");
}
}