Advertisement
Tornamic

Untitled

Oct 6th, 2024
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. int sub_10001020()
  2. {
  3. DWORD flOldProtect;
  4. DWORD v8;
  5. CHAR Text[1024];
  6.  
  7. if (MemoryHelper::GetChar(0x53F417) == -24)
  8. {
  9. MemoryHelper::RedirectCall(0x53F418, (void*)sub_10001510);
  10. }
  11. else
  12. {
  13. sprintf_s(
  14. Text,
  15. sizeof(Text),
  16. "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
  17. 5501975,
  18. "GetMouseState"
  19. );
  20. if (MessageBoxA(0, Text, "Mouse Fix", MB_ICONQUESTION | MB_YESNO) == IDNO)
  21. ExitProcess(0);
  22. }
  23.  
  24. if (MemoryHelper::GetChar(0x57C59B) == -1)
  25. {
  26. MemoryHelper::SetChar(0x57C59B, -24);
  27. MemoryHelper::RedirectCall(0x57C59C, (void*)sub_100015B0);
  28. MemoryHelper::SetChar(0x57C5A0, -112);
  29. }
  30. else
  31. {
  32. sprintf_s(
  33. Text,
  34. sizeof(Text),
  35. "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
  36. 5752219,
  37. "SetCursorPos"
  38. );
  39. if (MessageBoxA(0, Text, "Mouse Fix", MB_ICONQUESTION | MB_YESNO) == IDNO)
  40. ExitProcess(0);
  41. }
  42.  
  43. if (MemoryHelper::GetChar(0x748A7C) == -1)
  44. {
  45. MemoryHelper::SetChar(0x748A7C, -24);
  46. MemoryHelper::RedirectCall(0x748A7D, (void*)sub_100015D0);
  47. MemoryHelper::SetChar(0x748A81, -112);
  48. }
  49. else if (MemoryHelper::GetChar(0x748ACC) == -1)
  50. {
  51. MemoryHelper::SetChar(0x748ACC, -24);
  52. MemoryHelper::RedirectCall(0x748ACD, (void*)sub_100015D0);
  53. MemoryHelper::SetChar(0x748AD1, -112);
  54. }
  55. else
  56. {
  57. sprintf_s(
  58. Text,
  59. sizeof(Text),
  60. "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
  61. 7637708,
  62. "DispatchMessage"
  63. );
  64. if (MessageBoxA(0, Text, "Mouse Fix", MB_ICONQUESTION | MB_YESNO) == IDNO)
  65. ExitProcess(0);
  66. }
  67.  
  68. if (MemoryHelper::GetChar(0x746A08) == 28)
  69. {
  70. MemoryHelper::SetChar(0x746A08, 32);
  71. }
  72. else if (MemoryHelper::GetChar(0x746A58) == 28)
  73. {
  74. MemoryHelper::SetChar(0x746A58, 32);
  75. }
  76. else
  77. {
  78. sprintf_s(
  79. Text,
  80. sizeof(Text),
  81. "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
  82. 7629400,
  83. "IDirectInput::Acquire"
  84. );
  85. if (MessageBoxA(0, Text, "Mouse Fix", MB_ICONQUESTION | MB_YESNO) == IDNO)
  86. ExitProcess(0);
  87. }
  88.  
  89. return 0;
  90. }
  91.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement