// // AchievementManager::storeAchievementUnlocks from 0x1000e7e74 to 0x1000e8010 (412 bytes) // // 1 xrefs: // > AchievementManager::init @ 0x1000b6e38 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall AchievementManager::storeAchievementUnlocks(AchievementManager *a1) { cocos2d::CCDictionary *v2; // x0 cocos2d::CCArray *v3; // x20 unsigned int i; // w21 cocos2d::CCString *v5; // x0 char *CString; // x23 cocos2d::CCDictionary *m_platformAchievements; // x24 __int64 v8; // x24 __int64 v9; // x0 cocos2d::CCString *v10; // x24 char *v11; // x0 unsigned __int64 v12; // x9 unsigned __int8 v13; // w8 cocos2d::CCDictionary *m_achievementUnlocks; // x25 __int64 v15; // x23 char *v16; // x0 void *v17[2]; // [xsp+8h] [xbp-88h] BYREF char v18; // [xsp+1Fh] [xbp-71h] void *v19[2]; // [xsp+20h] [xbp-70h] BYREF char v20; // [xsp+37h] [xbp-59h] void *__p[2]; // [xsp+38h] [xbp-58h] BYREF unsigned __int8 v22; // [xsp+4Fh] [xbp-41h] if ( !a1->m_achievementUnlocks ) { v2 = cocos2d::CCDictionary::create(); a1->m_achievementUnlocks = v2; cocos2d::CCObject::retain(v2); v3 = cocos2d::CCDictionary::allKeys(a1->m_platformAchievements); if ( (unsigned int)sub_10024A36C(v3) ) { for ( i = 0; i < (unsigned int)sub_10024A36C(v3); ++i ) { v5 = cocos2d::CCArray::stringAtIndex(v3, i); CString = (char *)cocos2d::CCString::getCString(v5); m_platformAchievements = a1->m_platformAchievements; sub_100009900(__p, CString); v8 = cocos2d::CCDictionary::objectForKey_1(m_platformAchievements, __p); if ( (char)v22 < 0 ) operator delete(__p[0]); sub_100009900(__p, "icon"); v9 = cocos2d::CCDictionary::objectForKey_1(v8, __p); v10 = (cocos2d::CCString *)v9; if ( (char)v22 < 0 ) { operator delete(__p[0]); if ( v10 ) { LABEL_10: v11 = (char *)cocos2d::CCString::getCString(v10); sub_100009900(__p, v11); v12 = v22; v13 = v22; if ( (v22 & 0x80u) != 0 ) v12 = (unsigned __int64)__p[1]; if ( v12 ) { m_achievementUnlocks = a1->m_achievementUnlocks; sub_100009900(v19, CString); v15 = sub_100268E48(v19); v16 = (char *)cocos2d::CCString::getCString(v10); sub_100009900(v17, v16); cocos2d::CCDictionary::setObject_1(m_achievementUnlocks, v15, v17); if ( v18 < 0 ) operator delete(v17[0]); if ( v20 < 0 ) operator delete(v19[0]); v13 = v22; } if ( (v13 & 0x80) != 0 ) operator delete(__p[0]); } } else if ( v9 ) { goto LABEL_10; } } } } }