// // GameManager::dataLoaded from 0x727288 to 0x728c70 (6632 bytes) // // 2 xrefs: // > @ 0xaae60 // > @ 0x1429600 // // 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:52:32 +0000 // __int64 __fastcall GameManager::dataLoaded(GameManager *this, DS_Dictionary *a2) { GJObjectDecoder *v4; // x21 __int64 v5; // x0 __int64 v6; // x0 __int64 v7; // x21 __int64 v8; // x0 cocos2d::CCObject *v9; // x21 __int64 v10; // x24 __int64 v11; // x24 __int64 v12; // x21 cocos2d::CCObject *v13; // x0 cocos2d::CCDictionary *v14; // x1 GameToolbox *v15; // x2 _QWORD *v16; // x25 __int64 v17; // x2 __int64 v18; // x3 int v19; // w22 __int64 v20; // x3 void *v21; // x0 int IntegerForKey; // w0 int v23; // w21 int v24; // w2 int v25; // w0 int v26; // w21 int v27; // w2 int v28; // w0 int v29; // w21 int v30; // w2 int v31; // w0 int v32; // w21 int v33; // w2 int v34; // w0 int v35; // w21 int v36; // w2 int v37; // w21 int v38; // w2 int v39; // w22 int v40; // w2 int v41; // w21 int v42; // w2 int v43; // w22 int v44; // w2 int v45; // w21 int v46; // w2 int v47; // w22 int v48; // w2 int v49; // w21 int v50; // w2 int v51; // w22 int v52; // w2 int v53; // w21 int v54; // w2 int v55; // w24 int v56; // w2 int v57; // w2 int v58; // w24 int v59; // w2 __int64 GameVariable; // x0 AchievementManager *v61; // x0 GameStatsManager *v62; // x0 GameStatsManager *v63; // x0 GameLevelManager *v64; // x0 GameLevelManager *v65; // x0 MusicDownloadManager *v66; // x0 MusicDownloadManager *v67; // x0 GJKeybindManager *v68; // x0 GJKeybindManager *v69; // x0 EditorSFXManager *v70; // x0 EditorSFXManager *v71; // x0 AchievementManager *v72; // x0 int v73; // w24 GameStatsManager *v74; // x0 GameStatsManager *v75; // x0 GameStatsManager *v76; // x0 __int64 v77; // x0 GJAccountManager *v78; // x0 __int64 v79; // x0 GameLevelManager *v80; // x0 GJAccountManager *v81; // x0 __int64 v82; // x0 __int64 v83; // x1 __int64 v84; // x1 int v85; // w0 int v86; // w21 int v87; // w2 GameLevelManager *v88; // x0 AchievementManager *v89; // x0 GameLevelManager *v91; // x0 GameStatsManager *MainLevel; // x21 GameStatsManager *v93; // x0 GameStatsManager *hasCompletedLevel; // x0 GameStatsManager *v95; // x0 GameStatsManager *v96; // x0 GameStatsManager *v97; // x0 GameStatsManager *v98; // x0 GameStatsManager *v99; // x0 GameStatsManager *v100; // x0 GameStatsManager *v101; // x0 GameStatsManager *v102; // x0 GameStatsManager *v103; // x0 GameStatsManager *v104; // x0 GameStatsManager *v105; // x0 GameStatsManager *v106; // x0 GameStatsManager *v107; // x0 GameStatsManager *v108; // x0 GameStatsManager *v109; // x0 GameStatsManager *v110; // x0 GameStatsManager *v111; // x0 GameStatsManager *v112; // x0 GameStatsManager *v113; // x0 GameStatsManager *v114; // x0 GameStatsManager *v115; // x0 GameStatsManager *v116; // x0 GameStatsManager *v117; // x0 GameStatsManager *v118; // x0 GameStatsManager *v119; // x0 GameStatsManager *v120; // x0 GameStatsManager *v121; // x0 unsigned __int8 BoolForKey; // w0 GameStatsManager *v123; // x0 GameLevelManager *v124; // x20 GameLevelManager *v125; // x0 GJGameLevel *v126; // x0 GameStatsManager *v127; // x0 GameLevelManager *v128; // x20 GameLevelManager *v129; // x0 GJGameLevel *v130; // x0 GameStatsManager *v131; // x0 GameLevelManager *v132; // x20 GameLevelManager *v133; // x0 GJGameLevel *v134; // x0 __int64 v135; // x0 cocos2d::CCObject *v136; // x21 cocos2d::CCObject *v137; // x0 cocos2d::CCObject *v138; // x0 cocos2d::CCObject *v139; // x1 GameStatsManager *v140; // x0 GameStatsManager *fixed; // x0 GameStatsManager *v142; // x0 int v143; // s0 int v144; // s0 int v145; // s0 float v146; // s0 _QWORD **v147; // x21 int v148; // w28 unsigned int v149; // w22 int v150; // w0 int v151; // s0 int v152; // s10 int v153; // s0 int v154; // s11 int v155; // s0 int v156; // s12 int v157; // s0 int v158; // s13 int v159; // s0 int v160; // s14 int v161; // s0 int v162; // s15 int v163; // w3 __int64 *v164; // x2 int v165; // w0 bool v166; // cc __int64 v167; // x0 int v168; // w0 __int64 *v169; // x1 __int64 v170; // x0 __int64 *v171; // x2 int v172; // w3 __int64 v173; // x0 __int64 *v174; // x1 __int64 v175; // x2 __int64 v176; // x3 __int64 v177; // x2 __int64 v178; // x3 __int64 v179; // x2 __int64 v180; // x3 __int64 v181; // x2 __int64 v182; // x3 __int64 v183; // x2 __int64 v184; // x3 __int64 v185; // x2 __int64 v186; // x3 __int64 v187; // x3 int v188; // s0 float v189; // s0 float v190; // s10 float v191; // s0 GJAccountManager *v192; // x0 GJAccountManager *v193; // x0 GJMultiplayerManager *v194; // x0 GJMultiplayerManager *v195; // x0 GameStatsManager *v196; // x0 GameStatsManager *v197; // x0 __int64 v198; // x24 cocos2d::CCObject *DictForKey; // x0 cocos2d::CCObject *v200; // x21 cocos2d::CCObject *v201; // x1 cocos2d::CCObject *v202; // x0 cocos2d::CCObject *v203; // x21 cocos2d::CCObject *v204; // x1 __int64 *v205; // [xsp+B0h] [xbp+B0h] int v206; // [xsp+B8h] [xbp+B8h] __int64 *v207; // [xsp+B8h] [xbp+B8h] __int64 **v208; // [xsp+C0h] [xbp+C0h] cocos2d::CCObject *v209; // [xsp+C8h] [xbp+C8h] int v210; // [xsp+C8h] [xbp+C8h] int v211; // [xsp+C8h] [xbp+C8h] __int64 *v212; // [xsp+D8h] [xbp+D8h] BYREF __int64 v213; // [xsp+E0h] [xbp+E0h] BYREF __int64 v214; // [xsp+E8h] [xbp+E8h] void *v215; // [xsp+F0h] [xbp+F0h] char s[32]; // [xsp+F8h] [xbp+F8h] BYREF v4 = (GJObjectDecoder *)ObjectDecoder::sharedDecoder(_stack_chk_guard); v5 = GJObjectDecoder::sharedDecoder(v4); if ( v5 ) v6 = v5 + 320; else v6 = 0; *((_QWORD *)v4 + 40) = v6; if ( !*((_QWORD *)this + 53) ) { DictForKey = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "valueKeeper", 0); v200 = DictForKey; v201 = *((cocos2d::CCObject **)this + 53); if ( DictForKey != v201 ) { if ( DictForKey ) { cocos2d::CCObject::retain(DictForKey); v201 = *((cocos2d::CCObject **)this + 53); } if ( v201 ) cocos2d::CCObject::release(v201); *((_QWORD *)this + 53) = v200; } } if ( *((_QWORD *)this + 54) ) { v7 = *((_QWORD *)this + 53); if ( v7 ) goto LABEL_7; LABEL_107: v13 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "unlockValueKeeper", 0); v14 = v13; v15 = *((GameToolbox **)this + 56); if ( v15 ) goto LABEL_15; goto LABEL_108; } v135 = DS_Dictionary::getDictForKey(a2, "localKeeper", 0); if ( !v135 ) { v136 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(nullptr); v137 = *((cocos2d::CCObject **)this + 54); if ( v137 == v136 ) goto LABEL_105; if ( !v136 ) { if ( !v137 ) goto LABEL_104; goto LABEL_103; } LABEL_102: cocos2d::CCObject::retain(v136); v137 = *((cocos2d::CCObject **)this + 54); if ( !v137 ) { LABEL_104: *((_QWORD *)this + 54) = v136; goto LABEL_105; } LABEL_103: cocos2d::CCObject::release(v137); goto LABEL_104; } v136 = (cocos2d::CCObject *)v135; if ( v135 != *((_QWORD *)this + 54) ) goto LABEL_102; LABEL_105: v7 = *((_QWORD *)this + 53); if ( !v7 || !*((_QWORD *)this + 54) ) goto LABEL_107; LABEL_7: v213 = 0; v214 = 0; v215 = nullptr; std::string::__init(&v213, "autoBackupDir", 0xDu); v8 = cocos2d::CCDictionary::objectForKey(v7, &v213); v9 = (cocos2d::CCObject *)v8; if ( (v213 & 1) != 0 ) { operator delete(v215); if ( !v9 ) goto LABEL_14; } else if ( !v8 ) { goto LABEL_14; } v10 = *((_QWORD *)this + 54); v213 = 0; v214 = 0; v215 = nullptr; std::string::__init(&v213, "autoBackupDir", 0xDu); v11 = cocos2d::CCDictionary::objectForKey(v10, &v213); if ( (v213 & 1) != 0 ) operator delete(v215); if ( !v11 ) { v198 = *((_QWORD *)this + 54); v213 = 0; v214 = 0; v215 = nullptr; std::string::__init(&v213, "autoBackupDir", 0xDu); cocos2d::CCDictionary::setObject(v198, v9); if ( (v213 & 1) != 0 ) operator delete(v215); } v12 = *((_QWORD *)this + 53); v213 = 0; v214 = 0; v215 = nullptr; std::string::__init(&v213, "autoBackupDir", 0xDu); cocos2d::CCDictionary::removeObjectForKey(v12, &v213); if ( (v213 & 1) != 0 ) operator delete(v215); LABEL_14: v13 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "unlockValueKeeper", 0); v14 = v13; v15 = *((GameToolbox **)this + 56); if ( v15 ) { LABEL_15: GameToolbox::mergeDictsSaveLargestInt(v15, v14, v15); goto LABEL_16; } LABEL_108: v209 = v13; if ( v13 ) { cocos2d::CCObject::retain(v13); v138 = *((cocos2d::CCObject **)this + 56); v139 = v209; if ( v138 ) { cocos2d::CCObject::release(v138); v139 = v209; } *((_QWORD *)this + 56) = v139; } LABEL_16: if ( !*((_QWORD *)this + 57) ) { v202 = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, "customObjectDict", 0); v203 = v202; v204 = *((cocos2d::CCObject **)this + 57); if ( v204 != v202 ) { if ( v202 ) { cocos2d::CCObject::retain(v202); v204 = *((cocos2d::CCObject **)this + 57); } if ( v204 ) cocos2d::CCObject::release(v204); *((_QWORD *)this + 57) = v203; } } DS_Dictionary::getStringForKey(&v213, a2, "playerUDID"); if ( (*((_BYTE *)this + 608) & 1) != 0 ) { **((_BYTE **)this + 78) = 0; *((_QWORD *)this + 77) = 0; } else { *((_BYTE *)this + 609) = 0; *((_BYTE *)this + 608) = 0; } v16 = (_QWORD *)((char *)this + 632); std::string::reserve((__int64 *)this + 76, 0); v17 = v213; v18 = v214; *((_QWORD *)this + 78) = v215; *((_QWORD *)this + 76) = v17; *((_QWORD *)this + 77) = v18; DS_Dictionary::getStringForKey(&v213, a2, "playerName"); if ( (*((_BYTE *)this + 632) & 1) != 0 ) { **((_BYTE **)this + 81) = 0; *((_QWORD *)this + 80) = 0; } else { *((_BYTE *)this + 633) = 0; *((_BYTE *)this + 632) = 0; } v19 = 1; std::string::reserve((__int64 *)this + 79, 0); v20 = v214; v21 = v215; *v16 = v213; *((_QWORD *)this + 80) = v20; *((_QWORD *)this + 81) = v21; IntegerForKey = DS_Dictionary::getIntegerForKey(a2, "playerUserID"); *((_DWORD *)this + 167) = IntegerForKey; v23 = IntegerForKey; v24 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 166) = v24; *((_DWORD *)this + 165) = v23 + v24; v25 = DS_Dictionary::getIntegerForKey(a2, "playerFrame"); *((_DWORD *)this + 181) = v25; v26 = v25; v27 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 180) = v27; *((_DWORD *)this + 179) = v26 + v27; v28 = DS_Dictionary::getIntegerForKey(a2, "playerColor"); *((_DWORD *)this + 205) = v28; v29 = v28; v30 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 204) = v30; *((_DWORD *)this + 203) = v29 + v30; v31 = DS_Dictionary::getIntegerForKey(a2, "playerColor2"); *((_DWORD *)this + 208) = v31; v32 = v31; v33 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 207) = v33; *((_DWORD *)this + 206) = v32 + v33; v34 = DS_Dictionary::getIntegerForKey(a2, "playerColor3"); *((_DWORD *)this + 211) = v34; v35 = v34; v36 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 210) = v36; *((_DWORD *)this + 209) = v35 + v36; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerShip") > 1 ) v19 = DS_Dictionary::getIntegerForKey(a2, "playerShip"); *((_DWORD *)this + 184) = v19; v37 = 1; v38 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 183) = v38; *((_DWORD *)this + 182) = v19 + v38; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerBall") > 1 ) v37 = DS_Dictionary::getIntegerForKey(a2, "playerBall"); *((_DWORD *)this + 187) = v37; v39 = 1; v40 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 186) = v40; *((_DWORD *)this + 185) = v37 + v40; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerBird") > 1 ) v39 = DS_Dictionary::getIntegerForKey(a2, "playerBird"); *((_DWORD *)this + 190) = v39; v41 = 1; v42 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 189) = v42; *((_DWORD *)this + 188) = v39 + v42; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerDart") > 1 ) v41 = DS_Dictionary::getIntegerForKey(a2, "playerDart"); *((_DWORD *)this + 193) = v41; v43 = 1; v44 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 192) = v44; *((_DWORD *)this + 191) = v41 + v44; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerRobot") > 1 ) v43 = DS_Dictionary::getIntegerForKey(a2, "playerRobot"); *((_DWORD *)this + 196) = v43; v45 = 1; v46 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 195) = v46; *((_DWORD *)this + 194) = v43 + v46; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerSpider") > 1 ) v45 = DS_Dictionary::getIntegerForKey(a2, "playerSpider"); *((_DWORD *)this + 199) = v45; v47 = 1; v48 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 198) = v48; *((_DWORD *)this + 197) = v45 + v48; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerJetpack") > 1 ) v47 = DS_Dictionary::getIntegerForKey(a2, "playerJetpack"); *((_DWORD *)this + 223) = v47; v49 = 1; v50 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 222) = v50; *((_DWORD *)this + 221) = v47 + v50; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerSwing") > 1 ) v49 = DS_Dictionary::getIntegerForKey(a2, "playerSwing"); *((_DWORD *)this + 202) = v49; v51 = 1; v52 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 201) = v52; *((_DWORD *)this + 200) = v49 + v52; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerStreak") > 1 ) v51 = DS_Dictionary::getIntegerForKey(a2, "playerStreak"); *((_DWORD *)this + 214) = v51; v53 = 1; v54 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 213) = v54; *((_DWORD *)this + 212) = v51 + v54; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerShipStreak") > 1 ) v53 = DS_Dictionary::getIntegerForKey(a2, "playerShipStreak"); *((_DWORD *)this + 217) = v53; v55 = 1; v56 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 216) = v56; *((_DWORD *)this + 215) = v53 + v56; if ( (int)DS_Dictionary::getIntegerForKey(a2, "playerDeathEffect") > 1 ) v55 = DS_Dictionary::getIntegerForKey(a2, "playerDeathEffect"); *((_DWORD *)this + 220) = v55; v57 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 219) = v57; *((_DWORD *)this + 218) = v55 + v57; *((_BYTE *)this + 912) = DS_Dictionary::getBoolForKey(a2, "playerGlow"); *((_DWORD *)this + 229) = DS_Dictionary::getIntegerForKey(a2, "playerIconType"); v58 = DS_Dictionary::getIntegerForKey(a2, "secretNumber"); v59 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 227) = v59; *((_DWORD *)this + 226) = v58 + v59; *((_BYTE *)this + 1100) = GameManager::getGameVariable(this, "0028"); if ( (unsigned __int8)GameManager::getGameVariable(this, "0220") || (GameVariable = (unsigned __int8)GameManager::getGameVariable(this, "0221"), (_BYTE)GameVariable) ) { GameManager::setGameVariable(this, "0243", 1u); GameManager::setGameVariable(this, "0220", 0); GameVariable = GameManager::setGameVariable(this, "0221", 0); } v61 = (AchievementManager *)AchievementManager::sharedState((AchievementManager *)GameVariable); v62 = AchievementManager::dataLoaded(v61, a2); v63 = (GameStatsManager *)GameStatsManager::sharedState(v62); v64 = (GameLevelManager *)GameStatsManager::dataLoaded(v63, a2); v65 = (GameLevelManager *)GameLevelManager::sharedState(v64); v66 = (MusicDownloadManager *)GameLevelManager::dataLoaded(v65, a2); v67 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v66); v68 = (GJKeybindManager *)MusicDownloadManager::dataLoaded(v67, a2); v69 = (GJKeybindManager *)GJKeybindManager::sharedState(v68); v70 = (EditorSFXManager *)GJKeybindManager::dataLoaded(v69, a2); v71 = (EditorSFXManager *)EditorSFXManager::sharedState(v70); EditorSFXManager::dataLoaded(v71, a2); v72 = (AchievementManager *)DS_Dictionary::getIntegerForKey(a2, "binaryVersion"); v73 = (int)v72; v74 = (GameStatsManager *)AchievementManager::sharedState(v72); *((_BYTE *)v74 + 360) = 1; v75 = (GameStatsManager *)GameStatsManager::sharedState(v74); GameStatsManager::recountSpecialStats(v75); v76 = (GameStatsManager *)*((unsigned __int8 *)this + 504); if ( !*((_BYTE *)this + 504) ) { v140 = (GameStatsManager *)GameStatsManager::sharedState(v76); fixed = (GameStatsManager *)GameStatsManager::tryFixPathBug(v140); v142 = (GameStatsManager *)GameStatsManager::sharedState(fixed); v76 = (GameStatsManager *)GameStatsManager::verifyPathAchievements(v142); } v77 = GameStatsManager::sharedState(v76); if ( !(unsigned __int8)GameStatsManager::isItemUnlocked(v77, 12, 16) ) { *((_DWORD *)this + 285) = 0; *((_DWORD *)this + 286) = 0; } *((_BYTE *)this + 921) = DS_Dictionary::getBoolForKey(a2, "showSongMarkers"); *((_BYTE *)this + 922) = DS_Dictionary::getBoolForKey(a2, "showBPMMarkers"); *((_BYTE *)this + 924) = DS_Dictionary::getBoolForKey(a2, "showProgressBar"); *((_BYTE *)this + 928) = DS_Dictionary::getBoolForKey(a2, "clickedEditor"); *((_BYTE *)this + 927) = DS_Dictionary::getBoolForKey(a2, "clickedGarage"); *((_BYTE *)this + 929) = DS_Dictionary::getBoolForKey(a2, "clickedName"); *((_BYTE *)this + 930) = DS_Dictionary::getBoolForKey(a2, "clickedPractice"); *((_BYTE *)this + 931) = DS_Dictionary::getBoolForKey(a2, "showedEditorGuide"); *((_BYTE *)this + 932) = DS_Dictionary::getBoolForKey(a2, "showedRateDiffDialog"); *((_BYTE *)this + 933) = DS_Dictionary::getBoolForKey(a2, "showedRateStarDialog"); *((_BYTE *)this + 934) = DS_Dictionary::getBoolForKey(a2, "showedLowDetailDialog"); *((_BYTE *)this + 1024) = DS_Dictionary::getBoolForKey(a2, "hasRatedGame"); if ( !*((_BYTE *)this + 504) ) { *((_BYTE *)this + 925) = DS_Dictionary::getBoolForKey(a2, "performanceMode"); *((_BYTE *)this + 923) = DS_Dictionary::getBoolForKey(a2, "recordGameplay"); *((_DWORD *)this + 255) = DS_Dictionary::getIntegerForKey(a2, "bootups") + 1; DS_Dictionary::getFloatForKey(a2, "bgVolume"); *((_DWORD *)this + 168) = v143; DS_Dictionary::getFloatForKey(a2, "sfxVolume"); *((_DWORD *)this + 169) = v144; *((float *)this + 170) = (float)(int)DS_Dictionary::getIntegerForKey(a2, "timeOffset"); *((_DWORD *)this + 264) = DS_Dictionary::getIntegerForKey(a2, "resolution"); *((_DWORD *)this + 265) = DS_Dictionary::getIntegerForKey(a2, "texQuality"); DS_Dictionary::getFloatForKey(a2, "customFPSTarget"); *((_DWORD *)this + 276) = v145; DS_Dictionary::getFloatForKey(a2, "scrollSensitivity"); if ( v146 <= 0.0 ) v146 = 1.0; v147 = *((_QWORD ***)this + 140); *((float *)this + 277) = v146; if ( v147 ) { std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (__int64)this + 1112, *v147); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (__int64)this + 1112, v147[1]); operator delete(v147); } v208 = (__int64 **)((char *)this + 1120); *((_QWORD *)this + 139) = (char *)this + 1120; *((_QWORD *)this + 141) = 0; *((_QWORD *)this + 140) = 0; v148 = DS_Dictionary::getIntegerForKey(a2, "winStateCount"); if ( v148 <= 0 ) { LABEL_136: *((_DWORD *)this + 285) = DS_Dictionary::getIntegerForKey(a2, "customMenuSongID"); *((_DWORD *)this + 286) = DS_Dictionary::getIntegerForKey(a2, "customPracticeSongID"); *((_DWORD *)this + 287) = DS_Dictionary::getIntegerForKey(a2, "idNameSortMode"); *((_DWORD *)this + 288) = DS_Dictionary::getIntegerForKey(a2, "newsLastReadID"); DS_Dictionary::getStringForKey(&v213, a2, "dpad01"); GameManager::loadDpadFromString((int)this, (__int64)this + 1316, (unsigned __int8 *)&v213); if ( (v213 & 1) != 0 ) operator delete(v215); DS_Dictionary::getStringForKey(&v213, a2, "dpad02"); GameManager::loadDpadFromString((int)this, (__int64)this + 1356, (unsigned __int8 *)&v213); if ( (v213 & 1) != 0 ) operator delete(v215); DS_Dictionary::getStringForKey(&v213, a2, "dpad03"); GameManager::loadDpadFromString((int)this, (__int64)this + 1396, (unsigned __int8 *)&v213); if ( (v213 & 1) != 0 ) operator delete(v215); DS_Dictionary::getStringForKey(&v213, a2, "dpad04"); GameManager::loadDpadFromString((int)this, (__int64)this + 1436, (unsigned __int8 *)&v213); if ( (v213 & 1) != 0 ) operator delete(v215); DS_Dictionary::getStringForKey(&v213, a2, "dpad05"); GameManager::loadDpadFromString((int)this, (__int64)this + 1476, (unsigned __int8 *)&v213); if ( (v213 & 1) != 0 ) operator delete(v215); DS_Dictionary::getStringForKey(&v213, a2, "dpadLayout01"); if ( (*((_BYTE *)this + 1520) & 1) != 0 ) { **((_BYTE **)this + 192) = 0; *((_QWORD *)this + 191) = 0; } else { *((_BYTE *)this + 1521) = 0; *((_BYTE *)this + 1520) = 0; } std::string::reserve((__int64 *)this + 190, 0); v175 = v213; v176 = v214; *((_QWORD *)this + 192) = v215; *((_QWORD *)this + 190) = v175; *((_QWORD *)this + 191) = v176; DS_Dictionary::getStringForKey(&v213, a2, "dpadLayout02"); if ( (*((_BYTE *)this + 1544) & 1) != 0 ) { **((_BYTE **)this + 195) = 0; *((_QWORD *)this + 194) = 0; } else { *((_BYTE *)this + 1545) = 0; *((_BYTE *)this + 1544) = 0; } std::string::reserve((__int64 *)this + 193, 0); v177 = v213; v178 = v214; *((_QWORD *)this + 195) = v215; *((_QWORD *)this + 193) = v177; *((_QWORD *)this + 194) = v178; DS_Dictionary::getStringForKey(&v213, a2, "dpadLayout03"); if ( (*((_BYTE *)this + 1568) & 1) != 0 ) { **((_BYTE **)this + 198) = 0; *((_QWORD *)this + 197) = 0; } else { *((_BYTE *)this + 1569) = 0; *((_BYTE *)this + 1568) = 0; } std::string::reserve((__int64 *)this + 196, 0); v179 = v213; v180 = v214; *((_QWORD *)this + 198) = v215; *((_QWORD *)this + 196) = v179; *((_QWORD *)this + 197) = v180; DS_Dictionary::getStringForKey(&v213, a2, "dpadLayoutDual01"); if ( (*((_BYTE *)this + 1592) & 1) != 0 ) { **((_BYTE **)this + 201) = 0; *((_QWORD *)this + 200) = 0; } else { *((_BYTE *)this + 1593) = 0; *((_BYTE *)this + 1592) = 0; } std::string::reserve((__int64 *)this + 199, 0); v181 = v213; v182 = v214; *((_QWORD *)this + 201) = v215; *((_QWORD *)this + 199) = v181; *((_QWORD *)this + 200) = v182; DS_Dictionary::getStringForKey(&v213, a2, "dpadLayoutDual02"); if ( (*((_BYTE *)this + 1616) & 1) != 0 ) { **((_BYTE **)this + 204) = 0; *((_QWORD *)this + 203) = 0; } else { *((_BYTE *)this + 1617) = 0; *((_BYTE *)this + 1616) = 0; } std::string::reserve((__int64 *)this + 202, 0); v183 = v213; v184 = v214; *((_QWORD *)this + 204) = v215; *((_QWORD *)this + 202) = v183; *((_QWORD *)this + 203) = v184; DS_Dictionary::getStringForKey(&v213, a2, "dpadLayoutDual03"); if ( (*((_BYTE *)this + 1640) & 1) != 0 ) { **((_BYTE **)this + 207) = 0; *((_QWORD *)this + 206) = 0; } else { *((_BYTE *)this + 1641) = 0; *((_BYTE *)this + 1640) = 0; } std::string::reserve((__int64 *)this + 205, 0); v185 = v213; v186 = v214; *((_QWORD *)this + 207) = v215; *((_QWORD *)this + 205) = v185; *((_QWORD *)this + 206) = v186; DS_Dictionary::getStringForKey(&v213, a2, "recentEmotes"); if ( (*((_BYTE *)this + 1664) & 1) != 0 ) { **((_BYTE **)this + 210) = 0; *((_QWORD *)this + 209) = 0; } else { *((_BYTE *)this + 1665) = 0; *((_BYTE *)this + 1664) = 0; } std::string::reserve((__int64 *)this + 208, 0); *((_QWORD *)this + 210) = v215; v187 = v214; *((_QWORD *)this + 208) = v213; *((_QWORD *)this + 209) = v187; DS_Dictionary::getFloatForKey(a2, "practiceOpacity"); *((_DWORD *)this + 428) = v188; DS_Dictionary::getFloatForKey(a2, "practicePosX"); v190 = v189; DS_Dictionary::getFloatForKey(a2, "practicePosY"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v212, v190, v191); cocos2d::CCPoint::operator=((char *)this + 1704, &v212); v193 = (GJAccountManager *)GJAccountManager::sharedState(v192); v194 = (GJMultiplayerManager *)GJAccountManager::dataLoaded(v193, a2); v195 = (GJMultiplayerManager *)GJMultiplayerManager::sharedState(v194); GJMultiplayerManager::dataLoaded(v195, a2); goto LABEL_50; } v149 = 0; while ( 1 ) { while ( 1 ) { snprintf(s, 0x20u, "ws_%d_k", v149); v150 = DS_Dictionary::getIntegerForKey(a2, s); if ( v150 ) break; if ( ++v149 == v148 ) goto LABEL_136; } v210 = v150; snprintf(s, 0x20u, "ws_%d_cx", v149); DS_Dictionary::getFloatForKey(a2, s); v152 = v151; snprintf(s, 0x20u, "ws_%d_cy", v149); DS_Dictionary::getFloatForKey(a2, s); v154 = v153; snprintf(s, 0x20u, "ws_%d_w", v149); DS_Dictionary::getFloatForKey(a2, s); v156 = v155; snprintf(s, 0x20u, "ws_%d_h", v149); DS_Dictionary::getFloatForKey(a2, s); v158 = v157; snprintf(s, 0x20u, "ws_%d_s", v149); DS_Dictionary::getFloatForKey(a2, s); v160 = v159; snprintf(s, 0x20u, "ws_%d_so", v149); DS_Dictionary::getFloatForKey(a2, s); v162 = v161; snprintf(s, 0x20u, "ws_%d_v", v149); v163 = DS_Dictionary::getIntegerForKey(a2, s); v164 = *v208; if ( !*v208 ) { v212 = (__int64 *)((char *)this + 1120); v169 = (__int64 *)((char *)this + 1120); goto LABEL_132; } v165 = *((_DWORD *)v164 + 7); v166 = v210 <= v165; if ( v210 < v165 ) break; while ( !v166 ) { v167 = v164[1]; if ( !v167 ) { v212 = v164; v169 = v164 + 1; goto LABEL_132; } LABEL_127: v164 = (__int64 *)v167; v168 = *(_DWORD *)(v167 + 28); v166 = v210 <= v168; if ( v210 < v168 ) goto LABEL_126; } LABEL_135: ++v149; *((_DWORD *)v164 + 14) = v163; *((_BYTE *)v164 + 60) = 0; *((_DWORD *)v164 + 8) = v152; *((_DWORD *)v164 + 9) = v154; *((_DWORD *)v164 + 10) = v156; *((_DWORD *)v164 + 11) = v158; *((_DWORD *)v164 + 12) = v160; *((_DWORD *)v164 + 13) = v162; if ( v149 == v148 ) goto LABEL_136; } LABEL_126: v167 = *v164; if ( *v164 ) goto LABEL_127; v212 = v164; v169 = v164; LABEL_132: v205 = v169; v206 = v163; v170 = operator new(0x40u); *(_DWORD *)(v170 + 28) = v210; v171 = (__int64 *)v170; *(_DWORD *)(v170 + 56) = 0; *(_BYTE *)(v170 + 60) = 0; *(_DWORD *)(v170 + 32) = 0; v172 = v206; *(_DWORD *)(v170 + 36) = 0; *(_DWORD *)(v170 + 40) = 0; *(_DWORD *)(v170 + 44) = 0; *(_DWORD *)(v170 + 52) = 0; *(float *)(v170 + 48) = 1.0; *(_QWORD *)(v170 + 16) = v212; *(_QWORD *)v170 = 0; *(_QWORD *)(v170 + 8) = 0; *v205 = v170; v173 = **((_QWORD **)this + 139); if ( v173 ) { *((_QWORD *)this + 139) = v173; v174 = (__int64 *)*v205; } else { v174 = v171; } v207 = v171; v211 = v172; std::__tree_balance_after_insert *>(*v208, v174); v164 = v207; v163 = v211; ++*((_QWORD *)this + 141); goto LABEL_135; } LABEL_50: if ( v73 <= 39 ) *((_DWORD *)this + 170) = 0; v78 = (GJAccountManager *)GameManager::prepareDPadSettings(this); v79 = GJAccountManager::sharedState(v78); v80 = (GameLevelManager *)(unsigned int)(*(_DWORD *)(v79 + 352) - *(_DWORD *)(v79 + 356)); if ( (int)v80 > 0 ) { v81 = (GJAccountManager *)GameLevelManager::sharedState(v80); *((_DWORD *)v81 + 302) = 4; v82 = GJAccountManager::sharedState(v81); v213 = 0; v214 = 0; v215 = nullptr; if ( (*(_BYTE *)(v82 + 328) & 1) != 0 ) { std::string::__init(&v213, *(void **)(v82 + 344), *(_QWORD *)(v82 + 336)); } else { v83 = *(_QWORD *)(v82 + 336); v213 = *(_QWORD *)(v82 + 328); v214 = v83; v215 = *(void **)(v82 + 344); } if ( (*((_BYTE *)this + 632) & 1) != 0 ) { **((_BYTE **)this + 81) = 0; *((_QWORD *)this + 80) = 0; } else { *((_BYTE *)this + 633) = 0; *((_BYTE *)this + 632) = 0; } std::string::reserve((__int64 *)this + 79, 0); *((_QWORD *)this + 81) = v215; v84 = v214; *v16 = v213; *((_QWORD *)this + 80) = v84; } v85 = DS_Dictionary::getIntegerForKey(a2, "hasRP"); *((_DWORD *)this + 260) = v85; v86 = v85; v87 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 259) = v87; *((_DWORD *)this + 258) = v86 + v87; *((_BYTE *)this + 1044) = DS_Dictionary::getBoolForKey(a2, "hasDRP"); *((_DWORD *)this + 262) = DS_Dictionary::getIntegerForKey(a2, "specialPermKey"); if ( !*((_BYTE *)this + 504) ) { if ( v73 > 20 ) { v88 = (GameLevelManager *)GameManager::verifyAchievementUnlocks(this); goto LABEL_61; } GameManager::verifyCoinUnlocks(this); } v88 = (GameLevelManager *)GameManager::verifyAchievementUnlocks(this); if ( v73 <= 3 ) { v88 = (GameLevelManager *)GameManager::verifyStarUnlocks((__int64)this); goto LABEL_81; } if ( v73 <= 10 ) { LABEL_81: v91 = (GameLevelManager *)GameLevelManager::sharedState(v88); MainLevel = (GameStatsManager *)GameLevelManager::getMainLevel(v91, 14, 0); v93 = (GameStatsManager *)GameStatsManager::sharedState(MainLevel); hasCompletedLevel = (GameStatsManager *)(unsigned __int8)GameStatsManager::hasCompletedLevel(v93, MainLevel); if ( (_BYTE)hasCompletedLevel ) { v197 = (GameStatsManager *)GameStatsManager::sharedState(hasCompletedLevel); GameStatsManager::completedDemonLevel(v197, MainLevel); } goto LABEL_83; } LABEL_61: if ( v73 != 11 ) { if ( v73 > 50 ) goto LABEL_63; goto LABEL_84; } LABEL_83: GameManager::setGameVariable(this, "0002", 1u); v88 = (GameLevelManager *)GameManager::setGameVariable(this, "0001", 1u); LABEL_84: v95 = (GameStatsManager *)GameStatsManager::sharedState(v88); v96 = (GameStatsManager *)GameStatsManager::incrementStat(v95, "3", 0); v97 = (GameStatsManager *)GameStatsManager::sharedState(v96); v98 = (GameStatsManager *)GameStatsManager::incrementStat(v97, "6", 0); v99 = (GameStatsManager *)GameStatsManager::sharedState(v98); v100 = (GameStatsManager *)GameStatsManager::incrementStat(v99, "5", 0); v101 = (GameStatsManager *)GameStatsManager::sharedState(v100); v102 = (GameStatsManager *)GameStatsManager::incrementStat(v101, &byte_11BCA00, 0); v103 = (GameStatsManager *)GameStatsManager::sharedState(v102); v104 = (GameStatsManager *)GameStatsManager::incrementStat(v103, "15", 0); v105 = (GameStatsManager *)GameStatsManager::sharedState(v104); v106 = (GameStatsManager *)GameStatsManager::incrementStat(v105, "40", 0); v107 = (GameStatsManager *)GameStatsManager::sharedState(v106); v108 = (GameStatsManager *)GameStatsManager::incrementStat(v107, "42", 0); v109 = (GameStatsManager *)GameStatsManager::sharedState(v108); v110 = (GameStatsManager *)GameStatsManager::incrementStat(v109, "8", 0); v111 = (GameStatsManager *)GameStatsManager::sharedState(v110); v112 = (GameStatsManager *)GameStatsManager::incrementStat(v111, &byte_120A098, 0); v113 = (GameStatsManager *)GameStatsManager::sharedState(v112); v114 = (GameStatsManager *)GameStatsManager::incrementStat(v113, "1", 0); v115 = (GameStatsManager *)GameStatsManager::sharedState(v114); v116 = (GameStatsManager *)GameStatsManager::incrementStat(v115, "7", 0); v117 = (GameStatsManager *)GameStatsManager::sharedState(v116); v118 = (GameStatsManager *)GameStatsManager::incrementStat(v117, (const char *)&word_120A570, 0); v119 = (GameStatsManager *)GameStatsManager::sharedState(v118); v120 = (GameStatsManager *)GameStatsManager::incrementStat(v119, "13", 0); v121 = (GameStatsManager *)GameStatsManager::sharedState(v120); GameStatsManager::incrementStat(v121, "41", 0); if ( v73 <= 22 ) { *((float *)this + 168) = 1.0; *((float *)this + 169) = 1.0; GameManager::setGameVariable(this, "0026", 1u); GameManager::setGameVariable(this, "0027", 1u); goto LABEL_86; } LABEL_63: if ( v73 <= 24 ) { LABEL_86: BoolForKey = DS_Dictionary::getBoolForKey(a2, "gameCenterEnabled"); GameManager::setGameVariable(this, "0034", BoolForKey); goto LABEL_87; } if ( v73 > 27 ) { if ( v73 > 50 ) goto LABEL_66; goto LABEL_90; } LABEL_87: GameManager::setGameVariable(this, "0038", 1u); GameManager::setGameVariable(this, "0043", 1u); GameManager::setGameVariable(this, "0046", 1u); GameManager::setGameVariable(this, "0044", 1u); GameManager::setGameVariable(this, "0036", 1u); v123 = (GameStatsManager *)*((unsigned int *)this + 212); if ( (_DWORD)v123 == 2 ) { v123 = (GameStatsManager *)(&dword_0 + 1); *((_BYTE *)this + 912) = 1; } v124 = (GameLevelManager *)GameStatsManager::sharedState(v123); v125 = (GameLevelManager *)GameLevelManager::sharedState(v124); v126 = (GJGameLevel *)GameLevelManager::getMainLevel(v125, 14, 0); v127 = (GameStatsManager *)GameStatsManager::checkCoinAchievement(v124, v126); v128 = (GameLevelManager *)GameStatsManager::sharedState(v127); v129 = (GameLevelManager *)GameLevelManager::sharedState(v128); v130 = (GJGameLevel *)GameLevelManager::getMainLevel(v129, 18, 0); v131 = (GameStatsManager *)GameStatsManager::checkCoinAchievement(v128, v130); v132 = (GameLevelManager *)GameStatsManager::sharedState(v131); v133 = (GameLevelManager *)GameLevelManager::sharedState(v132); v134 = (GJGameLevel *)GameLevelManager::getMainLevel(v133, 20, 0); GameStatsManager::checkCoinAchievement(v132, v134); LABEL_90: *((_BYTE *)this + 923) = 0; if ( v73 <= 28 ) { if ( !*((_BYTE *)this + 504) ) { v196 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)*((unsigned __int8 *)this + 504)); GameStatsManager::verifyUserCoins(v196); } goto LABEL_93; } LABEL_66: if ( v73 <= 37 ) { LABEL_93: GameManager::setGameVariable(this, "0012", 0); GameManager::setGameVariable(this, "0016", 0); GameManager::setUGV(this, "28", 0); GameManager::setUGV(this, "29", 0); GameManager::setGameVariable(this, "0118", 1u); GameManager::setGameVariable(this, "0117", 1u); GameManager::setGameVariable(this, "0158", 1u); GameManager::setGameVariable(this, "0121", 1u); GameManager::setGameVariable(this, "0037", 1u); goto LABEL_94; } if ( v73 <= 40 ) { LABEL_94: if ( *((_BYTE *)this + 504) ) goto LABEL_98; *((float *)this + 428) = 1.0; LABEL_96: v213 = 0; v214 = 0; v215 = nullptr; std::string::__init(&v213, &byte_11B8890, 0); GameManager::recountUserStats(this, (unsigned __int8 *)&v213); if ( (v213 & 1) != 0 ) operator delete(v215); goto LABEL_98; } if ( v73 <= 44 ) { if ( *((_BYTE *)this + 504) ) goto LABEL_98; goto LABEL_96; } if ( v73 > 48 ) { if ( v73 != 49 ) goto LABEL_71; goto LABEL_99; } LABEL_98: GameManager::setGameVariable(this, "0184", 1u); LABEL_99: GameManager::setGameVariable(this, "0200", 1u); GameManager::setGameVariable(this, "0202", 1u); LABEL_71: GameManager::checkSteamAchievementUnlock(this); *(_BYTE *)(AchievementManager::sharedState(v89) + 360) = 0; if ( (int)GameManager::getIntGameVariable(this, "0049") <= 5 ) { GameManager::setIntGameVariable(this, "0049", 6u); if ( (int)GameManager::getIntGameVariable(this, "0050") > 1 ) goto LABEL_73; LABEL_115: GameManager::setIntGameVariable(this, "0050", 2u); goto LABEL_73; } if ( (int)GameManager::getIntGameVariable(this, "0050") <= 1 ) goto LABEL_115; LABEL_73: *((_BYTE *)this + 504) = 1; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source