// // GameLevelManager::cleanupDailyLevels from 0x10009a168 to 0x10009a2d8 (368 bytes) // // 1 xrefs: // > GameLevelManager::encodeDataTo @ 0x10009ae34 // // 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 GameLevelManager::cleanupDailyLevels(GameLevelManager *a1) { cocos2d::CCArray *v2; // x20 int v3; // w23 int v4; // w25 unsigned int v5; // w24 int v6; // w26 int v7; // w27 int v8; // w0 cocos2d::CCString *v9; // x0 char *CString; // x21 cocos2d::CCDictionary *m_dailyLevels; // x22 __int64 v12; // x22 int v13; // w8 cocos2d::CCDictionary *v14; // x22 void *__p[2]; // [xsp+8h] [xbp-68h] BYREF char v16; // [xsp+1Fh] [xbp-51h] v2 = cocos2d::CCDictionary::allKeys(a1->m_dailyLevels); if ( (unsigned int)sub_10024A36C(v2) ) { v3 = 0; v4 = 0; v5 = 0; v6 = 0; v7 = -1; do { v8 = sub_10024A36C(v2); v9 = (cocos2d::CCString *)sub_10024A388(v2, (unsigned int)(v8 + v7)); CString = (char *)cocos2d::CCString::getCString(v9); m_dailyLevels = a1->m_dailyLevels; sub_100009900(__p, CString); v12 = cocos2d::CCDictionary::objectForKey_1(m_dailyLevels, __p); if ( v16 < 0 ) operator delete(__p[0]); v13 = *(_DWORD *)(v12 + 804) - *(_DWORD *)(v12 + 808); if ( v13 > 100000 ) { if ( (unsigned int)v13 > 0x30D40 ) { if ( v13 < v6 ) { LABEL_12: *(_WORD *)(v12 + 992) = 257; if ( *(_DWORD *)(v12 + 748) <= *(_DWORD *)(v12 + 752) ) { v14 = a1->m_dailyLevels; sub_100009900(__p, CString); cocos2d::CCDictionary::removeObjectForKey_1((int)v14, (char *)__p); if ( v16 < 0 ) operator delete(__p[0]); } goto LABEL_16; } v6 = *(_DWORD *)(v12 + 804) - *(_DWORD *)(v12 + 808); } else { if ( v13 < v4 ) goto LABEL_12; v4 = *(_DWORD *)(v12 + 804) - *(_DWORD *)(v12 + 808); } } else { if ( v13 < v3 ) goto LABEL_12; v3 = *(_DWORD *)(v12 + 804) - *(_DWORD *)(v12 + 808); } LABEL_16: ++v5; --v7; } while ( v5 < (unsigned int)sub_10024A36C(v2) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source