// // GameManager::dataLoaded from 0x100372a60 to 0x100374745 (7397 bytes) // // 1 xrefs: // > @ 0x100b270d0 // // This function is hookable on this platform (idp: pc, 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:29:04 +0000 // __int64 __fastcall GameManager::dataLoaded(__int64 a1, char *a2, double a3, __m128 a4) { __int64 v4; // r15 __int64 v5; // rbx __int64 v6; // rax __int64 v7; // rcx bool v8; // zf __int64 DictForKey; // rax __int64 v10; // rdi __int64 v11; // rbx __int64 v12; // r14 __int64 v13; // rdi __int64 v14; // rdi __int64 v15; // r14 __int64 v16; // rdi __int64 v17; // rbx __int64 v18; // rdi __int64 v19; // rdi __int64 v20; // rbx __int64 v21; // rdi __int64 v22; // rdi __int64 v23; // rbx __int64 v24; // rdi _OWORD *v25; // rbx double v26; // xmm0_8 std::string *v27; // rbx int IntegerForKey; // ebx int v29; // eax __int64 v30; // rcx int v31; // ebx int v32; // eax __int64 v33; // rcx int v34; // ebx int v35; // eax __int64 v36; // rcx int v37; // ebx int v38; // eax __int64 v39; // rcx int v40; // ebx int v41; // eax __int64 v42; // rcx int v43; // ebx int v44; // eax __int64 v45; // rcx int v46; // ebx int v47; // eax __int64 v48; // rcx int v49; // ebx int v50; // eax __int64 v51; // rcx int v52; // ebx int v53; // eax __int64 v54; // rcx int v55; // ebx int v56; // eax __int64 v57; // rcx int v58; // ebx int v59; // eax __int64 v60; // rcx int v61; // ebx int v62; // eax __int64 v63; // rcx int v64; // ebx int v65; // eax __int64 v66; // rcx int v67; // ebx int v68; // eax __int64 v69; // rcx int v70; // ebx int v71; // eax __int64 v72; // rcx int v73; // ebx int v74; // eax __int64 v75; // rcx int v76; // ebx __m128 v77; // xmm0 __int64 v78; // rdi char GameVariable; // al __int64 v80; // rdi __int64 v81; // rdi __int64 v82; // rax _QWORD *v83; // rax __int64 v84; // rdi __int64 v85; // rax __int64 v86; // rdi __int64 v87; // rax __int64 v88; // rax __int64 v89; // rax __int64 v90; // rax __int64 v91; // rax const char *v92; // rsi bool BoolForKey; // al __int64 v94; // rcx double FloatForKey; // xmm0_8 double v96; // xmm0_8 __m128 v97; // xmm0 __m128 v98; // xmm1 __m128 v99; // xmm2 __int64 v100; // rbx _QWORD *v101; // rsi double v102; // xmm0_8 int i; // r12d int v104; // r13d double v105; // xmm0_8 double v106; // xmm0_8 double v107; // xmm0_8 double v108; // xmm0_8 double v109; // xmm0_8 double v110; // xmm0_8 _QWORD *v111; // rbx __int64 v112; // rax _QWORD *v113; // r14 int v114; // eax char *v115; // r15 _QWORD *v116; // rax __int64 v117; // rbx double v118; // xmm0_8 __int64 v119; // rbx double v120; // xmm0_8 __int64 v121; // rbx double v122; // xmm0_8 __int64 v123; // rbx double v124; // xmm0_8 __int64 v125; // rbx double v126; // xmm0_8 __int64 v127; // rbx double v128; // xmm0_8 std::string *v129; // rbx double v130; // xmm0_8 double v131; // xmm0_8 double v132; // xmm0_8 float v133; // xmm1_4 __int64 v134; // rdi __int64 v135; // rdi __int64 v136; // rax __int64 v137; // rdi __int64 v138; // rax __int64 v139; // rax std::string *v140; // rbx int v141; // ebx __m128 v142; // xmm0 __int64 v143; // rcx bool v144; // al const char *v145; // rsi int v146; // eax __int64 v147; // rdi unsigned int j; // r14d __int64 v149; // rax __int64 MainLevel; // rbx __int64 v151; // rax __int64 v152; // rbx __int64 v153; // rax __int64 v154; // rax __int64 v155; // rax __int64 v156; // rax __int64 v157; // rax __int64 v158; // rax __int64 v159; // rax __int64 v160; // rax __int64 v161; // rax __int64 v162; // rax __int64 v163; // rax __int64 v164; // rax __int64 v165; // rax __int64 v166; // rax __int64 v167; // rax unsigned int v168; // ecx __int64 v169; // rdi __int64 v170; // rbx __int64 v171; // rax _DWORD *v172; // rax double v173; // xmm0_8 __int64 v174; // rbx __int64 v175; // rax _DWORD *v176; // rax double v177; // xmm0_8 __int64 v178; // rbx __int64 v179; // rax _DWORD *v180; // rax __int64 v181; // rax __int64 v182; // rax char v183; // al void *v184; // rax int v185; // ebx __int64 v186; // rbx __int64 v187; // rax void *v188; // rax int v189; // ebx __int64 v190; // rbx __int64 v191; // rax _WORD v193[8]; // [rsp+0h] [rbp-130h] BYREF void *v194; // [rsp+10h] [rbp-120h] _WORD v195[8]; // [rsp+18h] [rbp-118h] BYREF void *v196; // [rsp+28h] [rbp-108h] _WORD v197[8]; // [rsp+30h] [rbp-100h] BYREF void *v198; // [rsp+40h] [rbp-F0h] _WORD v199[8]; // [rsp+48h] [rbp-E8h] BYREF void *v200; // [rsp+58h] [rbp-D8h] _WORD v201[8]; // [rsp+60h] [rbp-D0h] BYREF void *v202; // [rsp+70h] [rbp-C0h] __int16 v203[8]; // [rsp+78h] [rbp-B8h] BYREF void *v204; // [rsp+88h] [rbp-A8h] _QWORD *v205; // [rsp+90h] [rbp-A0h] _QWORD **v206; // [rsp+98h] [rbp-98h] std::string *v207; // [rsp+A0h] [rbp-90h] int v208; // [rsp+ACh] [rbp-84h] int v209; // [rsp+B0h] [rbp-80h] int v210; // [rsp+B4h] [rbp-7Ch] int v211; // [rsp+B8h] [rbp-78h] unsigned int v212; // [rsp+BCh] [rbp-74h] int v213; // [rsp+C0h] [rbp-70h] int v214; // [rsp+C4h] [rbp-6Ch] float v215; // [rsp+C8h] [rbp-68h] int v216; // [rsp+CCh] [rbp-64h] char *v217; // [rsp+D0h] [rbp-60h] __int64 v218; // [rsp+D8h] [rbp-58h] std::string __str; // [rsp+E0h] [rbp-50h] BYREF v217 = a2; v4 = a1; v5 = ObjectDecoder::sharedDecoder(); v6 = GJObjectDecoder::sharedDecoder(); v7 = v6 + 320; if ( !v6 ) v7 = 0; *(_QWORD *)(v5 + 320) = v7; v8 = *(_QWORD *)(a1 + 424) == 0; v218 = a1; if ( v8 ) { DictForKey = DS_Dictionary::getDictForKey(v217, "valueKeeper", 0); v10 = *(_QWORD *)(a1 + 424); if ( v10 != DictForKey ) { v11 = DictForKey; if ( DictForKey ) { cocos2d::CCObject::retain(DictForKey); v10 = *(_QWORD *)(v218 + 424); } if ( v10 ) cocos2d::CCObject::release(v10); v4 = v218; *(_QWORD *)(v218 + 424) = v11; } } v12 = *(_QWORD *)(v4 + 432); if ( !v12 ) { v12 = DS_Dictionary::getDictForKey(v217, "localKeeper", 0); if ( v12 ) { v13 = *(_QWORD *)(v218 + 432); if ( v13 != v12 ) { LABEL_13: if ( v12 ) { cocos2d::CCObject::retain(v12); v13 = *(_QWORD *)(v218 + 432); } if ( v13 ) cocos2d::CCObject::release(v13); v4 = v218; *(_QWORD *)(v218 + 432) = v12; goto LABEL_20; } } else { v12 = (__int64)cocos2d::CCDictionary::create(); v13 = *(_QWORD *)(v218 + 432); if ( v13 != v12 ) goto LABEL_13; } v4 = v218; } LABEL_20: v14 = *(_QWORD *)(v4 + 424); if ( v14 != 0 && v12 != 0 ) { __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26; strcpy(__str.__r_.__value_.__s.__data_, "autoBackupDir"); v15 = cocos2d::CCDictionary::objectForKey(v14, (char *)&__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( v15 ) { v16 = *(_QWORD *)(v218 + 432); __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26; strcpy(__str.__r_.__value_.__s.__data_, "autoBackupDir"); v17 = cocos2d::CCDictionary::objectForKey(v16, (char *)&__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( !v17 ) { v18 = *(_QWORD *)(v218 + 432); __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26; strcpy(__str.__r_.__value_.__s.__data_, "autoBackupDir"); cocos2d::CCDictionary::setObject(v18, v15, (char *)&__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); } v19 = *(_QWORD *)(v218 + 424); __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26; strcpy(__str.__r_.__value_.__s.__data_, "autoBackupDir"); cocos2d::CCDictionary::removeObjectForKey(v19, (char *)&__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); } } v20 = DS_Dictionary::getDictForKey(v217, "unlockValueKeeper", 0); v21 = *(_QWORD *)(v218 + 448); if ( v21 ) { GameToolbox::mergeDictsSaveLargestInt(v21, v20); } else if ( v20 ) { cocos2d::CCObject::retain(v20); v22 = *(_QWORD *)(v218 + 448); if ( v22 ) cocos2d::CCObject::release(v22); *(_QWORD *)(v218 + 448) = v20; } if ( !*(_QWORD *)(v218 + 456) ) { v23 = DS_Dictionary::getDictForKey(v217, "customObjectDict", 0); v24 = *(_QWORD *)(v218 + 456); if ( v24 != v23 ) { if ( v23 ) { cocos2d::CCObject::retain(v23); v24 = *(_QWORD *)(v218 + 456); } if ( v24 ) cocos2d::CCObject::release(v24); *(_QWORD *)(v218 + 456) = v23; } } DS_Dictionary::getStringForKey(&__str, (__int64)v217, "playerUDID", a3); v25 = (_OWORD *)(v218 + 608); if ( (*(_BYTE *)(v218 + 608) & 1) != 0 ) operator delete(*(void **)(v218 + 624)); *(_QWORD *)(v218 + 624) = __str.__r_.__value_.__l.__data_; v26 = *(double *)__str.__r_.__value_.__r.__words; *v25 = *(_OWORD *)&__str.__r_.__value_.__l.0; DS_Dictionary::getStringForKey(&__str, (__int64)v217, "playerName", v26); v27 = (std::string *)(v218 + 632); if ( (*(_BYTE *)(v218 + 632) & 1) != 0 ) operator delete(*(void **)(v218 + 648)); *(_QWORD *)(v218 + 648) = __str.__r_.__value_.__l.__data_; v207 = v27; *(_OWORD *)&v27->__r_.__value_.__l.0 = *(_OWORD *)&__str.__r_.__value_.__l.0; IntegerForKey = DS_Dictionary::getIntegerForKey((__int64)v217, "playerUserID"); *(_DWORD *)(v218 + 668) = IntegerForKey; v29 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v30 = v218; *(_DWORD *)(v218 + 664) = v29; *(_DWORD *)(v30 + 660) = v29 + IntegerForKey; v31 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerFrame"); *(_DWORD *)(v218 + 724) = v31; v32 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v33 = v218; *(_DWORD *)(v218 + 720) = v32; *(_DWORD *)(v33 + 716) = v32 + v31; v34 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerColor"); *(_DWORD *)(v218 + 820) = v34; v35 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v36 = v218; *(_DWORD *)(v218 + 816) = v35; *(_DWORD *)(v36 + 812) = v35 + v34; v37 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerColor2"); *(_DWORD *)(v218 + 832) = v37; v38 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v39 = v218; *(_DWORD *)(v218 + 828) = v38; *(_DWORD *)(v39 + 824) = v38 + v37; v40 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerColor3"); *(_DWORD *)(v218 + 844) = v40; v41 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v42 = v218; *(_DWORD *)(v218 + 840) = v41; *(_DWORD *)(v42 + 836) = v41 + v40; v43 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerShip") >= 2 ) v43 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerShip"); *(_DWORD *)(v218 + 736) = v43; v44 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v45 = v218; *(_DWORD *)(v218 + 732) = v44; *(_DWORD *)(v45 + 728) = v44 + v43; v46 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerBall") >= 2 ) v46 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerBall"); *(_DWORD *)(v218 + 748) = v46; v47 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v48 = v218; *(_DWORD *)(v218 + 744) = v47; *(_DWORD *)(v48 + 740) = v47 + v46; v49 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerBird") >= 2 ) v49 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerBird"); *(_DWORD *)(v218 + 760) = v49; v50 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v51 = v218; *(_DWORD *)(v218 + 756) = v50; *(_DWORD *)(v51 + 752) = v50 + v49; v52 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerDart") >= 2 ) v52 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerDart"); *(_DWORD *)(v218 + 772) = v52; v53 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v54 = v218; *(_DWORD *)(v218 + 768) = v53; *(_DWORD *)(v54 + 764) = v53 + v52; v55 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerRobot") >= 2 ) v55 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerRobot"); *(_DWORD *)(v218 + 784) = v55; v56 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v57 = v218; *(_DWORD *)(v218 + 780) = v56; *(_DWORD *)(v57 + 776) = v56 + v55; v58 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerSpider") >= 2 ) v58 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerSpider"); *(_DWORD *)(v218 + 796) = v58; v59 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v60 = v218; *(_DWORD *)(v218 + 792) = v59; *(_DWORD *)(v60 + 788) = v59 + v58; v61 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerJetpack") >= 2 ) v61 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerJetpack"); *(_DWORD *)(v218 + 892) = v61; v62 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v63 = v218; *(_DWORD *)(v218 + 888) = v62; *(_DWORD *)(v63 + 884) = v62 + v61; v64 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerSwing") >= 2 ) v64 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerSwing"); *(_DWORD *)(v218 + 808) = v64; v65 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v66 = v218; *(_DWORD *)(v218 + 804) = v65; *(_DWORD *)(v66 + 800) = v65 + v64; v67 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerStreak") >= 2 ) v67 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerStreak"); *(_DWORD *)(v218 + 856) = v67; v68 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v69 = v218; *(_DWORD *)(v218 + 852) = v68; *(_DWORD *)(v69 + 848) = v68 + v67; v70 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerShipStreak") >= 2 ) v70 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerShipStreak"); *(_DWORD *)(v218 + 868) = v70; v71 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v72 = v218; *(_DWORD *)(v218 + 864) = v71; *(_DWORD *)(v72 + 860) = v71 + v70; v73 = 1; if ( (int)DS_Dictionary::getIntegerForKey((__int64)v217, "playerDeathEffect") >= 2 ) v73 = DS_Dictionary::getIntegerForKey((__int64)v217, "playerDeathEffect"); *(_DWORD *)(v218 + 880) = v73; v74 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0); v75 = v218; *(_DWORD *)(v218 + 876) = v74; *(_DWORD *)(v75 + 872) = v74 + v73; *(_BYTE *)(v218 + 912) = DS_Dictionary::getBoolForKey((__int64)v217, "playerGlow"); *(_DWORD *)(v218 + 916) = DS_Dictionary::getIntegerForKey((__int64)v217, "playerIconType"); v76 = DS_Dictionary::getIntegerForKey((__int64)v217, "secretNumber"); v77 = 0; v77.f32[0] = (float)((float)rand() * 4.6566129e-10) * 1000.0; v78 = v218; *(_DWORD *)(v218 + 908) = (int)v77.f32[0]; *(_DWORD *)(v78 + 904) = (int)v77.f32[0] + v76; GameVariable = GameManager::getGameVariable(v78, "0028"); v80 = v218; *(_BYTE *)(v218 + 1100) = GameVariable; if ( (unsigned __int8)GameManager::getGameVariable(v80, "0220") || (v81 = v218, (unsigned __int8)GameManager::getGameVariable(v218, "0221")) ) { GameManager::setGameVariable(v218, "0243"); GameManager::setGameVariable(v218, "0220"); v81 = v218; GameManager::setGameVariable(v218, "0221"); } v82 = AchievementManager::sharedState(v81, "0221"); AchievementManager::dataLoaded(v82, v217); v83 = (_QWORD *)GameStatsManager::sharedState(); GameStatsManager::dataLoaded(v83, (__int64)v217, v77); v84 = GameLevelManager::sharedState(*(double *)v77.i64); GameLevelManager::dataLoaded(v84, v217); v85 = MusicDownloadManager::sharedState(v84); MusicDownloadManager::dataLoaded(v85, v217); v86 = GJKeybindManager::sharedState(); GJKeybindManager::dataLoaded(v86, v217); v87 = EditorSFXManager::sharedState(v86); EditorSFXManager::dataLoaded(v87, v217); v216 = DS_Dictionary::getIntegerForKey((__int64)v217, "binaryVersion"); *(_BYTE *)(AchievementManager::sharedState(v217, "binaryVersion") + 360) = 1; v88 = GameStatsManager::sharedState(); GameStatsManager::recountSpecialStats(v88, v77, a4); if ( !*(_BYTE *)(v218 + 504) ) { v89 = GameStatsManager::sharedState(); GameStatsManager::tryFixPathBug(v89, v77); v90 = GameStatsManager::sharedState(); GameStatsManager::verifyPathAchievements(v90, v77); } v91 = GameStatsManager::sharedState(); if ( !(unsigned __int8)GameStatsManager::isItemUnlocked(v91, 12, 0x10u) ) *(_QWORD *)(v218 + 1140) = 0; *(_BYTE *)(v218 + 921) = DS_Dictionary::getBoolForKey((__int64)v217, "showSongMarkers"); *(_BYTE *)(v218 + 922) = DS_Dictionary::getBoolForKey((__int64)v217, "showBPMMarkers"); *(_BYTE *)(v218 + 924) = DS_Dictionary::getBoolForKey((__int64)v217, "showProgressBar"); *(_BYTE *)(v218 + 928) = DS_Dictionary::getBoolForKey((__int64)v217, "clickedEditor"); *(_BYTE *)(v218 + 927) = DS_Dictionary::getBoolForKey((__int64)v217, "clickedGarage"); *(_BYTE *)(v218 + 929) = DS_Dictionary::getBoolForKey((__int64)v217, "clickedName"); *(_BYTE *)(v218 + 930) = DS_Dictionary::getBoolForKey((__int64)v217, "clickedPractice"); *(_BYTE *)(v218 + 931) = DS_Dictionary::getBoolForKey((__int64)v217, "showedEditorGuide"); *(_BYTE *)(v218 + 932) = DS_Dictionary::getBoolForKey((__int64)v217, "showedRateDiffDialog"); *(_BYTE *)(v218 + 933) = DS_Dictionary::getBoolForKey((__int64)v217, "showedRateStarDialog"); *(_BYTE *)(v218 + 934) = DS_Dictionary::getBoolForKey((__int64)v217, "showedLowDetailDialog"); v92 = "hasRatedGame"; BoolForKey = DS_Dictionary::getBoolForKey((__int64)v217, "hasRatedGame"); v94 = v218; *(_BYTE *)(v218 + 1024) = BoolForKey; if ( !*(_BYTE *)(v94 + 504) ) { *(_BYTE *)(v218 + 925) = DS_Dictionary::getBoolForKey((__int64)v217, "performanceMode"); *(_BYTE *)(v218 + 923) = DS_Dictionary::getBoolForKey((__int64)v217, "recordGameplay"); *(_DWORD *)(v218 + 1020) = DS_Dictionary::getIntegerForKey((__int64)v217, "bootups") + 1; FloatForKey = DS_Dictionary::getFloatForKey((__int64)v217, "bgVolume"); *(_DWORD *)(v218 + 672) = LODWORD(FloatForKey); v96 = DS_Dictionary::getFloatForKey((__int64)v217, "sfxVolume"); *(_DWORD *)(v218 + 676) = LODWORD(v96); v97 = 0; *(float *)(v218 + 680) = (float)(int)DS_Dictionary::getIntegerForKey((__int64)v217, "timeOffset"); *(_DWORD *)(v218 + 1056) = DS_Dictionary::getIntegerForKey((__int64)v217, "resolution"); *(_DWORD *)(v218 + 1060) = DS_Dictionary::getIntegerForKey((__int64)v217, "texQuality"); *(double *)v97.i64 = DS_Dictionary::getFloatForKey((__int64)v217, "customFPSTarget"); *(_DWORD *)(v218 + 1104) = v97.i32[0]; *(double *)v97.i64 = DS_Dictionary::getFloatForKey((__int64)v217, "scrollSensitivity"); v98.i32[0] = 0; v99 = _mm_cmpgt_ss(v97, v98); v100 = v218; *(_DWORD *)(v218 + 1108) = _mm_andnot_ps(v99, (__m128)0x3F800000u).u32[0] | v99.i32[0] & v97.i32[0]; v101 = *(_QWORD **)(v100 + 1120); v206 = (_QWORD **)(v100 + 1112); sub_10001ADF0(v100 + 1112, v101); v205 = (_QWORD *)(v100 + 1120); *(_QWORD *)(v100 + 1112) = v100 + 1120; v102 = 0.0; *(_OWORD *)(v100 + 1120) = 0; v214 = DS_Dictionary::getIntegerForKey((__int64)v217, "winStateCount"); if ( v214 > 0 ) { for ( i = 0; i != v214; ++i ) { snprintf((char *)&__str, 0x20u, "ws_%d_k", i); v104 = DS_Dictionary::getIntegerForKey((__int64)v217, (const char *)&__str); if ( v104 ) { snprintf((char *)&__str, 0x20u, "ws_%d_cx", i); v105 = DS_Dictionary::getFloatForKey((__int64)v217, (const char *)&__str); v215 = *(float *)&v105; snprintf((char *)&__str, 0x20u, "ws_%d_cy", i); v106 = DS_Dictionary::getFloatForKey((__int64)v217, (const char *)&__str); v208 = LODWORD(v106); snprintf((char *)&__str, 0x20u, "ws_%d_w", i); v107 = DS_Dictionary::getFloatForKey((__int64)v217, (const char *)&__str); v209 = LODWORD(v107); snprintf((char *)&__str, 0x20u, "ws_%d_h", i); v108 = DS_Dictionary::getFloatForKey((__int64)v217, (const char *)&__str); v210 = LODWORD(v108); snprintf((char *)&__str, 0x20u, "ws_%d_s", i); v109 = DS_Dictionary::getFloatForKey((__int64)v217, (const char *)&__str); v211 = LODWORD(v109); snprintf((char *)&__str, 0x20u, "ws_%d_so", i); v110 = DS_Dictionary::getFloatForKey((__int64)v217, (const char *)&__str); v212 = LODWORD(v110); snprintf((char *)&__str, 0x20u, "ws_%d_v", i); v213 = DS_Dictionary::getIntegerForKey((__int64)v217, (const char *)&__str); v111 = v205; while ( 1 ) { v112 = *v111; v113 = v111; if ( !*v111 ) break; while ( 1 ) { v111 = (_QWORD *)v112; v114 = *(_DWORD *)(v112 + 28); if ( v104 < v114 ) break; if ( v104 <= v114 ) { v115 = (char *)v111; goto LABEL_81; } v112 = v111[1]; if ( !v112 ) { v113 = v111 + 1; goto LABEL_90; } } } LABEL_90: v115 = (char *)operator new(0x40u); *((_DWORD *)v115 + 7) = v104; *((_OWORD *)v115 + 3) = 0; *((_OWORD *)v115 + 2) = 0; *((_DWORD *)v115 + 12) = 1065353216; *(_QWORD *)(v115 + 52) = 0; v115[60] = 0; *(_OWORD *)v115 = 0; *((_QWORD *)v115 + 2) = v111; *v113 = v115; v116 = (_QWORD *)**v206; if ( v116 ) *v206 = v116; sub_10001B680(*(__int64 **)(v218 + 1120), (__int64 *)v115); ++*(_QWORD *)(v218 + 1128); LABEL_81: *((float *)v115 + 8) = v215; *((_DWORD *)v115 + 9) = v208; *((_DWORD *)v115 + 10) = v209; *((_DWORD *)v115 + 11) = v210; *((_DWORD *)v115 + 12) = v211; *(_QWORD *)&v102 = v212; *((_DWORD *)v115 + 13) = v212; *((_DWORD *)v115 + 14) = v213; v115[60] = 0; } } } *(_DWORD *)(v218 + 1140) = DS_Dictionary::getIntegerForKey((__int64)v217, "customMenuSongID"); *(_DWORD *)(v218 + 1144) = DS_Dictionary::getIntegerForKey((__int64)v217, "customPracticeSongID"); *(_DWORD *)(v218 + 1148) = DS_Dictionary::getIntegerForKey((__int64)v217, "idNameSortMode"); *(_DWORD *)(v218 + 1152) = DS_Dictionary::getIntegerForKey((__int64)v217, "newsLastReadID"); DS_Dictionary::getStringForKey(v193, (__int64)v217, "dpad01", v102); GameManager::loadDpadFromString((__int64)v193, v218 + 1316, (unsigned __int8 *)v193); if ( (v193[0] & 1) != 0 ) operator delete(v194); DS_Dictionary::getStringForKey(v195, (__int64)v217, "dpad02", v102); GameManager::loadDpadFromString((__int64)v195, v218 + 1356, (unsigned __int8 *)v195); if ( (v195[0] & 1) != 0 ) operator delete(v196); DS_Dictionary::getStringForKey(v197, (__int64)v217, "dpad03", v102); GameManager::loadDpadFromString((__int64)v197, v218 + 1396, (unsigned __int8 *)v197); if ( (v197[0] & 1) != 0 ) operator delete(v198); DS_Dictionary::getStringForKey(v199, (__int64)v217, "dpad04", v102); GameManager::loadDpadFromString((__int64)v199, v218 + 1436, (unsigned __int8 *)v199); if ( (v199[0] & 1) != 0 ) operator delete(v200); DS_Dictionary::getStringForKey(v201, (__int64)v217, "dpad05", v102); GameManager::loadDpadFromString((__int64)v201, v218 + 1476, (unsigned __int8 *)v201); if ( (v201[0] & 1) != 0 ) operator delete(v202); DS_Dictionary::getStringForKey(&__str, (__int64)v217, "dpadLayout01", v102); v117 = v218 + 1520; if ( (*(_BYTE *)(v218 + 1520) & 1) != 0 ) operator delete(*(void **)(v218 + 1536)); *(_QWORD *)(v117 + 16) = __str.__r_.__value_.__l.__data_; v118 = *(double *)__str.__r_.__value_.__r.__words; *(_OWORD *)v117 = *(_OWORD *)&__str.__r_.__value_.__l.0; DS_Dictionary::getStringForKey(&__str, (__int64)v217, "dpadLayout02", v118); v119 = v218 + 1544; if ( (*(_BYTE *)(v218 + 1544) & 1) != 0 ) operator delete(*(void **)(v218 + 1560)); *(_QWORD *)(v119 + 16) = __str.__r_.__value_.__l.__data_; v120 = *(double *)__str.__r_.__value_.__r.__words; *(_OWORD *)v119 = *(_OWORD *)&__str.__r_.__value_.__l.0; DS_Dictionary::getStringForKey(&__str, (__int64)v217, "dpadLayout03", v120); v121 = v218 + 1568; if ( (*(_BYTE *)(v218 + 1568) & 1) != 0 ) operator delete(*(void **)(v218 + 1584)); *(_QWORD *)(v121 + 16) = __str.__r_.__value_.__l.__data_; v122 = *(double *)__str.__r_.__value_.__r.__words; *(_OWORD *)v121 = *(_OWORD *)&__str.__r_.__value_.__l.0; DS_Dictionary::getStringForKey(&__str, (__int64)v217, "dpadLayoutDual01", v122); v123 = v218 + 1592; if ( (*(_BYTE *)(v218 + 1592) & 1) != 0 ) operator delete(*(void **)(v218 + 1608)); *(_QWORD *)(v123 + 16) = __str.__r_.__value_.__l.__data_; v124 = *(double *)__str.__r_.__value_.__r.__words; *(_OWORD *)v123 = *(_OWORD *)&__str.__r_.__value_.__l.0; DS_Dictionary::getStringForKey(&__str, (__int64)v217, "dpadLayoutDual02", v124); v125 = v218 + 1616; if ( (*(_BYTE *)(v218 + 1616) & 1) != 0 ) operator delete(*(void **)(v218 + 1632)); *(_QWORD *)(v125 + 16) = __str.__r_.__value_.__l.__data_; v126 = *(double *)__str.__r_.__value_.__r.__words; *(_OWORD *)v125 = *(_OWORD *)&__str.__r_.__value_.__l.0; DS_Dictionary::getStringForKey(&__str, (__int64)v217, "dpadLayoutDual03", v126); v127 = v218 + 1640; if ( (*(_BYTE *)(v218 + 1640) & 1) != 0 ) operator delete(*(void **)(v218 + 1656)); *(_QWORD *)(v127 + 16) = __str.__r_.__value_.__l.__data_; v128 = *(double *)__str.__r_.__value_.__r.__words; *(_OWORD *)v127 = *(_OWORD *)&__str.__r_.__value_.__l.0; DS_Dictionary::getStringForKey(&__str, (__int64)v217, "recentEmotes", v128); v129 = (std::string *)(v218 + 1664); if ( (*(_BYTE *)(v218 + 1664) & 1) != 0 ) operator delete(*(void **)(v218 + 1680)); *v129 = __str; v130 = DS_Dictionary::getFloatForKey((__int64)v217, "practiceOpacity"); *(_DWORD *)(v218 + 1712) = LODWORD(v130); v131 = DS_Dictionary::getFloatForKey((__int64)v217, "practicePosX"); v215 = *(float *)&v131; v132 = DS_Dictionary::getFloatForKey((__int64)v217, "practicePosY"); v133 = *(float *)&v132; v77.i64[0] = LODWORD(v215); sub_100278250((float *)&__str, v215, v133); v134 = v218 + 1704; sub_100278300((_QWORD *)(v218 + 1704), &__str); v135 = GJAccountManager::sharedState(v134, (__int64)&__str); GJAccountManager::dataLoaded(v135, (__int64)v217); v136 = GJMultiplayerManager::sharedState(); v92 = v217; GJMultiplayerManager::dataLoaded(v136, v217); } if ( v216 <= 39 ) *(_DWORD *)(v218 + 680) = 0; v137 = v218; GameManager::prepareDPadSettings(v218); v138 = GJAccountManager::sharedState(v137, (__int64)v92); if ( *(_DWORD *)(v138 + 352) > *(_DWORD *)(v138 + 356) ) { *(_DWORD *)(GameLevelManager::sharedState(*(double *)v77.i64) + 1208) = 4; v139 = GJAccountManager::sharedState(v137, (__int64)v92); if ( (*(_BYTE *)(v139 + 328) & 1) != 0 ) sub_10001AD30(&__str, *(const void **)(v139 + 344), *(_QWORD *)(v139 + 336)); else __str = *(std::string *)(v139 + 328); v140 = v207; if ( (*(_BYTE *)&v207->__r_.__value_.__s.0 & 1) != 0 ) operator delete(*(void **)(v218 + 648)); *v140 = __str; } v141 = DS_Dictionary::getIntegerForKey((__int64)v217, "hasRP"); *(_DWORD *)(v218 + 1040) = v141; v142 = 0; v142.f32[0] = (float)((float)rand() * 4.6566129e-10) * 1000.0; v143 = v218; *(_DWORD *)(v218 + 1036) = (int)v142.f32[0]; *(_DWORD *)(v143 + 1032) = (int)v142.f32[0] + v141; v144 = DS_Dictionary::getBoolForKey((__int64)v217, "hasDRP"); *(_BYTE *)(v218 + 1044) = v144; v145 = "specialPermKey"; v146 = DS_Dictionary::getIntegerForKey((__int64)v217, "specialPermKey"); v147 = v218; *(_DWORD *)(v218 + 1048) = v146; if ( !(*(_BYTE *)(v147 + 504) | (v216 >= 21)) ) { GameManager::verifyCoinUnlocks(v147, v142); v147 = v218; } GameManager::verifyAchievementUnlocks(v147, (__int64)"specialPermKey"); if ( v216 <= 3 ) { for ( j = 1; j != 23; ++j ) { v149 = GameLevelManager::sharedState(*(double *)v142.i64); MainLevel = GameLevelManager::getMainLevel(v149, j, 0); v147 = GameStatsManager::sharedState(); v145 = (const char *)MainLevel; if ( GameStatsManager::hasCompletedLevel(v147, MainLevel) ) { v147 = GameStatsManager::sharedState(); v145 = (const char *)MainLevel; GameStatsManager::completedStarLevel(v147, MainLevel, v142); } } } if ( v216 > 10 ) { if ( v216 != 11 ) { if ( (unsigned int)v216 > 0x32 ) goto LABEL_156; goto LABEL_139; } } else { v151 = GameLevelManager::sharedState(*(double *)v142.i64); v152 = GameLevelManager::getMainLevel(v151, 14, 0); v153 = GameStatsManager::sharedState(); if ( GameStatsManager::hasCompletedLevel(v153, v152) ) { v154 = GameStatsManager::sharedState(); GameStatsManager::completedDemonLevel(v154, v152, v142); } } GameManager::setGameVariable(v218, (std::string::value_type *)"0002"); GameManager::setGameVariable(v218, "0001"); LABEL_139: v155 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v155, "3", 0, v142); v156 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v156, "6", 0, v142); v157 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v157, "5", 0, v142); v158 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v158, "4", 0, v142); v159 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v159, "15", 0, v142); v160 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v160, "40", 0, v142); v161 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v161, "42", 0, v142); v162 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v162, "8", 0, v142); v163 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v163, "2", 0, v142); v164 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v164, "1", 0, v142); v165 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v165, "7", 0, v142); v166 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v166, "12", 0, v142); v167 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v167, "13", 0, v142); v145 = "41"; v147 = GameStatsManager::sharedState(); GameStatsManager::incrementStat(v147, "41", 0, v142); v168 = v216; if ( v216 <= 22 ) { v142.i64[0] = 0x3F8000003F800000LL; v169 = v218; *(_QWORD *)(v218 + 672) = 0x3F8000003F800000LL; GameManager::setGameVariable(v169, "0026"); GameManager::setGameVariable(v218, "0027"); LABEL_142: DS_Dictionary::getBoolForKey((__int64)v217, "gameCenterEnabled"); GameManager::setGameVariable(v218, "0034"); LABEL_143: GameManager::setGameVariable(v218, "0038"); GameManager::setGameVariable(v218, (std::string::value_type *)"0043"); GameManager::setGameVariable(v218, (std::string::value_type *)"0046"); GameManager::setGameVariable(v218, (std::string::value_type *)"0044"); GameManager::setGameVariable(v218, "0036"); if ( *(_DWORD *)(v218 + 848) == 2 ) *(_BYTE *)(v218 + 912) = 1; v170 = GameStatsManager::sharedState(); v171 = GameLevelManager::sharedState(*(double *)v142.i64); v172 = (_DWORD *)GameLevelManager::getMainLevel(v171, 14, 0); *(_QWORD *)&v173 = GameStatsManager::checkCoinAchievement(v170, v172).u64[0]; v174 = GameStatsManager::sharedState(); v175 = GameLevelManager::sharedState(v173); v176 = (_DWORD *)GameLevelManager::getMainLevel(v175, 18, 0); *(_QWORD *)&v177 = GameStatsManager::checkCoinAchievement(v174, v176).u64[0]; v178 = GameStatsManager::sharedState(); v179 = GameLevelManager::sharedState(v177); v180 = (_DWORD *)GameLevelManager::getMainLevel(v179, 20, 0); v142 = GameStatsManager::checkCoinAchievement(v178, v180); v181 = v218; *(_BYTE *)(v218 + 923) = 0; goto LABEL_146; } if ( (unsigned int)v216 <= 0x18 ) goto LABEL_142; if ( (unsigned int)v216 <= 0x1B ) goto LABEL_143; v181 = v218; *(_BYTE *)(v218 + 923) = 0; if ( v168 == 28 ) { LABEL_146: if ( !*(_BYTE *)(v181 + 504) ) { v182 = GameStatsManager::sharedState(); GameStatsManager::verifyUserCoins(v182, v142); } goto LABEL_148; } if ( v168 <= 0x25 ) { LABEL_148: GameManager::setGameVariable(v218, "0012"); GameManager::setGameVariable(v218, "0016"); GameManager::setUGV(v218, "28"); GameManager::setUGV(v218, "29"); GameManager::setGameVariable(v218, (std::string::value_type *)"0023"); GameManager::setGameVariable(v218, "0118"); GameManager::setGameVariable(v218, "0117"); GameManager::setGameVariable(v218, "0158"); GameManager::setGameVariable(v218, "0121"); GameManager::setGameVariable(v218, "0037"); goto LABEL_149; } if ( v168 <= 0x28 ) { LABEL_149: v183 = *(_BYTE *)(v218 + 504); if ( !v183 ) *(_DWORD *)(v218 + 1712) = 1065353216; if ( (v183 & 1) != 0 ) goto LABEL_154; goto LABEL_152; } if ( v168 <= 0x2C ) { if ( (*(_BYTE *)(v218 + 504) & 1) == 0 ) { LABEL_152: v203[0] = 0; GameManager::recountUserStats(v218, (unsigned __int8 *)v203); if ( (v203[0] & 1) != 0 ) operator delete(v204); } LABEL_154: GameManager::setGameVariable(v218, "0184"); LABEL_155: GameManager::setGameVariable(v218, "0200"); v145 = "0202"; v147 = v218; GameManager::setGameVariable(v218, "0202"); goto LABEL_156; } if ( v168 <= 0x30 ) goto LABEL_154; if ( v168 == 49 ) goto LABEL_155; LABEL_156: GameManager::checkSteamAchievementUnlock(v147, (__int64)v145); *(_BYTE *)(AchievementManager::sharedState(v147, v145) + 360) = 0; __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)6; strcpy(__str.__r_.__value_.__s.__data_, "gv_"); std::string::append(&__str, "0049"); v184 = cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v218 + 424), (__int64)&__str); v185 = cocos2d::CCString::intValue(v184); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( v185 <= 5 ) { __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)6; strcpy(__str.__r_.__value_.__s.__data_, "gv_"); std::string::append(&__str, "0049"); v186 = *(_QWORD *)(v218 + 424); v187 = sub_10088E820("%i", v193[0]); cocos2d::CCDictionary::setObject(v186, v187, (char *)&__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); } __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)6; strcpy(__str.__r_.__value_.__s.__data_, "gv_"); std::string::append(&__str, "0050"); v188 = cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v218 + 424), (__int64)&__str); v189 = cocos2d::CCString::intValue(v188); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( v189 <= 1 ) { __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)6; strcpy(__str.__r_.__value_.__s.__data_, "gv_"); std::string::append(&__str, "0050"); v190 = *(_QWORD *)(v218 + 424); v191 = sub_10088E820("%i", v193[0]); cocos2d::CCDictionary::setObject(v190, v191, (char *)&__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); } *(_BYTE *)(v218 + 504) = 1; return __stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source