Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Sorunome on November 27, 2012, 07:53:54 pm

Title: Decompile .exe
Post by: Sorunome on November 27, 2012, 07:53:54 pm
First, i hope this is the right section to post :P
Ok, so, I want to decompile a exe patch for a game, or look into all the files stored in it or something like that.
The game is trackmania :P
And i wanne do that because i wanne patch it in a very similar way that existing patch already does.
The exe talked about can be downloaded here (to big to attach): http://www.focus-files.com/patchs/tmuf/TmUnitedForever_StarEdition_Update.exe
Can somebody please help me?
Title: Re: Decompile .exe
Post by: tr1p1ea on November 27, 2012, 09:59:18 pm
Its not really possible in most cases (do you know what it was written in?). What you could do is compare the original file with the patched file to see what bytes the patch changes?
Title: Re: Decompile .exe
Post by: Sorunome on November 27, 2012, 10:10:12 pm
it is a hole game, so it is a hole folder, and i am not able to get to a unpatched version of the game
and i think it is written in c++
Title: Re: Decompile .exe
Post by: aeTIos on November 28, 2012, 08:46:37 am
You cannot decompile to source code afaik. Only to ASM.
Title: Re: Decompile .exe
Post by: ben_g on November 28, 2012, 03:18:58 pm
You can sometimes decompile exe's, but only if you know what it's written in. Also, keep in mind that some exe's also contain data, which can make the output of the decompiler incorrect.
Title: Re: Decompile .exe
Post by: TIfanx1999 on November 28, 2012, 04:23:43 pm
What exactly do you want to do, do you want to see how the patch was done? Is this an official game or a homebrew/fan made game?
Title: Re: Decompile .exe
Post by: Sorunome on November 28, 2012, 06:57:46 pm
it is a official game (http://www.trackmaniaforever.com) and the patch is also official, and what i wanne do, i wanne patch the game in a similar way the patch already does, adding another camaign to it.
Title: Re: Decompile .exe
Post by: Adriweb on November 28, 2012, 07:43:22 pm
Adding other tracks/themes can be done without hacking, if that's what you want.
Hacking is necessary to create blockmixing (maps with hexedited blocks properties - I'm proud of a program I made (http://forum.trackmaniaforever.com/topic/14549-tutorial-gbx-master/) back in the days, that does that :P)
Title: Re: Decompile .exe
Post by: Sorunome on November 28, 2012, 07:59:16 pm
and i mean a real campaign, in-game with unlocking maps etc.
and your gbx master, what kind of gbx's can it read?
Title: Re: Decompile .exe
Post by: TIfanx1999 on November 28, 2012, 08:04:50 pm
You might want to check and see if there is a community dedicated to hacking it. It'd probably be a lot easier than trying to disassemble a patch and see what is what. It sounds like more of an add-on than a patch to me anyways.
Title: Re: Decompile .exe
Post by: Sorunome on November 28, 2012, 08:06:00 pm
They published it as a patch :P
Title: Re: Decompile .exe
Post by: DJ Omnimaga on March 09, 2013, 10:52:34 pm
I'm a bit late, but can't you just rename an .exe to .zip then open it to view its content? I know the source won't be there, but I wonder if this can help?
Title: Re: Decompile .exe
Post by: AngelFish on March 10, 2013, 12:26:55 am
I'm a bit late, but can't you just rename an .exe to .zip then open it to view its content? I know the source won't be there, but I wonder if this can help?

No, ZIPs have a special file format not present in PE binaries. You're thinking of Java .jar files, which are functionally renamed .zip files with some metadata thrown in there.
Title: Re: Decompile .exe
Post by: Sorunome on March 10, 2013, 12:49:05 am
I'm a bit late, but can't you just rename an .exe to .zip then open it to view its content? I know the source won't be there, but I wonder if this can help?
To bad that it won't work, but it is never to late ;)
Would it be somehow possible then under windows to monitor every changes in a certain folder and all its sub-folders during a period of time?
That way I could also get to know what files are in the .exe
Title: Re: Decompile .exe
Post by: ruler501 on March 10, 2013, 01:20:06 am
I'm sure there are directory compare tools. If not you could easily write one.