Guest User

Untitled

a guest
Jan 4th, 2012
147
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public class XilliaSmfInflater
  2.     {
  3.  
  4.         static IntPtr msf_unpack_00405370;
  5.         static IntPtr msf_unpack_00405378;
  6.         static IntPtr msf_unpack_0040537C;
  7.         static IntPtr msf_unpack_00405374;
  8.         static IntPtr msf_unpack_004041ec;
  9.         static IntPtr msf_unpack_pointer;
  10.         static byte [] msf_unpack_dump = new byte[] {
  11.     0x83,0xec,0x0c,0x8b,0x44,0x24,0x1c,0x53,0x8b,0x18,0x55,0x8b,0x6c,0x24,0x18,0x56,
  12.     0xc7,0x00,0x00,0x00,0x00,0x00,0x81,0x7d,0x48,0x12,0x01,0x00,0x00,0x57,0x89,0x5c,
  13.     0x24,0x10,0x0f,0x84,0x2b,0x02,0x00,0x00,0xeb,0x06,0x8d,0x9b,0x00,0x00,0x00,0x00,
  14.     0x83,0x7d,0x4c,0x00,0x0f,0x84,0x90,0x00,0x00,0x00,0x85,0xdb,0x74,0x37,0x8b,0xff,
  15.     0x83,0x7d,0x58,0x05,0x73,0x2b,0x8b,0x44,0x24,0x28,0x8b,0x74,0x24,0x20,0x8b,0x4e,
  16.     0x58,0x3e,0x8a,0x10,0x3e,0x88,0x54,0x31,0x5c,0x8b,0x44,0x24,0x2c,0xb9,0x01,0x00,
  17.     0x00,0x00,0x01,0x4d,0x58,0x01,0x08,0x01,0x4c,0x24,0x28,0x2b,0xd9,0x85,0xdb,0x75,
  18.     0xcf,0x89,0x5c,0x24,0x10,0x83,0x7d,0x58,0x05,0x0f,0x82,0xb7,0x01,0x00,0x00,0x80,
  19.     0x7d,0x5c,0x00,0x0f,0x85,0x9d,0x01,0x00,0x00,0x8b,0x45,0x5c,0x8b,0xc8,0xc1,0xe9,
  20.     0x08,0x0f,0xb6,0xd1,0x8b,0xc8,0xc1,0xe9,0x10,0xc1,0xe2,0x08,0x0f,0xb6,0xc9,0x03,
  21.     0xd1,0xc1,0xe2,0x08,0xc1,0xe8,0x18,0x03,0xd0,0x0f,0xb6,0x45,0x60,0xc1,0xe2,0x08,
  22.     0x03,0xd0,0x89,0x55,0x20,0xc7,0x45,0x1c,0xff,0xff,0xff,0xff,0xc7,0x45,0x4c,0x00,
  23.     0x00,0x00,0x00,0xc7,0x45,0x58,0x00,0x00,0x00,0x00,0x8b,0x4d,0x24,0x33,0xf6,0x3b,
  24.     0x4c,0x24,0x24,0x72,0x1b,0x39,0x75,0x48,0x0f,0x85,0x48,0x01,0x00,0x00,0x39,0x75,
  25.     0x20,0x0f,0x84,0x4f,0x01,0x00,0x00,0xba,0x01,0x00,0x00,0x00,0x8b,0xf2,0xeb,0x05,
  26.     0xba,0x01,0x00,0x00,0x00,0x83,0x7d,0x50,0x00,0x74,0x2b,0x8b,0x45,0x10,0x89,0x44,
  27.     0x24,0x18,0x8b,0x7c,0x24,0x18,0xb8,0x00,0x04,0x00,0x04,0xb9,0x9b,0x0f,0x00,0x00,
  28.     0xf3,0xab,0x33,0xc0,0x89,0x55,0x44,0x89,0x55,0x40,0x89,0x55,0x3c,0x89,0x55,0x38,
  29.     0x89,0x45,0x34,0x89,0x45,0x50,0x8b,0x45,0x58,0x33,0xc9,0x89,0x44,0x24,0x14,0x3b,
  30.     0xc1,0x74,0x7f,0x89,0x4c,0x24,0x18,0x83,0xf8,0x14,0x73,0x22,0x8d,0x64,0x24,0x00,
  31.     0x3b,0xcb,0x73,0x12,0x8b,0x54,0x24,0x28,0x8a,0x14,0x11,0x88,0x54,0x28,0x5c,0x40,
  32.     0x41,0x83,0xf8,0x14,0x72,0xea,0x89,0x44,0x24,0x14,0x89,0x4c,0x24,0x18,0x89,0x45,
  33.     0x58,0x83,0xf8,0x14,0x0f,0x82,0xc6,0x00,0x00,0x00,0x85,0xf6,0x0f,0x85,0xbe,0x00,
  34.     0x00,0x00,0x8b,0x7c,0x24,0x24,0x8b,0x5d,0x5c,0x8d,0x45,0x5c,0x8b,0xf5,0x89,0x45,
  35.     0x18,0xe8,0xea,0x00,0x00,0x00,0x85,0xc0,0x0f,0x85,0x98,0x00,0x00,0x00,0x8b,0x45,
  36.     0x18,0x2b,0x44,0x24,0x14,0x8b,0x4c,0x24,0x18,0x2b,0xc5,0x8d,0x44,0x08,0xa4,0x8b,
  37.     0x4c,0x24,0x2c,0x01,0x01,0x01,0x44,0x24,0x28,0xc7,0x45,0x58,0x00,0x00,0x00,0x00,
  38.     0xeb,0x5e,0x83,0xfb,0x14,0x72,0x0e,0x3b,0xf1,0x75,0x0a,0x8b,0x54,0x24,0x28,0x8d,
  39.     0x5c,0x13,0xec,0xeb,0x20,0x8b,0x7c,0x24,0x28,0x57,0x8b,0xc5,0x8b,0xcb,0xe8,0xdd,
  40.     0x0e,0x00,0x00,0x83,0xc4,0x04,0x85,0xc0,0x74,0x66,0x85,0xf6,0x74,0x05,0x83,0xf8,
  41.     0x02,0x75,0x43,0x8b,0xdf,0x8b,0x44,0x24,0x28,0x8b,0x7c,0x24,0x24,0x8b,0xf5,0x89,
  42.     0x45,0x18,0xe8,0x79,0x00,0x00,0x00,0x85,0xc0,0x75,0x2b,0x8b,0x4c,0x24,0x28,0x8b,
  43.     0x45,0x18,0x8b,0x54,0x24,0x2c,0x2b,0xc1,0x01,0x02,0x03,0xc8,0x89,0x4c,0x24,0x28,
  44.     0x29,0x44,0x24,0x10,0x81,0x7d,0x48,0x12,0x01,0x00,0x00,0x74,0x36,0x8b,0x5c,0x24,
  45.     0x10,0xe9,0x0a,0xfe,0xff,0xff,0x5f,0x5e,0x5d,0xb0,0x01,0x5b,0x83,0xc4,0x0c,0xc3,
  46.     0x8b,0x44,0x24,0x2c,0x01,0x08,0x5f,0x5e,0x5d,0x32,0xc0,0x5b,0x83,0xc4,0x0c,0xc3,
  47.     0x8b,0x44,0x24,0x2c,0x5f,0x89,0x5d,0x58,0x01,0x18,0x5e,0x5d,0x32,0xc0,0x5b,0x83,
  48.     0xc4,0x0c,0xc3,0x5f,0x33,0xc0,0x39,0x45,0x20,0x5e,0x5d,0x0f,0x95,0xc0,0x5b,0x83,
  49.     0xc4,0x0c,0xc3,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,
  50.     0x55,0xbd,0x12,0x01,0x00,0x00,0x83,0x7e,0x30,0x00,0x8b,0xd7,0x75,0x19,0x8b,0x46,
  51.     0x0c,0x8b,0x4e,0x24,0x2b,0x46,0x2c,0x8b,0xef,0x2b,0xe9,0x3b,0xe8,0xbd,0x12,0x01,
  52.     0x00,0x00,0x76,0x03,0x8d,0x14,0x01,0x53,0x52,0x56,0xe8,0x51,0x00,0x00,0x00,0x83,
  53.     0xc4,0x0c,0x85,0xc0,0x75,0x3b,0x8b,0x46,0x0c,0x39,0x46,0x2c,0x72,0x03,0x89,0x46,
  54.     0x30,0x8b,0xce,0x8b,0xc7,0xe8,0xc6,0x13,0x00,0x00,0x39,0x7e,0x24,0x73,0x12,0x39,
  55.     0x5e,0x18,0x73,0x0d,0x89,0x2d,0x70,0x53,0x40,0x00,0x39,0x6e,0x48,0x72,0xa7,0xeb,
  56.     0x06,0x89,0x2d,0x70,0x53,0x40,0x00,0x39,0x6e,0x48,0x76,0x03,0x89,0x6e,0x48,0x33,
  57.     0xc0,0x5d,0xc3,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,
  58.     0x83,0xec,0x4c,0x8b,0x44,0x24,0x54,0x8b,0x4c,0x24,0x58,0xa3,0x78,0x53,0x40,0x00,
  59.     0x53,0x8b,0x5c,0x24,0x54,0x8b,0x43,0x3c,0x8b,0x53,0x38,0x89,0x44,0x24,0x24,0x89,
  60.     0x0d,0x7c,0x53,0x40,0x00,0x8b,0x4b,0x40,0x89,0x4c,0x24,0x20,0x8b,0x4b,0x08,0xb8,
  61.     0x01,0x00,0x00,0x00,0xd3,0xe0,0x8b,0x4b,0x04,0x55,0x56,0x8b,0x73,0x20,0x48,0x89,
  62.     0x44,0x24,0x54,0x57,0x8b,0xf8,0x8b,0x43,0x34,0x89,0x44,0x24,0x14,0xb8,0x01,0x00,
  63.     0x00,0x00,0xd3,0xe0,0x8b,0x0b,0x89,0x54,0x24,0x20,0x8b,0x53,0x44,0x48,0x89,0x54,
  64.     0x24,0x3c,0x8b,0x53,0x28,0x89,0x44,0x24,0x54,0x8b,0x43,0x14,0x89,0x4c,0x24,0x4c,
  65.     0x8b,0x4b,0x2c,0x89,0x54,0x24,0x28,0x8b,0x53,0x24,0x89,0x44,0x24,0x34,0x8b,0x43,
  66.     0x18,0x89,0x4c,0x24,0x1c,0x8b,0x4b,0x10,0x89,0x54,0x24,0x18,0x8b,0x53,0x30,0x89,
  67.     0x44,0x24,0x10,0x8b,0x43,0x1c,0x89,0x1d,0x74,0x53,0x40,0x00,0x89,0x4c,0x24,0x38,
  68.     0x89,0x54,0x24,0x44,0xc7,0x44,0x24,0x48,0x00,0x00,0x00,0x00,0x8d,0x64,0x24,0x00,
  69.     0x8b,0x54,0x24,0x1c,0x23,0xd7,0x8b,0x7c,0x24,0x14,0xc1,0xe7,0x04,0x03,0xfa,0x8d,
  70.     0x2c,0x79,0x89,0x54,0x24,0x40,0x0f,0xb7,0x55,0x00,0x3d,0x00,0x00,0x00,0x01,0x73,
  71.     0x13,0x8b,0x7c,0x24,0x10,0x0f,0xb6,0x3f,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf7,
  72.     0xff,0x44,0x24,0x10,0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xfa,0x3b,0xf7,0x0f,0x83,
  73.     0xd4,0x01,0x00,0x00,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xfa,0xc1,0xef,0x05,
  74.     0x03,0xfa,0x83,0x7c,0x24,0x44,0x00,0x66,0x89,0x7d,0x00,0x8d,0xa9,0x6c,0x0e,0x00,
  75.     0x00,0x89,0x6c,0x24,0x40,0x75,0x07,0x83,0x7c,0x24,0x1c,0x00,0x74,0x3c,0x8b,0x4c,
  76.     0x24,0x18,0x85,0xc9,0x75,0x04,0x8b,0x4c,0x24,0x28,0x8b,0x54,0x24,0x34,0x0f,0xb6,
  77.     0x54,0x11,0xff,0x8b,0x7c,0x24,0x1c,0x23,0x7c,0x24,0x54,0xb9,0x08,0x00,0x00,0x00,
  78.     0x2a,0x4c,0x24,0x4c,0xd3,0xea,0x8b,0x4c,0x24,0x4c,0xd3,0xe7,0x03,0xd7,0x69,0xd2,
  79.     0x00,0x06,0x00,0x00,0x03,0xea,0x89,0x6c,0x24,0x40,0x8b,0x4c,0x24,0x14,0x83,0xf9,
  80.     0x07,0x0f,0x82,0xc6,0x00,0x00,0x00,0x8b,0x7c,0x24,0x20,0x8b,0x54,0x24,0x18,0x3b,
  81.     0xd7,0x1b,0xed,0x23,0x6c,0x24,0x28,0xc7,0x44,0x24,0x14,0x00,0x01,0x00,0x00,0x2b,
  82.     0xef,0x03,0x6b,0x14,0x83,0xf9,0x0a,0x0f,0xb6,0x14,0x2a,0x1b,0xff,0x83,0xe7,0xfd,
  83.     0x83,0xc7,0x06,0x2b,0xcf,0x89,0x4c,0x24,0x24,0xb9,0x01,0x00,0x00,0x00,0x8b,0xff,
  84.     0x8b,0x7c,0x24,0x14,0x03,0xd2,0x89,0x54,0x24,0x50,0x23,0xd7,0x8b,0xda,0x03,0xd1,
  85.     0x03,0xd7,0x8b,0x7c,0x24,0x40,0x8d,0x2c,0x57,0x0f,0xb7,0x55,0x00,0x3d,0x00,0x00,
  86.     0x00,0x01,0x73,0x13,0x8b,0x7c,0x24,0x10,0x0f,0xb6,0x3f,0xc1,0xe6,0x08,0xc1,0xe0,
  87.     0x08,0x0b,0xf7,0xff,0x44,0x24,0x10,0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xfa,0x3b,
  88.     0xf7,0x72,0x15,0x2b,0xc7,0x2b,0xf7,0x8b,0xfa,0xc1,0xef,0x05,0x2b,0xd7,0x66,0x89,
  89.     0x55,0x00,0x8d,0x4c,0x09,0x01,0xeb,0x16,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,
  90.     0xfa,0xc1,0xef,0x05,0x03,0xfa,0x66,0x89,0x7d,0x00,0x03,0xc9,0xf7,0xd3,0x21,0x5c,
  91.     0x24,0x14,0x81,0xf9,0x00,0x01,0x00,0x00,0x73,0x06,0x8b,0x54,0x24,0x50,0xeb,0x80,
  92.     0x8b,0x54,0x24,0x24,0x89,0x54,0x24,0x14,0xe9,0x82,0x00,0x00,0x00,0x8b,0xd1,0x83,
  93.     0xf9,0x04,0x72,0x05,0xba,0x03,0x00,0x00,0x00,0x2b,0xca,0x89,0x4c,0x24,0x14,0x89,
  94.     0x4c,0x24,0x24,0xb9,0x01,0x00,0x00,0x00,0xeb,0x06,0x8d,0x9b,0x00,0x00,0x00,0x00,
  95.     0x0f,0xb7,0x54,0x4d,0x00,0x3d,0x00,0x00,0x00,0x01,0x73,0x14,0x8b,0x7c,0x24,0x10,
  96.     0x0f,0xb6,0x1f,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf3,0x47,0x89,0x7c,0x24,0x10,
  97.     0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xfa,0x3b,0xf7,0x72,0x16,0x2b,0xc7,0x2b,0xf7,
  98.     0x8b,0xfa,0xc1,0xef,0x05,0x2b,0xd7,0x66,0x89,0x54,0x4d,0x00,0x8d,0x4c,0x09,0x01,
  99.     0xeb,0x15,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xfa,0xc1,0xef,0x05,0x03,0xfa,
  100.     0x66,0x89,0x7c,0x4d,0x00,0x03,0xc9,0x81,0xf9,0x00,0x01,0x00,0x00,0x72,0xa1,0x8b,
  101.     0x54,0x24,0x18,0x8b,0x7c,0x24,0x34,0xff,0x44,0x24,0x1c,0x88,0x0c,0x3a,0x42,0x89,
  102.     0x54,0x24,0x18,0xe9,0x83,0x09,0x00,0x00,0x8b,0x5c,0x24,0x10,0x2b,0xc7,0x2b,0xf7,
  103.     0x8b,0xfa,0xc1,0xef,0x05,0x2b,0xd7,0x66,0x89,0x55,0x00,0x8b,0x6c,0x24,0x14,0x0f,
  104.     0xb7,0xbc,0x69,0x80,0x01,0x00,0x00,0x3d,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,
  105.     0x13,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf2,0x43,0x89,0x5c,0x24,0x10,0x8b,0xd0,
  106.     0xc1,0xea,0x0b,0x0f,0xaf,0xd7,0x3b,0xf2,0x0f,0x82,0x5c,0x02,0x00,0x00,0x2b,0xc2,
  107.     0x8b,0xe8,0x8b,0xc7,0xc1,0xe8,0x05,0x2b,0xf2,0x8b,0x54,0x24,0x14,0x2b,0xf8,0x83,
  108.     0x7c,0x24,0x44,0x00,0x66,0x89,0xbc,0x51,0x80,0x01,0x00,0x00,0x75,0x0b,0x83,0x7c,
  109.     0x24,0x1c,0x00,0x0f,0x84,0x37,0x09,0x00,0x00,0x8b,0x44,0x24,0x14,0x0f,0xb7,0x94,
  110.     0x41,0x98,0x01,0x00,0x00,0x81,0xfd,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,0x03,
  111.     0xc1,0xe6,0x08,0xc1,0xe5,0x08,0x0b,0xf0,0x43,0x89,0x5c,0x24,0x10,0x8b,0xc5,0xc1,
  112.     0xe8,0x0b,0x0f,0xaf,0xc2,0x3b,0xf0,0x0f,0x82,0x30,0x01,0x00,0x00,0x2b,0xe8,0x2b,
  113.     0xf0,0x8b,0xc2,0xc1,0xe8,0x05,0x2b,0xd0,0x8b,0x44,0x24,0x14,0x8b,0xfd,0x66,0x89,
  114.     0x94,0x41,0x98,0x01,0x00,0x00,0x0f,0xb7,0x84,0x41,0xb0,0x01,0x00,0x00,0x81,0xff,
  115.     0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,0x13,0xc1,0xe6,0x08,0xc1,0xe7,0x08,0x0b,
  116.     0xf2,0x43,0x89,0x5c,0x24,0x10,0x8b,0xef,0xc1,0xed,0x0b,0x0f,0xaf,0xe8,0x3b,0xf5,
  117.     0x0f,0x82,0xb8,0x00,0x00,0x00,0x2b,0xfd,0x8b,0xd7,0x8b,0xf8,0xc1,0xef,0x05,0x2b,
  118.     0xc7,0x8b,0x7c,0x24,0x14,0x2b,0xf5,0x66,0x89,0x84,0x79,0xb0,0x01,0x00,0x00,0x0f,
  119.     0xb7,0x84,0x79,0xc8,0x01,0x00,0x00,0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,
  120.     0xb6,0x3b,0xc1,0xe6,0x08,0xc1,0xe2,0x08,0x0b,0xf7,0x43,0x89,0x5c,0x24,0x10,0x8b,
  121.     0xfa,0xc1,0xef,0x0b,0x0f,0xaf,0xf8,0x3b,0xf7,0x72,0x3c,0x2b,0xd7,0x2b,0xf7,0x8b,
  122.     0xf8,0xc1,0xef,0x05,0x2b,0xc7,0x8b,0x7c,0x24,0x14,0x66,0x89,0x84,0x79,0xc8,0x01,
  123.     0x00,0x00,0x8b,0x44,0x24,0x2c,0x8b,0x7c,0x24,0x3c,0x89,0x44,0x24,0x3c,0x8b,0x44,
  124.     0x24,0x30,0x89,0x44,0x24,0x2c,0x8b,0x44,0x24,0x20,0x89,0x44,0x24,0x30,0x89,0x7c,
  125.     0x24,0x20,0xe9,0x1a,0x01,0x00,0x00,0xbd,0x00,0x08,0x00,0x00,0x2b,0xe8,0xc1,0xed,
  126.     0x05,0x03,0xe8,0x8b,0x44,0x24,0x14,0x66,0x89,0xac,0x41,0xc8,0x01,0x00,0x00,0x8b,
  127.     0x44,0x24,0x30,0x8b,0xd7,0x8b,0x7c,0x24,0x2c,0x89,0x44,0x24,0x2c,0x8b,0x44,0x24,
  128.     0x20,0x89,0x44,0x24,0x30,0x89,0x7c,0x24,0x20,0xe9,0xe3,0x00,0x00,0x00,0x8b,0x7c,
  129.     0x24,0x30,0x8b,0xd5,0xbd,0x00,0x08,0x00,0x00,0x2b,0xe8,0xc1,0xed,0x05,0x03,0xe8,
  130.     0x8b,0x44,0x24,0x14,0x66,0x89,0xac,0x41,0xb0,0x01,0x00,0x00,0x8b,0x44,0x24,0x20,
  131.     0x89,0x44,0x24,0x30,0x89,0x7c,0x24,0x20,0xe9,0xb4,0x00,0x00,0x00,0x8b,0x6c,0x24,
  132.     0x14,0xbf,0x00,0x08,0x00,0x00,0x2b,0xfa,0xc1,0xef,0x05,0x03,0xfa,0x8d,0x55,0x0f,
  133.     0xc1,0xe2,0x04,0x03,0x54,0x24,0x40,0x66,0x89,0xbc,0x69,0x98,0x01,0x00,0x00,0x0f,
  134.     0xb7,0x3c,0x51,0x8d,0x1c,0x51,0x8b,0xd0,0x3d,0x00,0x00,0x00,0x01,0x73,0x15,0xc1,
  135.     0xe0,0x08,0x8b,0xd0,0x8b,0x44,0x24,0x10,0x0f,0xb6,0x00,0xc1,0xe6,0x08,0x0b,0xf0,
  136.     0xff,0x44,0x24,0x10,0x8b,0xc2,0xc1,0xe8,0x0b,0x0f,0xaf,0xc7,0x3b,0xf0,0x73,0x4f,
  137.     0x8b,0x54,0x24,0x20,0xff,0x44,0x24,0x1c,0xb9,0x00,0x08,0x00,0x00,0x2b,0xcf,0xc1,
  138.     0xe9,0x05,0x03,0xcf,0x8b,0x7c,0x24,0x34,0x66,0x89,0x0b,0x8b,0x4c,0x24,0x18,0x3b,
  139.     0xca,0x1b,0xdb,0x23,0x5c,0x24,0x28,0x2b,0xda,0x03,0xd9,0x0f,0xb6,0x14,0x3b,0x88,
  140.     0x14,0x39,0x83,0xfd,0x07,0x1b,0xd2,0x83,0xe2,0xfe,0x83,0xc2,0x0b,0x41,0x89,0x54,
  141.     0x24,0x14,0x89,0x4c,0x24,0x18,0x89,0x54,0x24,0x24,0xe9,0x10,0x07,0x00,0x00,0x2b,
  142.     0xd0,0x2b,0xf0,0x8b,0xc7,0xc1,0xe8,0x05,0x2b,0xf8,0x66,0x89,0x3b,0x8b,0x5c,0x24,
  143.     0x10,0x83,0x7c,0x24,0x14,0x07,0x1b,0xc0,0x83,0xe0,0xfd,0x83,0xc0,0x0b,0x89,0x44,
  144.     0x24,0x14,0x81,0xc1,0x68,0x0a,0x00,0x00,0xeb,0x21,0xb8,0x00,0x08,0x00,0x00,0x2b,
  145.     0xc7,0xc1,0xe8,0x05,0x03,0xc7,0x66,0x89,0x84,0x69,0x80,0x01,0x00,0x00,0x83,0xc5,
  146.     0x0c,0x89,0x6c,0x24,0x14,0x81,0xc1,0x64,0x06,0x00,0x00,0x8b,0x44,0x24,0x14,0x0f,
  147.     0xb7,0x39,0x89,0x44,0x24,0x24,0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,
  148.     0x03,0xc1,0xe6,0x08,0xc1,0xe2,0x08,0x0b,0xf0,0x43,0x89,0x5c,0x24,0x10,0x8b,0xc2,
  149.     0xc1,0xe8,0x0b,0x0f,0xaf,0xc7,0x3b,0xf0,0x0f,0x82,0x87,0x00,0x00,0x00,0x2b,0xd0,
  150.     0x2b,0xf0,0x8b,0xc7,0xc1,0xe8,0x05,0x2b,0xf8,0x66,0x89,0x39,0x0f,0xb7,0x79,0x02,
  151.     0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,0x03,0xc1,0xe6,0x08,0xc1,0xe2,
  152.     0x08,0x0b,0xf0,0x43,0x89,0x5c,0x24,0x10,0x8b,0xea,0xc1,0xed,0x0b,0x0f,0xaf,0xef,
  153.     0x3b,0xf5,0x72,0x26,0x2b,0xd5,0x8b,0xc2,0x8b,0xd7,0x2b,0xf5,0xc1,0xea,0x05,0x2b,
  154.     0xfa,0x66,0x89,0x79,0x02,0x8d,0xa9,0x04,0x02,0x00,0x00,0xc7,0x44,0x24,0x40,0x10,
  155.     0x00,0x00,0x00,0xbb,0x00,0x01,0x00,0x00,0xeb,0x52,0xba,0x00,0x08,0x00,0x00,0x2b,
  156.     0xd7,0x8b,0xc5,0x8b,0x6c,0x24,0x40,0xc1,0xea,0x05,0x03,0xd7,0xc1,0xe5,0x04,0xbb,
  157.     0x08,0x00,0x00,0x00,0x66,0x89,0x51,0x02,0x8d,0xac,0x29,0x04,0x01,0x00,0x00,0x89,
  158.     0x5c,0x24,0x40,0xeb,0x27,0x8b,0x6c,0x24,0x40,0xba,0x00,0x08,0x00,0x00,0x2b,0xd7,
  159.     0xc1,0xea,0x05,0x03,0xd7,0xc1,0xe5,0x04,0x66,0x89,0x11,0x8d,0x6c,0x29,0x04,0xc7,
  160.     0x44,0x24,0x40,0x00,0x00,0x00,0x00,0xbb,0x08,0x00,0x00,0x00,0xb9,0x01,0x00,0x00,
  161.     0x00,0x0f,0xb7,0x54,0x4d,0x00,0x3d,0x00,0x00,0x00,0x01,0x73,0x13,0x8b,0x7c,0x24,
  162.     0x10,0x0f,0xb6,0x3f,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf7,0xff,0x44,0x24,0x10,
  163.     0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xfa,0x3b,0xf7,0x72,0x16,0x2b,0xc7,0x2b,0xf7,
  164.     0x8b,0xfa,0xc1,0xef,0x05,0x2b,0xd7,0x66,0x89,0x54,0x4d,0x00,0x8d,0x4c,0x09,0x01,
  165.     0xeb,0x15,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xfa,0xc1,0xef,0x05,0x03,0xfa,
  166.     0x66,0x89,0x7c,0x4d,0x00,0x03,0xc9,0x3b,0xcb,0x72,0xa6,0x2b,0xcb,0x03,0x4c,0x24,
  167.     0x40,0x83,0x7c,0x24,0x14,0x0c,0x89,0x4c,0x24,0x50,0x0f,0x82,0xd1,0x04,0x00,0x00,
  168.     0x83,0xf9,0x04,0x72,0x05,0xb9,0x03,0x00,0x00,0x00,0x8b,0x54,0x24,0x38,0x8b,0x5c,
  169.     0x24,0x10,0xc1,0xe1,0x07,0x8d,0x8c,0x11,0x60,0x03,0x00,0x00,0x0f,0xb7,0x51,0x02,
  170.     0x3d,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,0x3b,0xc1,0xe6,0x08,0xc1,0xe0,0x08,
  171.     0x0b,0xf7,0x43,0x89,0x5c,0x24,0x10,0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xfa,0x3b,
  172.     0xf7,0x72,0x16,0x2b,0xc7,0x2b,0xf7,0x8b,0xfa,0xc1,0xef,0x05,0x2b,0xd7,0x66,0x89,
  173.     0x51,0x02,0xba,0x03,0x00,0x00,0x00,0xeb,0x17,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,
  174.     0x2b,0xfa,0xc1,0xef,0x05,0x03,0xfa,0x66,0x89,0x79,0x02,0xba,0x02,0x00,0x00,0x00,
  175.     0x8d,0x2c,0x12,0x0f,0xb7,0x14,0x29,0x3d,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,
  176.     0x3b,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf7,0x43,0x89,0x5c,0x24,0x10,0x8b,0xf8,
  177.     0xc1,0xef,0x0b,0x0f,0xaf,0xfa,0x3b,0xf7,0x72,0x12,0x2b,0xc7,0x2b,0xf7,0x8b,0xfa,
  178.     0xc1,0xef,0x05,0x2b,0xd7,0x66,0x89,0x14,0x29,0x45,0xeb,0x12,0x8b,0xc7,0xbf,0x00,
  179.     0x08,0x00,0x00,0x2b,0xfa,0xc1,0xef,0x05,0x03,0xfa,0x66,0x89,0x3c,0x29,0x03,0xed,
  180.     0x0f,0xb7,0x14,0x29,0x3d,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,0x3b,0xc1,0xe6,
  181.     0x08,0xc1,0xe0,0x08,0x0b,0xf7,0x43,0x89,0x5c,0x24,0x10,0x8b,0xf8,0xc1,0xef,0x0b,
  182.     0x0f,0xaf,0xfa,0x3b,0xf7,0x72,0x12,0x2b,0xc7,0x2b,0xf7,0x8b,0xfa,0xc1,0xef,0x05,
  183.     0x2b,0xd7,0x66,0x89,0x14,0x29,0x45,0xeb,0x12,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,
  184.     0x2b,0xfa,0xc1,0xef,0x05,0x03,0xfa,0x66,0x89,0x3c,0x29,0x03,0xed,0x0f,0xb7,0x14,
  185.     0x29,0x3d,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,0x3b,0xc1,0xe6,0x08,0xc1,0xe0,
  186.     0x08,0x0b,0xf7,0x43,0x89,0x5c,0x24,0x10,0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xfa,
  187.     0x3b,0xf7,0x72,0x12,0x2b,0xc7,0x2b,0xf7,0x8b,0xfa,0xc1,0xef,0x05,0x2b,0xd7,0x66,
  188.     0x89,0x14,0x29,0x45,0xeb,0x12,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xfa,0xc1,
  189.     0xef,0x05,0x03,0xfa,0x66,0x89,0x3c,0x29,0x03,0xed,0x0f,0xb7,0x14,0x29,0x3d,0x00,
  190.     0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,0x3b,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf7,
  191.     0x43,0x89,0x5c,0x24,0x10,0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xfa,0x3b,0xf7,0x72,
  192.     0x12,0x2b,0xc7,0x2b,0xf7,0x8b,0xfa,0xc1,0xef,0x05,0x2b,0xd7,0x66,0x89,0x14,0x29,
  193.     0x45,0xeb,0x12,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xfa,0xc1,0xef,0x05,0x03,
  194.     0xfa,0x66,0x89,0x3c,0x29,0x03,0xed,0x0f,0xb7,0x14,0x29,0x3d,0x00,0x00,0x00,0x01,
  195.     0x73,0x10,0x0f,0xb6,0x3b,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf7,0x43,0x89,0x5c,
  196.     0x24,0x10,0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xfa,0x3b,0xf7,0x72,0x12,0x2b,0xc7,
  197.     0x2b,0xf7,0x8b,0xfa,0xc1,0xef,0x05,0x2b,0xd7,0x66,0x89,0x14,0x29,0x45,0xeb,0x12,
  198.     0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xfa,0xc1,0xef,0x05,0x03,0xfa,0x66,0x89,
  199.     0x3c,0x29,0x83,0xc5,0xc0,0x83,0xfd,0x04,0x0f,0x82,0x82,0x02,0x00,0x00,0x8b,0xcd,
  200.     0x8b,0xd5,0xd1,0xe9,0x83,0xe2,0x01,0x49,0x83,0xca,0x02,0x8b,0xfd,0x89,0x4c,0x24,
  201.     0x48,0x83,0xfd,0x0e,0x0f,0x83,0x9c,0x00,0x00,0x00,0xd3,0xe2,0x8b,0xea,0x8b,0xcd,
  202.     0x2b,0xcf,0x8b,0x7c,0x24,0x38,0xba,0x01,0x00,0x00,0x00,0x89,0x54,0x24,0x40,0x8d,
  203.     0x9c,0x4f,0x5e,0x05,0x00,0x00,0xeb,0x08,0x8d,0xa4,0x24,0x00,0x00,0x00,0x00,0x90,
  204.     0x0f,0xb7,0x0c,0x53,0x3d,0x00,0x00,0x00,0x01,0x73,0x13,0x8b,0x7c,0x24,0x10,0x0f,
  205.     0xb6,0x3f,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf7,0xff,0x44,0x24,0x10,0x8b,0xf8,
  206.     0xc1,0xef,0x0b,0x0f,0xaf,0xf9,0x3b,0xf7,0x72,0x19,0x0b,0x6c,0x24,0x40,0x2b,0xc7,
  207.     0x2b,0xf7,0x8b,0xf9,0xc1,0xef,0x05,0x2b,0xcf,0x66,0x89,0x0c,0x53,0x8d,0x54,0x12,
  208.     0x01,0xeb,0x14,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xf9,0xc1,0xef,0x05,0x03,
  209.     0xf9,0x66,0x89,0x3c,0x53,0x03,0xd2,0x8b,0x4c,0x24,0x40,0x03,0xc9,0x89,0x4c,0x24,
  210.     0x40,0x8b,0x4c,0x24,0x48,0x8b,0xf9,0x49,0x89,0x4c,0x24,0x48,0x83,0xff,0x01,0x75,
  211.     0x8f,0xe9,0xca,0x01,0x00,0x00,0x8b,0x7c,0x24,0x10,0x8d,0x59,0xfc,0x8d,0x49,0x00,
  212.     0x3d,0x00,0x00,0x00,0x01,0x73,0x0c,0x0f,0xb6,0x0f,0xc1,0xe6,0x08,0xc1,0xe0,0x08,
  213.     0x0b,0xf1,0x47,0xd1,0xe8,0x2b,0xf0,0x8b,0xce,0xc1,0xe9,0x1f,0x03,0xd2,0x2b,0xd1,
  214.     0xf7,0xd9,0x23,0xc8,0x03,0xce,0x42,0x83,0xeb,0x01,0x8b,0xf1,0x75,0xd2,0x8b,0x5c,
  215.     0x24,0x38,0x0f,0xb7,0x8b,0x46,0x06,0x00,0x00,0xc1,0xe2,0x04,0x8b,0xea,0x89,0x7c,
  216.     0x24,0x10,0x3d,0x00,0x00,0x00,0x01,0x73,0x10,0x0f,0xb6,0x17,0xc1,0xe6,0x08,0xc1,
  217.     0xe0,0x08,0x0b,0xf2,0x47,0x89,0x7c,0x24,0x10,0x8b,0xd0,0xc1,0xea,0x0b,0x0f,0xaf,
  218.     0xd1,0x3b,0xf2,0x72,0x1c,0x2b,0xc2,0x2b,0xf2,0x8b,0xd1,0xc1,0xea,0x05,0x2b,0xca,
  219.     0x66,0x89,0x8b,0x46,0x06,0x00,0x00,0xb9,0x03,0x00,0x00,0x00,0x83,0xcd,0x01,0xeb,
  220.     0x1a,0x8b,0xc2,0xba,0x00,0x08,0x00,0x00,0x2b,0xd1,0xc1,0xea,0x05,0x03,0xd1,0x66,
  221.     0x89,0x93,0x46,0x06,0x00,0x00,0xb9,0x02,0x00,0x00,0x00,0x8d,0x3c,0x09,0x0f,0xb7,
  222.     0x8c,0x4b,0x44,0x06,0x00,0x00,0x3d,0x00,0x00,0x00,0x01,0x73,0x13,0x8b,0x54,0x24,
  223.     0x10,0x0f,0xb6,0x12,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf2,0xff,0x44,0x24,0x10,
  224.     0x8b,0xd0,0xc1,0xea,0x0b,0x0f,0xaf,0xd1,0x3b,0xf2,0x72,0x19,0x2b,0xc2,0x2b,0xf2,
  225.     0x8b,0xd1,0xc1,0xea,0x05,0x2b,0xca,0x66,0x89,0x8c,0x1f,0x44,0x06,0x00,0x00,0x47,
  226.     0x83,0xcd,0x02,0xeb,0x16,0x8b,0xc2,0xba,0x00,0x08,0x00,0x00,0x2b,0xd1,0xc1,0xea,
  227.     0x05,0x03,0xd1,0x66,0x89,0x94,0x1f,0x44,0x06,0x00,0x00,0x8d,0x14,0x3f,0x0f,0xb7,
  228.     0x8c,0x1a,0x44,0x06,0x00,0x00,0x3d,0x00,0x00,0x00,0x01,0x73,0x13,0x8b,0x7c,0x24,
  229.     0x10,0x0f,0xb6,0x3f,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf7,0xff,0x44,0x24,0x10,
  230.     0x8b,0xf8,0xc1,0xef,0x0b,0x0f,0xaf,0xf9,0x3b,0xf7,0x72,0x19,0x2b,0xc7,0x2b,0xf7,
  231.     0x8b,0xf9,0xc1,0xef,0x05,0x2b,0xcf,0x66,0x89,0x8c,0x1a,0x44,0x06,0x00,0x00,0x42,
  232.     0x83,0xcd,0x04,0xeb,0x16,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xf9,0xc1,0xef,
  233.     0x05,0x03,0xf9,0x66,0x89,0xbc,0x1a,0x44,0x06,0x00,0x00,0x0f,0xb7,0x8c,0x53,0x44,
  234.     0x06,0x00,0x00,0x3d,0x00,0x00,0x00,0x01,0x73,0x13,0x8b,0x7c,0x24,0x10,0x0f,0xb6,
  235.     0x3f,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf7,0xff,0x44,0x24,0x10,0x8b,0xf8,0xc1,
  236.     0xef,0x0b,0x0f,0xaf,0xf9,0x3b,0xf7,0x72,0x18,0x2b,0xc7,0x2b,0xf7,0x8b,0xf9,0xc1,
  237.     0xef,0x05,0x2b,0xcf,0x66,0x89,0x8c,0x53,0x44,0x06,0x00,0x00,0x83,0xcd,0x08,0xeb,
  238.     0x16,0x8b,0xc7,0xbf,0x00,0x08,0x00,0x00,0x2b,0xf9,0xc1,0xef,0x05,0x03,0xf9,0x66,
  239.     0x89,0xbc,0x53,0x44,0x06,0x00,0x00,0x83,0xfd,0xff,0x0f,0x84,0x1d,0x01,0x00,0x00,
  240.     0x8b,0x54,0x24,0x2c,0x8b,0x4c,0x24,0x30,0x89,0x54,0x24,0x3c,0x8b,0x54,0x24,0x20,
  241.     0x89,0x4c,0x24,0x2c,0x8b,0x4c,0x24,0x44,0x89,0x54,0x24,0x30,0x8d,0x55,0x01,0x89,
  242.     0x54,0x24,0x20,0x85,0xc9,0x74,0x04,0x3b,0xe9,0xeb,0x04,0x3b,0x6c,0x24,0x1c,0x0f,
  243.     0x92,0xc1,0x84,0xc9,0x0f,0x84,0xd6,0x00,0x00,0x00,0x83,0x7c,0x24,0x14,0x13,0x1b,
  244.     0xc9,0x83,0xe1,0xfd,0x83,0xc1,0x0a,0x89,0x4c,0x24,0x24,0x89,0x4c,0x24,0x14,0xeb,
  245.     0x04,0x8b,0x54,0x24,0x20,0x8b,0x6c,0x24,0x50,0x8b,0x7c,0x24,0x64,0x8b,0x5c,0x24,
  246.     0x18,0x83,0xc5,0x02,0x3b,0xfb,0x0f,0x84,0xa4,0x00,0x00,0x00,0x2b,0xfb,0x3b,0xfd,
  247.     0x72,0x08,0x8b,0xfd,0x89,0x6c,0x24,0x40,0xeb,0x04,0x89,0x7c,0x24,0x40,0x01,0x7c,
  248.     0x24,0x1c,0x3b,0xda,0x1b,0xc9,0x23,0x4c,0x24,0x28,0x2b,0xef,0x2b,0xca,0x8d,0x14,
  249.     0x19,0x89,0x6c,0x24,0x48,0x8d,0x2c,0x3a,0x89,0x5c,0x24,0x50,0x3b,0x6c,0x24,0x28,
  250.     0x76,0x2c,0x8b,0x6c,0x24,0x34,0x8b,0xfb,0x8a,0x0c,0x2a,0x88,0x0c,0x2f,0x42,0x47,
  251.     0x3b,0x54,0x24,0x28,0x75,0x02,0x33,0xd2,0x8b,0x4c,0x24,0x40,0x8b,0xd9,0x49,0x89,
  252.     0x4c,0x24,0x40,0x83,0xfb,0x01,0x75,0xe0,0x89,0x7c,0x24,0x18,0xeb,0x1d,0x8b,0x54,
  253.     0x24,0x34,0x8d,0x2c,0x13,0x03,0xdf,0x89,0x5c,0x24,0x18,0x03,0xfd,0x8d,0x49,0x00,
  254.     0x8a,0x14,0x29,0x88,0x55,0x00,0x45,0x3b,0xef,0x75,0xf5,0x8b,0x4c,0x24,0x18,0x3b,
  255.     0x4c,0x24,0x64,0x73,0x41,0x8b,0x4c,0x24,0x10,0x3b,0x4c,0x24,0x68,0x7d,0x37,0x8b,
  256.     0x4c,0x24,0x38,0x8b,0x7c,0x24,0x58,0x8b,0x5c,0x24,0x60,0xe9,0x40,0xf4,0xff,0xff,
  257.     0x5f,0x5e,0x5d,0xb8,0x01,0x00,0x00,0x00,0x5b,0x83,0xc4,0x4c,0xc3,0x8b,0x54,0x24,
  258.     0x50,0x8b,0x4c,0x24,0x14,0x81,0xc2,0x12,0x01,0x00,0x00,0x83,0xc1,0xf4,0x89,0x54,
  259.     0x24,0x48,0x89,0x4c,0x24,0x24,0x8b,0x54,0x24,0x10,0x3d,0x00,0x00,0x00,0x01,0x73,
  260.     0x0c,0x0f,0xb6,0x0a,0xc1,0xe6,0x08,0xc1,0xe0,0x08,0x0b,0xf1,0x42,0x8b,0x4c,0x24,
  261.     0x60,0x89,0x41,0x1c,0x8b,0x44,0x24,0x48,0x89,0x51,0x18,0x8b,0x54,0x24,0x18,0x89,
  262.     0x41,0x48,0x8b,0x44,0x24,0x1c,0x89,0x51,0x24,0x8b,0x54,0x24,0x20,0x89,0x41,0x2c,
  263.     0x8b,0x44,0x24,0x30,0x5f,0x89,0x51,0x38,0x8b,0x54,0x24,0x28,0x89,0x71,0x20,0x89,
  264.     0x41,0x3c,0x8b,0x44,0x24,0x38,0x5e,0x89,0x51,0x40,0x8b,0x54,0x24,0x1c,0x5d,0x89,
  265.     0x41,0x44,0x89,0x51,0x34,0x33,0xc0,0x5b,0x83,0xc4,0x4c,0xc3,0xcc,0xcc,0xcc,0xcc,
  266.     0x51,0x8b,0x4c,0x24,0x08,0x55,0x56,0x8b,0x74,0x24,0x14,0x33,0xed,0x55,0x8d,0x44,
  267.     0x24,0x0c,0x50,0x56,0x51,0x52,0xff,0x15,0x14,0x40,0x40,0x00,0x85,0xc0,0x75,0x16,
  268.     0x68,0xec,0x41,0x40,0x00,0xff,0x15,0xbc,0x40,0x40,0x00,0x83,0xc4,0x04,0x6a,0xff,
  269.     0xff,0x15,0x10,0x40,0x40,0x00,0x8b,0x4c,0x24,0x10,0xe8,0x31,0xef,0xff,0xff,0x68,
  270.     0x6c,0x3e,0x00,0x00,0xc7,0x07,0x03,0x00,0x00,0x00,0x89,0x6f,0x04,0xc7,0x47,0x08,
  271.     0x02,0x00,0x00,0x00,0xc7,0x47,0x0c,0x00,0x00,0x01,0x00,0xc7,0x47,0x54,0x36,0x1f,
  272.     0x00,0x00,0xe8,0xad,0x06,0x00,0x00,0x53,0x89,0x47,0x10,0xe8,0xa4,0x06,0x00,0x00,
  273.     0x53,0x8b,0xf0,0x55,0x56,0xe8,0x84,0x0e,0x00,0x00,0x8b,0x4c,0x24,0x24,0xb8,0x01,
  274.     0x00,0x00,0x00,0x89,0x47,0x4c,0x89,0x47,0x50,0x8d,0x44,0x24,0x28,0x50,0x51,0x53,
  275.     0x57,0x89,0x77,0x14,0x89,0x5f,0x28,0x89,0x6f,0x24,0x89,0x6f,0x48,0x89,0x6f,0x58,
  276.     0x89,0x6f,0x2c,0x89,0x6f,0x30,0xe8,0x65,0xef,0xff,0xff,0x83,0xc4,0x24,0x5e,0x5d,
  277.     0x59,0xc3,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,
  278.     0x83,0xec,0x18,0x8b,0x50,0x34,0x53,0x55,0x8b,0x6c,0x24,0x24,0x03,0xcd,0x89,0x4c,
  279.     0x24,0x24,0x8b,0x48,0x10,0x89,0x4c,0x24,0x08,0x8b,0x48,0x08,0xbb,0x01,0x00,0x00,
  280.     0x00,0xd3,0xe3,0x8b,0x4c,0x24,0x08,0x56,0x8b,0x70,0x20,0x4b,0x23,0x58,0x2c,0x89,
  281.     0x54,0x24,0x14,0xc1,0xe2,0x04,0x57,0x8b,0x78,0x1c,0x03,0xd3,0x0f,0xb7,0x0c,0x51,
  282.     0x81,0xff,0x00,0x00,0x00,0x01,0x73,0x1d,0x3b,0x6c,0x24,0x2c,0x72,0x0a,0x5f,0x5e,
  283.     0x5d,0x33,0xc0,0x5b,0x83,0xc4,0x18,0xc3,0x0f,0xb6,0x55,0x00,0xc1,0xe6,0x08,0xc1,
  284.     0xe7,0x08,0x0b,0xf2,0x45,0x8b,0xd7,0xc1,0xea,0x0b,0x0f,0xaf,0xd1,0x3b,0xf2,0x0f,
  285.     0x83,0x4d,0x01,0x00,0x00,0x8b,0x5c,0x24,0x10,0x81,0xc3,0x6c,0x0e,0x00,0x00,0x83,
  286.     0x78,0x30,0x00,0x89,0x5c,0x24,0x14,0x75,0x06,0x83,0x78,0x2c,0x00,0x74,0x3f,0x8b,
  287.     0x48,0x24,0x85,0xc9,0x75,0x03,0x8b,0x48,0x28,0x8b,0x78,0x14,0x0f,0xb6,0x7c,0x0f,
  288.     0xff,0xb9,0x08,0x00,0x00,0x00,0x2a,0x08,0xbb,0x01,0x00,0x00,0x00,0xd3,0xef,0x8b,
  289.     0x48,0x04,0xd3,0xe3,0x8b,0x08,0x4b,0x23,0x58,0x2c,0xd3,0xe3,0x03,0xfb,0x8b,0x5c,
  290.     0x24,0x14,0x69,0xff,0x00,0x06,0x00,0x00,0x03,0xdf,0x89,0x5c,0x24,0x14,0x83,0x7c,
  291.     0x24,0x18,0x07,0x0f,0x82,0x92,0x00,0x00,0x00,0x8b,0x78,0x24,0x8b,0x58,0x38,0x3b,
  292.     0xfb,0x72,0x04,0x33,0xc9,0xeb,0x03,0x8b,0x48,0x28,0x8b,0x40,0x14,0x2b,0xc3,0x03,
  293.     0xc1,0x0f,0xb6,0x04,0x38,0xbf,0x00,0x01,0x00,0x00,0xb9,0x01,0x00,0x00,0x00,0x90,
  294.     0x8b,0x5c,0x24,0x14,0x03,0xc0,0x89,0x44,0x24,0x24,0x23,0xc7,0x89,0x44,0x24,0x20,
  295.     0x03,0xc1,0x03,0xc7,0x0f,0xb7,0x1c,0x43,0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x17,
  296.     0x3b,0x6c,0x24,0x2c,0x0f,0x83,0x24,0xff,0xff,0xff,0x0f,0xb6,0x45,0x00,0xc1,0xe6,
  297.     0x08,0xc1,0xe2,0x08,0x0b,0xf0,0x45,0x8b,0xc2,0xc1,0xe8,0x0b,0x0f,0xaf,0xc3,0x3b,
  298.     0xf0,0x72,0x0e,0x2b,0xd0,0x2b,0xf0,0x8b,0x44,0x24,0x20,0x8d,0x4c,0x09,0x01,0xeb,
  299.     0x0a,0x8b,0xd0,0x8b,0x44,0x24,0x20,0x03,0xc9,0xf7,0xd0,0x23,0xf8,0x81,0xf9,0x00,
  300.     0x01,0x00,0x00,0x73,0x50,0x8b,0x44,0x24,0x24,0xeb,0x95,0xb9,0x01,0x00,0x00,0x00,
  301.     0x0f,0xb7,0x3c,0x4b,0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x17,0x3b,0x6c,0x24,0x2c,
  302.     0x0f,0x83,0xc8,0xfe,0xff,0xff,0x0f,0xb6,0x45,0x00,0xc1,0xe6,0x08,0xc1,0xe2,0x08,
  303.     0x0b,0xf0,0x45,0x8b,0xc2,0xc1,0xe8,0x0b,0x0f,0xaf,0xc7,0x3b,0xf0,0x72,0x0a,0x2b,
  304.     0xd0,0x2b,0xf0,0x8d,0x4c,0x09,0x01,0xeb,0x04,0x8b,0xd0,0x03,0xc9,0x81,0xf9,0x00,
  305.     0x01,0x00,0x00,0x72,0xbb,0xc7,0x44,0x24,0x20,0x01,0x00,0x00,0x00,0xe9,0xe8,0x03,
  306.     0x00,0x00,0x8b,0x4c,0x24,0x18,0x2b,0xfa,0x2b,0xf2,0x8b,0x54,0x24,0x10,0x0f,0xb7,
  307.     0x8c,0x4a,0x80,0x01,0x00,0x00,0x81,0xff,0x00,0x00,0x00,0x01,0x73,0x17,0x3b,0x6c,
  308.     0x24,0x2c,0x0f,0x83,0x66,0xfe,0xff,0xff,0x0f,0xb6,0x45,0x00,0xc1,0xe6,0x08,0xc1,
  309.     0xe7,0x08,0x0b,0xf0,0x45,0x8b,0xc7,0xc1,0xe8,0x0b,0x0f,0xaf,0xc1,0x3b,0xf0,0x73,
  310.     0x1f,0x81,0xc2,0x64,0x06,0x00,0x00,0xc7,0x44,0x24,0x24,0x00,0x00,0x00,0x00,0x89,
  311.     0x54,0x24,0x14,0xc7,0x44,0x24,0x20,0x02,0x00,0x00,0x00,0xe9,0x49,0x01,0x00,0x00,
  312.     0x2b,0xf8,0x2b,0xf0,0xc7,0x44,0x24,0x20,0x03,0x00,0x00,0x00,0x81,0xff,0x00,0x00,
  313.     0x00,0x01,0x73,0x17,0x3b,0x6c,0x24,0x2c,0x0f,0x83,0x10,0xfe,0xff,0xff,0x0f,0xb6,
  314.     0x4d,0x00,0xc1,0xe6,0x08,0xc1,0xe7,0x08,0x0b,0xf1,0x45,0x8b,0x44,0x24,0x10,0x8b,
  315.     0x54,0x24,0x18,0x0f,0xb7,0x8c,0x50,0x98,0x01,0x00,0x00,0x8b,0xc7,0xc1,0xe8,0x0b,
  316.     0x0f,0xaf,0xc8,0x3b,0xf1,0x73,0x5e,0x81,0xf9,0x00,0x00,0x00,0x01,0x73,0x17,0x3b,
  317.     0x6c,0x24,0x2c,0x0f,0x83,0xd5,0xfd,0xff,0xff,0x0f,0xb6,0x45,0x00,0xc1,0xe6,0x08,
  318.     0xc1,0xe1,0x08,0x0b,0xf0,0x45,0x8b,0x44,0x24,0x10,0x83,0xc2,0x0f,0xc1,0xe2,0x04,
  319.     0x03,0xd3,0x0f,0xb7,0x3c,0x50,0x8b,0xd1,0xc1,0xea,0x0b,0x0f,0xaf,0xfa,0x3b,0xf7,
  320.     0x0f,0x83,0xa5,0x00,0x00,0x00,0x81,0xff,0x00,0x00,0x00,0x01,0x73,0x0a,0x3b,0x6c,
  321.     0x24,0x2c,0x0f,0x83,0x96,0xfd,0xff,0xff,0x5f,0x5e,0x5d,0xb8,0x03,0x00,0x00,0x00,
  322.     0x5b,0x83,0xc4,0x18,0xc3,0x8b,0x44,0x24,0x10,0x2b,0xf9,0x2b,0xf1,0x0f,0xb7,0x8c,
  323.     0x50,0xb0,0x01,0x00,0x00,0x89,0x6c,0x24,0x1c,0x81,0xff,0x00,0x00,0x00,0x01,0x73,
  324.     0x1b,0x3b,0x6c,0x24,0x2c,0x0f,0x83,0x63,0xfd,0xff,0xff,0x0f,0xb6,0x45,0x00,0xc1,
  325.     0xe6,0x08,0xc1,0xe7,0x08,0x0b,0xf0,0x45,0x89,0x6c,0x24,0x1c,0x8b,0xc7,0xc1,0xe8,
  326.     0x0b,0x0f,0xaf,0xc1,0x3b,0xf0,0x72,0x49,0x8b,0x4c,0x24,0x10,0x0f,0xb7,0x94,0x51,
  327.     0xc8,0x01,0x00,0x00,0x2b,0xf8,0x8b,0xcf,0x2b,0xf0,0x81,0xf9,0x00,0x00,0x00,0x01,
  328.     0x73,0x1b,0x8b,0x6c,0x24,0x1c,0x3b,0x6c,0x24,0x2c,0x0f,0x83,0x1e,0xfd,0xff,0xff,
  329.     0x0f,0xb6,0x45,0x00,0xc1,0xe6,0x08,0xc1,0xe1,0x08,0x0b,0xf0,0x45,0x8b,0xc1,0xc1,
  330.     0xe8,0x0b,0x0f,0xaf,0xc2,0x8b,0xf8,0x3b,0xf7,0x72,0x06,0x2b,0xcf,0x8b,0xc1,0x2b,
  331.     0xf7,0x8b,0x4c,0x24,0x10,0x81,0xc1,0x68,0x0a,0x00,0x00,0xc7,0x44,0x24,0x24,0x0c,
  332.     0x00,0x00,0x00,0x89,0x4c,0x24,0x14,0x8b,0xd1,0x3d,0x00,0x00,0x00,0x01,0x73,0x17,
  333.     0x3b,0x6c,0x24,0x2c,0x0f,0x83,0xd4,0xfc,0xff,0xff,0x0f,0xb6,0x4d,0x00,0xc1,0xe6,
  334.     0x08,0xc1,0xe0,0x08,0x0b,0xf1,0x45,0x0f,0xb7,0x3a,0x8b,0xc8,0xc1,0xe9,0x0b,0x0f,
  335.     0xaf,0xcf,0x3b,0xf1,0x72,0x71,0x2b,0xc1,0x8b,0xf8,0x2b,0xf1,0x81,0xff,0x00,0x00,
  336.     0x00,0x01,0x73,0x17,0x3b,0x6c,0x24,0x2c,0x0f,0x83,0xa0,0xfc,0xff,0xff,0x0f,0xb6,
  337.     0x45,0x00,0xc1,0xe6,0x08,0xc1,0xe7,0x08,0x0b,0xf0,0x45,0x0f,0xb7,0x52,0x02,0x8b,
  338.     0x44,0x24,0x14,0x8b,0xcf,0xc1,0xe9,0x0b,0x0f,0xaf,0xca,0x3b,0xf1,0x72,0x1d,0x2b,
  339.     0xf9,0x2b,0xf1,0x8b,0xd7,0x05,0x04,0x02,0x00,0x00,0xc7,0x44,0x24,0x1c,0x10,0x00,
  340.     0x00,0x00,0xc7,0x44,0x24,0x18,0x00,0x01,0x00,0x00,0xeb,0x38,0xbf,0x08,0x00,0x00,
  341.     0x00,0xc1,0xe3,0x04,0x89,0x7c,0x24,0x1c,0x8b,0xd1,0x8d,0x84,0x03,0x04,0x01,0x00,
  342.     0x00,0x89,0x7c,0x24,0x18,0xeb,0x1d,0x8b,0xd1,0x8b,0x4c,0x24,0x14,0xc1,0xe3,0x04,
  343.     0x8d,0x44,0x0b,0x04,0xc7,0x44,0x24,0x1c,0x00,0x00,0x00,0x00,0xc7,0x44,0x24,0x18,
  344.     0x08,0x00,0x00,0x00,0xbf,0x01,0x00,0x00,0x00,0x8d,0xa4,0x24,0x00,0x00,0x00,0x00,
  345.     0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x17,0x3b,0x6c,0x24,0x2c,0x0f,0x83,0x0c,0xfc,
  346.     0xff,0xff,0x0f,0xb6,0x4d,0x00,0xc1,0xe6,0x08,0xc1,0xe2,0x08,0x0b,0xf1,0x45,0x0f,
  347.     0xb7,0x1c,0x78,0x8b,0xca,0xc1,0xe9,0x0b,0x0f,0xaf,0xcb,0x3b,0xf1,0x72,0x0a,0x2b,
  348.     0xd1,0x2b,0xf1,0x8d,0x7c,0x3f,0x01,0xeb,0x04,0x8b,0xd1,0x03,0xff,0x8b,0x4c,0x24,
  349.     0x18,0x3b,0xf9,0x72,0xbb,0x2b,0xf9,0x03,0x7c,0x24,0x1c,0x83,0x7c,0x24,0x24,0x04,
  350.     0x0f,0x83,0x24,0x01,0x00,0x00,0x83,0xff,0x04,0x72,0x05,0xbf,0x03,0x00,0x00,0x00,
  351.     0x8b,0x44,0x24,0x10,0xc1,0xe7,0x07,0x8d,0x9c,0x07,0x60,0x03,0x00,0x00,0xbf,0x01,
  352.     0x00,0x00,0x00,0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x17,0x3b,0x6c,0x24,0x2c,0x0f,
  353.     0x83,0x99,0xfb,0xff,0xff,0x0f,0xb6,0x4d,0x00,0xc1,0xe6,0x08,0xc1,0xe2,0x08,0x0b,
  354.     0xf1,0x45,0x0f,0xb7,0x04,0x7b,0x8b,0xca,0xc1,0xe9,0x0b,0x0f,0xaf,0xc8,0x3b,0xf1,
  355.     0x72,0x0a,0x2b,0xd1,0x2b,0xf1,0x8d,0x7c,0x3f,0x01,0xeb,0x04,0x8b,0xd1,0x03,0xff,
  356.     0x83,0xff,0x40,0x72,0xbe,0x8d,0x47,0xc0,0x83,0xf8,0x04,0x0f,0x82,0xb9,0x00,0x00,
  357.     0x00,0x8b,0xf8,0xd1,0xef,0x8d,0x4f,0xff,0x89,0x4c,0x24,0x1c,0x83,0xf8,0x0e,0x72,
  358.     0x49,0x8d,0x47,0xfb,0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x17,0x3b,0x6c,0x24,0x2c,
  359.     0x0f,0x83,0x38,0xfb,0xff,0xff,0x0f,0xb6,0x4d,0x00,0xc1,0xe6,0x08,0xc1,0xe2,0x08,
  360.     0x0b,0xf1,0x45,0xd1,0xea,0x8b,0xce,0x2b,0xca,0xc1,0xe9,0x1f,0x49,0x23,0xca,0x2b,
  361.     0xf1,0x83,0xe8,0x01,0x75,0xce,0x8b,0x4c,0x24,0x10,0x81,0xc1,0x44,0x06,0x00,0x00,
  362.     0xc7,0x44,0x24,0x1c,0x04,0x00,0x00,0x00,0xeb,0x17,0x8b,0xf8,0x83,0xe7,0x01,0x83,
  363.     0xcf,0x02,0xd3,0xe7,0x2b,0xf8,0x8b,0x44,0x24,0x10,0x8d,0x8c,0x78,0x5e,0x05,0x00,
  364.     0x00,0xb8,0x01,0x00,0x00,0x00,0x81,0xfa,0x00,0x00,0x00,0x01,0x73,0x17,0x3b,0x6c,
  365.     0x24,0x2c,0x0f,0x83,0xd6,0xfa,0xff,0xff,0x0f,0xb6,0x7d,0x00,0xc1,0xe6,0x08,0xc1,
  366.     0xe2,0x08,0x0b,0xf7,0x45,0x0f,0xb7,0x1c,0x41,0x8b,0xfa,0xc1,0xef,0x0b,0x0f,0xaf,
  367.     0xfb,0x3b,0xf7,0x72,0x0a,0x2b,0xd7,0x2b,0xf7,0x8d,0x44,0x00,0x01,0xeb,0x04,0x8b,
  368.     0xd7,0x03,0xc0,0x83,0x6c,0x24,0x1c,0x01,0x75,0xbc,0x81,0xfa,0x00,0x00,0x00,0x01,
  369.     0x73,0x0a,0x3b,0x6c,0x24,0x2c,0x0f,0x83,0x92,0xfa,0xff,0xff,0x8b,0x44,0x24,0x20,
  370.     0x5f,0x5e,0x5d,0x5b,0x83,0xc4,0x18,0xc3,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,0xcc,
  371.     0x51,0x8b,0x51,0x48,0x53,0x8b,0xd8,0x85,0xd2,0x74,0x67,0x81,0xfa,0x12,0x01,0x00,
  372.     0x00,0x73,0x5f,0x8b,0x41,0x24,0x55,0x8b,0x69,0x14,0x56,0x8b,0x71,0x28,0x2b,0xd8,
  373.     0x57,0x8b,0x79,0x38,0x89,0x74,0x24,0x10,0x8b,0xf2,0x3b,0xda,0x73,0x02,0x8b,0xf3,
  374.     0x83,0x79,0x30,0x00,0x75,0x10,0x8b,0x59,0x0c,0x2b,0x59,0x2c,0x3b,0xde,0x77,0x06,
  375.     0x8b,0x59,0x0c,0x89,0x59,0x30,0x01,0x71,0x2c,0x2b,0xd6,0x89,0x51,0x48,0x85,0xf6,
  376.     0x74,0x1a,0x8b,0x54,0x24,0x10,0x4e,0x3b,0xc7,0x1b,0xdb,0x23,0xda,0x2b,0xdf,0x03,
  377.     0xdd,0x8a,0x1c,0x03,0x88,0x1c,0x28,0x40,0x85,0xf6,0x75,0xea,0x5f,0x5e,0x89,0x41,
  378.     0x24,0x5d,0x5b,0x59,0xc3,/*INT3*/ 0xcc };
  379.  
  380.         //typedef char (__cdecl *MFUNC)(void *out_struct, int outsz, void *in, int *insz);
  381.         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
  382.         internal delegate int fnUnpackSmf(IntPtr out_struct, int outsz, IntPtr _in, IntPtr insz);
  383.  
  384.         /*
  385.  void *msf_unpack_alloc(void *dump, int dumpsz) {
  386.     int     pagesz;
  387.     void    *ret;
  388.  
  389.     pagesz = (dumpsz + 4095) & (~4095); // useful for pages? mah
  390.  
  391. #ifdef WIN32
  392.     ret = VirtualAlloc(
  393.         NULL,
  394.         pagesz,
  395.         MEM_COMMIT | MEM_RESERVE,
  396.         PAGE_EXECUTE_READWRITE);    // write for memcpy
  397. #else
  398.     ret = malloc(pagesz);
  399.     mprotect(
  400.         ret,
  401.         pagesz,
  402.         PROT_EXEC | PROT_WRITE);    // write for memcpy
  403. #endif
  404.     memcpy(ret, dump, dumpsz);
  405.     return(ret);
  406. }*/
  407.         internal static void msf_unpack_alloc(byte[] dump)
  408.         {
  409.             int pagesz = (dump.Length + 4095) & (~4095);
  410.             msf_unpack_pointer = Marshal.AllocHGlobal(pagesz);
  411.             uint old = 0;
  412.             Imports.VirtualProtect(msf_unpack_pointer, (uint)pagesz, MemoryProtectType.PAGE_EXECUTE_READWRITE, out old);
  413.             for(int i=0;i<dump.Length;i++)
  414.                 Marshal.WriteByte(msf_unpack_pointer + i, dump[i]);
  415.         }
  416.  
  417.         internal static void msf_unpack_init()
  418.         {
  419.             /*#define PATCHIT(X,Y) *(int *)((char *)msf_unpack + X) = (int)(Y);
  420.         PATCHIT(0x000002c6, &msf_unpack_00405370) // mov dword ptr [405370], ebp
  421.         PATCHIT(0x000002d3, &msf_unpack_00405370) // mov dword ptr [405370], ebp
  422.         PATCHIT(0x000002fc, &msf_unpack_00405378) // mov dword ptr [405378], eax
  423.         PATCHIT(0x00000311, &msf_unpack_0040537C) // mov dword ptr [40537C], ecx
  424.         PATCHIT(0x00000388, &msf_unpack_00405374) // mov dword ptr [405374], ebx
  425.         PATCHIT(0x00001011, msf_unpack_004041ec)  // push 4041EC
  426.         #undef PATCHIT*/
  427.             msf_unpack_00405370 = Marshal.AllocHGlobal(4);
  428.             msf_unpack_00405374 = Marshal.AllocHGlobal(4);
  429.             msf_unpack_00405378 = Marshal.AllocHGlobal(4);
  430.             msf_unpack_0040537C = Marshal.AllocHGlobal(4);
  431.             msf_unpack_004041ec = Marshal.AllocHGlobal(0x80);
  432.             Marshal.WriteInt32(msf_unpack_pointer + 0x2c6, msf_unpack_00405370.ToInt32());
  433.             Marshal.WriteInt32(msf_unpack_pointer + 0x2d3, msf_unpack_00405370.ToInt32());
  434.             Marshal.WriteInt32(msf_unpack_pointer + 0x2fc, msf_unpack_00405378.ToInt32());
  435.             Marshal.WriteInt32(msf_unpack_pointer + 0x311, msf_unpack_0040537C.ToInt32());
  436.             Marshal.WriteInt32(msf_unpack_pointer + 0x388, msf_unpack_00405374.ToInt32());
  437.             Marshal.WriteInt32(msf_unpack_pointer + 0x1011, msf_unpack_004041ec.ToInt32());
  438.         }
  439.  
  440.         /*
  441.          int unmsf(void *in, int insz, void *out, int outsz) {
  442.     int             ret;
  443.     unsigned char   esi[0x1b0],
  444.                     *tmp;
  445.  
  446.     msf_unpack_init();
  447.     memset(esi, 0, sizeof(esi));
  448.     tmp = (unsigned char*)calloc(0x3e6c, 1);
  449.     if(!tmp) return(-1);
  450.     *(int   *)(esi)         = 3;
  451.     *(int   *)(esi + 0x04)  = 0;
  452.     *(int   *)(esi + 0x08)  = 2;
  453.     *(int   *)(esi + 0x0c)  = 0x10000;
  454.     *(int   *)(esi + 0x54)  = 0x1f36;
  455.     *(void **)(esi + 0x10)  = tmp;
  456.     *(void **)(esi + 0x14)  = out;
  457.     *(int   *)(esi + 0x28)  = outsz;
  458.     *(int   *)(esi + 0x24)  = 0;
  459.     *(int   *)(esi + 0x4c)  = 1;
  460.     *(int   *)(esi + 0x48)  = 0;
  461.     *(int   *)(esi + 0x58)  = 0;
  462.     *(int   *)(esi + 0x2c)  = 0;
  463.     *(int   *)(esi + 0x30)  = 0;
  464.     *(int   *)(esi + 0x50)  = 1;    
  465.     ret = msf_unpack(esi, outsz, in, &insz);
  466.     free(tmp);
  467.     if(ret) return(-1);
  468.     return(*(int   *)(esi + 0x24));
  469. }
  470.          */
  471.         public static unsafe byte[] Inflate(byte[] _in, int outsz = 0x10000)
  472.         {
  473.             int ret = 0;
  474.  
  475.             IntPtr esi = Marshal.AllocHGlobal(0x1b0);
  476.             IntPtr tmp = Marshal.AllocHGlobal(0x3e6c);
  477.             IntPtr outBuffer = Marshal.AllocHGlobal(outsz);
  478.             IntPtr inBuffer = Marshal.AllocHGlobal(_in.Length);
  479.  
  480.             var outSize = Marshal.AllocHGlobal(4);
  481.             var inSize = Marshal.AllocHGlobal(4);
  482.             try
  483.             {
  484.  
  485.                 for (int i = 0; i < _in.Length; i++)
  486.                     Marshal.WriteByte(inBuffer + i, _in[i]);
  487.  
  488.                 Marshal.WriteInt32(inSize, _in.Length);
  489.                 Marshal.WriteInt32(outSize, outsz);
  490.  
  491.                 msf_unpack_alloc(msf_unpack_dump);
  492.                 msf_unpack_init();
  493.  
  494.                 Marshal.WriteInt32(esi, 3);
  495.                 Marshal.WriteInt32(esi + 0x04, 0);
  496.                 Marshal.WriteInt32(esi + 0x08, 2);
  497.                 Marshal.WriteInt32(esi + 0x0C, 0x10000);
  498.                 Marshal.WriteInt32(esi + 0x54, 0x1f36);
  499.                 Marshal.WriteInt32(esi + 0x10, tmp.ToInt32());
  500.                 Marshal.WriteInt32(esi + 0x14, outBuffer.ToInt32());
  501.                 Marshal.WriteInt32(esi + 0x28, outSize.ToInt32());
  502.                 Marshal.WriteInt32(esi + 0x24, 0);
  503.                 Marshal.WriteInt32(esi + 0x4C, 1);
  504.                 Marshal.WriteInt32(esi + 0x48, 0);
  505.                 Marshal.WriteInt32(esi + 0x58, 0);
  506.                 Marshal.WriteInt32(esi + 0x2C, 0);
  507.                 Marshal.WriteInt32(esi + 0x30, 0);
  508.                 Marshal.WriteInt32(esi + 0x50, 1);
  509.                 fnUnpackSmf unpack_smf =
  510.                     (fnUnpackSmf)Marshal.GetDelegateForFunctionPointer(msf_unpack_pointer, typeof(fnUnpackSmf));
  511.                 ret = unpack_smf(esi, outsz, inBuffer, inSize);
  512.                if (ret > 0) return new byte[0];
  513.                 byte[] nret = new byte[outsz];
  514.                 for (int i = 0; i < outsz; i++)
  515.                     nret[i] = Marshal.ReadByte(outBuffer + i);
  516.                 return nret;
  517.             }
  518.             finally
  519.             {
  520.                 Marshal.FreeHGlobal(msf_unpack_00405370);
  521.                 Marshal.FreeHGlobal(msf_unpack_00405374);
  522.                 Marshal.FreeHGlobal(msf_unpack_00405378);
  523.                 Marshal.FreeHGlobal(msf_unpack_0040537C);
  524.                 Marshal.FreeHGlobal(msf_unpack_004041ec);
  525.  
  526.                 Marshal.FreeHGlobal(esi);
  527.                 Marshal.FreeHGlobal(tmp);
  528.                 Marshal.FreeHGlobal(outBuffer);
  529.                 Marshal.FreeHGlobal(inBuffer);
  530.                 Marshal.FreeHGlobal(outSize);
  531.                 Marshal.FreeHGlobal(inSize);
  532.  
  533.             }
  534.         }
  535.     }
RAW Paste Data