// // GameStatsManager::createSecretChestItems from 0x100327644 to 0x100327764 (288 bytes) // // 1 xrefs: // > GameStatsManager::init @ 0x100325698 // // 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 GameStatsManager::createSecretChestItems(GameStatsManager *a1) { cocos2d::CCDictionary *v2; // x0 cocos2d::CCDictionary *v3; // x0 cocos2d::CCDictionary *m_allTreasureRoomChests; // x8 cocos2d::CCDictElement *m_pElements; // x24 cocos2d::CCObject *m_pObject; // x25 __int64 v7; // x21 unsigned int v8; // w22 _DWORD *v9; // x0 cocos2d::CCDictionary *m_allTreasureRoomChestItems; // x23 cocos2d::CCObject *v11; // x0 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v13; // [xsp+1Fh] [xbp-41h] if ( !a1->m_allTreasureRoomChestItems ) { v2 = cocos2d::CCDictionary::create(); a1->m_allTreasureRoomChestItems = v2; cocos2d::CCObject::retain(v2); v3 = cocos2d::CCDictionary::create(); a1->m_allTreasureRoomChests = v3; cocos2d::CCObject::retain(v3); GameStatsManager::createSecretChestRewards(a1); m_allTreasureRoomChests = a1->m_allTreasureRoomChests; if ( m_allTreasureRoomChests ) { m_pElements = m_allTreasureRoomChests->m_pElements; while ( m_pElements ) { m_pObject = m_pElements->m_pObject; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( m_pObject ) { v7 = *(_QWORD *)&m_pObject[1].m_nTag; if ( v7 ) { if ( (unsigned int)sub_10024A36C(*(_QWORD *)&m_pObject[1].m_nTag) ) { v8 = 0; do { v9 = (_DWORD *)sub_10024A388(v7, v8); if ( v9[14] == 9 ) { GameStatsManager::getItemKey(__p, v9, (unsigned int)v9[16], (unsigned int)v9[15]); cocos2d::CCDictionary::objectForKey_1(a1->m_allTreasureRoomChestItems, __p); m_allTreasureRoomChestItems = a1->m_allTreasureRoomChestItems; v11 = sub_100268F4C("%i", LODWORD(m_pObject[1].__vftable)); cocos2d::CCDictionary::setObject_1(m_allTreasureRoomChestItems, v11, __p); if ( v13 < 0 ) operator delete(__p[0]); } ++v8; } while ( v8 < (unsigned int)sub_10024A36C(v7) ); } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source