From my previous question, I asked how to change the nation code to what I needed it to be. I explored in the disassembly more and I found out exactly where I needed this change to be. In other files, the code seems to be:
mov ds:dword_73A9C8, 1
Where the file I'm trying to edit has it like
mov ds:dword_73A9C8, eax
I've tried to edit the file in IDA by hex to match it to the first line of code, however, the function, even after extending its length, seems to break each time I edit it.
The question I have is how can I change it from having eax being moved to having 1 being moved without breaking the function
You could replace the 4 byte instruction
mov eax, [esp + 4]with the sequencexor eax, eaxinc eaxnopthat also has 4 bytes.If 1 is what you want, then the return value in
EAXshould probably also be 1.