SHARE
TWEET

Untitled

a guest Feb 18th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // GHIDRA---------------------------------------------------
  2.  
  3. void onload_Mario(int iParm1)
  4.  
  5. {
  6.   undefined4 *puVar1;
  7.   undefined4 *puVar2;
  8.   undefined4 uVar3;
  9.   undefined4 *puVar4;
  10.   undefined4 *puVar5;
  11.   int iVar6;
  12.   int iVar7;
  13.   undefined4 *puVar8;
  14.   int iVar9;
  15.  
  16.   iVar9 = 0x10;
  17.   iVar7 = *(int *)(iParm1 + 0x2c);
  18.   puVar8 = *(undefined4 **)(*(int *)(iVar7 + 0x10c) + 0x48);
  19.   *(byte *)(iVar7 + 0x2224) = *(byte *)(iVar7 + 0x2224) & 0xfe | 1;
  20.   iVar6 = *(int *)(iVar7 + 0x2d8);
  21.   puVar1 = (undefined4 *)(*(int *)(*(int *)(iVar7 + 0x10c) + 4) + -8);
  22.   puVar2 = (undefined4 *)(iVar6 + -8);
  23.   do {
  24.     puVar5 = puVar2;
  25.     puVar4 = puVar1;
  26.     uVar3 = puVar4[3];
  27.     puVar5[2] = puVar4[2];
  28.     puVar5[3] = uVar3;
  29.     iVar9 = iVar9 + -1;
  30.     puVar1 = puVar4 + 2;
  31.     puVar2 = puVar5 + 2;
  32.   } while (iVar9 != 0);
  33.   puVar5[4] = puVar4[4];
  34.   *(int *)(iVar7 + 0x2d4) = iVar6;
  35.   iVar6 = *(int *)(iVar7 + 0x2d4);
  36.   Items_StorePointerToItemTable(*puVar8,0x30);
  37.   Items_StorePointerToItemTable(puVar8[2],*(undefined4 *)(iVar6 + 0x14));
  38.   return;
  39. }
  40.  
  41. // MINE---------------------------------------------------
  42. void onload_Mario(int *iParm1)
  43.  
  44. {
  45.   undefined4 *puVar1;
  46.   undefined4 *puVar2;
  47.   undefined4 uVar3;
  48.   undefined4 *puVar4;
  49.   undefined4 *puVar5;
  50.   int iVar6;
  51.   int *iVar7;
  52.   undefined4 *puVar8;
  53.   int iVar9;
  54.  
  55.   iVar9 = 0x10;
  56.   iVar7 = *(int *)(iParm1 + 0x2c);
  57.   puVar8 = *(undefined4 **)(*(int *)(iVar7 + 0x10c) + 0x48);
  58.   *(iVar7 + 0x2224) = *(iVar7 + 0x2224) & 0xfe | 1;
  59.   iVar6 = *(int *)(iVar7 + 0x2d8);
  60.   puVar1 = (undefined4 *)(*(int *)(*(int *)(iVar7 + 0x10c) + 4) + -8);
  61.   puVar2 = (undefined4 *)(iVar6 + -8);
  62.   do {
  63.     puVar5 = puVar2;
  64.     puVar4 = puVar1;
  65.     uVar3 = puVar4[3];
  66.     puVar5[2] = puVar4[2];
  67.     puVar5[3] = uVar3;
  68.     iVar9 = iVar9 + -1;
  69.     puVar1 = puVar4 + 2;
  70.     puVar2 = puVar5 + 2;
  71.   } while (iVar9 != 0);
  72.   puVar5[4] = puVar4[4];
  73.   *(int *)(iVar7 + 0x2d4) = iVar6;
  74.   iVar6 = *(int *)(iVar7 + 0x2d4);
  75.   //Items_StorePointerToItemTable(*puVar8,0x30);
  76.   //Items_StorePointerToItemTable(puVar8[2],*(undefined4 *)(iVar6 + 0x14));
  77.   return;
  78. }
  79.  
  80. // MINE GHIDRA---------------------------------------------------
  81. void onload_Mario(int *iParm1)
  82.  
  83. {
  84.   undefined4 *puVar1;
  85.   int iVar2;
  86.   int iVar3;
  87.   int iVar4;
  88.   undefined4 uVar5;
  89.   undefined4 *puVar6;
  90.   int iVar7;
  91.   int iVar8;
  92.  
  93.   iVar3 = iParm1[0x2c];
  94.   iVar8 = 0x10;
  95.   *(uint *)(iVar3 + 0x8890) = (uint)*(byte *)(iVar3 + 0x8893) | 1;
  96.   iVar4 = *(int *)(*(int *)(iVar3 + 0x430) + 4);
  97.   iVar2 = *(int *)(iVar3 + 0xb60);
  98.   puVar6 = (undefined4 *)(iVar4 + -8);
  99.   do {
  100.     iVar7 = (int)puVar6 + (iVar2 - iVar4);
  101.     puVar1 = puVar6 + 3;
  102.     puVar6 = puVar6 + 2;
  103.     uVar5 = *puVar6;
  104.     *(undefined4 *)(iVar7 + 0xc) = *puVar1;
  105.     *(undefined4 *)(iVar7 + 8) = uVar5;
  106.     iVar8 = iVar8 + -1;
  107.   } while (iVar8 != 0);
  108.   *(undefined4 *)(iVar2 + 0x80) = *(undefined4 *)(iVar4 + 0x80);
  109.   *(int *)(iVar3 + 0xb50) = iVar2;
  110.   return;
  111. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top