I've spent about a week with IDA pro, and... YES, i've finally discovered the possible uncompression function used in "my" game.
Pseudocode by hexrays ( )
Code: Select all
void __cdecl unCompress_function(int a1)
{
int *v1; // esi@1
char v2; // al@2
v1 = (int *)a1;
if ( *(_BYTE *)a1 )
{
do
{
*(_BYTE *)v1 = tolower(*(_BYTE *)v1);
v2 = *((_BYTE *)v1 + 1);
v1 = (int *)((char *)v1 + 1);
}
while ( v2 );
}
}
I've heard there is a way to use program functions by adding your own and modifying the exe.. Ida can modify the file but i've no idea what to do actually...
More clear way is to understand the algorithm, but i'm tired, in panic and already hate all search engines...
In short: help!
Or at least kick in right direction...
Thanks.