Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Process(TheGame par0)
- {
- byte[] code = new byte[]
- {
- 0,
- 3,
- 111,
- 59,
- 0,
- 0,
- 6,
- 12,
- 3,
- 111,
- 57,
- 0,
- 0,
- 6,
- 13,
- 22,
- 19,
- 4,
- 22,
- 19,
- 5,
- 43,
- 117,
- 0,
- 17,
- 5,
- 2,
- 123,
- 49,
- 0,
- 0,
- 4,
- 142,
- 105,
- 254,
- 4,
- 19,
- 6,
- 17,
- 6,
- 45,
- 2,
- 43,
- 101,
- 2,
- 123,
- 49,
- 0,
- 0,
- 4,
- 17,
- 5,
- 145,
- 32,
- 240,
- 0,
- 0,
- 0,
- 95,
- 26,
- 99,
- 210,
- 10,
- 2,
- 123,
- 49,
- 0,
- 0,
- 4,
- 17,
- 5,
- 145,
- 31,
- 15,
- 95,
- 210,
- 11,
- 8,
- 9,
- 17,
- 4,
- 148,
- 6,
- 156,
- 17,
- 4,
- 23,
- 88,
- 19,
- 4,
- 17,
- 5,
- 2,
- 123,
- 49,
- 0,
- 0,
- 4,
- 142,
- 105,
- 47,
- 9,
- 17,
- 4,
- 9,
- 142,
- 105,
- 254,
- 4,
- 43,
- 1,
- 22,
- 19,
- 6,
- 17,
- 6,
- 45,
- 2,
- 43,
- 25,
- 8,
- 9,
- 17,
- 4,
- 148,
- 7,
- 156,
- 17,
- 4,
- 23,
- 88,
- 19,
- 4,
- 17,
- 4,
- 24,
- 91,
- 19,
- 5,
- 0,
- 23,
- 19,
- 6,
- 43,
- 134,
- 3,
- 8,
- 111,
- 60,
- 0,
- 0,
- 6,
- 0,
- 42
- };
- Type[] arguments = new Type[]
- {
- typeof(byte),
- typeof(byte),
- typeof(byte[]),
- typeof(int[]),
- typeof(int),
- typeof(int),
- typeof(bool)
- };
- Type[] resTypes = new Type[]
- {
- typeof(TheGame),
- typeof(TheGame),
- typeof(Serial),
- typeof(Serial),
- typeof(Serial),
- typeof(Serial),
- typeof(TheGame)
- };
- string[] resVars = Transformer.Change(new string[]
- {
- "z+38zOn86Q==",
- "z+38webs7fA=",
- "+Nfs6fzp",
- "+Nfs6fzp",
- "+Nfs6fzp",
- "+Nfs6fzp",
- "2+38zOn86Q=="
- });
- Type[][] funParamTypes = new Type[][]
- {
- new Type[0],
- new Type[0],
- new Type[0],
- new Type[0],
- new Type[0],
- new Type[0],
- new Type[]
- {
- typeof(byte[])
- }
- };
- int[] index = new int[]
- {
- 3,
- 10,
- 28,
- 46,
- 65,
- 94,
- 148
- };
- int maxStackSize = 3;
- try
- {
- DynamicMethod dynamicMethod = new DynamicMethod("", typeof(void), new Type[]
- {
- typeof(Serial),
- typeof(TheGame)
- }, true);
- DynamicILInfo dynamicILInfo = dynamicMethod.GetDynamicILInfo();
- SignatureHelper localVarSigHelper = SignatureHelper.GetLocalVarSigHelper();
- localVarSigHelper.AddArguments(arguments, null, null);
- TokenResolver.Resolve(ref code, index, resTypes, resVars, funParamTypes, dynamicILInfo);
- dynamicILInfo.SetCode(code, maxStackSize);
- dynamicILInfo.SetLocalSignature(localVarSigHelper.GetSignature());
- Serial.ProcessD processD = (Serial.ProcessD)dynamicMethod.CreateDelegate(typeof(Serial.ProcessD), this);
- processD(par0);
- }
- catch (GameException ex)
- {
- throw ex;
- }
- catch (Exception ex2)
- {
- throw new GameProtectionException(ex2.Message, ex2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement