// // FollowRewardPage::updateRate from 0x4ff56c to 0x4ff73e (466 bytes) // // 1 xrefs: // > `non-virtual thunk to'FollowRewardPage::updateRate @ 0x4ff77c // // 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 FollowRewardPage::updateRate(FollowRewardPage *a1) { unsigned int i; // r4 GameStatsManager *v3; // r5 stl::StringData::Internal *v4; // r2 stl::StringData::Internal *v5; // r3 int isSpecialChestUnlocked; // r5 GameManager *v7; // r0 const char *v8; // r1 GameStatsManager *v9; // r5 stl::StringData::Internal *v10; // r2 stl::StringData::Internal *v11; // r3 GameStatsManager *v12; // r5 stl::StringData::Internal *v13; // r2 stl::StringData::Internal *v14; // r3 GameStatsManager *v15; // r5 stl::StringData::Internal *v16; // r2 stl::StringData::Internal *v17; // r3 GameStatsManager *v18; // r5 stl::StringData::Internal *v19; // r2 stl::StringData::Internal *v20; // r3 GameStatsManager *v21; // r5 stl::StringData::Internal *v22; // r2 stl::StringData::Internal *v23; // r3 int *v24; // r0 int v25; // r3 int *v26; // r6 void (__fastcall *removeChildByTag)(cocos2d::CCNode *__hidden, int); // r5 int v28; // r0 cocos2d::CCLayer *m_mainLayer; // [sp+Ch] [bp-18h] char *v30; // [sp+18h] [bp-Ch] BYREF for ( i = 0; i < cocos2d::CCArray::count(a1->m_chests); ++i ) { if ( i ) { switch ( i ) { case 1u: v9 = GameStatsManager::sharedState(); sub_776584((int)&v30, "0008"); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((int)v9, &v30, v10, v11); sub_774008(&v30); v7 = GameManager::sharedState(); v8 = "24"; break; case 2u: v12 = GameStatsManager::sharedState(); sub_776584((int)&v30, "0009"); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((int)v12, &v30, v13, v14); sub_774008(&v30); v7 = GameManager::sharedState(); v8 = "23"; break; case 3u: v15 = GameStatsManager::sharedState(); sub_776584((int)&v30, "0010"); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((int)v15, &v30, v16, v17); sub_774008(&v30); v7 = GameManager::sharedState(); v8 = "26"; break; case 4u: v18 = GameStatsManager::sharedState(); sub_776584((int)&v30, "0011"); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((int)v18, &v30, v19, v20); sub_774008(&v30); v7 = GameManager::sharedState(); v8 = "27"; break; case 5u: v21 = GameStatsManager::sharedState(); sub_776584((int)&v30, "0024"); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((int)v21, &v30, v22, v23); sub_774008(&v30); v7 = GameManager::sharedState(); v8 = "32"; break; default: continue; } } else { v3 = GameStatsManager::sharedState(); sub_776584((int)&v30, "0007"); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((int)v3, &v30, v4, v5); sub_774008(&v30); v7 = GameManager::sharedState(); v8 = "22"; } if ( GameManager::getUGV(v7, v8) && !isSpecialChestUnlocked ) { v24 = (int *)cocos2d::CCArray::objectAtIndex(a1->m_chests, i); v25 = *v24; v26 = v24; *((_BYTE *)v24 + 516) = 0; (*(void (__fastcall **)(int *, __int16 *))(v25 + 472))(v24, &word_9ACCD8); m_mainLayer = a1->m_mainLayer; removeChildByTag = m_mainLayer->removeChildByTag; v28 = (*(int (__fastcall **)(int *))(*v26 + 32))(v26); removeChildByTag(m_mainLayer, v28 + 10); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source