Thx to: King-OrgY
Copy from old post.
Code:
void CG_Guid( char* guid )
{
char oldGuid[33];
sprintf( oldGuid, "your original guid" );
for( int oi = 0; oi < 33; oi++ )
guid[oi] = oldGuid[oi];
///do call orig
//apply your new guid
char newGuid[33];
sprintf( newGuid, "PB.STAFF" );
for( int i = 0; i < 33; i++ )
guid[i] = newGuid[i];
}
now you can play anonymity
no need a pb hook
Code:
int __cdecl sub_4699A0(char *a1)
{
unsigned int v1; // edx@1
int v2; // esi@1
signed int i; // ecx@3
char v4; // al@4
int v6; // esi@12
int v7; // [sp+8h] [bp-A8h]@12
int v8; // [sp+Ch] [bp-A4h]@12
int v9; // [sp+10h] [bp-A0h]@12
int v10; // [sp+14h] [bp-9Ch]@12
int v11; // [sp+18h] [bp-98h]@12
int v12; // [sp+1Ch] [bp-94h]@12
unsigned __int8 v13; // [sp+60h] [bp-50h]@12
unsigned __int8 v14; // [sp+61h] [bp-4Fh]@12
unsigned __int8 v15; // [sp+62h] [bp-4Eh]@12
unsigned __int8 v16; // [sp+63h] [bp-4Dh]@12
unsigned __int8 v17; // [sp+64h] [bp-4Ch]@12
unsigned __int8 v18; // [sp+65h] [bp-4Bh]@12
unsigned __int8 v19; // [sp+66h] [bp-4Ah]@12
unsigned __int8 v20; // [sp+67h] [bp-49h]@12
unsigned __int8 v21; // [sp+68h] [bp-48h]@12
unsigned __int8 v22; // [sp+69h] [bp-47h]@12
unsigned __int8 v23; // [sp+6Ah] [bp-46h]@12
unsigned __int8 v24; // [sp+6Bh] [bp-45h]@12
unsigned __int8 v25; // [sp+6Ch] [bp-44h]@12
unsigned __int8 v26; // [sp+6Dh] [bp-43h]@12
unsigned __int8 v27; // [sp+6Eh] [bp-42h]@12
unsigned __int8 v28; // [sp+6Fh] [bp-41h]@12
char v29[64]; // [sp+70h] [bp-40h]@1
memset(v29, 0, 0x40u);
v2 = 0;
v1 = strlen(" ");
if ( (signed int)v1 > 32 )
v1 = 32;
for ( i = 0; i < (signed int)v1; ++i )
{
v4 = cl_cdkey[i];
if ( v4 >= 48 && v4 <= 57 || v4 >= 97 && v4 <= 122 || v4 >= 65 && v4 <= 90 )
v29[v2++] = v4;
}
v29[v2] = 0;
v6 = sub_469950((int)v29);
_strlwr((char *)v6);
v8 = 0;
v7 = 0;
v9 = 1864160770;
v10 = 577533118;
v11 = -1290008435;
v12 = 1432000057;
sub_5C0BE0(strlen((const char *)v6), (int)&v7, v6);
sub_5C0CE0((int)&v7);
return sprintf(
a1,
"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
v13,
v14,
v15,
v16,
v17,
v18,
v19,
v20,
v21,
v22,
v23,
v24,
v25,
v26,
v27,
v28);
}
Code:
char *cl_cdkey = (char *) 0x724B84;//16
char *cl_cdkey_lastchars = (char *) 0x724BA8;//4
could be useful e.g change your cdkey without losing your stats/rank
Code:
char newcdKey[16];
sprintf( newcdKey, "UMJJ84LMMS2SYY22" );
for( int i = 0; i < 16; i++ )
cl_cdkey[i] = newcdKey[i];
char lastKey[4];
sprintf( lastKey, "854F" );
for( int i2 = 0; i2 < 4; i2++ )
cl_cdkey_lastchars[i2] = lastKey[i2];
horrible coding i know
how to get your original guid
Code:
char getGuid[64];
o_CG_Guid(getGuid);
g_pUtils.DebugLog( "myGUID.txt", "%s", getGuid );