// // GameStatsManager::firstSetup from 0x413770 to 0x413b72 (1026 bytes) // // 1 xrefs: // > GameManager::firstLoad @ 0x324348 // // 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 GameStatsManager::firstSetup(GameStatsManager *a1) { cocos2d::CCDictionary *v2; // r0 cocos2d::CCDictionary *v3; // r5 cocos2d::CCDictionary *m_playerStats; // r0 cocos2d::CCDictionary *v5; // r0 cocos2d::CCDictionary *v6; // r5 cocos2d::CCDictionary *m_completedLevels; // r0 cocos2d::CCDictionary *v8; // r0 cocos2d::CCDictionary *v9; // r5 cocos2d::CCDictionary *m_verifiedUserCoins; // r0 cocos2d::CCDictionary *v11; // r0 cocos2d::CCDictionary *v12; // r5 cocos2d::CCDictionary *m_pendingUserCoins; // r0 cocos2d::CCDictionary *v14; // r0 cocos2d::CCDictionary *v15; // r5 cocos2d::CCDictionary *m_completedMappacks; // r0 cocos2d::CCDictionary *v17; // r0 cocos2d::CCDictionary *v18; // r5 cocos2d::CCDictionary *m_purchasedItems; // r0 cocos2d::CCDictionary *v20; // r0 cocos2d::CCDictionary *v21; // r5 cocos2d::CCDictionary *m_onlineCurrencyScores; // r0 cocos2d::CCDictionary *v23; // r0 cocos2d::CCDictionary *v24; // r5 cocos2d::CCDictionary *m_gauntletCurrencyScores; // r0 cocos2d::CCDictionary *v26; // r0 cocos2d::CCDictionary *v27; // r5 cocos2d::CCDictionary *m_unusedCurrencyAwardDict; // r0 cocos2d::CCDictionary *v29; // r0 cocos2d::CCDictionary *v30; // r5 cocos2d::CCDictionary *m_onlineStars; // r0 cocos2d::CCDictionary *v32; // r0 cocos2d::CCDictionary *v33; // r5 cocos2d::CCDictionary *m_mainCurrencyScores; // r0 cocos2d::CCDictionary *v35; // r0 cocos2d::CCDictionary *v36; // r5 cocos2d::CCDictionary *m_timelyCurrencyScores; // r0 cocos2d::CCDictionary *v38; // r0 cocos2d::CCDictionary *v39; // r5 cocos2d::CCDictionary *m_timelyStars; // r0 cocos2d::CCDictionary *v41; // r0 cocos2d::CCDictionary *v42; // r5 cocos2d::CCDictionary *m_gauntletDiamondScores; // r0 cocos2d::CCDictionary *v44; // r0 cocos2d::CCDictionary *v45; // r5 cocos2d::CCDictionary *m_timelyDiamondScores; // r0 cocos2d::CCDictionary *v47; // r0 cocos2d::CCDictionary *v48; // r5 cocos2d::CCDictionary *m_dailyChests; // r0 cocos2d::CCDictionary *v50; // r0 cocos2d::CCDictionary *v51; // r5 cocos2d::CCDictionary *m_rewardItems; // r0 cocos2d::CCDictionary *v53; // r0 cocos2d::CCDictionary *v54; // r5 cocos2d::CCDictionary *m_worldAdvertChests; // r0 cocos2d::CCDictionary *v56; // r0 cocos2d::CCDictionary *v57; // r5 cocos2d::CCDictionary *m_activeChallenges; // r0 cocos2d::CCDictionary *v59; // r0 cocos2d::CCDictionary *v60; // r5 cocos2d::CCDictionary *m_upcomingChallenges; // r0 cocos2d::CCDictionary *v62; // r0 cocos2d::CCDictionary *v63; // r5 cocos2d::CCDictionary *m_challengeDiamonds; // r0 cocos2d::CCDictionary *v65; // r0 cocos2d::CCDictionary *v66; // r5 cocos2d::CCDictionary *m_completedLists; // r0 cocos2d::CCDictionary *v68; // r0 cocos2d::CCDictionary *v69; // r5 cocos2d::CCDictionary *m_treasureRoomChests; // r0 cocos2d::CCDictionary *v71; // r0 cocos2d::CCDictionary *v72; // r5 cocos2d::CCDictionary *m_miscChests; // r0 cocos2d::CCDictionary *v74; // r0 cocos2d::CCDictionary *v75; // r5 cocos2d::CCDictionary *m_enabledItems; // r0 cocos2d::CCDictionary *v77; // r0 cocos2d::CCDictionary *v78; // r5 cocos2d::CCDictionary *m_wraithChests; // r0 cocos2d::CCDictionary *v80; // r0 cocos2d::CCDictionary *v81; // r5 cocos2d::CCDictionary *m_weeklyChest; // r0 cocos2d::CCDictionary *v83; // r0 cocos2d::CCDictionary *v84; // r5 cocos2d::CCDictionary *m_eventChest; // r0 cocos2d::CCDictionary *v86; // r0 cocos2d::CCDictionary *v87; // r5 cocos2d::CCDictionary *m_unlockedGauntlets; // r0 v2 = cocos2d::CCDictionary::create(); v3 = v2; if ( a1->m_playerStats != v2 ) { if ( v2 ) cocos2d::CCObject::retain(v2); m_playerStats = a1->m_playerStats; if ( m_playerStats ) cocos2d::CCObject::release(m_playerStats); a1->m_playerStats = v3; } v5 = cocos2d::CCDictionary::create(); v6 = v5; if ( a1->m_completedLevels != v5 ) { if ( v5 ) cocos2d::CCObject::retain(v5); m_completedLevels = a1->m_completedLevels; if ( m_completedLevels ) cocos2d::CCObject::release(m_completedLevels); a1->m_completedLevels = v6; } v8 = cocos2d::CCDictionary::create(); v9 = v8; if ( a1->m_verifiedUserCoins != v8 ) { if ( v8 ) cocos2d::CCObject::retain(v8); m_verifiedUserCoins = a1->m_verifiedUserCoins; if ( m_verifiedUserCoins ) cocos2d::CCObject::release(m_verifiedUserCoins); a1->m_verifiedUserCoins = v9; } v11 = cocos2d::CCDictionary::create(); v12 = v11; if ( a1->m_pendingUserCoins != v11 ) { if ( v11 ) cocos2d::CCObject::retain(v11); m_pendingUserCoins = a1->m_pendingUserCoins; if ( m_pendingUserCoins ) cocos2d::CCObject::release(m_pendingUserCoins); a1->m_pendingUserCoins = v12; } v14 = cocos2d::CCDictionary::create(); v15 = v14; if ( a1->m_completedMappacks != v14 ) { if ( v14 ) cocos2d::CCObject::retain(v14); m_completedMappacks = a1->m_completedMappacks; if ( m_completedMappacks ) cocos2d::CCObject::release(m_completedMappacks); a1->m_completedMappacks = v15; } v17 = cocos2d::CCDictionary::create(); v18 = v17; if ( a1->m_purchasedItems != v17 ) { if ( v17 ) cocos2d::CCObject::retain(v17); m_purchasedItems = a1->m_purchasedItems; if ( m_purchasedItems ) cocos2d::CCObject::release(m_purchasedItems); a1->m_purchasedItems = v18; } v20 = cocos2d::CCDictionary::create(); v21 = v20; if ( a1->m_onlineCurrencyScores != v20 ) { if ( v20 ) cocos2d::CCObject::retain(v20); m_onlineCurrencyScores = a1->m_onlineCurrencyScores; if ( m_onlineCurrencyScores ) cocos2d::CCObject::release(m_onlineCurrencyScores); a1->m_onlineCurrencyScores = v21; } v23 = cocos2d::CCDictionary::create(); v24 = v23; if ( a1->m_gauntletCurrencyScores != v23 ) { if ( v23 ) cocos2d::CCObject::retain(v23); m_gauntletCurrencyScores = a1->m_gauntletCurrencyScores; if ( m_gauntletCurrencyScores ) cocos2d::CCObject::release(m_gauntletCurrencyScores); a1->m_gauntletCurrencyScores = v24; } v26 = cocos2d::CCDictionary::create(); v27 = v26; if ( a1->m_unusedCurrencyAwardDict != v26 ) { if ( v26 ) cocos2d::CCObject::retain(v26); m_unusedCurrencyAwardDict = a1->m_unusedCurrencyAwardDict; if ( m_unusedCurrencyAwardDict ) cocos2d::CCObject::release(m_unusedCurrencyAwardDict); a1->m_unusedCurrencyAwardDict = v27; } v29 = cocos2d::CCDictionary::create(); v30 = v29; if ( a1->m_onlineStars != v29 ) { if ( v29 ) cocos2d::CCObject::retain(v29); m_onlineStars = a1->m_onlineStars; if ( m_onlineStars ) cocos2d::CCObject::release(m_onlineStars); a1->m_onlineStars = v30; } v32 = cocos2d::CCDictionary::create(); v33 = v32; if ( a1->m_mainCurrencyScores != v32 ) { if ( v32 ) cocos2d::CCObject::retain(v32); m_mainCurrencyScores = a1->m_mainCurrencyScores; if ( m_mainCurrencyScores ) cocos2d::CCObject::release(m_mainCurrencyScores); a1->m_mainCurrencyScores = v33; } v35 = cocos2d::CCDictionary::create(); v36 = v35; if ( a1->m_timelyCurrencyScores != v35 ) { if ( v35 ) cocos2d::CCObject::retain(v35); m_timelyCurrencyScores = a1->m_timelyCurrencyScores; if ( m_timelyCurrencyScores ) cocos2d::CCObject::release(m_timelyCurrencyScores); a1->m_timelyCurrencyScores = v36; } v38 = cocos2d::CCDictionary::create(); v39 = v38; if ( a1->m_timelyStars != v38 ) { if ( v38 ) cocos2d::CCObject::retain(v38); m_timelyStars = a1->m_timelyStars; if ( m_timelyStars ) cocos2d::CCObject::release(m_timelyStars); a1->m_timelyStars = v39; } v41 = cocos2d::CCDictionary::create(); v42 = v41; if ( a1->m_gauntletDiamondScores != v41 ) { if ( v41 ) cocos2d::CCObject::retain(v41); m_gauntletDiamondScores = a1->m_gauntletDiamondScores; if ( m_gauntletDiamondScores ) cocos2d::CCObject::release(m_gauntletDiamondScores); a1->m_gauntletDiamondScores = v42; } v44 = cocos2d::CCDictionary::create(); v45 = v44; if ( a1->m_timelyDiamondScores != v44 ) { if ( v44 ) cocos2d::CCObject::retain(v44); m_timelyDiamondScores = a1->m_timelyDiamondScores; if ( m_timelyDiamondScores ) cocos2d::CCObject::release(m_timelyDiamondScores); a1->m_timelyDiamondScores = v45; } v47 = cocos2d::CCDictionary::create(); v48 = v47; if ( a1->m_dailyChests != v47 ) { if ( v47 ) cocos2d::CCObject::retain(v47); m_dailyChests = a1->m_dailyChests; if ( m_dailyChests ) cocos2d::CCObject::release(m_dailyChests); a1->m_dailyChests = v48; } v50 = cocos2d::CCDictionary::create(); v51 = v50; if ( a1->m_rewardItems != v50 ) { if ( v50 ) cocos2d::CCObject::retain(v50); m_rewardItems = a1->m_rewardItems; if ( m_rewardItems ) cocos2d::CCObject::release(m_rewardItems); a1->m_rewardItems = v51; } v53 = cocos2d::CCDictionary::create(); v54 = v53; if ( a1->m_worldAdvertChests != v53 ) { if ( v53 ) cocos2d::CCObject::retain(v53); m_worldAdvertChests = a1->m_worldAdvertChests; if ( m_worldAdvertChests ) cocos2d::CCObject::release(m_worldAdvertChests); a1->m_worldAdvertChests = v54; } v56 = cocos2d::CCDictionary::create(); v57 = v56; if ( a1->m_activeChallenges != v56 ) { if ( v56 ) cocos2d::CCObject::retain(v56); m_activeChallenges = a1->m_activeChallenges; if ( m_activeChallenges ) cocos2d::CCObject::release(m_activeChallenges); a1->m_activeChallenges = v57; } v59 = cocos2d::CCDictionary::create(); v60 = v59; if ( a1->m_upcomingChallenges != v59 ) { if ( v59 ) cocos2d::CCObject::retain(v59); m_upcomingChallenges = a1->m_upcomingChallenges; if ( m_upcomingChallenges ) cocos2d::CCObject::release(m_upcomingChallenges); a1->m_upcomingChallenges = v60; } v62 = cocos2d::CCDictionary::create(); v63 = v62; if ( a1->m_challengeDiamonds != v62 ) { if ( v62 ) cocos2d::CCObject::retain(v62); m_challengeDiamonds = a1->m_challengeDiamonds; if ( m_challengeDiamonds ) cocos2d::CCObject::release(m_challengeDiamonds); a1->m_challengeDiamonds = v63; } v65 = cocos2d::CCDictionary::create(); v66 = v65; if ( a1->m_completedLists != v65 ) { if ( v65 ) cocos2d::CCObject::retain(v65); m_completedLists = a1->m_completedLists; if ( m_completedLists ) cocos2d::CCObject::release(m_completedLists); a1->m_completedLists = v66; } v68 = cocos2d::CCDictionary::create(); v69 = v68; if ( a1->m_treasureRoomChests != v68 ) { if ( v68 ) cocos2d::CCObject::retain(v68); m_treasureRoomChests = a1->m_treasureRoomChests; if ( m_treasureRoomChests ) cocos2d::CCObject::release(m_treasureRoomChests); a1->m_treasureRoomChests = v69; } v71 = cocos2d::CCDictionary::create(); v72 = v71; if ( a1->m_miscChests != v71 ) { if ( v71 ) cocos2d::CCObject::retain(v71); m_miscChests = a1->m_miscChests; if ( m_miscChests ) cocos2d::CCObject::release(m_miscChests); a1->m_miscChests = v72; } v74 = cocos2d::CCDictionary::create(); v75 = v74; if ( a1->m_enabledItems != v74 ) { if ( v74 ) cocos2d::CCObject::retain(v74); m_enabledItems = a1->m_enabledItems; if ( m_enabledItems ) cocos2d::CCObject::release(m_enabledItems); a1->m_enabledItems = v75; } v77 = cocos2d::CCDictionary::create(); v78 = v77; if ( a1->m_wraithChests != v77 ) { if ( v77 ) cocos2d::CCObject::retain(v77); m_wraithChests = a1->m_wraithChests; if ( m_wraithChests ) cocos2d::CCObject::release(m_wraithChests); a1->m_wraithChests = v78; } v80 = cocos2d::CCDictionary::create(); v81 = v80; if ( a1->m_weeklyChest != v80 ) { if ( v80 ) cocos2d::CCObject::retain(v80); m_weeklyChest = a1->m_weeklyChest; if ( m_weeklyChest ) cocos2d::CCObject::release(m_weeklyChest); a1->m_weeklyChest = v81; } v83 = cocos2d::CCDictionary::create(); v84 = v83; if ( a1->m_eventChest != v83 ) { if ( v83 ) cocos2d::CCObject::retain(v83); m_eventChest = a1->m_eventChest; if ( m_eventChest ) cocos2d::CCObject::release(m_eventChest); a1->m_eventChest = v84; } v86 = cocos2d::CCDictionary::create(); v87 = v86; if ( a1->m_unlockedGauntlets != v86 ) { if ( v86 ) cocos2d::CCObject::retain(v86); m_unlockedGauntlets = a1->m_unlockedGauntlets; if ( m_unlockedGauntlets ) cocos2d::CCObject::release(m_unlockedGauntlets); a1->m_unlockedGauntlets = v87; } GameStatsManager::setAwardedBonusKeys(a1, 0); std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::clear((int)&a1->m_playerStatsRandMap); std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::clear((int)&a1->m_playerStatsSeedMap); a1->m_pathBugFixed = 0; a1->m_activePath = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source