// // GameStatsManager::getNextVideoAdReward from 0x8cec10 to 0x8cf0e8 (1240 bytes) // // 6 xrefs: // > GameManager::canShowRewardedVideo @ 0x715cd4 // > GameManager::rewardedVideoHidden @ 0x718ae4 // > GJGarageLayer::onRewardedVideo @ 0x8bb420 // > RetryLevelLayer::onRewardedVideo @ 0x918c0c // > FollowRewardPage::onRewardedVideo @ 0xaaa99c // > @ 0x4fd80 // // 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:38 +0000 // __int64 *__usercall GameStatsManager::getNextVideoAdReward@( __int64 *__return_ptr a1@, GameStatsManager *this@) { _BOOL4 isSpecialChestUnlocked; // w24 _BOOL4 v5; // w24 _BOOL4 v6; // w24 _BOOL4 v7; // w24 _BOOL4 v8; // w24 _BOOL4 v9; // w24 _BOOL4 v10; // w24 _BOOL4 v11; // w24 _BOOL4 v12; // w24 _BOOL4 v13; // w19 __int64 v15; // [xsp+40h] [xbp+40h] BYREF __int64 v16; // [xsp+48h] [xbp+48h] void *v17; // [xsp+50h] [xbp+50h] v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0012", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) == 0 ) { if ( isSpecialChestUnlocked ) goto LABEL_3; LABEL_28: *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0012", 4u); return a1; } operator delete(v17); if ( !isSpecialChestUnlocked ) goto LABEL_28; LABEL_3: v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0013", 4u); v5 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) == 0 ) { if ( v5 ) goto LABEL_5; LABEL_29: *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0013", 4u); return a1; } operator delete(v17); if ( !v5 ) goto LABEL_29; LABEL_5: v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0014", 4u); v6 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) == 0 ) { if ( v6 ) goto LABEL_7; LABEL_34: *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0014", 4u); return a1; } operator delete(v17); if ( !v6 ) goto LABEL_34; LABEL_7: v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0015", 4u); v7 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) == 0 ) { if ( v7 ) goto LABEL_9; LABEL_35: *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0015", 4u); return a1; } operator delete(v17); if ( !v7 ) goto LABEL_35; LABEL_9: v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0016", 4u); v8 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); if ( !v8 ) { *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0016", 4u); return a1; } v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0017", 4u); v9 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); if ( !v9 ) { *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0017", 4u); return a1; } v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0018", 4u); v10 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) != 0 ) { operator delete(v17); if ( v10 ) goto LABEL_17; LABEL_39: *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0018", 4u); return a1; } if ( !v10 ) goto LABEL_39; LABEL_17: v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0019", 4u); v11 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); if ( v11 ) { v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0020", 4u); v12 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); if ( v12 ) { v15 = 0; v16 = 0; v17 = nullptr; std::string::__init(&v15, "0021", 4u); v13 = GameStatsManager::isSpecialChestUnlocked((__int64)this, (char *)&v15); if ( (v15 & 1) != 0 ) operator delete(v17); *a1 = 0; a1[1] = 0; a1[2] = 0; if ( v13 ) std::string::__init(a1, &byte_11B8890, 0); else std::string::__init(a1, "0021", 4u); } else { *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0020", 4u); } } else { *a1 = 0; a1[1] = 0; a1[2] = 0; std::string::__init(a1, "0019", 4u); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source