Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int sub_10001020()
- {
- char v0; // bl
- char v1; // bl
- char v2; // bl
- char v3; // bl
- char v4; // bl
- int result; // eax
- char v6; // bl
- DWORD flOldProtect; // [esp+Ch] [ebp-40Ch] BYREF
- DWORD v8; // [esp+10h] [ebp-408h] BYREF
- CHAR Text[1024]; // [esp+14h] [ebp-404h] BYREF
- VirtualProtect((LPVOID)0x53F417, 1u, 0x20u, &flOldProtect);
- v0 = MEMORY[0x53F417];
- VirtualProtect((LPVOID)0x53F417, 1u, flOldProtect, &v8);
- if ( v0 == -24 )
- {
- VirtualProtect((LPVOID)0x53F418, 4u, 0x40u, &flOldProtect);
- MEMORY[0x53F418] = (char *)sub_10001510 - 5501980;
- VirtualProtect((LPVOID)0x53F418, 4u, flOldProtect, &v8);
- }
- else
- {
- sprintf_s(
- Text,
- 0x400u,
- "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
- 5501975,
- "GetMouseState");
- if ( MessageBoxA(0, Text, "Mouse Fix", 0x114u) == 7 )
- ExitProcess(0);
- }
- VirtualProtect((LPVOID)0x57C59B, 1u, 0x20u, &flOldProtect);
- v1 = MEMORY[0x57C59B];
- VirtualProtect((LPVOID)0x57C59B, 1u, flOldProtect, &v8);
- if ( v1 == -1 )
- {
- VirtualProtect((LPVOID)0x57C59B, 1u, 0x40u, &flOldProtect);
- MEMORY[0x57C59B] = -24;
- VirtualProtect((LPVOID)0x57C59B, 1u, flOldProtect, &v8);
- VirtualProtect((LPVOID)0x57C59C, 4u, 0x40u, &flOldProtect);
- MEMORY[0x57C59C] = (char *)sub_100015B0 - 5752224;
- VirtualProtect((LPVOID)0x57C59C, 4u, flOldProtect, &v8);
- VirtualProtect((LPVOID)0x57C5A0, 1u, 0x40u, &flOldProtect);
- MEMORY[0x57C5A0] = -112;
- VirtualProtect((LPVOID)0x57C5A0, 1u, flOldProtect, &v8);
- }
- else
- {
- sprintf_s(
- Text,
- 0x400u,
- "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
- 5752219,
- "SetCursorPos");
- if ( MessageBoxA(0, Text, "Mouse Fix", 0x114u) == 7 )
- ExitProcess(0);
- }
- VirtualProtect((LPVOID)0x748A7C, 1u, 0x20u, &flOldProtect);
- v2 = MEMORY[0x748A7C];
- VirtualProtect((LPVOID)0x748A7C, 1u, flOldProtect, &v8);
- if ( v2 == -1 )
- {
- VirtualProtect((LPVOID)0x748A7C, 1u, 0x40u, &flOldProtect);
- MEMORY[0x748A7C] = -24;
- VirtualProtect((LPVOID)0x748A7C, 1u, flOldProtect, &v8);
- VirtualProtect((LPVOID)0x748A7D, 4u, 0x40u, &flOldProtect);
- MEMORY[0x748A7D] = (char *)sub_100015D0 - 7637633;
- VirtualProtect((LPVOID)0x748A7D, 4u, flOldProtect, &v8);
- VirtualProtect((LPVOID)0x748A81, 1u, 0x40u, &flOldProtect);
- MEMORY[0x748A81] = -112;
- VirtualProtect((LPVOID)0x748A81, 1u, flOldProtect, &v8);
- }
- else
- {
- VirtualProtect((LPVOID)0x748ACC, 1u, 0x20u, &flOldProtect);
- v3 = MEMORY[0x748ACC];
- VirtualProtect((LPVOID)0x748ACC, 1u, flOldProtect, &v8);
- if ( v3 == -1 )
- {
- VirtualProtect((LPVOID)0x748ACC, 1u, 0x40u, &flOldProtect);
- MEMORY[0x748ACC] = -24;
- VirtualProtect((LPVOID)0x748ACC, 1u, flOldProtect, &v8);
- VirtualProtect((LPVOID)0x748ACD, 4u, 0x40u, &flOldProtect);
- MEMORY[0x748ACD] = (char *)sub_100015D0 - 7637713;
- VirtualProtect((LPVOID)0x748ACD, 4u, flOldProtect, &v8);
- VirtualProtect((LPVOID)0x748AD1, 1u, 0x40u, &flOldProtect);
- MEMORY[0x748AD1] = -112;
- VirtualProtect((LPVOID)0x748AD1, 1u, flOldProtect, &v8);
- }
- else
- {
- sprintf_s(
- Text,
- 0x400u,
- "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
- 7637708,
- "DispatchMessage");
- if ( MessageBoxA(0, Text, "Mouse Fix", 0x114u) == 7 )
- ExitProcess(0);
- }
- }
- VirtualProtect((LPVOID)0x746A08, 1u, 0x20u, &flOldProtect);
- v4 = MEMORY[0x746A08];
- VirtualProtect((LPVOID)0x746A08, 1u, flOldProtect, &v8);
- if ( v4 == 28 )
- {
- VirtualProtect((LPVOID)0x746A08, 1u, 0x40u, &flOldProtect);
- MEMORY[0x746A08] = 32;
- return VirtualProtect((LPVOID)0x746A08, 1u, flOldProtect, &v8);
- }
- else
- {
- VirtualProtect((LPVOID)0x746A58, 1u, 0x20u, &flOldProtect);
- v6 = MEMORY[0x746A58];
- VirtualProtect((LPVOID)0x746A58, 1u, flOldProtect, &v8);
- if ( v6 == 28 )
- {
- VirtualProtect((LPVOID)0x746A58, 1u, 0x40u, &flOldProtect);
- MEMORY[0x746A58] = 32;
- return VirtualProtect((LPVOID)0x746A58, 1u, flOldProtect, &v8);
- }
- else
- {
- sprintf_s(
- Text,
- 0x400u,
- "An unknown code found at 0x%08X (%s).\nDo you want to continue without this Function?",
- 7629400,
- "IDirectInput::Acquire");
- result = MessageBoxA(0, Text, "Mouse Fix", 0x114u);
- if ( result == 7 )
- ExitProcess(0);
- }
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement