Advertisement
AdamAK

DON'T COPY THAT FLOPPY

Apr 30th, 2015 (edited)
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     int BufferInt = 0;
  2.     int* Buffer = &BufferInt;
  3.     int** Buffer2 = &Buffer;
  4.     int*** Buffer3 = &Buffer2;
  5.     int**** Buffer4 = &Buffer3;
  6.     int***** Buffer5 = &Buffer4;
  7.     int****** Buffer6 = &Buffer5;
  8.  
  9.     SIZE_T AmountRecieved = 999;
  10.     SIZE_T* PAR = &AmountRecieved;
  11.     BOOL ReadSuccess = 0;
  12.  
  13.     float* Base = (float*)((int)processEnum[0] + 0x00799D5C);
  14.  
  15.         ReadSuccess = ReadProcessMemory(
  16.             GameProcess,
  17.             Base,
  18.             Buffer,
  19.             4,
  20.             PAR
  21.             );
  22.  
  23.         int FloppyCopy = *Buffer;
  24.         FloppyCopy += 268;
  25.  
  26.         int* SecondAddress = (int*)FloppyCopy;
  27.  
  28.         ReadSuccess = ReadProcessMemory(
  29.             GameProcess,
  30.             SecondAddress,
  31.             Buffer2,
  32.             sizeof(float),
  33.             PAR
  34.             );
  35.  
  36.         int FloppyCopy2 = (int)(*Buffer2);
  37.         FloppyCopy2 += 140;
  38.  
  39.         int** ThirdAddress = (int**)FloppyCopy2;
  40.  
  41.         ReadSuccess = ReadProcessMemory(
  42.             GameProcess,
  43.             ThirdAddress,
  44.             Buffer3,
  45.             sizeof(float),
  46.             PAR
  47.             );
  48.  
  49.         int FloppyCopy3 = (int)(*Buffer3);
  50.         FloppyCopy3 += 112;
  51.  
  52.         int*** FourthAddress = (int***)FloppyCopy3;
  53.  
  54.         ReadSuccess = ReadProcessMemory(
  55.             GameProcess,
  56.             FourthAddress,
  57.             Buffer4,
  58.             sizeof(float),
  59.             PAR
  60.             );
  61.  
  62.         int FloppyCopy4 = (int)(*Buffer4);
  63.         FloppyCopy4 += 4;
  64.  
  65.         int**** FifthAddress = (int****)FloppyCopy4;
  66.  
  67.         ReadSuccess = ReadProcessMemory(
  68.             GameProcess,
  69.             FifthAddress,
  70.             Buffer5,
  71.             sizeof(float),
  72.             PAR
  73.             );
  74.  
  75.  
  76.         int FloppyCopy5 = (int)(*Buffer5);
  77.         FloppyCopy5 += 16;
  78.  
  79.         float**** SixthAddress = (float****)FloppyCopy5;
  80.  
  81.         ReadSuccess = ReadProcessMemory(
  82.             GameProcess,
  83.             SixthAddress,
  84.             Buffer6,
  85.             sizeof(float),
  86.             PAR
  87.             );
  88.  
  89.         int FloppyCopy6 = (int)(*Buffer6);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement