// // GameLevelManager::markLevelAsRatedStars from 0x802398 to 0x802508 (368 bytes) // // 2 xrefs: // > GameLevelManager::rateStars @ 0x820798 // > @ 0xaa980 // // 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 12:54:44 +0000 // __int64 __fastcall GameLevelManager::markLevelAsRatedStars(cocos2d::CCDictionary **this, unsigned int a2) { __int64 v4; // x24 cocos2d::CCObject *v5; // x23 const char *RateStarsKey; // x0 const char *v7; // x25 size_t v8; // x0 size_t v9; // x19 unsigned __int64 v10; // x0 __int64 v11; // x22 char *v12; // x0 char *v13; // x3 __int64 v15; // [xsp+50h] [xbp+50h] BYREF size_t v16; // [xsp+58h] [xbp+58h] void *v17; // [xsp+60h] [xbp+60h] if ( (unsigned int)cocos2d::CCDictionary::count(*(this + 101)) > 0x3E7 ) { cocos2d::CCDictionary::getFirstKey(&v15, *(this + 101)); cocos2d::CCDictionary::removeObjectForKey(*(this + 101), &v15); if ( (v15 & 1) != 0 ) operator delete(v17); } v4 = (__int64)*(this + 101); v5 = *(this + 189); RateStarsKey = (const char *)GameLevelManager::getRateStarsKey((GameLevelManager *)this, (const char *)a2); v15 = 0; v7 = RateStarsKey; v16 = 0; v17 = nullptr; v8 = strlen(RateStarsKey); v9 = v8; if ( v8 > 0xFFFFFFFFFFFFFFEFLL ) sub_62C79C(); if ( v8 > 0x16 ) { v10 = (v8 + 16) & 0xFFFFFFFFFFFFFFF0LL; v11 = v10 | 1; v12 = (char *)operator new(v10); v15 = v11; v13 = v12; v17 = v12; v16 = v9; LABEL_7: v13 = (char *)memcpy(v13, v7, v9); goto LABEL_8; } LOBYTE(v15) = 2 * v8; v13 = (char *)&v15 + 1; if ( v8 ) goto LABEL_7; LABEL_8: v13[v9] = 0; cocos2d::CCDictionary::setObject(v4, v5); if ( (v15 & 1) != 0 ) operator delete(v17); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source