// // GameStatsManager::createSecretChestItems from 0x8e7e3c to 0x8e7fc0 (388 bytes) // // 2 xrefs: // > GameStatsManager::init @ 0x8ec92c // > @ 0x518c8 // // 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:56:53 +0000 // __int64 __fastcall GameStatsManager::createSecretChestItems(GameStatsManager *this) { cocos2d::CCObject *v3; // x0 cocos2d::CCDictionary *v4; // x0 cocos2d::CCObject *v5; // x0 __int64 v6; // x0 __int64 v7; // x0 __int64 i; // x25 __int64 v9; // x23 cocos2d::CCArray *v10; // x20 unsigned int v11; // w19 _DWORD *v12; // x2 __int64 v13; // x27 cocos2d::CCObject *v14; // x0 unsigned __int64 v15[3]; // [xsp+60h] [xbp+60h] BYREF if ( !*((_QWORD *)this + 44) ) { v3 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(nullptr); *((_QWORD *)this + 44) = v3; v4 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v3); v5 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v4); *((_QWORD *)this + 43) = v5; cocos2d::CCObject::retain(v5); GameStatsManager::createSecretChestRewards((cocos2d::CCDictionary **)this); v6 = *((_QWORD *)this + 43); if ( v6 ) { v7 = *(_QWORD *)(v6 + 56); if ( v7 ) { for ( i = *(_QWORD *)(v7 + 288); ; i = *(_QWORD *)(i + 288) ) { v9 = *(_QWORD *)(v7 + 264); if ( v9 ) { v10 = *(cocos2d::CCArray **)(v9 + 72); v11 = 0; if ( v10 ) { if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v9 + 72)) ) { do { v12 = (_DWORD *)cocos2d::CCArray::objectAtIndex(v10, v11); if ( v12[14] == 9 && (GameStatsManager::getItemKey(v12[16], v12[15], v15), cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 44), v15), v13 = *((_QWORD *)this + 44), v14 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(v9 + 56)), cocos2d::CCDictionary::setObject(v13, v14), (v15[0] & 1) != 0) ) { ++v11; operator delete((void *)v15[2]); } else { ++v11; } } while ( v11 < (unsigned int)cocos2d::CCArray::count(v10) ); } } } if ( !i ) break; v7 = i; } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source