Also use ldfld/ldflda to detect arg types

This commit is contained in:
de4dot 2011-11-01 15:53:51 +01:00
parent c354ded987
commit cc8e220281

View File

@ -270,6 +270,14 @@ namespace de4dot.deobfuscators {
}
break;
case Code.Ldfld:
case Code.Ldflda:
args = getPushedArgInstructions(instructions, i);
if (args.Count < 1)
break;
addMethodArgType(getParameter(methodParams, method, args[0]), instr.Operand as FieldReference);
break;
//TODO: For better results, these should be checked:
case Code.Starg:
case Code.Starg_S: