// // GameStatsManager::getNextVideoAdReward from 0x518568 to 0x518822 (698 bytes) // // 5 xrefs: // > GameManager::canShowRewardedVideo @ 0x415148 // > GameManager::rewardedVideoHidden @ 0x415758 // > GJGarageLayer::onRewardedVideo @ 0x50c048 // > RetryLevelLayer::onRewardedVideo @ 0x547398 // > FollowRewardPage::onRewardedVideo @ 0x630084 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:51:44 +0000 // GameStatsManager *__fastcall GameStatsManager::getNextVideoAdReward(GameStatsManager *this, int a2, int a3, int a4) { int isSpecialChestUnlocked; // r8 int *v7; // r0 const char *v8; // r1 int v9; // r8 int v10; // r8 int v11; // r8 int v12; // r8 int v13; // r8 int v14; // r8 int v15; // r8 int v16; // r8 int v17; // r6 size_t v18; // r2 int v20; // [sp+0h] [bp-10h] BYREF int v21; // [sp+4h] [bp-Ch] int v22; // [sp+8h] [bp-8h] int v23; // [sp+Ch] [bp-4h] v23 = a4; v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0012", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( isSpecialChestUnlocked ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0013", 4u); v9 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v9 ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0014", 4u); v10 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v10 ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0015", 4u); v11 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v11 ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0016", 4u); v12 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v12 ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0017", 4u); v13 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v13 ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0018", 4u); v14 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v14 ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0019", 4u); v15 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v15 ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0020", 4u); v16 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v16 ) { v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "0021", 4u); v17 = GameStatsManager::isSpecialChestUnlocked(a2, (int)&v20); std::string::~string((int)&v20); if ( v17 ) { v7 = (int *)this; v18 = 0; *(_DWORD *)this = 0; v8 = (const char *)&unk_B6B226; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; goto LABEL_23; } v7 = (int *)this; *(_DWORD *)this = 0; v8 = "0021"; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0020"; *((_DWORD *)this + 2) = 0; } } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0019"; *((_DWORD *)this + 2) = 0; } } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0018"; *((_DWORD *)this + 2) = 0; } } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0017"; *((_DWORD *)this + 2) = 0; } } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0016"; *((_DWORD *)this + 2) = 0; } } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0015"; *((_DWORD *)this + 2) = 0; } } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0014"; *((_DWORD *)this + 2) = 0; } } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0013"; *((_DWORD *)this + 2) = 0; } } else { v7 = (int *)this; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v8 = "0012"; *((_DWORD *)this + 2) = 0; } v18 = 4; LABEL_23: std::string::__init(v7, v8, v18); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source