// // GameStatsManager::createSecretChestItems from 0x528f2c to 0x52901e (242 bytes) // // 1 xrefs: // > GameStatsManager::init @ 0x52b99e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:51:57 +0000 // cocos2d::CCDictionary *__fastcall GameStatsManager::createSecretChestItems(cocos2d::CCDictionary *this) { int v1; // r4 cocos2d::CCObject *v2; // r0 cocos2d::CCDictionary *v3; // r0 cocos2d::CCObject *v4; // r0 int v5; // r3 int v6; // r3 int v7; // r5 int v8; // r9 int v9; // r2 cocos2d::CCArray *v10; // r8 unsigned int i; // r7 _DWORD *v12; // r3 cocos2d::CCObject *v13; // r0 int v14; // [sp+4h] [bp-18h] _BYTE v15[12]; // [sp+8h] [bp-14h] BYREF v1 = (int)this; if ( !*((_DWORD *)this + 70) ) { v2 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(this); *(_DWORD *)(v1 + 280) = v2; v3 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v2); v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v3); *(_DWORD *)(v1 + 276) = v4; cocos2d::CCObject::retain(v4); this = (cocos2d::CCDictionary *)GameStatsManager::createSecretChestRewards((cocos2d::CCDictionary **)v1); v5 = *(_DWORD *)(v1 + 276); if ( v5 ) { v6 = *(_DWORD *)(v5 + 52); if ( v6 ) v7 = *(_DWORD *)(v6 + 272); else v7 = 0; while ( v6 ) { v8 = *(_DWORD *)(v6 + 260); if ( v8 ) { v10 = *(cocos2d::CCArray **)(v8 + 64); if ( v10 ) { for ( i = 0; ; ++i ) { this = (cocos2d::CCDictionary *)cocos2d::CCArray::count(v10); if ( i >= (unsigned int)this ) break; v12 = (_DWORD *)cocos2d::CCArray::objectAtIndex(v10, i); if ( v12[13] == 9 ) { GameStatsManager::getItemKey((GameStatsManager *)v15, v1, v12[15], v12[14]); cocos2d::CCDictionary::objectForKey(*(_DWORD *)(v1 + 280), v15); v14 = *(_DWORD *)(v1 + 280); v13 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", *(const char **)(v8 + 52)); cocos2d::CCDictionary::setObject(v14, v13); std::string::~string((int)v15); } } } } if ( v7 ) v9 = *(_DWORD *)(v7 + 272); else v9 = 0; v6 = v7; v7 = v9; } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source