// // GameStatsManager::collectVideoReward from 0x7bc328 to 0x7bc49c (372 bytes) // // 2 xrefs: // > GameManager::rewardedVideoHidden @ 0x5e857c // > @ 0x98988 // // 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 GameStatsManager::collectVideoReward(GameStatsManager *a1, int a2) { cocos2d::CCString *v4; // x0 char *CString; // x0 cocos2d::CCDictionary *m_worldAdvertChests; // x24 cocos2d::CCObject *v7; // x0 char *v8; // x0 unsigned int *v9; // x2 int v10; // w1 char *v11[2]; // [xsp+48h] [xbp+48h] BYREF clock_gettime(0, (struct timespec *)v11); v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%f", v11[0], (double)(__int64)v11[0] + (double)(__int64)v11[1] / 1000000000.0); CString = (char *)cocos2d::CCString::getCString(v4); sub_D153B8((int)v11, CString); m_worldAdvertChests = a1->m_worldAdvertChests; v7 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a2); cocos2d::CCDictionary::setObject((int)m_worldAdvertChests, v7); a1->m_skipIncrementChallenge = 1; GameStatsManager::incrementStat(a1, "14", a2); a1->m_skipIncrementChallenge = 0; v8 = v11[0] - 24; if ( (__int64 *)v11[0] - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v11[0] - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *((_DWORD *)v11[0] - 2); *((_DWORD *)v11[0] - 2) = v10 - 1; } if ( v10 <= 0 ) operator delete(v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source