// // GameStatsManager::linkSpecialChestUnlocks from 0x8e2b80 to 0x8e2cd0 (336 bytes) // // 4 xrefs: // > GameStatsManager::createSpecialChestItems @ 0x8e65e8 // > GameStatsManager::processOnlineChests @ 0x8e77b0 // > GameStatsManager::unlockOnlineChest @ 0x8eb1ac // > @ 0x7f648 // // 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:50 +0000 // __int64 __fastcall GameStatsManager::linkSpecialChestUnlocks(__int64 a1, __int64 a2, __int64 *a3) { cocos2d::CCArray *v5; // x20 unsigned int v6; // w19 _DWORD *v7; // x2 __int64 v9; // x26 cocos2d::CCObject *v10; // x0 __int64 *v11; // x0 const void *v12; // x1 size_t v13; // x2 unsigned __int64 v14[3]; // [xsp+50h] [xbp+50h] BYREF if ( a2 ) { v5 = *(cocos2d::CCArray **)(a2 + 72); v6 = 0; if ( v5 ) { if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a2 + 72)) ) { do { v7 = (_DWORD *)cocos2d::CCArray::objectAtIndex(v5, v6); if ( v7[14] != 9 ) goto LABEL_5; GameStatsManager::getItemKey(v7[16], v7[15], v14); v9 = *(_QWORD *)(a1 + 368); v10 = (cocos2d::CCObject *)cocos2d::CCString::create(a3); cocos2d::CCDictionary::setObject(v9, v10); v11 = std::unordered_map::operator[](a1 + 416, v14); if ( a3 != v11 ) { if ( (*(_BYTE *)a3 & 1) != 0 ) { v12 = (const void *)a3[2]; v13 = a3[1]; } else { v12 = (char *)a3 + 1; v13 = *(_BYTE *)a3 >> 1; } std::string::assign(v11, v12, v13); } if ( (v14[0] & 1) != 0 ) { ++v6; operator delete((void *)v14[2]); } else { LABEL_5: ++v6; } } while ( v6 < (unsigned int)cocos2d::CCArray::count(v5) ); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source