// // GameStatsManager::registerRewardsFromItem from 0x1000726e0 to 0x1000727a0 (192 bytes) // // 5 xrefs: // > GameStatsManager::collectReward @ 0x100072673 // > GameStatsManager::completedDailyLevel @ 0x1000743a0 // > GameStatsManager::unlockSpecialChest @ 0x100078586 // > GameStatsManager::unlockSecretChest @ 0x10008c1ba // > GameStatsManager::unlockGoldChest @ 0x10008c346 // // 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 __fastcall GameStatsManager::registerRewardsFromItem(GameStatsManager *a1, GJRewardItem *a2) { cocos2d::CCArray *m_rewardObjects; // r14 unsigned int v3; // r15d int v4; // r12d __int64 v5; // rax unsigned int v6; // ecx const char *v7; // r12 __int64 v8; // r13 GameStatsManager *v9; // rax const char *v10; // rsi bool m_skipIncrementChallenge; // [rsp+17h] [rbp-29h] m_skipIncrementChallenge = a1->m_skipIncrementChallenge; a1->m_skipIncrementChallenge = 1; m_rewardObjects = a2->m_rewardObjects; if ( m_rewardObjects && (unsigned int)sub_100720070(a2->m_rewardObjects) ) { v3 = 0; v4 = 32511; do { v5 = sub_1007200C0(m_rewardObjects, v3); v6 = *(_DWORD *)(v5 + 56) - 1; if ( v6 <= 0xE && _bittest(&v4, v6) ) { v7 = (char *)dword_100815960 + dword_100815960[v6]; v8 = v5; v9 = GameStatsManager::sharedState(); v10 = v7; v4 = 32511; GameStatsManager::incrementStat(v9, v10, *(_DWORD *)(v8 + 68)); } ++v3; } while ( v3 < (unsigned int)sub_100720070(m_rewardObjects) ); } a1->m_skipIncrementChallenge = m_skipIncrementChallenge; }
GD Web Decomp Icon

GD Web Decomp

Raw Source