Guest User

Untitled

a guest
Apr 26th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.04 KB | None | 0 0
  1. DWORD WINAPI HSDisabler(LPVOID)
  2. {
  3.  if(dwHookD3DApis() == D3D_OK)
  4.  {
  5.   while(true)
  6.   {
  7.  
  8.    *(BYTE*)dwAhnHS_MemoryCRCScan = 0xC3;
  9.  
  10.    *(DWORD*)dwHSDevicePointer + 0x82 * 4 = (DWORD) myDrawIndexedPrimitive; //modified
  11.    *(DWORD*)dwHSDevicePointer + 0x82 = (DWORD) pDrawIndexedPrimitive; //original
  12.    *(DWORD*)dwHSDevicePointer + 0x42 * 4 = (DWORD) myEndScene; //modified
  13.    *(DWORD*)dwHSDevicePointer + 0x42 = (DWORD) pEndScene; //original
  14.  
  15.    *(int*)dwVMTScan = 50;
  16.    *(DWORD*)dwVMTResult = 0x101;
  17.    *(int*)dwMemoryScanAccess = 0x2;
  18.    if(*(DWORD*)dwMemoryScanAccess_ITSelf == 0x101)
  19.     *(int*)dwMemoyScanAccess_ITSelf_ = 0x1;
  20.    else if *(DWORD*)dwMemoryScanAccess_ITSelf == 0x0)
  21.     *(int*)dwMemoryScanAccess_ITSelf_ = 0x0;
  22.  
  23.    if(*(DWORD*)dwMemoryScanAccess_Engine == 0x460000)
  24.     *(int*)dwMemoryScanAccess_Engine_ = 0x1;
  25.    else if(*(DWORD*)dwMemoryScanAccess_Engine == 0x0)
  26.     *(int*)dwMemoryScanAccess_Engine_ = 0x0;
  27.  
  28.    *(int*)dwModuleScan_ModuleDetection_ = 0x29; //not found
  29.  
  30.    Sleep(1000);
  31.   }
  32.  }
  33. return 0;
  34. }
Add Comment
Please, Sign In to add comment