// // MusicDownloadManager::parseMusicLibrary from 0x976a68 to 0x978c48 (8672 bytes) // // 4 xrefs: // > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x978d28 // > MusicDownloadManager::tryLoadLibraries @ 0x978de8 // > sub_B85DD0 @ 0xb86ff0 // > @ 0xa0c30 // // 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:57:45 +0000 // __int64 __fastcall MusicDownloadManager::parseMusicLibrary(MusicDownloadManager *this) { cocos2d::CCFileUtils *v1; // x0 __int64 v2; // x0 _BYTE *v3; // x1 cocos2d::ZipUtils *v4; // x0 int v5; // w4 char *v6; // x19 char *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCObject *v9; // x0 cocos2d::CCObject *v10; // x0 cocos2d::CCDictionary *v11; // x0 cocos2d::CCObject *v12; // x0 __int64 v13; // x19 unsigned __int8 *v14; // x19 const char *v15; // x0 int v16; // w0 char *v17; // x3 __int64 v18; // x25 unsigned __int64 v19; // x24 __int64 v20; // x22 char *i; // x0 __int64 v22; // x23 const char *v23; // x0 char v24; // w0 char *v25; // x22 __int64 v26; // x23 size_t v27; // x0 __int64 *v28; // x27 const char *v29; // x1 size_t v30; // x0 const char *v31; // x1 size_t v32; // x0 unsigned __int64 v33; // x1 _QWORD *v34; // x26 void *v35; // x3 size_t v36; // x3 __int64 *v37; // x0 size_t v38; // x3 _QWORD *v39; // x0 _QWORD *v40; // x27 void *v41; // x3 size_t v42; // x3 __int64 v43; // x19 char *j; // x0 __int64 v45; // x21 unsigned __int64 v46; // x19 const char *v47; // x0 char v48; // w0 char *v49; // x20 __int64 v50; // x21 size_t v51; // x0 __int64 v52; // x22 const char *v53; // x0 int v54; // w21 const char *v55; // x0 float v56; // s8 const char *v57; // x0 float v58; // s8 char v59; // w0 char *v60; // x20 __int64 v61; // x22 size_t v62; // x0 __int64 v63; // x20 const char *v64; // x0 const char *v65; // x1 size_t v66; // x0 const char *v67; // x1 size_t v68; // x0 const char *v69; // x0 __int64 v70; // x20 const char *v71; // x0 const char *v72; // x0 __int64 *v73; // x0 const void *v74; // x1 size_t v75; // x2 __int64 v76; // x21 unsigned __int64 v77; // x1 unsigned __int8 *v78; // x1 __int64 v79; // x21 unsigned __int64 v80; // x22 __int64 v81; // x19 char *v82; // x0 __int64 v83; // x25 const char *v84; // x0 char *v85; // x19 size_t v86; // x0 _BYTE *v87; // x19 __int64 *v88; // x0 char *v89; // x1 size_t v90; // x2 cocos2d::CCObject *v91; // x0 cocos2d::CCObject *v92; // x0 int v93; // w0 size_t v94; // x1 char *v95; // x19 char *v96; // x0 __int64 v97; // x19 char *v98; // x0 __int64 v99; // x19 char *v100; // x0 __int64 v101; // x19 char *v102; // x0 char *v103; // x19 char *v104; // x0 _BYTE *v106; // x26 __int64 v107; // x19 __int64 v108; // x21 unsigned __int64 k; // x24 char *v110; // x0 __int64 v111; // x2 char *v112; // x20 char *v113; // x0 const char *v114; // x0 unsigned int v115; // w19 const char *v116; // x0 int v117; // w1 const char *v118; // x0 int v119; // w0 __int64 v120; // x1 _BYTE *v121; // x26 _BYTE *v122; // x3 __int64 v123; // x19 unsigned __int64 v124; // x20 char *v125; // x0 __int64 v126; // x2 char *m; // x0 char *v128; // x19 char *v129; // x0 char *v130; // x19 char *v131; // x0 cocos2d::CCArray *v132; // x26 const char *v133; // x0 int v134; // w0 char *v135; // x1 size_t v136; // x5 const char *v137; // x0 int v138; // w0 cocos2d::CCObject *v139; // x0 char *v140; // x26 char *v141; // x0 void *v142; // x0 char *v143; // x19 char *v144; // x0 char *v145; // x2 __int64 v146; // x19 unsigned __int64 n; // x20 SongInfoObject *MusicObject; // x0 char *v149; // x24 __int64 v150; // x21 unsigned __int64 v151; // x22 __int64 v152; // x5 __int64 MusicArtistForID; // x0 __int64 *v154; // x23 __int64 v155; // x19 char *v156; // x20 __int64 v157; // x1 void **v158; // x19 void *v159; // x20 void **v160; // x19 char v161; // [xsp+B4h] [xbp+A4h] int v162; // [xsp+B8h] [xbp+A8h] int v163; // [xsp+BCh] [xbp+ACh] _BOOL4 v164; // [xsp+C0h] [xbp+B0h] unsigned int v165; // [xsp+C4h] [xbp+B4h] int v166; // [xsp+C8h] [xbp+B8h] int v167; // [xsp+D0h] [xbp+C0h] unsigned __int64 v168; // [xsp+E0h] [xbp+D0h] cocos2d::CCObject *v169; // [xsp+F0h] [xbp+E0h] cocos2d::CCObject *v170; // [xsp+F0h] [xbp+E0h] __int64 *v171; // [xsp+F0h] [xbp+E0h] cocos2d::CCObject *v172; // [xsp+F0h] [xbp+E0h] char *v174; // [xsp+100h] [xbp+F0h] unsigned int v175; // [xsp+108h] [xbp+F8h] char *v176; // [xsp+108h] [xbp+F8h] char *v177; // [xsp+108h] [xbp+F8h] __int64 v178; // [xsp+110h] [xbp+100h] int v179; // [xsp+110h] [xbp+100h] int v180; // [xsp+118h] [xbp+108h] _BOOL8 v181; // [xsp+120h] [xbp+110h] BYREF char v182; // [xsp+128h] [xbp+118h] BYREF _BYTE v183[7]; // [xsp+129h] [xbp+119h] BYREF _BYTE *v184; // [xsp+138h] [xbp+128h] __int64 v185; // [xsp+140h] [xbp+130h] BYREF size_t v186; // [xsp+148h] [xbp+138h] _BYTE *v187; // [xsp+150h] [xbp+140h] char *v188; // [xsp+158h] [xbp+148h] BYREF char *v189; // [xsp+160h] [xbp+150h] __int64 v190; // [xsp+168h] [xbp+158h] char *v191; // [xsp+170h] [xbp+160h] BYREF char *v192; // [xsp+178h] [xbp+168h] __int64 v193; // [xsp+180h] [xbp+170h] unsigned __int8 *v194; // [xsp+188h] [xbp+178h] BYREF char *v195; // [xsp+190h] [xbp+180h] __int64 v196; // [xsp+198h] [xbp+188h] unsigned __int8 *v197; // [xsp+1A0h] [xbp+190h] BYREF char *v198; // [xsp+1A8h] [xbp+198h] __int64 v199; // [xsp+1B0h] [xbp+1A0h] __int64 v200; // [xsp+1B8h] [xbp+1A8h] BYREF size_t v201; // [xsp+1C0h] [xbp+1B0h] _BYTE *v202; // [xsp+1C8h] [xbp+1B8h] __int64 v203; // [xsp+1D0h] [xbp+1C0h] BYREF size_t v204; // [xsp+1D8h] [xbp+1C8h] void *v205; // [xsp+1E0h] [xbp+1D0h] __int64 v206; // [xsp+1E8h] [xbp+1D8h] BYREF size_t v207; // [xsp+1F0h] [xbp+1E0h] void *v208; // [xsp+1F8h] [xbp+1E8h] __int64 v209; // [xsp+200h] [xbp+1F0h] BYREF unsigned __int64 v210; // [xsp+208h] [xbp+1F8h] void *v211; // [xsp+210h] [xbp+200h] __int64 v212; // [xsp+218h] [xbp+208h] BYREF size_t v213; // [xsp+220h] [xbp+210h] void *v214; // [xsp+228h] [xbp+218h] __int64 v215; // [xsp+230h] [xbp+220h] BYREF size_t v216; // [xsp+238h] [xbp+228h] void *v217; // [xsp+240h] [xbp+230h] __int64 v218[2]; // [xsp+248h] [xbp+238h] BYREF void *v219; // [xsp+258h] [xbp+248h] __int64 v220; // [xsp+260h] [xbp+250h] BYREF size_t v221; // [xsp+268h] [xbp+258h] void *v222; // [xsp+270h] [xbp+260h] __int64 v223; // [xsp+278h] [xbp+268h] BYREF size_t v224; // [xsp+280h] [xbp+270h] void *v225; // [xsp+288h] [xbp+278h] void *v226; // [xsp+290h] [xbp+280h] BYREF char *v227; // [xsp+298h] [xbp+288h] __int64 v228; // [xsp+2A0h] [xbp+290h] __int64 v229; // [xsp+2A8h] [xbp+298h] BYREF size_t v230; // [xsp+2B0h] [xbp+2A0h] void *v231; // [xsp+2B8h] [xbp+2A8h] __int64 v232; // [xsp+2C0h] [xbp+2B0h] BYREF size_t v233; // [xsp+2C8h] [xbp+2B8h] void *v234; // [xsp+2D0h] [xbp+2C0h] void *v235; // [xsp+2D8h] [xbp+2C8h] BYREF _BYTE *v236; // [xsp+2E0h] [xbp+2D0h] __int64 v237; // [xsp+2E8h] [xbp+2D8h] void *v238; // [xsp+2F0h] [xbp+2E0h] BYREF char *v239; // [xsp+2F8h] [xbp+2E8h] __int64 v240; // [xsp+300h] [xbp+2F0h] void *v241; // [xsp+308h] [xbp+2F8h] BYREF char *v242; // [xsp+310h] [xbp+300h] __int64 v243; // [xsp+318h] [xbp+308h] void *v244; // [xsp+320h] [xbp+310h] BYREF void *v245; // [xsp+328h] [xbp+318h] __int64 v246; // [xsp+330h] [xbp+320h] void *v247; // [xsp+338h] [xbp+328h] BYREF char *v248; // [xsp+340h] [xbp+330h] __int64 v249; // [xsp+348h] [xbp+338h] __int64 v250; // [xsp+350h] [xbp+340h] BYREF size_t v251; // [xsp+358h] [xbp+348h] void *v252; // [xsp+360h] [xbp+350h] void *v253; // [xsp+368h] [xbp+358h] __int64 v254; // [xsp+370h] [xbp+360h] BYREF size_t v255; // [xsp+378h] [xbp+368h] void *v256; // [xsp+380h] [xbp+370h] MusicDownloadManager::pathForSongFolder(this, 0, (__int64)&v182); v1 = (cocos2d::CCFileUtils *)std::string::append((__int64)&v182, "musiclibrary.dat", 0x10u); v181 = 0; v2 = cocos2d::CCFileUtils::sharedFileUtils(v1); v3 = v183; if ( (v182 & 1) != 0 ) v3 = v184; v4 = (cocos2d::ZipUtils *)(*(__int64 (__fastcall **)(__int64, _BYTE *, char *, _BOOL8 *))(*(_QWORD *)v2 + 32LL))( v2, v3, "r", &v181); v185 = 0; v186 = 0; v187 = nullptr; if ( !v4 ) goto LABEL_217; cocos2d::ZipUtils::decompressString2(&v200, v4, nullptr, v181, 11, v5); if ( (v185 & 1) != 0 ) { *v187 = 0; v186 = 0; } else { LOWORD(v185) = 0; } std::string::reserve(&v185, 0); v185 = v200; v186 = v201; v187 = v202; if ( (v200 & 1) != 0 ) { if ( !v186 ) goto LABEL_220; LABEL_8: v188 = nullptr; v189 = nullptr; v190 = 0; sub_961B60((unsigned __int8 *)&v185, "|", (__int64 *)&v188); v6 = v188; v7 = v189; if ( 0xAAAAAAAAAAAAAAABLL * ((v189 - v188) >> 3) <= 3 ) { if ( v188 ) { if ( v188 != v189 ) { do { v189 = v7 - 24; std::string::~string((__int64)(v7 - 24)); v7 = v189; } while ( v6 != v189 ); v104 = v188; LABEL_216: operator delete(v104); goto LABEL_217; } operator delete(v188); } LABEL_217: if ( (v185 & 1) == 0 ) goto LABEL_218; LABEL_220: operator delete(v187); if ( (v182 & 1) == 0 ) return _stack_chk_guard; LABEL_221: operator delete(v184); return _stack_chk_guard; } v191 = nullptr; v192 = nullptr; v8 = *((cocos2d::CCObject **)this + 55); v193 = 0; if ( v8 ) cocos2d::CCObject::release(v8); v9 = *((cocos2d::CCObject **)this + 56); if ( v9 ) v9 = (cocos2d::CCObject *)cocos2d::CCObject::release(v9); *((_QWORD *)this + 55) = 0; *((_QWORD *)this + 56) = 0; v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v9); *((_QWORD *)this + 55) = v10; v11 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11); *((_QWORD *)this + 56) = v12; cocos2d::CCObject::retain(v12); v13 = *((_QWORD *)this + 59); if ( v13 ) { std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (__int64)this + 464, *(void **)v13); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (__int64)this + 464, *(void **)(v13 + 8)); if ( (*(_BYTE *)(v13 + 40) & 1) != 0 ) operator delete(*(void **)(v13 + 56)); operator delete((void *)v13); } *((_QWORD *)this + 60) = 0; *((_QWORD *)this + 58) = (char *)this + 472; *((_QWORD *)this + 59) = 0; MusicDownloadManager::clearSortedMusicCache(this); *((_DWORD *)this + 129) = 0; *((_DWORD *)this + 130) = 0; v14 = (unsigned __int8 *)v188; v15 = v188 + 1; if ( (*v188 & 1) != 0 ) v15 = *((const char **)v188 + 2); v16 = atoi(v15); v194 = nullptr; v195 = nullptr; v17 = v189; v196 = 0; *((_DWORD *)this + 128) = v16; v164 = 0xAAAAAAAAAAAAAAABLL * ((v17 - (char *)v14) >> 3) > 6; sub_961B60(v14 + 24, ";", (__int64 *)&v194); if ( 0xAAAAAAAAAAAAAAABLL * ((v195 - (char *)v194) >> 3) ) { v18 = 0; v19 = 0; while ( 1 ) { v20 = (__int64)v191; for ( i = v192; (char *)v20 != v192; i = v192 ) { v192 = i - 24; std::string::~string((__int64)(i - 24)); } sub_961B60(&v194[v18], &byte_1169BE0, (__int64 *)&v191); v22 = (__int64)v191; if ( 0xAAAAAAAAAAAAAAABLL * ((v192 - v191) >> 3) <= 3 ) goto LABEL_76; v23 = v191 + 1; if ( (*v191 & 1) != 0 ) v23 = *((const char **)v191 + 2); v175 = atoi(v23); v24 = *(_BYTE *)(v22 + 24); v25 = (char *)(v22 + 25); v26 = v22 + 24; if ( (v24 & 1) != 0 ) v25 = *(char **)(v26 + 16); v220 = 0; v221 = 0; v222 = nullptr; v27 = strlen(v25); std::string::__init(&v220, v25, v27); v203 = 0; v204 = 0; v205 = nullptr; if ( (v220 & 1) != 0 ) { std::string::__init(&v203, v222, v221); } else { v205 = v222; v203 = v220; v204 = v221; } v28 = (__int64 *)MusicArtistObject::create(v175, (char *)&v203); if ( (v203 & 1) != 0 ) operator delete(v205); cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 56), (cocos2d::CCObject *)v28, (int)v175); if ( !v164 ) break; LABEL_74: if ( (v220 & 1) != 0 ) operator delete(v222); LABEL_76: ++v19; v18 += 24; if ( 0xAAAAAAAAAAAAAAABLL * ((v195 - (char *)v194) >> 3) <= v19 ) goto LABEL_77; } v29 = v191 + 49; if ( (v191[48] & 1) != 0 ) v29 = *((const char **)v191 + 8); v223 = 0; v224 = 0; v225 = nullptr; v169 = (cocos2d::CCObject *)v29; v30 = strlen(v29); std::string::__init(&v223, v169, v30); v31 = v191 + 73; if ( (v191[72] & 1) != 0 ) v31 = *((const char **)v191 + 11); v170 = (cocos2d::CCObject *)v31; v229 = 0; v230 = 0; v231 = nullptr; v32 = strlen(v31); std::string::__init(&v229, v170, v32); v33 = (unsigned __int8)v223 >> 1; if ( (v223 & 1) != 0 ) v33 = v224; if ( v33 > 1 ) { v251 = 0; v252 = nullptr; v253 = nullptr; v254 = 0; v255 = 0; v256 = nullptr; v250 = v175; cocos2d::ZipUtils::urlDecode(&v223); if ( (v254 & 1) != 0 ) { *(_BYTE *)v256 = 0; v255 = 0; } else { LOWORD(v254) = 0; } std::string::reserve(&v254, 0); v256 = v208; v254 = v206; v255 = v207; HIDWORD(v250) = MusicDownloadManager::linkTypeForURL((char *)&v254); v34 = (_QWORD *)v28[12]; if ( v34 == (_QWORD *)v28[13] ) { std::vector::__push_back_slow_path(v28 + 11, (__int64)&v250); } else { if ( v34 ) { *v34 = v250; v34[1] = 0; v34[2] = 0; v34[3] = 0; if ( (v251 & 1) != 0 ) { std::string::__init(v34 + 1, v253, (size_t)v252); } else { v35 = v252; v34[1] = v251; v34[2] = v35; v34[3] = v253; } v34[4] = 0; v34[5] = 0; v34[6] = 0; if ( (v254 & 1) != 0 ) { std::string::__init(v34 + 4, v256, v255); } else { v36 = v255; v34[4] = v254; v34[5] = v36; v34[6] = v256; } v34 = (_QWORD *)v28[12]; } v28[12] = (__int64)(v34 + 7); } if ( (v254 & 1) != 0 ) operator delete(v256); if ( (v251 & 1) != 0 ) operator delete(v253); } if ( (v229 & 1) != 0 ) { if ( v230 <= 1 ) goto LABEL_247; } else if ( (unsigned __int8)v229 <= 3u ) { if ( (v223 & 1) == 0 ) goto LABEL_74; goto LABEL_244; } v250 = v175 | 0x100000000LL; v251 = 0; v252 = nullptr; v253 = nullptr; v254 = 0; v255 = 0; v256 = nullptr; cocos2d::ZipUtils::urlDecode(&v229); v37 = std::string::insert(&v209, 0, "https://www.youtube.com/channel/", 0x20u); v38 = v37[1]; v232 = *v37; v233 = v38; v234 = (void *)v37[2]; *v37 = 0; v37[1] = 0; v37[2] = 0; if ( (v254 & 1) != 0 ) { *(_BYTE *)v256 = 0; v255 = 0; } else { LOWORD(v254) = 0; } std::string::reserve(&v254, 0); v256 = v234; v254 = v232; v255 = v233; if ( (v209 & 1) != 0 ) operator delete(v211); v171 = v28 + 11; v39 = (_QWORD *)v28[13]; v40 = (_QWORD *)v28[12]; if ( v40 == v39 ) { std::vector::__push_back_slow_path(v171, (__int64)&v250); } else { if ( v40 ) { *v40 = v250; v40[1] = 0; v40[2] = 0; v40[3] = 0; if ( (v251 & 1) != 0 ) { std::string::__init(v40 + 1, v253, (size_t)v252); } else { v41 = v252; v40[1] = v251; v40[2] = v41; v40[3] = v253; } v40[4] = 0; v40[5] = 0; v40[6] = 0; if ( (v254 & 1) != 0 ) { std::string::__init(v40 + 4, v256, v255); } else { v42 = v255; v40[4] = v254; v40[5] = v42; v40[6] = v256; } v40 = (_QWORD *)v171[1]; } v171[1] = (__int64)(v40 + 7); } if ( (v254 & 1) != 0 ) operator delete(v256); if ( (v251 & 1) != 0 ) operator delete(v253); if ( (v229 & 1) == 0 ) { LABEL_73: if ( (v223 & 1) == 0 ) goto LABEL_74; LABEL_244: operator delete(v225); goto LABEL_74; } LABEL_247: operator delete(v231); goto LABEL_73; } LABEL_77: v197 = nullptr; v198 = nullptr; v199 = 0; sub_961B60((unsigned __int8 *)v188 + 48, ";", (__int64 *)&v197); if ( 0xAAAAAAAAAAAAAAABLL * ((v198 - (char *)v197) >> 3) ) { v178 = 0; v168 = 0; do { v43 = (__int64)v191; for ( j = v192; (char *)v43 != v192; j = v192 ) { v192 = j - 24; std::string::~string((__int64)(j - 24)); } sub_961B60(&v197[v178], &byte_1169BE0, (__int64 *)&v191); v45 = (__int64)v191; v46 = 0xAAAAAAAAAAAAAAABLL * ((v192 - v191) >> 3); if ( (int)v46 > 5 ) { v47 = v191 + 1; if ( (*v191 & 1) != 0 ) v47 = *((const char **)v191 + 2); v165 = atoi(v47); v48 = *(_BYTE *)(v45 + 24); v49 = (char *)(v45 + 25); v50 = v45 + 24; if ( (v48 & 1) != 0 ) v49 = *(char **)(v50 + 16); v200 = 0; v201 = 0; v202 = nullptr; v51 = strlen(v49); std::string::__init(&v200, v49, v51); v52 = (__int64)v191; v53 = v191 + 49; if ( (v191[48] & 1) != 0 ) v53 = *((const char **)v191 + 8); v54 = atoi(v53); v55 = (const char *)(v52 + 73); if ( (*(_BYTE *)(v52 + 72) & 1) != 0 ) v55 = *(const char **)(v52 + 88); v56 = (float)atoi(v55); v57 = (const char *)(v52 + 97); v58 = v56 * 0.00000095367; if ( (*(_BYTE *)(v52 + 96) & 1) != 0 ) v57 = *(const char **)(v52 + 112); v163 = atoi(v57); v59 = *(_BYTE *)(v52 + 120); v60 = (char *)(v52 + 121); v61 = v52 + 120; if ( (v59 & 1) != 0 ) v60 = *(char **)(v61 + 16); v203 = 0; v204 = 0; v205 = nullptr; v62 = strlen(v60); std::string::__init(&v203, v60, v62); if ( (_DWORD)v46 == 6 ) { v167 = 0; v65 = &byte_11B8890; } else { v63 = (__int64)v191; v64 = v191 + 145; if ( (v191[144] & 1) != 0 ) v64 = *((const char **)v191 + 20); v167 = atoi(v64); if ( (_DWORD)v46 == 7 ) { v65 = &byte_11B8890; } else { v65 = (const char *)(v63 + 169); if ( (*(_BYTE *)(v63 + 168) & 1) != 0 ) v65 = *(const char **)(v63 + 184); } } v206 = 0; v207 = 0; v208 = nullptr; v176 = (char *)v65; v66 = strlen(v65); std::string::__init(&v206, v176, v66); if ( (int)v46 <= 8 ) { v67 = &byte_11B8890; } else { v67 = v191 + 193; if ( (v191[192] & 1) != 0 ) v67 = *((const char **)v191 + 26); } v177 = (char *)v67; v209 = 0; v210 = 0; v211 = nullptr; v68 = strlen(v67); std::string::__init(&v209, v177, v68); if ( (int)v46 <= 9 ) { v161 = 0; v162 = 0; v166 = 0; } else { v69 = v191 + 217; if ( (v191[216] & 1) != 0 ) v69 = *((const char **)v191 + 29); v161 = atoi(v69) != 0; if ( (int)v46 <= 10 ) { v162 = 0; v166 = 0; } else { v70 = (__int64)v191; v71 = v191 + 241; if ( (v191[240] & 1) != 0 ) v71 = *((const char **)v191 + 32); v166 = 0; v162 = atoi(v71); if ( (_DWORD)v46 != 11 ) { v72 = (const char *)(v70 + 265); if ( (*(_BYTE *)(v70 + 264) & 1) != 0 ) v72 = *(const char **)(v70 + 280); v166 = atoi(v72); } } } v232 = 0; v233 = 0; v234 = nullptr; std::string::__init(&v232, "NA", 2u); v73 = (__int64 *)cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 56), v54); if ( v73 && &v232 != v73 + 8 ) { if ( (v73[8] & 1) != 0 ) { v74 = (const void *)v73[10]; v75 = v73[9]; } else { v74 = (char *)v73 + 65; v75 = *((_BYTE *)v73 + 64) >> 1; } std::string::assign(&v232, v74, v75); } v212 = 0; v213 = 0; v214 = nullptr; if ( (v200 & 1) != 0 ) { std::string::__init(&v212, v202, v201); } else { v214 = v202; v212 = v200; v213 = v201; } v215 = 0; v216 = 0; v217 = nullptr; if ( (v232 & 1) != 0 ) { std::string::__init(&v215, v234, v233); } else { v217 = v234; v215 = v232; v216 = v233; } v218[0] = 0; v218[1] = 0; v219 = nullptr; std::string::__init(v218, &byte_11B8890, 0); v220 = 0; v221 = 0; v222 = nullptr; if ( (v206 & 1) != 0 ) { std::string::__init(&v220, v208, v207); } else { v222 = v208; v220 = v206; v221 = v207; } v76 = SongInfoObject::create( v165, (char *)&v212, (char *)&v215, v54, (char *)v218, v167, (char *)&v220, v161, v58, v162, 0); if ( (v220 & 1) != 0 ) operator delete(v222); if ( (v218[0] & 1) != 0 ) operator delete(v219); if ( (v215 & 1) != 0 ) operator delete(v217); if ( (v212 & 1) != 0 ) operator delete(v214); *(_DWORD *)(v76 + 440) = v163; if ( !v164 ) { v77 = (unsigned __int8)v209 >> 1; if ( (v209 & 1) != 0 ) v77 = v210; if ( v77 > 1 ) { v251 = 0; v252 = nullptr; v253 = nullptr; v254 = 0; v255 = 0; v256 = nullptr; v250 = v165; cocos2d::ZipUtils::urlDecode(&v209); if ( (v254 & 1) != 0 ) { *(_BYTE *)v256 = 0; v255 = 0; } else { LOWORD(v254) = 0; } std::string::reserve(&v254, 0); v256 = v225; v254 = v223; v255 = v224; HIDWORD(v250) = MusicDownloadManager::linkTypeForURL((char *)&v254); SongInfoObject::addSongLink((SongInfoObject *)v76, (const GJLinkObject *)&v250); if ( (v254 & 1) != 0 ) operator delete(v256); if ( (v251 & 1) != 0 ) operator delete(v253); } } *(_DWORD *)(v76 + 456) = v166; *(_BYTE *)(v76 + 433) = 1; v229 = 0; v230 = 0; v231 = nullptr; if ( (v203 & 1) != 0 ) { std::string::__init(&v229, v205, v204); } else { v229 = v203; v230 = v204; v231 = v205; } SongInfoObject::addTags(v76, (__int64)&v229); if ( (v229 & 1) != 0 ) operator delete(v231); MusicDownloadManager::storeMusicObject((cocos2d::CCDictionary **)this, (SongInfoObject *)v76); ++*((_DWORD *)this + 129); if ( v167 == 1 ) ++*((_DWORD *)this + 130); if ( (v232 & 1) != 0 ) operator delete(v234); if ( (v209 & 1) != 0 ) operator delete(v211); if ( (v206 & 1) != 0 ) operator delete(v208); if ( (v203 & 1) != 0 ) operator delete(v205); if ( (v200 & 1) != 0 ) operator delete(v202); } ++v168; v178 += 24; } while ( 0xAAAAAAAAAAAAAAABLL * ((v198 - (char *)v197) >> 3) > v168 ); } v226 = nullptr; v227 = nullptr; v228 = 0; sub_961B60((unsigned __int8 *)v188 + 72, ";", (__int64 *)&v226); v78 = (unsigned __int8 *)v226; if ( 0xAAAAAAAAAAAAAAABLL * ((v227 - (_BYTE *)v226) >> 3) ) { v79 = 0; v80 = 0; while ( 1 ) { v81 = (__int64)v191; v82 = v192; if ( v191 != v192 ) { do { v192 = v82 - 24; std::string::~string((__int64)(v82 - 24)); v82 = v192; } while ( (char *)v81 != v192 ); v78 = (unsigned __int8 *)v226; } sub_961B60(&v78[v79], &byte_1169BE0, (__int64 *)&v191); v83 = (__int64)v191; if ( 0xAAAAAAAAAAAAAAABLL * ((v192 - v191) >> 3) <= 1 ) goto LABEL_179; v84 = v191 + 1; if ( (*v191 & 1) != 0 ) v84 = *((const char **)v191 + 2); LODWORD(v244) = atoi(v84); v85 = (char *)(v83 + 25); if ( (*(_BYTE *)(v83 + 24) & 1) != 0 ) v85 = *(char **)(v83 + 40); v250 = 0; v251 = 0; v252 = nullptr; v86 = strlen(v85); std::string::__init(&v250, v85, v86); if ( (v250 & 1) == 0 ) break; if ( v251 ) { v87 = v252; LABEL_172: *v87 = toupper((unsigned __int8)*v87); } LABEL_173: v247 = &v244; v88 = (__int64 *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (__int64 **)this + 58, (int *)&v244, (__int64)&unk_1168A28, (_DWORD **)&v247) + 40); if ( v88 != &v250 ) { if ( (v250 & 1) != 0 ) { v89 = (char *)v252; v90 = v251; } else { v90 = (unsigned __int8)v250 >> 1; v89 = (char *)&v250 + 1; } std::string::assign(v88, v89, v90); } if ( (v250 & 1) != 0 ) operator delete(v252); LABEL_179: v78 = (unsigned __int8 *)v226; ++v80; v79 += 24; if ( 0xAAAAAAAAAAAAAAABLL * ((v227 - (_BYTE *)v226) >> 3) <= v80 ) goto LABEL_180; } if ( !((int)(unsigned __int8)v250 >> 1) ) goto LABEL_173; v87 = (char *)&v250 + 1; goto LABEL_172; } LABEL_180: v91 = *((cocos2d::CCObject **)this + 57); if ( v91 ) v91 = (cocos2d::CCObject *)cocos2d::CCObject::release(v91); v92 = (cocos2d::CCObject *)cocos2d::CCArray::create(v91); *((_QWORD *)this + 57) = v92; cocos2d::CCObject::retain(v92); if ( 0xAAAAAAAAAAAAAAABLL * ((v189 - v188) >> 3) > 4 ) { v93 = (unsigned __int8)v188[96]; if ( (v93 & 1) != 0 ) { if ( !*((_QWORD *)v188 + 13) ) goto LABEL_191; v232 = 0; v233 = 0; v234 = nullptr; std::string::__init(&v232, *((void **)v188 + 14), *((_QWORD *)v188 + 13)); } else { if ( !(v93 >> 1) ) goto LABEL_191; v94 = *((_QWORD *)v188 + 13); v232 = *((_QWORD *)v188 + 12); v233 = v94; v234 = *((void **)v188 + 14); } LevelTools::base64DecodeString((__int64)&v232, &v229); if ( (v232 & 1) != 0 ) operator delete(v234); if ( (v229 & 1) != 0 ) { if ( !v230 ) { LABEL_190: operator delete(v231); goto LABEL_191; } } else if ( !((int)(unsigned __int8)v229 >> 1) ) { goto LABEL_191; } v235 = nullptr; v236 = nullptr; v237 = 0; sub_961B60((unsigned __int8 *)&v229, "$", (__int64 *)&v235); v106 = v235; v107 = (__int64)v236; if ( 0xAAAAAAAAAAAAAAABLL * ((v236 - (_BYTE *)v235) >> 3) ) { v108 = 0; for ( k = 0; k < 0xAAAAAAAAAAAAAAABLL * ((v107 - (__int64)v106) >> 3); ++k ) { v110 = &v106[v108]; v111 = v106[v108] >> 1; if ( (v106[v108] & 1) != 0 ) v111 = *((_QWORD *)v110 + 1); if ( !v111 ) goto LABEL_262; v238 = nullptr; v239 = nullptr; v240 = 0; sub_961B60((unsigned __int8 *)v110, ":", (__int64 *)&v238); if ( v238 == v239 ) { v143 = (char *)v238; } else { v241 = nullptr; v242 = nullptr; v243 = 0; sub_961B60((unsigned __int8 *)v238, &byte_1169BE0, (__int64 *)&v241); v112 = (char *)v241; v113 = v242; if ( 0xAAAAAAAAAAAAAAABLL * ((v242 - (_BYTE *)v241) >> 3) > 2 ) { v114 = (char *)v241 + 1; if ( (*(_BYTE *)v241 & 1) != 0 ) v114 = *((const char **)v241 + 2); v115 = atoi(v114); v116 = v112 + 25; if ( (v112[24] & 1) != 0 ) v116 = *((const char **)v112 + 5); v117 = atoi(v116); v118 = v112 + 49; if ( (v112[48] & 1) != 0 ) v118 = *((const char **)v112 + 8); v180 = v117; v119 = atoi(v118); v172 = (cocos2d::CCObject *)MusicChangelogEntry::create((MusicChangelogEntry *)v115, v180, v119); if ( 0xAAAAAAAAAAAAAAABLL * ((v239 - (_BYTE *)v238) >> 3) > 1 ) { v120 = *((_BYTE *)v238 + 24) >> 1; if ( (*((_BYTE *)v238 + 24) & 1) != 0 ) v120 = *((_QWORD *)v238 + 4); if ( v120 ) { v244 = nullptr; v245 = nullptr; v246 = 0; sub_961B60((unsigned __int8 *)v238 + 24, ";", (__int64 *)&v244); v121 = v244; v122 = v245; v123 = 0; v124 = 0; if ( 0xAAAAAAAAAAAAAAABLL * (((_BYTE *)v245 - (_BYTE *)v244) >> 3) ) { do { v125 = &v121[v123]; v126 = v121[v123] >> 1; if ( (v121[v123] & 1) != 0 ) v126 = *((_QWORD *)v125 + 1); if ( v126 ) { v247 = nullptr; v248 = nullptr; v249 = 0; sub_961B60((unsigned __int8 *)v125, "~", (__int64 *)&v247); if ( 0xAAAAAAAAAAAAAAABLL * ((v248 - (_BYTE *)v247) >> 3) <= 2 ) { v140 = (char *)v247; } else { v132 = *((cocos2d::CCArray **)v172 + 9); v133 = (char *)v247 + 1; if ( (*(_BYTE *)v247 & 1) != 0 ) v133 = *((const char **)v247 + 2); v174 = (char *)v247; v134 = atoi(v133); v135 = v174; v250 = 0; v251 = 0; v252 = nullptr; v179 = v134; if ( (v174[24] & 1) != 0 ) { std::string::__init(&v250, *((void **)v174 + 5), *((_QWORD *)v174 + 4)); v135 = (char *)v247; } else { v136 = *((_QWORD *)v174 + 4); v250 = *((_QWORD *)v174 + 3); v251 = v136; v252 = *((void **)v174 + 5); } v137 = v135 + 49; if ( (v135[48] & 1) != 0 ) v137 = *((const char **)v135 + 8); v138 = atoi(v137); v139 = (cocos2d::CCObject *)MusicChangelogLine::create(v179, (char *)&v250, v138); cocos2d::CCArray::addObject(v132, v139); if ( (v250 & 1) != 0 ) operator delete(v252); v140 = (char *)v247; } if ( v140 ) { v141 = v248; if ( v248 != v140 ) { do { v248 = v141 - 24; std::string::~string((__int64)(v141 - 24)); v141 = v248; } while ( v248 != v140 ); v140 = (char *)v247; } operator delete(v140); } v121 = v244; v122 = v245; } ++v124; v123 += 24; } while ( v124 < 0xAAAAAAAAAAAAAAABLL * ((v122 - v121) >> 3) ); } if ( v121 ) { for ( m = (char *)v245; v121 != v245; m = (char *)v245 ) { v245 = m - 24; std::string::~string((__int64)(m - 24)); } operator delete(v244); } } } cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 57), v172); v128 = (char *)v241; if ( v241 ) { v129 = v242; if ( v241 != v242 ) { do { v242 = v129 - 24; std::string::~string((__int64)(v129 - 24)); v129 = v242; } while ( v128 != v242 ); v129 = (char *)v241; } operator delete(v129); } v130 = (char *)v238; if ( !v238 ) goto LABEL_301; v131 = v239; if ( v238 != v239 ) { do { v239 = v131 - 24; std::string::~string((__int64)(v131 - 24)); v131 = v239; } while ( v130 != v239 ); v131 = (char *)v238; } goto LABEL_300; } if ( v241 ) { if ( v241 == v242 ) { v142 = v241; } else { do { v242 = v113 - 24; std::string::~string((__int64)(v113 - 24)); v113 = v242; } while ( v112 != v242 ); v142 = v241; } operator delete(v142); } v143 = (char *)v238; } if ( !v143 ) goto LABEL_301; v144 = v239; if ( v239 != v143 ) { do { v239 = v144 - 24; std::string::~string((__int64)(v144 - 24)); v144 = v239; } while ( v239 != v143 ); v143 = (char *)v238; } v131 = v143; LABEL_300: operator delete(v131); LABEL_301: v106 = v235; v107 = (__int64)v236; LABEL_262: v108 += 24; } } if ( v106 ) { while ( v106 != v236 ) { v236 -= 24; std::string::~string((__int64)v236); } operator delete(v235); } if ( (v229 & 1) != 0 ) goto LABEL_190; } LABEL_191: if ( v164 ) { v244 = nullptr; v245 = nullptr; v246 = 0; MusicDownloadManager::parseLinkRows((__int64)(v188 + 120), (__int64 *)&v244); v145 = (char *)v244; v146 = 0; for ( n = 0; n < 0x6DB6DB6DB6DB6DB7LL * (((_BYTE *)v245 - (_BYTE *)v244) >> 3); v146 += 56 ) { MusicObject = (SongInfoObject *)MusicDownloadManager::getMusicObject(this, *(_DWORD *)&v145[v146]); if ( MusicObject ) SongInfoObject::addSongLink(MusicObject, (const GJLinkObject *)((char *)v244 + v146)); v145 = (char *)v244; ++n; } v247 = nullptr; v248 = nullptr; v249 = 0; MusicDownloadManager::parseLinkRows((__int64)(v188 + 144), (__int64 *)&v247); v149 = (char *)v247; if ( 0x6DB6DB6DB6DB6DB7LL * ((v248 - (_BYTE *)v247) >> 3) ) { v150 = 0; v151 = 0; do { MusicArtistForID = MusicDownloadManager::getMusicArtistForID(this, *(_DWORD *)&v149[v150]); if ( MusicArtistForID ) { v154 = (__int64 *)(MusicArtistForID + 88); v155 = *(_QWORD *)(MusicArtistForID + 96); v149 = (char *)v247; v156 = (char *)v247 + v150; if ( v155 == *(_QWORD *)(MusicArtistForID + 104) ) { std::vector::__push_back_slow_path(v154, (__int64)v247 + v150); v149 = (char *)v247; } else { if ( v155 ) { *(_DWORD *)v155 = *(_DWORD *)v156; *(_DWORD *)(v155 + 4) = *((_DWORD *)v156 + 1); *(_QWORD *)(v155 + 8) = 0; *(_QWORD *)(v155 + 16) = 0; *(_QWORD *)(v155 + 24) = 0; if ( (v156[8] & 1) != 0 ) { std::string::__init((__int64 *)(v155 + 8), *((void **)v156 + 3), *((_QWORD *)v156 + 2)); } else { v157 = *((_QWORD *)v156 + 2); *(_QWORD *)(v155 + 8) = *((_QWORD *)v156 + 1); *(_QWORD *)(v155 + 16) = v157; *(_QWORD *)(v155 + 24) = *((_QWORD *)v156 + 3); } *(_QWORD *)(v155 + 32) = 0; *(_QWORD *)(v155 + 40) = 0; *(_QWORD *)(v155 + 48) = 0; if ( (v156[32] & 1) != 0 ) { std::string::__init((__int64 *)(v155 + 32), *((void **)v156 + 6), *((_QWORD *)v156 + 5)); } else { v152 = *((_QWORD *)v156 + 5); *(_QWORD *)(v155 + 32) = *((_QWORD *)v156 + 4); *(_QWORD *)(v155 + 40) = v152; *(_QWORD *)(v155 + 48) = *((_QWORD *)v156 + 6); } v155 = v154[1]; v149 = (char *)v247; } v154[1] = v155 + 56; } } else { v149 = (char *)v247; } ++v151; v150 += 56; } while ( v151 < 0x6DB6DB6DB6DB6DB7LL * ((v248 - v149) >> 3) ); } if ( v149 ) { while ( 1 ) { v158 = (void **)v248; if ( v149 == v248 ) break; v248 -= 56; if ( (*(_BYTE *)(v158 - 3) & 1) != 0 ) operator delete(*(v158 - 1)); if ( (*(_BYTE *)(v158 - 6) & 1) != 0 ) operator delete(*(v158 - 4)); } operator delete(v247); } v159 = v244; if ( v244 ) { v160 = (void **)v245; if ( v244 != v245 ) { do { v245 = v160 - 7; if ( (*(_BYTE *)(v160 - 3) & 1) != 0 ) operator delete(*(v160 - 1)); if ( (*(_BYTE *)(v160 - 6) & 1) != 0 ) operator delete(*(v160 - 4)); v160 = (void **)v245; } while ( v159 != v245 ); v160 = (void **)v244; } operator delete(v160); } } v95 = (char *)v226; if ( v226 ) { v96 = v227; if ( v226 != v227 ) { do { v227 = v96 - 24; std::string::~string((__int64)(v96 - 24)); v96 = v227; } while ( v95 != v227 ); v96 = (char *)v226; } operator delete(v96); } v97 = (__int64)v197; if ( v197 ) { v98 = v198; if ( v197 != (unsigned __int8 *)v198 ) { do { v198 = v98 - 24; std::string::~string((__int64)(v98 - 24)); v98 = v198; } while ( (char *)v97 != v198 ); v98 = (char *)v197; } operator delete(v98); } v99 = (__int64)v194; if ( v194 ) { v100 = v195; if ( v194 != (unsigned __int8 *)v195 ) { do { v195 = v100 - 24; std::string::~string((__int64)(v100 - 24)); v100 = v195; } while ( (char *)v99 != v195 ); v100 = (char *)v194; } operator delete(v100); } v101 = (__int64)v191; if ( v191 ) { v102 = v192; if ( v191 != v192 ) { do { v192 = v102 - 24; std::string::~string((__int64)(v102 - 24)); v102 = v192; } while ( (char *)v101 != v192 ); v102 = v191; } operator delete(v102); } v103 = v188; if ( v188 ) { v104 = v189; if ( v188 != v189 ) { do { v189 = v104 - 24; std::string::~string((__int64)(v104 - 24)); v104 = v189; } while ( v103 != v189 ); v104 = v188; } goto LABEL_216; } goto LABEL_217; } if ( (int)(unsigned __int8)v200 >> 1 ) goto LABEL_8; LABEL_218: if ( (v182 & 1) != 0 ) goto LABEL_221; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source