// // FollowRewardPage::onRewardedVideo from 0xaaa918 to 0xaaaca8 (912 bytes) // // 1 xrefs: // > @ 0x57940 // // 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 13:00:53 +0000 // __int64 __fastcall FollowRewardPage::onRewardedVideo(FollowRewardPage *this, cocos2d::CCObject *a2) { AdToolbox *v3; // x0 _BOOL8 hasCachedRewardedVideo; // x0 GameManager *v6; // x0 _BOOL8 canShowRewardedVideo; // x0 GameStatsManager *v8; // x0 cocos2d::CCArray *v9; // x0 AdToolbox *v10; // x0 cocos2d::CCArray *v11; // x21 cocos2d::CCObject *v12; // x0 cocos2d::CCObject *v13; // x0 cocos2d::CCObject *v14; // x0 DialogLayer *v15; // x21 __int64 v16; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCArray *v17; // [xsp+58h] [xbp+58h] void *v18; // [xsp+60h] [xbp+60h] __int64 v19[2]; // [xsp+68h] [xbp+68h] BYREF void *v20; // [xsp+78h] [xbp+78h] __int64 v21[2]; // [xsp+80h] [xbp+80h] BYREF void *v22; // [xsp+90h] [xbp+90h] __int64 v23[2]; // [xsp+98h] [xbp+98h] BYREF void *v24; // [xsp+A8h] [xbp+A8h] __int64 v25[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v26; // [xsp+C0h] [xbp+C0h] __int64 v27[2]; // [xsp+C8h] [xbp+C8h] BYREF void *v28; // [xsp+D8h] [xbp+D8h] __int64 v29[2]; // [xsp+E0h] [xbp+E0h] BYREF void *v30; // [xsp+F0h] [xbp+F0h] v3 = (AdToolbox *)*((unsigned __int8 *)this + 696); if ( !(_DWORD)v3 ) { hasCachedRewardedVideo = AdToolbox::hasCachedRewardedVideo(v3); if ( hasCachedRewardedVideo ) { v6 = (GameManager *)GameManager::sharedState((GameManager *)hasCachedRewardedVideo); canShowRewardedVideo = GameManager::canShowRewardedVideo(v6); if ( canShowRewardedVideo ) { *((_BYTE *)this + 696) = (unsigned __int8)&dword_0 + 1; v10 = (AdToolbox *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1)); *((_QWORD *)v10 + 162) = (char *)this + 680; AdToolbox::showRewardedVideo(v10); return _stack_chk_guard; } v8 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)canShowRewardedVideo); GameStatsManager::getNextVideoAdReward(&v16, v8); if ( (v16 & 1) != 0 ) { v9 = v17; if ( v17 ) { LABEL_7: operator delete(v18); return _stack_chk_guard; } } else { v9 = (cocos2d::CCArray *)((int)(unsigned __int8)v16 >> 1); if ( (_DWORD)v9 ) return _stack_chk_guard; } v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v9); v19[0] = 0; v19[1] = 0; v20 = nullptr; std::string::__init(v19, "Scratch", 7u); v21[0] = 0; v21[1] = 0; v22 = nullptr; std::string::__init(v21, "I don't have any chests left...", 0x39u); v12 = (cocos2d::CCObject *)DialogObject::create((char *)v19, (char *)v21, 12, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v11, v12); if ( (v21[0] & 1) != 0 ) operator delete(v22); if ( (v19[0] & 1) != 0 ) operator delete(v20); v23[0] = 0; v23[1] = 0; v24 = nullptr; std::string::__init(v23, "Scratch", 7u); v25[0] = 0; v25[1] = 0; v26 = nullptr; std::string::__init(v25, "You took EVERYTHING I had!", 0x22u); v13 = (cocos2d::CCObject *)DialogObject::create((char *)v23, (char *)v25, 14, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v11, v13); if ( (v25[0] & 1) != 0 ) operator delete(v26); if ( (v23[0] & 1) != 0 ) operator delete(v24); v27[0] = 0; v27[1] = 0; v28 = nullptr; std::string::__init(v27, "Scratch", 7u); v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, "I need to find new stuff...", 0x23u); v14 = (cocos2d::CCObject *)DialogObject::create((char *)v27, (char *)v29, 13, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v11, v14); if ( (v29[0] & 1) != 0 ) operator delete(v30); if ( (v27[0] & 1) != 0 ) operator delete(v28); v15 = (DialogLayer *)DialogLayer::createWithObjects(v11, (cocos2d::CCArray *)((char *)&dword_0 + 2)); (*(void (__fastcall **)(_QWORD, DialogLayer *, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v15, 100); DialogLayer::updateChatPlacement((__int64)v15, 0); DialogLayer::animateInRandomSide(v15); if ( (v16 & 1) != 0 ) goto LABEL_7; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source