// Convery
#include <Windows.h>
// Change the window name and the address to freeze.
#define WINDOWNAME "FIFA Ultimate Team"
#define ADDRESS 0xfffff
HWND hwnd;
HANDLE Process;
DWORD ProcessID;
DWORD Value;
int main(int argc, char *argv[])
{
while(!(hwnd = FindWindow(NULL, WINDOWNAME)))
Sleep(10);
while(!(GetWindowThreadProcessId(hwnd,&ProcessID)))
Sleep(10);
while(!(Process = OpenProcess(PROCESS_ALL_ACCESS,false,ProcessID)))
Sleep(10);
SetForegroundWindow(hwnd);
ReadProcessMemory(Process, (void *) ADDRESS, &Value, 4, NULL);
while(true)
{
WriteProcessMemory(Process, (void *) ADDRESS, &Value, 4, NULL);
Sleep(100);
}
return 1;
}

Private gc_modify_contracts1 As IntPtr // = Cardz.dll + offset
Private gc_modify_contract1_offset = &H87BDB
If MemMgr.IsAttachedToProcess Then
Dim _nopBytes() As Byte = New Byte() {&H90, &H90, &H90} '' 3 nop bytes
gc_modify_contracts1_orig_code = MemMgr.ReadBytes(gc_modify_contracts1, 3) '' backup orig. data for later (to un-patch)
''Patch first addr
If MemMgr.WriteBytes(gc_modify_contracts1, _nopBytes) Then '
'success patch 1
DoOutput("Patch 1: APPLIED SUCCESS")
Else
'fail patch 1
DoOutput("Patch 1: FAIL. Unknown Error.")
End If
Else
MessageBox.Show(dohMsg, "u no?")
End If
If MemMgr.IsAttachedToProcess Then
MemMgr.WriteBytes(gc_modify_contracts1, gc_modify_contracts1_orig_code)
DoOutput("Un-Patched OK")
Else
DoOutput("Not attached to game: Unable to 'un-patch' at this time.")
End If