throw new RuntimeException("Cannot find assembly " + new File(dir, name));
return getPEAssembly(pefile);
}
private static Assembly getPEAssembly(PEFile pefile) {
AssemblyDef assem = pefile.AssemblyDef;
if (assem == null)
throw new RuntimeException("File " + pefile
+ " does not contain a manifest");
assem.readRow(1);
String name = pefile.getString(assem.Name);
Assembly a = (Assembly) assemblies.get(name);
if (a != null) {
return a;
}