Advertisement
FIDANzza

Untitled

Jan 20th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. bool NamesStore::Initialize()
  2. {
  3.  
  4. const auto address = FindPattern(GetModuleHandleW(nullptr), reinterpret_cast<const unsigned char*>("\x48\x8B\x05\x00\x00\x00\x00\x48\x85\xC0\x75\x56"), "xxx????xxxxx");
  5. if (address == -1)
  6. {
  7. return false;
  8. }
  9.  
  10. const auto offset = *reinterpret_cast<uint32_t*>(address + 3);
  11. GlobalNames = reinterpret_cast<decltype(GlobalNames)>(*reinterpret_cast<uintptr_t*>(address + 7 + offset));
  12.  
  13. return true;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement