// // GameStatsManager::getSpecialChestKeyForItem from 0x7b972c to 0x7b9820 (244 bytes) // // 4 xrefs: // > GameStatsManager::isItemUnlocked @ 0x7b9bc8 // > GameStatsManager::getItemUnlockStateLite @ 0x7bc6b4 // > GameStatsManager::generateItemUnlockableData @ 0x7bc9f8 // > @ 0x7ed20 // // 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 // cocos2d::CCString *GameStatsManager::getSpecialChestKeyForItem(GameStatsManager *a1, int a2, UnlockType a3) { cocos2d::CCDictionary *m_allSpecialChestItems; // x21 cocos2d::CCString *v4; // x20 char *v5; // x0 unsigned int *v7; // x2 int v8; // w1 std::string v9; // [xsp+40h] [xbp+40h] BYREF m_allSpecialChestItems = a1->m_allSpecialChestItems; GameStatsManager::getItemKey(a1, a2, a3, (__int64)&v9); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(m_allSpecialChestItems, &v9); v5 = (char *)v9.m_data.m_data - 24; if ( (__int64 *)v9.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)((char *)v9.m_data.m_data - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *((_DWORD *)v9.m_data.m_data - 2); *((_DWORD *)v9.m_data.m_data - 2) = v8 - 1; } if ( v8 <= 0 ) operator delete(v5); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source