Hello GuBehT
The changes are in CASOpenFile. This function has the following signature:
bool CASOpenFile(const char* codeFile, unsigned int line, const char* fileName, CASFILE* outFile, int flags)
And you can find this part:
Code:
if ( a5 & 1 )
{
v8 = sub_411196(a3, v5, v6, &v13, 260);
....
Which essential points here:
Code:
.text:00412ACD test byte ptr [ebp+arg_10], 1
.text:00412AD1 mov [ebp+var_8], eax
.text:00412AD4 mov [ebp+var_4], edx
.text:00412AD7 mov dword ptr [esi+4], 2
.text:00412AE1 jz short loc_412B61
You change the first instruction to:
test byte ptr [ebp+arg_10], 0
and the last to:
jnz short loc_412B61
Greetings
Cromon