// // GameManager::dataLoaded from 0x140186a90 to 0x1401886a7 (7191 bytes) // // 2 xrefs: // > @ 0x14055ce00 // > @ 0x1406cb670 // // 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 // // Hidden C++ exception states: #wind=41 void GameManager::dataLoaded(GameManager *a1, DS_Dictionary *a2) { GJObjectDecoder *v4; // rbx __int64 v5; // rax ObjectDecoderDelegate *v6; // rdx struct cocos2d::CCDictionary *DictForKey; // rax cocos2d::CCDictionary *v8; // rbx cocos2d::CCDictionary *m_valueKeeper; // rcx cocos2d::CCDictionary *v10; // rax cocos2d::CCDictionary *v11; // rbx cocos2d::CCDictionary *m_unlockValueKeeper; // rcx cocos2d::CCDictionary *v13; // rcx struct cocos2d::CCDictionary *v14; // rax cocos2d::CCDictionary *v15; // rbx cocos2d::CCDictionary *m_customObjectDict; // rcx __int64 StringForKey; // rax __int64 v18; // rax int v19; // eax int v20; // ebx float v21; // xmm0_4 int v22; // eax int v23; // ebx float v24; // xmm0_4 int v25; // eax int v26; // ebx float v27; // xmm0_4 int v28; // eax int v29; // ebx float v30; // xmm0_4 int v31; // eax int v32; // ebx float v33; // xmm0_4 int v34; // r14d int v35; // eax int v36; // ebx int v37; // eax float v38; // xmm0_4 int v39; // eax int v40; // ebx int v41; // eax float v42; // xmm0_4 int v43; // eax int v44; // ebx int v45; // eax float v46; // xmm0_4 int v47; // eax int v48; // ebx int v49; // eax float v50; // xmm0_4 int v51; // eax int v52; // ebx int v53; // eax float v54; // xmm0_4 int v55; // eax int v56; // ebx int v57; // eax float v58; // xmm0_4 int v59; // eax int v60; // ebx int v61; // eax float v62; // xmm0_4 int v63; // eax int v64; // ebx int v65; // eax float v66; // xmm0_4 int v67; // eax int v68; // ebx int v69; // eax float v70; // xmm0_4 int v71; // eax int v72; // ebx int v73; // eax float v74; // xmm0_4 int v75; // eax int v76; // ebx int v77; // eax float v78; // xmm0_4 IconType v79; // eax int v80; // eax int v81; // ebx float v82; // xmm0_4 AchievementManager *v83; // r15 cocos2d::CCDictionary *v84; // rax cocos2d::CCDictionary *v85; // rbx cocos2d::CCDictionary *m_reportedAchievements; // rcx cocos2d::CCObject *v87; // rcx GameStatsManager *v88; // rcx GameLevelManager *v89; // rcx MusicDownloadManager *v90; // rax KeybindingsManager *v91; // rbx struct cocos2d::CCDictionary *v92; // rax cocos2d::CCDictionary *v93; // r15 cocos2d::CCObject *m_keyToCommandDict; // rcx struct cocos2d::CCDictionary *v95; // rax cocos2d::CCDictionary *v96; // r15 cocos2d::CCObject *m_commandToKeyDict; // rcx int v98; // eax int v99; // r12d GameStatsManager *v100; // rcx GameStatsManager *v101; // rcx GameStatsManager *v102; // rcx GameStatsManager *v103; // rcx int v104; // eax int v105; // eax int v106; // eax int v107; // eax int v108; // eax int v109; // eax __int64 *v110; // rax __int64 v111; // rcx __int64 *v112; // rax __int64 v113; // rcx __int64 *v114; // rax __int64 v115; // rcx __int64 *v116; // rax __int64 v117; // rcx __int64 *v118; // rax __int64 v119; // rcx __int64 v120; // rax __int64 v121; // rax __int64 v122; // rax __int64 v123; // rax __int64 v124; // rax __int64 v125; // rax float FloatForKey; // xmm6_4 float v127; // xmm0_4 __int64 v128; // rax GJAccountManager *v129; // rbx __int64 v130; // rax int v131; // eax __int64 v132; // rax __int64 v133; // rax __int64 v134; // rax __int64 ShaPassword; // rax GJAccountManager *v136; // rax __int64 v137; // rax GJAccountManager *v138; // rax int v139; // eax int v140; // ebx float v141; // xmm0_4 cocos2d::CCArray *m_allAchievements; // r13 unsigned int i; // r15d GameManager *v144; // rcx struct cocos2d::CCObject *v145; // rax cocos2d::CCString *v146; // rax const char *CString; // rbx void *v148; // rcx AchievementManager *v149; // rax size_t v150; // r8 GameLevelManager *v151; // rcx GJGameLevel *MainLevel; // rbx GameStatsManager *v153; // rcx GameStatsManager *v154; // rcx GameLevelManager *v155; // rcx GJGameLevel *v156; // rbx GameStatsManager *v157; // rcx GameStatsManager *v158; // rcx GameStatsManager *v159; // rcx GameStatsManager *v160; // rcx GameStatsManager *v161; // rcx GameStatsManager *v162; // rcx GameStatsManager *v163; // rcx GameStatsManager *v164; // rcx GameStatsManager *v165; // rcx GameStatsManager *v166; // rcx GameStatsManager *v167; // rcx GameStatsManager *v168; // rcx GameStatsManager *v169; // rcx GameStatsManager *v170; // rcx GameStatsManager *v171; // rcx GameStatsManager *v172; // rcx bool BoolForKey; // al GameLevelManager *v174; // rbx GameStatsManager *v175; // rsi GJGameLevel *v176; // rax GameLevelManager *v177; // rsi GameStatsManager *v178; // rbx GJGameLevel *v179; // rax GameStatsManager *v180; // rbx GameLevelManager *v181; // rcx GJGameLevel *v182; // rax GameStatsManager *v183; // rcx void *v184; // [rsp+28h] [rbp-69h] void *v185; // [rsp+28h] [rbp-69h] void *v186; // [rsp+28h] [rbp-69h] void *v187; // [rsp+28h] [rbp-69h] void *v188; // [rsp+28h] [rbp-69h] void *v189; // [rsp+28h] [rbp-69h] void *v190; // [rsp+28h] [rbp-69h] void *v191; // [rsp+28h] [rbp-69h] void *v192; // [rsp+28h] [rbp-69h] void *v193; // [rsp+28h] [rbp-69h] void *v194; // [rsp+28h] [rbp-69h] void *v195; // [rsp+28h] [rbp-69h] void *v196; // [rsp+28h] [rbp-69h] void *v197; // [rsp+28h] [rbp-69h] void *v198; // [rsp+28h] [rbp-69h] void *v199; // [rsp+28h] [rbp-69h] void *v200; // [rsp+28h] [rbp-69h] void *v201; // [rsp+28h] [rbp-69h] void *v202; // [rsp+28h] [rbp-69h] void *v203; // [rsp+28h] [rbp-69h] void *v204; // [rsp+28h] [rbp-69h] void *v205; // [rsp+28h] [rbp-69h] void *v206; // [rsp+28h] [rbp-69h] void *v207; // [rsp+28h] [rbp-69h] void *v208; // [rsp+28h] [rbp-69h] cocos2d::CCPoint v209; // [rsp+30h] [rbp-61h] BYREF void *v210; // [rsp+38h] [rbp-59h] __int128 v211; // [rsp+40h] [rbp-51h] BYREF __int64 v212; // [rsp+50h] [rbp-41h] __int64 v213; // [rsp+58h] [rbp-39h] _QWORD v214[2]; // [rsp+60h] [rbp-31h] BYREF __int64 v215; // [rsp+70h] [rbp-21h] unsigned __int64 v216; // [rsp+78h] [rbp-19h] v4 = GJObjectDecoder::sharedDecoder(); v5 = ObjectDecoder::sharedDecoder(); v6 = &v4->ObjectDecoderDelegate; if ( !v4 ) v6 = nullptr; *(_QWORD *)(v5 + 320) = v6; if ( !a1->m_valueKeeper ) { DictForKey = DS_Dictionary::getDictForKey(a2, "valueKeeper", 0); v8 = DictForKey; if ( a1->m_valueKeeper != DictForKey ) { if ( DictForKey ) cocos2d::CCObject::retain(DictForKey); m_valueKeeper = a1->m_valueKeeper; if ( m_valueKeeper ) cocos2d::CCObject::release(m_valueKeeper); a1->m_valueKeeper = v8; } } v10 = DS_Dictionary::getDictForKey(a2, "unlockValueKeeper", 0); v11 = v10; m_unlockValueKeeper = a1->m_unlockValueKeeper; if ( m_unlockValueKeeper ) { GameToolbox::mergeDictsSaveLargestInt(m_unlockValueKeeper, v10); } else if ( v10 ) { cocos2d::CCObject::retain(v10); v13 = a1->m_unlockValueKeeper; if ( v13 ) cocos2d::CCObject::release(v13); a1->m_unlockValueKeeper = v11; } if ( !a1->m_customObjectDict ) { v14 = DS_Dictionary::getDictForKey(a2, "customObjectDict", 0); v15 = v14; if ( a1->m_customObjectDict != v14 ) { if ( v14 ) cocos2d::CCObject::retain(v14); m_customObjectDict = a1->m_customObjectDict; if ( m_customObjectDict ) cocos2d::CCObject::release(m_customObjectDict); a1->m_customObjectDict = v15; } } StringForKey = DS_Dictionary::getStringForKey(a2, &v211, "playerUDID"); sub_140051590((__int64)&a1->m_playerUDID, StringForKey); sub_14003A830((__int64)&v211); v18 = DS_Dictionary::getStringForKey(a2, &v211, "playerName"); sub_140051590((__int64)&a1->m_playerName, v18); sub_14003A830((__int64)&v211); DS_Dictionary::getIntegerForKey(a2, "playerUserID"); v20 = v19; a1->m_playerUserID.value = v19; v21 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerUserID.seed = (int)v21; a1->m_playerUserID.random = (int)v21 + v20; DS_Dictionary::getIntegerForKey(a2, "playerFrame"); v23 = v22; a1->m_playerFrame.value = v22; v24 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerFrame.seed = (int)v24; a1->m_playerFrame.random = (int)v24 + v23; DS_Dictionary::getIntegerForKey(a2, "playerColor"); v26 = v25; a1->m_playerColor.value = v25; v27 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerColor.seed = (int)v27; a1->m_playerColor.random = (int)v27 + v26; DS_Dictionary::getIntegerForKey(a2, "playerColor2"); v29 = v28; a1->m_playerColor2.value = v28; v30 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerColor2.seed = (int)v30; a1->m_playerColor2.random = (int)v30 + v29; DS_Dictionary::getIntegerForKey(a2, "playerColor3"); v32 = v31; a1->m_playerGlowColor.value = v31; v33 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerGlowColor.seed = (int)v33; a1->m_playerGlowColor.random = (int)v33 + v32; DS_Dictionary::getIntegerForKey(a2, "playerShip"); v34 = 1; if ( v35 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerShip"); v36 = v37; } else { v36 = 1; } a1->m_playerShip.value = v36; v38 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerShip.seed = (int)v38; a1->m_playerShip.random = (int)v38 + v36; DS_Dictionary::getIntegerForKey(a2, "playerBall"); if ( v39 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerBall"); v40 = v41; } else { v40 = 1; } a1->m_playerBall.value = v40; v42 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerBall.seed = (int)v42; a1->m_playerBall.random = (int)v42 + v40; DS_Dictionary::getIntegerForKey(a2, "playerBird"); if ( v43 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerBird"); v44 = v45; } else { v44 = 1; } a1->m_playerBird.value = v44; v46 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerBird.seed = (int)v46; a1->m_playerBird.random = (int)v46 + v44; DS_Dictionary::getIntegerForKey(a2, "playerDart"); if ( v47 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerDart"); v48 = v49; } else { v48 = 1; } a1->m_playerDart.value = v48; v50 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerDart.seed = (int)v50; a1->m_playerDart.random = v48 + (int)v50; DS_Dictionary::getIntegerForKey(a2, "playerRobot"); if ( v51 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerRobot"); v52 = v53; } else { v52 = 1; } a1->m_playerRobot.value = v52; v54 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerRobot.seed = (int)v54; a1->m_playerRobot.random = v52 + (int)v54; DS_Dictionary::getIntegerForKey(a2, "playerSpider"); if ( v55 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerSpider"); v56 = v57; } else { v56 = 1; } a1->m_playerSpider.value = v56; v58 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerSpider.seed = (int)v58; a1->m_playerSpider.random = v56 + (int)v58; DS_Dictionary::getIntegerForKey(a2, "playerJetpack"); if ( v59 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerJetpack"); v60 = v61; } else { v60 = 1; } a1->m_playerJetpack.value = v60; v62 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerJetpack.seed = (int)v62; a1->m_playerJetpack.random = v60 + (int)v62; DS_Dictionary::getIntegerForKey(a2, "playerSwing"); if ( v63 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerSwing"); v64 = v65; } else { v64 = 1; } a1->m_playerSwing.value = v64; v66 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerSwing.seed = (int)v66; a1->m_playerSwing.random = v64 + (int)v66; DS_Dictionary::getIntegerForKey(a2, "playerStreak"); if ( v67 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerStreak"); v68 = v69; } else { v68 = 1; } a1->m_playerStreak.value = v68; v70 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerStreak.seed = (int)v70; a1->m_playerStreak.random = v68 + (int)v70; DS_Dictionary::getIntegerForKey(a2, "playerShipStreak"); if ( v71 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerShipStreak"); v72 = v73; } else { v72 = 1; } a1->m_playerShipFire.value = v72; v74 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerShipFire.seed = (int)v74; a1->m_playerShipFire.random = v72 + (int)v74; DS_Dictionary::getIntegerForKey(a2, "playerDeathEffect"); if ( v75 >= 1 ) { DS_Dictionary::getIntegerForKey(a2, "playerDeathEffect"); v76 = v77; } else { v76 = 1; } a1->m_playerDeathEffect.value = v76; v78 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_playerDeathEffect.seed = (int)v78; a1->m_playerDeathEffect.random = v76 + (int)v78; a1->m_playerGlow = DS_Dictionary::getBoolForKey(a2, "playerGlow"); DS_Dictionary::getIntegerForKey(a2, "playerIconType"); a1->m_playerIconType = v79; DS_Dictionary::getIntegerForKey(a2, "secretNumber"); v81 = v80; v82 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_secretNumber.random = (int)v82; a1->m_secretNumber.seed = v81 + (int)v82; a1->m_disableThumbstick = GameManager::getGameVariable(a1, "0028"); v83 = AchievementManager::sharedState(); v84 = DS_Dictionary::getDictForKey(a2, "reportedAchievements", 0); v85 = v84; m_reportedAchievements = v83->m_reportedAchievements; if ( m_reportedAchievements ) { GameToolbox::mergeDictsSaveLargestInt(m_reportedAchievements, v84); } else if ( v84 ) { cocos2d::CCObject::retain(v84); v87 = v83->m_reportedAchievements; if ( v87 ) cocos2d::CCObject::release(v87); v83->m_reportedAchievements = v85; } v88 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v209 = (cocos2d::CCPoint)operator new(0x3E0u); qword_1406C2EE8 = ((__int64 (__fastcall *)(_QWORD))sub_1401D0AE0)(v209); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v88 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::dataLoaded(v88, a2); v89 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v209 = (cocos2d::CCPoint)operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(*(_QWORD *)&v209); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v89 = (GameLevelManager *)qword_1406C2EC0; } GameLevelManager::dataLoaded(v89, a2); v90 = MusicDownloadManager::sharedState(); MusicDownloadManager::dataLoaded(v90, a2); v91 = KeybindingsManager::sharedState(); v92 = DS_Dictionary::getDictForKey(a2, "KBM_001", 0); v93 = v92; if ( v91->m_keyToCommandDict != v92 ) { if ( v92 ) cocos2d::CCObject::retain(v92); m_keyToCommandDict = v91->m_keyToCommandDict; if ( m_keyToCommandDict ) cocos2d::CCObject::release(m_keyToCommandDict); v91->m_keyToCommandDict = v93; } v95 = DS_Dictionary::getDictForKey(a2, "KBM_002", 0); v96 = v95; if ( v91->m_commandToKeyDict != v95 ) { if ( v95 ) cocos2d::CCObject::retain(v95); m_commandToKeyDict = v91->m_commandToKeyDict; if ( m_commandToKeyDict ) cocos2d::CCObject::release(m_commandToKeyDict); v91->m_commandToKeyDict = v96; } DS_Dictionary::getIntegerForKey(a2, "binaryVersion"); v99 = v98; AchievementManager::sharedState()->m_dontNotify = 1; v100 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v209 = (cocos2d::CCPoint)operator new(0x3E0u); qword_1406C2EE8 = ((__int64 (__fastcall *)(_QWORD))sub_1401D0AE0)(v209); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v100 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::recountSpecialStats(v100); if ( !a1->m_loaded ) { v102 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v209 = (cocos2d::CCPoint)operator new(0x3E0u); qword_1406C2EE8 = ((__int64 (__fastcall *)(_QWORD))sub_1401D0AE0)(v209); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v102 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::tryFixPathBug(v102); v103 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v209 = (cocos2d::CCPoint)operator new(0x3E0u); qword_1406C2EE8 = ((__int64 (__fastcall *)(_QWORD))sub_1401D0AE0)(v209); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v103 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::verifyPathAchievements(v103); } if ( !qword_1406C2EE8 ) { v209 = (cocos2d::CCPoint)operator new(0x3E0u); qword_1406C2EE8 = ((__int64 (__fastcall *)(_QWORD))sub_1401D0AE0)(v209); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); } if ( !GameStatsManager::isItemUnlocked(v101, GJItem, 16) ) *(_QWORD *)&a1->m_customMenuSongID = 0; a1->m_showSongMarkers = DS_Dictionary::getBoolForKey(a2, "showSongMarkers"); a1->m_showBPMMarkers = DS_Dictionary::getBoolForKey(a2, "showBPMMarkers"); a1->m_showProgressBar = DS_Dictionary::getBoolForKey(a2, "showProgressBar"); a1->m_clickedEditor = DS_Dictionary::getBoolForKey(a2, "clickedEditor"); a1->m_clickedGarage = DS_Dictionary::getBoolForKey(a2, "clickedGarage"); a1->m_clickedName = DS_Dictionary::getBoolForKey(a2, "clickedName"); a1->m_clickedPractice = DS_Dictionary::getBoolForKey(a2, "clickedPractice"); a1->m_showedEditorGuide = DS_Dictionary::getBoolForKey(a2, "showedEditorGuide"); a1->m_showedRateDiffDialog = DS_Dictionary::getBoolForKey(a2, "showedRateDiffDialog"); a1->m_showedRateStarDialog = DS_Dictionary::getBoolForKey(a2, "showedRateStarDialog"); a1->m_showedLowDetailDialog = DS_Dictionary::getBoolForKey(a2, "showedLowDetailDialog"); a1->m_hasRatedGame = DS_Dictionary::getBoolForKey(a2, "hasRatedGame"); if ( !a1->m_loaded ) { a1->m_performanceMode = DS_Dictionary::getBoolForKey(a2, "performanceMode"); a1->m_recordGameplay = DS_Dictionary::getBoolForKey(a2, "recordGameplay"); DS_Dictionary::getIntegerForKey(a2, "bootups"); a1->m_bootups = v104 + 1; a1->m_bgVolume = DS_Dictionary::getFloatForKey(a2, "bgVolume"); a1->m_sfxVolume = DS_Dictionary::getFloatForKey(a2, "sfxVolume"); DS_Dictionary::getIntegerForKey(a2, "timeOffset"); a1->m_timeOffset = (float)v105; DS_Dictionary::getIntegerForKey(a2, "resolution"); a1->m_resolution = v106; DS_Dictionary::getIntegerForKey(a2, "texQuality"); a1->m_texQuality = v107; a1->m_customFPSTarget = DS_Dictionary::getFloatForKey(a2, "customFPSTarget"); DS_Dictionary::getIntegerForKey(a2, "customMenuSongID"); a1->m_customMenuSongID = v108; DS_Dictionary::getIntegerForKey(a2, "customPracticeSongID"); a1->m_customPracticeSongID = v109; v110 = (__int64 *)DS_Dictionary::getStringForKey(a2, &v211, "dpad01"); GameManager::loadDpadFromString(v111, (__int64)&a1->m_dpad1, v110); v112 = (__int64 *)DS_Dictionary::getStringForKey(a2, &v211, "dpad02"); GameManager::loadDpadFromString(v113, (__int64)&a1->m_dpad2, v112); v114 = (__int64 *)DS_Dictionary::getStringForKey(a2, &v211, "dpad03"); GameManager::loadDpadFromString(v115, (__int64)&a1->m_dpad3, v114); v116 = (__int64 *)DS_Dictionary::getStringForKey(a2, &v211, "dpad04"); GameManager::loadDpadFromString(v117, (__int64)&a1->m_dpad4, v116); v118 = (__int64 *)DS_Dictionary::getStringForKey(a2, &v211, "dpad05"); GameManager::loadDpadFromString(v119, (__int64)&a1->m_dpad5, v118); v120 = DS_Dictionary::getStringForKey(a2, &v211, "dpadLayout01"); sub_140051590((__int64)&a1->m_dpadLayout1, v120); sub_14003A830((__int64)&v211); v121 = DS_Dictionary::getStringForKey(a2, &v211, "dpadLayout02"); sub_140051590((__int64)&a1->m_dpadLayout2, v121); sub_14003A830((__int64)&v211); v122 = DS_Dictionary::getStringForKey(a2, &v211, "dpadLayout03"); sub_140051590((__int64)&a1->m_dpadLayout3, v122); sub_14003A830((__int64)&v211); v123 = DS_Dictionary::getStringForKey(a2, &v211, "dpadLayoutDual01"); sub_140051590((__int64)&a1->m_dpadLayoutDual1, v123); sub_14003A830((__int64)&v211); v124 = DS_Dictionary::getStringForKey(a2, &v211, "dpadLayoutDual02"); sub_140051590((__int64)&a1->m_dpadLayoutDual2, v124); sub_14003A830((__int64)&v211); v125 = DS_Dictionary::getStringForKey(a2, &v211, "dpadLayoutDual03"); sub_140051590((__int64)&a1->m_dpadLayoutDual3, v125); sub_14003A830((__int64)&v211); a1->m_practiceOpacity = DS_Dictionary::getFloatForKey(a2, "practiceOpacity"); FloatForKey = DS_Dictionary::getFloatForKey(a2, "practicePosY"); v127 = DS_Dictionary::getFloatForKey(a2, "practicePosX"); cocos2d::CCPoint::CCPoint(&v209, v127, FloatForKey); cocos2d::CCPoint::operator=(&a1->m_practicePos, v128); v129 = GJAccountManager::sharedState(); v130 = DS_Dictionary::getStringForKey(a2, &v211, "GJA_001"); sub_140051590((__int64)&v129->m_username, v130); sub_14003A830((__int64)&v211); DS_Dictionary::getIntegerForKey(a2, "GJA_003"); v129->m_accountID = v131; v132 = DS_Dictionary::getStringForKey(a2, &v211, "GJA_002"); sub_140051590((__int64)&v129->m_password, v132); sub_14003A830((__int64)&v211); v133 = DS_Dictionary::getStringForKey(a2, &v211, "GJA_005"); sub_140051590((__int64)&v129->m_GJP2, v133); sub_14003A830((__int64)&v211); if ( v129->m_password.m_data.m_size && !v129->m_GJP2.m_data.m_size ) { v134 = sub_14003BDB0((__int64)&v211, (__int64)&v129->m_password); ShaPassword = GJAccountManager::getShaPassword(v214, v134); sub_140051590((__int64)&v129->m_GJP2, ShaPassword); sub_14003A830((__int64)v214); } GJMultiplayerManager::sharedState(); } if ( v99 < 40 ) a1->m_timeOffset = 0.0; GameManager::prepareDPadSettings(a1); v136 = GJAccountManager::sharedState(); if ( v136->m_accountID - v136->m_unkInt1 > 0 ) { v137 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v209 = (cocos2d::CCPoint)operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(*(_QWORD *)&v209); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v137 = qword_1406C2EC0; } *(_DWORD *)(v137 + 704) = 4; v138 = GJAccountManager::sharedState(); sub_14003BDB0((__int64)&v211, (__int64)&v138->m_username); sub_140051590((__int64)&a1->m_playerName, (__int64)&v211); sub_14003A830((__int64)&v211); } DS_Dictionary::getIntegerForKey(a2, "hasRP"); v140 = v139; a1->m_hasRP.value = v139; v141 = (float)((float)rand() / 32767.0) * 1000.0; a1->m_hasRP.seed = (int)v141; a1->m_hasRP.random = v140 + (int)v141; a1->m_hasDRP = DS_Dictionary::getBoolForKey(a2, "hasDRP"); if ( !a1->m_loaded && v99 < 21 ) GameManager::verifyCoinUnlocks(a1); m_allAchievements = AchievementManager::sharedState()->m_allAchievements; for ( i = 0; i < cocos2d::CCArray::count(m_allAchievements); ++i ) { v145 = cocos2d::CCArray::objectAtIndex(m_allAchievements, i); v214[1] = 29285; v215 = 10; v216 = 15; v214[0] = 0x696669746E656469LL; v146 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v145, v214); CString = cocos2d::CCString::getCString(v146); if ( v216 > 0xF ) { v148 = (void *)v214[0]; if ( v216 + 1 >= 0x1000 ) { v148 = *(void **)(v214[0] - 8LL); if ( (unsigned __int64)(v214[0] - (_QWORD)v148 - 8LL) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v148); } v215 = 0; v216 = 15; LOBYTE(v214[0]) = 0; v149 = AchievementManager::sharedState(); if ( AchievementManager::percentForAchievement(v149, CString) >= 100 ) { v211 = 0; v212 = 0; v213 = 0; v150 = -1; do ++v150; while ( CString[v150] ); sub_14003A930(&v211, CString, v150); GameManager::completedAchievement((__int64)a1, (__int64)&v211); } } if ( v99 < 4 ) { do { v151 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v209 = (cocos2d::CCPoint)operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(*(_QWORD *)&v209); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v151 = (GameLevelManager *)qword_1406C2EC0; } MainLevel = GameLevelManager::getMainLevel(v151, v34, 0); v153 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v210 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v210); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v153 = (GameStatsManager *)qword_1406C2EE8; } if ( GameStatsManager::hasCompletedLevel(v153, MainLevel) ) { v154 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v184 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v184); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v154 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::completedStarLevel(v154, MainLevel); } ++v34; } while ( v34 <= 22 ); goto LABEL_127; } if ( v99 < 11 ) { LABEL_127: v155 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v185 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v185); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v155 = (GameLevelManager *)qword_1406C2EC0; } v156 = GameLevelManager::getMainLevel(v155, 14, 0); v157 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v186 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v186); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v157 = (GameStatsManager *)qword_1406C2EE8; } if ( GameStatsManager::hasCompletedLevel(v157, v156) ) { v158 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v187 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v187); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v158 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::completedDemonLevel(v158, v156); } goto LABEL_136; } if ( v99 >= 12 ) { if ( v99 >= 47 ) goto LABEL_167; goto LABEL_138; } LABEL_136: GameManager::setGameVariable(a1, "0002", 1); GameManager::setGameVariable(a1, "0001", 1); LABEL_138: v159 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v188 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v188); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v159 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v159, (const char *)&word_140531E9C, 0); v160 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v189 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v189); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v160 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v160, "6", 0); v161 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v190 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v190); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v161 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v161, (const char *)&word_140531E90, 0); v162 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v191 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v191); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v162 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v162, (const char *)&word_140531E94, 0); v163 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v192 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v192); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v163 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v163, "15", 0); v164 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v193 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v193); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v164 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v164, "40", 0); v165 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v194 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v194); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v165 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v165, "42", 0); v166 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v195 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v195); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v166 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v166, "8", 0); v167 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v196 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v196); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v167 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v167, (const char *)&word_140531EA0, 0); v168 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v197 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v197); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v168 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v168, (const char *)&word_140531EA4, 0); v169 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v198 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v198); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v169 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v169, (const char *)&word_140531E88, 0); v170 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v199 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v199); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v170 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v170, "12", 0); v171 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v200 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v200); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v171 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v171, "13", 0); v172 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v201 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v201); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v172 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::incrementStat(v172, "41", 0); LABEL_167: if ( v99 >= 23 ) { if ( v99 >= 25 ) { if ( v99 >= 28 ) goto LABEL_187; goto LABEL_172; } } else { a1->m_bgVolume = 1.0; a1->m_sfxVolume = 1.0; GameManager::setGameVariable(a1, "0026", 1); GameManager::setGameVariable(a1, "0027", 1); } BoolForKey = DS_Dictionary::getBoolForKey(a2, "gameCenterEnabled"); GameManager::setGameVariable(a1, "0034", BoolForKey); LABEL_172: GameManager::setGameVariable(a1, "0038", 1); GameManager::setGameVariable(a1, "0043", 1); GameManager::setGameVariable(a1, "0046", 1); GameManager::setGameVariable(a1, "0044", 1); GameManager::setGameVariable(a1, "0036", 1); if ( a1->m_playerStreak.random == 2 ) a1->m_playerGlow = 1; v174 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v202 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v202); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v174 = (GameLevelManager *)qword_1406C2EC0; } v175 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v203 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v203); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v175 = (GameStatsManager *)qword_1406C2EE8; } v176 = GameLevelManager::getMainLevel(v174, 14, 0); GameStatsManager::checkCoinAchievement(v175, v176); v177 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v204 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v204); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v177 = (GameLevelManager *)qword_1406C2EC0; } v178 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v205 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v205); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v178 = (GameStatsManager *)qword_1406C2EE8; } v179 = GameLevelManager::getMainLevel(v177, 18, 0); GameStatsManager::checkCoinAchievement(v178, v179); v180 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v206 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v206); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v180 = (GameStatsManager *)qword_1406C2EE8; } v181 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v207 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v207); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v181 = (GameLevelManager *)qword_1406C2EC0; } v182 = GameLevelManager::getMainLevel(v181, 20, 0); GameStatsManager::checkCoinAchievement(v180, v182); a1->m_recordGameplay = 0; LABEL_187: if ( v99 < 47 ) a1->m_recordGameplay = 0; if ( v99 < 29 ) { if ( !a1->m_loaded ) { v183 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v208 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v208); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v183 = (GameStatsManager *)qword_1406C2EE8; } GameStatsManager::verifyUserCoins(v183); } goto LABEL_195; } if ( v99 < 38 ) { LABEL_195: GameManager::setGameVariable(a1, "0012", 0); GameManager::setGameVariable(a1, "0016", 0); GameManager::setUGV(a1, "28", 0); GameManager::setUGV(a1, (const char *)&word_14055A524, 0); GameManager::setGameVariable(a1, "0023", 0); GameManager::setGameVariable(a1, "0118", 1); GameManager::setGameVariable(a1, "0117", 1); GameManager::setGameVariable(a1, "0158", 1); GameManager::setGameVariable(a1, "0121", 1); GameManager::setGameVariable(a1, "0037", 1); goto LABEL_197; } if ( v99 >= 41 ) { if ( v99 >= 45 ) goto LABEL_202; goto LABEL_200; } LABEL_197: if ( a1->m_loaded ) goto LABEL_202; a1->m_practiceOpacity = 1.0; LABEL_200: if ( !a1->m_loaded ) { v211 = 0; v212 = 0; v213 = 15; LOBYTE(v211) = 0; GameManager::recountUserStats(a1, (__int64 *)&v211); } LABEL_202: GameManager::checkSteamAchievementUnlock(v144); AchievementManager::sharedState()->m_dontNotify = 0; if ( GameManager::getIntGameVariable(a1, "0049") < 6 ) GameManager::setIntGameVariable(a1, "0049", 6); if ( GameManager::getIntGameVariable(a1, "0050") < 2 ) GameManager::setIntGameVariable(a1, "0050", 2); a1->m_loaded = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source