// // GameStatsManager::preSaveGameStats from 0x1003dd810 to 0x1003dd910 (256 bytes) // // 2 xrefs: // > GameStatsManager::encodeDataTo @ 0x1003dd57c // > GJAccountManager::onSyncAccountCompleted @ 0x100445e50 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:04:20 +0000 // __int64 __fastcall GameStatsManager::preSaveGameStats(__int64 a1) { char v2; // w23 int v3; // w24 void *v4; // x0 char *CString; // x0 __int64 v6; // x21 char *v7; // x1 int Stat; // w0 void *v9; // x22 char *v10; // x1 __int64 result; // x0 void *__p[2]; // [xsp+10h] [xbp-70h] BYREF char v13; // [xsp+27h] [xbp-59h] void *v14[2]; // [xsp+28h] [xbp-58h] BYREF char v15; // [xsp+3Fh] [xbp-41h] v2 = *(_BYTE *)(AchievementManager::sharedState() + 360); v3 = 1; *(_BYTE *)(AchievementManager::sharedState() + 360) = 1; do { v4 = sub_1003065B0("%i", v3); CString = (char *)cocos2d::CCString::getCString((__int64)v4); sub_100009900(v14, CString); v6 = *(_QWORD *)(a1 + 520); if ( v15 >= 0 ) v7 = (char *)v14; else v7 = (char *)v14[0]; Stat = GameStatsManager::getStat(a1, v7); v9 = sub_1003065B0("%i", Stat); if ( v15 >= 0 ) v10 = (char *)v14; else v10 = (char *)v14[0]; sub_100009900(__p, v10); cocos2d::CCDictionary::setObject(v6, v9, __p); if ( v13 < 0 ) operator delete(__p[0]); if ( v15 < 0 ) operator delete(v14[0]); ++v3; } while ( v3 != 45 ); result = AchievementManager::sharedState(); *(_BYTE *)(result + 360) = v2; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source