// // LevelInfoLayer::init from 0x7ea7d4 to 0x7ecd28 (9556 bytes) // // 2 xrefs: // > LevelInfoLayer::create @ 0x7ecee8 // > @ 0xda440 // // 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:54:33 +0000 // __int64 __fastcall LevelInfoLayer::init(cocos2d::CCNode **this, GJGameLevel *a2, char a3) { cocos2d::CCArray *v7; // x0 cocos2d::CCObject *v8; // x0 GameManager *v9; // x0 LoadingCircle *v10; // x0 __int64 v11; // x0 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 cocos2d::CCMenu *WinSize; // x0 __int64 v15; // x0 cocos2d::CCMenu *v16; // x0 cocos2d::CCNode *v17; // x21 __int64 v18; // x24 int v19; // w26 unsigned int v20; // w27 _BOOL4 v21; // w26 _BOOL4 v22; // w22 int v23; // w28 float *v24; // x27 void (__fastcall *v25)(float *, __int64 *); // x24 void (__fastcall *v26)(float *, __int64 *); // x25 void (__fastcall *v27)(float *, __int64 *); // x2 const char *v28; // x1 int v29; // w24 char *v30; // x0 cocos2d::CCDirector **v31; // x27 void (__fastcall *v32)(cocos2d::CCDirector **, __int64 *); // x25 void (__fastcall *v33)(cocos2d::CCDirector **, __int64 *); // x25 cocos2d::CCDirector *v34; // x0 cocos2d::CCDirector *ScreenLeft; // x0 float v36; // s0 float v37; // s8 cocos2d::CCDirector *v38; // x0 float v39; // s0 const char *v40; // x1 char *v41; // x0 cocos2d::CCDirector **v42; // x24 void (__fastcall *v43)(cocos2d::CCDirector **, __int64 *); // x27 void (__fastcall *v44)(cocos2d::CCDirector **, __int64 *); // x27 cocos2d::CCDirector *v45; // x0 cocos2d::CCDirector *ScreenRight; // x0 float v47; // s0 float v48; // s9 cocos2d::CCDirector *v49; // x0 float v50; // s0 cocos2d::CCLabelBMFont *v51; // x2 __int64 v52; // x0 __int64 v53; // x2 __int64 v54; // x0 __int64 v55; // x1 cocos2d::CCLabelBMFont *v56; // x0 int v57; // w27 cocos2d::CCDirector **v58; // x24 float v59; // s8 void (__fastcall *v60)(cocos2d::CCDirector **, __int64 *); // x27 cocos2d::CCDirector *v61; // x0 float v62; // s0 const char *v63; // x2 cocos2d::CCSprite *v64; // x0 __int64 v65; // x26 void (__fastcall *v66)(__int64, __int64 *); // x22 void (__fastcall *v67)(__int64, __int64 *); // x28 __int64 v68; // x27 float v69; // s8 float v70; // s0 __int64 v71; // x22 GameLevelManager *v72; // x0 int v73; // w28 __int64 v74; // x2 __int64 v75; // x1 cocos2d::CCSprite *v76; // x1 cocos2d::CCString *v77; // x0 const char *v78; // x2 cocos2d::CCLabelBMFont *CString; // x22 cocos2d::CCLabelBMFont *v80; // x26 __int64 v81; // x0 __int64 v82; // x22 void (__fastcall *v83)(__int64, __int64 *); // x24 float v84; // s9 float v85; // s8 float v86; // s0 const char *v87; // x1 unsigned int v88; // w25 __int64 v89; // x26 void (__fastcall *v90)(__int64, __int64 *); // x27 __int64 v91; // x26 void (__fastcall *v92)(__int64, __int64 *); // x27 __int64 v93; // x0 __int64 v94; // x24 void (__fastcall *v95)(__int64, __int64 *); // x22 __int64 v96; // x0 __int64 v97; // x1 _BOOL8 v98; // x0 _BOOL4 v99; // w22 __int64 v100; // x0 __int64 v101; // x1 _BOOL4 v102; // w22 __int64 v103; // x0 float v104; // s12 cocos2d::CCDirector *v105; // x0 cocos2d::CCDirector *v106; // x0 float v107; // s0 float v108; // s8 cocos2d::CCDirector *v109; // x0 float v110; // s0 __int64 v111; // x1 int v112; // w0 const char *v113; // x1 GameLevelManager *v114; // x0 GameLevelManager *v115; // x0 unsigned __int64 isPastDailyCopy; // x0 __int64 v117; // x0 __int64 v118; // x24 GameManager *v119; // x0 const char *v120; // x1 __int64 v121; // x0 __int64 v122; // x27 const cocos2d::CCPoint *v123; // x0 GameManager *v124; // x0 GameManager *v125; // x0 const char *v126; // x1 __int64 v127; // x0 __int64 v128; // x0 __int64 v129; // x27 void (__fastcall *v130)(__int64, __int64 *); // x28 const cocos2d::CCPoint *v131; // x0 _DWORD *v132; // x27 const char *v133; // x1 GameManager *updated; // x0 __int64 v135; // x0 int v136; // w1 unsigned __int64 v137; // x0 __int64 v138; // x0 int v139; // w1 __int64 v140; // x0 int v141; // w1 __int64 v142; // x0 GameManager *v143; // x0 int v144; // w27 __int64 v145; // x0 int v146; // w25 GameManager *v147; // x0 _BOOL4 v148; // w26 __int64 v149; // x0 int v150; // w2 int v151; // w1 _BOOL4 v152; // w28 cocos2d::CCDirector *v153; // x0 float v154; // s11 float v155; // s8 float v156; // s9 cocos2d::CCDirector *v157; // x0 float v158; // s0 const char *v159; // x1 const char *v160; // x1 char *v161; // x0 __int64 v162; // x26 __int64 v163; // x0 __int64 v164; // x26 cocos2d::CCNode *v165; // x0 void (__fastcall *v166)(__int64, __int64 *); // x21 __int64 v167; // x21 void (__fastcall *v168)(__int64, _QWORD); // x24 unsigned int v169; // w0 const char *v170; // x1 __int64 v171; // x0 cocos2d::CCDirector **v172; // x21 void (__fastcall *v173)(cocos2d::CCDirector **, __int64 *); // x24 cocos2d::CCDirector *v174; // x0 cocos2d::CCDirector *v175; // x0 float v176; // s0 float v177; // s8 cocos2d::CCDirector *v178; // x0 float v179; // s0 unsigned __int64 hasCompletedLevel; // x0 cocos2d::CCDirector **v181; // x21 const char *v182; // x1 __int64 v183; // x0 void (__fastcall *v184)(cocos2d::CCDirector **, __int64 *); // x24 cocos2d::CCDirector *v185; // x0 cocos2d::CCDirector *v186; // x0 float v187; // s0 float v188; // s8 cocos2d::CCDirector *v189; // x0 float v190; // s0 cocos2d::CCMenu *v191; // x0 __int64 v192; // x24 void (__fastcall *v193)(__int64, __int64 *); // x26 const char *v194; // x1 __int64 v195; // x0 _DWORD *v196; // x26 long double v197; // q0 const char *v198; // x1 char *v199; // x0 __int64 v200; // x0 __int64 v201; // x26 void (__fastcall *v202)(__int64, __int64 *); // x27 __int64 v203; // x28 const char *v204; // x1 __int64 v205; // x24 __int64 v206; // x24 void (__fastcall *v207)(__int64, __int64 *); // x28 const char *v208; // x1 cocos2d::CCSprite *v209; // x27 __int64 v210; // x27 void (__fastcall *v211)(__int64, __int64 *); // x28 __int64 v212; // x25 __int64 v213; // x1 SongInfoObject *v214; // x0 CustomSongWidget *SongObject; // x25 bool v216; // w5 __int64 v217; // x0 cocos2d::CCDirector **v218; // x28 float v219; // s11 cocos2d::CCDirector *v220; // x0 float v221; // s0 __int64 v222; // x0 __int64 v223; // x25 __int64 v224; // x3 __int64 v225; // x3 cocos2d::CCMenu *v226; // x0 cocos2d::CCDirector **v227; // x28 void (__fastcall *v228)(cocos2d::CCDirector **, __int64 *); // x25 cocos2d::CCDirector *v229; // x0 cocos2d::CCDirector *v230; // x0 float v231; // s0 float v232; // s14 cocos2d::CCDirector *v233; // x0 float v234; // s0 const char *v235; // x1 __int64 v236; // x25 __int64 v237; // x25 const char *v238; // x1 __int64 v239; // x28 cocos2d::CCString *v240; // x0 cocos2d::CCLabelBMFont *v241; // x0 const char *v242; // x2 __int64 v243; // x0 void (__fastcall *v244)(__int64, __int64 *); // x25 __int64 v245; // x0 __int64 v246; // x25 void (__fastcall *v247)(__int64, __int64 *); // x28 const char *v248; // x1 __int64 v249; // x28 __int64 v250; // x28 void (__fastcall *v251)(__int64, __int64 *); // x21 PlatformToolbox *v252; // x0 cocos2d::CCMenuItem *v253; // x2 __int64 isNetworkAvailable; // x0 void (__fastcall *v255)(float *, __int64 *); // x3 __int64 v256; // x26 __int64 v257; // x26 void (__fastcall *v258)(__int64, __int64 *); // x27 __int64 v259; // x26 __int64 v260; // x26 cocos2d::CCNode *v261; // x0 void (__fastcall *v262)(__int64, __int64 *); // x21 __int64 v263; // x26 __int64 v264; // x26 void (__fastcall *v265)(__int64, __int64 *); // x27 __int64 v266; // x27 __int64 v267; // x27 GameLevelManager *v268; // x0 __int64 v269; // x0 int v270; // w0 GameLevelManager *v271; // x0 int v272; // w0 __int64 v273; // x22 _BOOL8 v274; // x0 GameManager *v275; // x0 __int64 v276; // x24 void (__fastcall *v277)(__int64, __int64 *); // x28 float v278; // s8 float v279; // s0 __int64 v280; // x0 const char *v281; // x1 __int64 v282; // x27 __int64 v283; // x0 __int64 v284; // x27 __int64 v285; // x0 __int64 (__fastcall *v286)(__int64); // x1 void (__fastcall *v287)(__int64, __int64 *); // x24 __int64 v288; // x28 const char *v289; // x1 __int64 v290; // x21 void (__fastcall *v291)(__int64, __int64 *); // x22 __int64 v292; // x0 void (__fastcall *v293)(cocos2d::CCLabelBMFont *, __int64 *); // x3 __int64 v294; // x0 __int64 v295; // x26 void (__fastcall *v296)(__int64, __int64 *); // x27 __int64 v297; // x0 __int64 v298; // x0 __int64 v299; // x24 void (__fastcall *v300)(float *, __int64 *); // x2 __int64 v301; // x2 GameLevelManager *v302; // x0 GameLevelManager *v303; // x0 int v304; // w22 GameLevelManager *v305; // x0 GameManager *v306; // x0 __int64 v307; // x0 GameManager *v308; // x0 cocos2d::CCSprite *v309; // x0 __int64 v310; // x0 __int64 v311; // x0 __int64 v312; // x27 void (__fastcall *v313)(__int64, __int64 *); // x24 __int64 v314; // x0 __int64 v315; // x0 __int64 v316; // x0 __int64 v317; // x24 void (__fastcall *v318)(__int64, __int64 *); // x27 __int64 v319; // x0 GameStatsManager *v320; // x0 GameStatsManager *v321; // x0 GameStatsManager *v322; // x0 GameLevelManager *v323; // x0 __int64 v324; // x0 __int64 v325; // x0 void (__fastcall *v326)(float *, __int64 *); // x2 GameStatsManager *v327; // x0 bool v328; // [xsp+18h] [xbp-8h] cocos2d::CCLayer *v329; // [xsp+C8h] [xbp+A8h] float v330; // [xsp+D0h] [xbp+B0h] __int64 v331; // [xsp+D0h] [xbp+B0h] void (__fastcall *v332)(__int64, __int64 *); // [xsp+D0h] [xbp+B0h] void (__fastcall *v333)(cocos2d::CCDirector **, __int64 *); // [xsp+E0h] [xbp+C0h] __int64 v334; // [xsp+E0h] [xbp+C0h] unsigned __int8 v335; // [xsp+EFh] [xbp+CFh] unsigned int v336; // [xsp+F0h] [xbp+D0h] void (__fastcall *v337)(__int64, __int64 *); // [xsp+F0h] [xbp+D0h] __int64 v338; // [xsp+F0h] [xbp+D0h] float v339; // [xsp+F0h] [xbp+D0h] __int64 v340; // [xsp+100h] [xbp+E0h] BYREF _DWORD v341[2]; // [xsp+108h] [xbp+E8h] BYREF char v342[8]; // [xsp+110h] [xbp+F0h] BYREF char v343[8]; // [xsp+118h] [xbp+F8h] BYREF char v344[8]; // [xsp+120h] [xbp+100h] BYREF __int64 v345; // [xsp+128h] [xbp+108h] BYREF char v346[8]; // [xsp+130h] [xbp+110h] BYREF char v347[8]; // [xsp+138h] [xbp+118h] BYREF _BYTE v348[4]; // [xsp+140h] [xbp+120h] BYREF float v349; // [xsp+144h] [xbp+124h] char v350[8]; // [xsp+148h] [xbp+128h] BYREF __int64 v351; // [xsp+150h] [xbp+130h] BYREF __int64 v352; // [xsp+158h] [xbp+138h] BYREF __int64 v353; // [xsp+160h] [xbp+140h] BYREF __int64 v354; // [xsp+168h] [xbp+148h] cocos2d::CCLabelBMFont *v355; // [xsp+170h] [xbp+150h] cocos2d::CCMenu *v356; // [xsp+178h] [xbp+158h] BYREF __int64 v357; // [xsp+180h] [xbp+160h] void *v358; // [xsp+188h] [xbp+168h] char *v359; // [xsp+190h] [xbp+170h] BYREF __int64 v360; // [xsp+198h] [xbp+178h] cocos2d::CCSprite *v361; // [xsp+1A0h] [xbp+180h] v335 = cocos2d::CCLayer::init((cocos2d::CCLayer *)this); if ( !v335 ) return v335; *(this + 63) = a2; v7 = (cocos2d::CCArray *)cocos2d::CCObject::retain(a2); *((_BYTE *)this + 704) = a3; v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7); *(this + 64) = v8; cocos2d::CCObject::retain(v8); *((_BYTE *)*(this + 63) + 1105) = 0; v9 = (GameManager *)*((unsigned int *)a2 + 285); *((_DWORD *)this + 160) = (_DWORD)v9; v10 = (LoadingCircle *)GameManager::sharedState(v9); *((_DWORD *)v10 + 241) = *((_DWORD *)*(this + 63) + 82) - *((_DWORD *)*(this + 63) + 83); v11 = LoadingCircle::create(v10); *(this + 81) = (cocos2d::CCNode *)v11; *(_QWORD *)(v11 + 552) = this; *((_BYTE *)*(this + 81) + 560) = 0; cocos2d::CCObject::retain(*(this + 81)); LoadingCircle::show((cocos2d::CCNode **)*(this + 81)); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 81) + 344LL))(*(this + 81), 0); (*((void (__fastcall **)(cocos2d::CCNode **, __int64))*this + 134))(this, 1); v12 = (cocos2d::CCDirector *)(*((__int64 (__fastcall **)(cocos2d::CCNode **, __int64))*this + 136))(this, 1); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v340, v13); v15 = cocos2d::CCMenu::create(WinSize); *(this + 62) = (cocos2d::CCNode *)v15; v16 = (cocos2d::CCMenu *)(*((__int64 (__fastcall **)(cocos2d::CCNode **, __int64, __int64))*this + 58))(this, v15, 3); v17 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v16); (*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCNode *, __int64))*this + 58))(this, v17, 2); v18 = (__int64)*(this + 63); v19 = *((_DWORD *)a2 + 230) - *((_DWORD *)a2 + 231); v20 = v19 - 100001; v21 = v19 > 200000; v22 = v20 <= 0x1869F; v336 = *(unsigned __int8 *)(v18 + 649); v23 = *(_DWORD *)(v18 + 920) - *(_DWORD *)(v18 + 924); v24 = (float *)cocos2d::CCSprite::create( (cocos2d::CCSprite *)"GJ_gradientBG.png", (const char *)*(unsigned __int8 *)(v18 + 649)); v25 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v24 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, 0.0, 0.0); v25(v24, &v352); (*((void (__fastcall **)(cocos2d::CCNode **, float *, __int64))*this + 58))(this, v24, 4294967294LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v24 + 128LL))(v24, (float)(*(float *)&v340 + 10.0) / v24[108]); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v24 + 144LL))( v24, (float)(*((float *)&v340 + 1) + 10.0) / v24[109]); v26 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, -5.0, -5.0); v26(v24, &v352); v27 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v24 + 960LL); LOWORD(v352) = 26112; BYTE2(v352) = -1; v27(v24, &v352); if ( v22 || (v28 = (const char *)v336, v336) || *((_BYTE *)this + 704) ) { if ( v21 ) { v300 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v24 + 960LL); LOWORD(v352) = 6243; BYTE2(v352) = 126; v300(v24, &v352); } else { v255 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v24 + 960LL); memset(&v352, 51, 3); v255(v24, &v352); } v29 = 1; v30 = "gauntletCorner_001.png"; } else { v29 = 0; if ( v21 ) { v326 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v24 + 960LL); LOWORD(v352) = 6243; BYTE2(v352) = 126; v326(v24, &v352); } v30 = "GJ_sideArt_001.png"; } v31 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v30, v28); v32 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v31 + 37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, 0.0, 0.0); v32(v31, &v352); v33 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v31 + 23); v34 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v31); ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v34); v37 = v36; v38 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft); cocos2d::CCDirector::getScreenBottom(v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, v37 - 1.0, v39 - 1.0); v33(v31, &v352); (*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCDirector **, __int64))*this + 58))(this, v31, 1); if ( v29 ) v41 = "gauntletCorner_001.png"; else v41 = "GJ_sideArt_001.png"; v42 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v41, v40); v43 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v42 + 37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, 1.0, 0.0); v43(v42, &v352); v44 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v42 + 23); v45 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v42); ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v45); v48 = v47; v49 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight); cocos2d::CCDirector::getScreenBottom(v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, v48 + 1.0, v50 - 1.0); v44(v42, &v352); cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)v42, 1); (*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCDirector **, __int64))*this + 58))(this, v42, 1); if ( *((_BYTE *)this + 704) ) { v57 = 0; v56 = (cocos2d::CCLabelBMFont *)"Challenge"; } else { v52 = (__int64)*(this + 63); v353 = 0; v53 = v52 + 344; v354 = 0; LOBYTE(v52) = *(_BYTE *)(v52 + 344); v355 = nullptr; if ( (v52 & 1) != 0 ) { std::string::__init(&v353, *(void **)(v53 + 16), *(_QWORD *)(v53 + 8)); } else { v54 = *(_QWORD *)v53; v55 = *(_QWORD *)(v53 + 8); v51 = *(cocos2d::CCLabelBMFont **)(v53 + 16); v355 = v51; v353 = v54; v354 = v55; } if ( (v353 & 1) != 0 ) { v56 = v355; v57 = v335; } else { v57 = v335; v56 = (cocos2d::CCLabelBMFont *)((char *)&v353 + 1); } } v58 = (cocos2d::CCDirector **)cocos2d::CCLabelBMFont::create(v56, "bigFont.fnt", (const char *)v51); if ( v57 && (v353 & 1) != 0 ) operator delete(v355); (*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCDirector **, __int64))*this + 58))(this, v58, 20); v59 = *(float *)&v340 * 0.5; v60 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v58 + 23); v61 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v58); cocos2d::CCDirector::getScreenTop(v61); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, v59, v62 - 17.0); v60(v58, &v352); if ( v23 <= 0 ) { cocos2d::CCLabelBMFont::limitLabelWidth((cocos2d::CCLabelBMFont *)v58, 300.0, 0.8, 0.0); v71 = (__int64)*(this + 63); v72 = (GameLevelManager *)*(unsigned int *)(v71 + 592); v73 = *(_DWORD *)(v71 + 588) - (_DWORD)v72; if ( v73 ) goto LABEL_28; LABEL_136: v271 = (GameLevelManager *)GameLevelManager::sharedState(v72); v272 = GameLevelManager::accountIDForUserID(v271, *((_DWORD *)*(this + 63) + 144) - *((_DWORD *)*(this + 63) + 145)); v273 = (__int64)*(this + 63); v359 = nullptr; v73 = v272; v360 = 0; v74 = v273 + 416; v361 = nullptr; if ( (*(_BYTE *)(v273 + 416) & 1) == 0 ) goto LABEL_29; goto LABEL_137; } cocos2d::CCLabelBMFont::limitLabelWidth((cocos2d::CCLabelBMFont *)v58, 260.0, 0.8, 0.0); v359 = nullptr; v360 = 0; v361 = nullptr; std::string::__init((__int64 *)&v359, "(Daily)", 7u); if ( v22 ) { std::string::assign((__int64 *)&v359, "(Weekly)"); } else if ( v21 ) { std::string::assign((__int64 *)&v359, "(Event)"); } if ( ((unsigned __int8)v359 & 1) != 0 ) v64 = v361; else v64 = (cocos2d::CCSprite *)((char *)&v359 + 1); v65 = cocos2d::CCLabelBMFont::create(v64, "goldFont.fnt", v63); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v65 + 160LL))(v65, 0.6); (*((void (__fastcall **)(cocos2d::CCNode **, __int64, __int64))*this + 58))(this, v65, 20); v66 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, 0.0, 0.5); v66(v65, &v352); v67 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL); v68 = (*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v58 + 24))(v58); v69 = *(float *)(*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v58 + 41))(v58) * 0.5; v70 = (*((float (__fastcall **)(cocos2d::CCDirector **))*v58 + 21))(v58); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, (float)(v69 * v70) + 3.0, -0.5); cocos2d::CCPoint::operator+(&v352, v68); v67(v65, &v352); if ( ((unsigned __int8)v359 & 1) != 0 ) operator delete(v361); v71 = (__int64)*(this + 63); v72 = (GameLevelManager *)*(unsigned int *)(v71 + 592); v73 = *(_DWORD *)(v71 + 588) - (_DWORD)v72; if ( !v73 ) goto LABEL_136; LABEL_28: v359 = nullptr; v74 = v71 + 416; v360 = 0; v361 = nullptr; if ( (*(_BYTE *)(v71 + 416) & 1) == 0 ) { LABEL_29: v75 = *(_QWORD *)(v74 + 8); v359 = *(char **)v74; v360 = v75; v361 = *(cocos2d::CCSprite **)(v74 + 16); goto LABEL_30; } LABEL_137: std::string::__init((__int64 *)&v359, *(void **)(v74 + 16), *(_QWORD *)(v74 + 8)); LABEL_30: v76 = (cocos2d::CCSprite *)((char *)&v359 + 1); if ( ((unsigned __int8)v359 & 1) != 0 ) v76 = v361; v77 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By %s", (const char *)v76); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v77); if ( ((unsigned __int8)v359 & 1) != 0 ) operator delete(v361); v80 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v78); v330 = *(float *)&v340 * 0.5; v81 = (*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v58 + 24))(v58); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v341, v330, *(float *)(v81 + 4) - 26.0); cocos2d::CCLabelBMFont::limitLabelWidth(v80, 300.0, 0.8, 0.0); v82 = CCMenuItemSpriteExtra::create((__int64)v80, 0, (__int64)this, (__int64)LevelInfoLayer::onViewProfile, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v82); v83 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v82 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v352, v17, (const cocos2d::CCPoint *)v341); v83(v82, &v352); if ( !v73 ) { v293 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v80 + 1072LL); BYTE2(v352) = -1; LOWORD(v352) = -166; v293(v80, &v352); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v82 + 1056LL))(v82, 0); } v84 = *(float *)v341; v85 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v80 + 328LL))(v80); v86 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v80 + 168LL))(v80); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v342, (float)(v84 + (float)((float)(v85 * v86) * 0.5)) + 6.0, *(float *)&v341[1] - 1.0); if ( *((_BYTE *)this + 704) ) { (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD))(*(_QWORD *)v80 + 344LL))(v80, 0); cocos2d::CCPoint::operator=(v342, v341); } v87 = (const char *)&elf_hash_bucket[9874]; v88 = *((_DWORD *)*(this + 63) + 155) - *((_DWORD *)*(this + 63) + 156) > (int)&elf_hash_bucket[9874]; if ( *((_DWORD *)a2 + 247) == *((_DWORD *)a2 + 248) ) { v274 = v73 > 0; if ( (unsigned int)v274 > v88 ) { v275 = (GameManager *)GameManager::sharedState((GameManager *)v274); if ( !(unsigned __int8)GameManager::getGameVariable(v275, "0047") && !*((_BYTE *)this + 704) ) { v276 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_viewProfileTxt_001.png", v87); (*((void (__fastcall **)(cocos2d::CCNode **, __int64, __int64))*this + 58))(this, v276, 2); v277 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v276 + 184LL); v278 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v80 + 328LL))(v80) * 0.5; v279 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v80 + 168LL))(v80); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, (float)(v278 * v279) + 48.0, -1.0); cocos2d::CCPoint::operator+(&v352, v341); v277(v276, &v352); goto LABEL_42; } } } else { v89 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"collaborationIcon_001.png", (const char *)&elf_hash_bucket[9874]); v90 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v89 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, 0.0, 0.5); v90(v89, &v352); (*((void (__fastcall **)(cocos2d::CCNode **, __int64))*this + 57))(this, v89); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v89 + 184LL))(v89, v342); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 18.0, 0.0); cocos2d::CCPoint::operator+(&v352, v342); cocos2d::CCPoint::operator=(v342, &v352); } if ( v88 ) { v91 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"highObjectIcon_001.png", v87); v92 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v91 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, 0.0, 0.5); v92(v91, &v352); (*((void (__fastcall **)(cocos2d::CCNode **, __int64, __int64))*this + 58))(this, v91, 10); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v91 + 184LL))(v91, v342); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 18.0, 0.0); cocos2d::CCPoint::operator+(&v352, v342); cocos2d::CCPoint::operator=(v342, &v352); } LABEL_42: v93 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playBtn2_001.png", v87); *(this + 90) = (cocos2d::CCNode *)v93; v94 = CCMenuItemSpriteExtra::create(v93, 0, (__int64)this, (__int64)LevelInfoLayer::onPlay, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 62) + 456LL))(*(this + 62), v94); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v343, *(float *)&v340 * 0.5, (float)(*((float *)&v340 + 1) * 0.5) + 51.0); v95 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v94 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v352, *(this + 62), (const cocos2d::CCPoint *)v343); v95(v94, &v352); if ( !*((_BYTE *)this + 704) ) { v280 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 704)); v281 = (const char *)*(unsigned int *)(v280 + 1032); if ( (int)v281 - *(_DWORD *)(v280 + 1036) > 1 ) { v282 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_editBtn_001.png", v281); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v282 + 160LL))(v282, 0.4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v282 + 912LL))(v282, 4294967215LL); v283 = CCMenuItemSpriteExtra::create(v282, 0, (__int64)this, (__int64)LevelInfoLayer::onEdit, 0); *(this + 69) = (cocos2d::CCNode *)v283; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 62) + 456LL))(*(this + 62), v283); v284 = (__int64)*(this + 69); v285 = v94; v286 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v94 + 192LL); v287 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v284 + 184LL); v288 = v286(v285); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, -58.0, -34.0); cocos2d::CCPoint::operator+(&v352, v288); v287(v284, &v352); } } (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)*(this + 81) + 68) + 184LL))( *((_QWORD *)*(this + 81) + 68), v343); v96 = (__int64)*(this + 63); if ( *(_DWORD *)(v96 + 1140) == 4 ) goto LABEL_143; v356 = nullptr; v357 = 0; v358 = nullptr; if ( (*(_BYTE *)(v96 + 392) & 1) != 0 ) { std::string::__init((__int64 *)&v356, *(void **)(v96 + 408), *(_QWORD *)(v96 + 400)); } else { v97 = *(_QWORD *)(v96 + 400); v356 = *(cocos2d::CCMenu **)(v96 + 392); v357 = v97; v358 = *(void **)(v96 + 408); } v359 = nullptr; v360 = 0; v361 = nullptr; std::string::__init((__int64 *)&v359, &byte_11B8890, 0); v98 = sub_7E4E58((__int64)&v356, (__int64)&v359); v99 = v98 && (v268 = (GameLevelManager *)*(unsigned int *)(GameLevelManager::sharedState((GameLevelManager *)v98) + 1480), (_DWORD)v268 != 99) && *(_DWORD *)(GameLevelManager::sharedState(v268) + 1480) != 100; if ( ((unsigned __int8)v359 & 1) != 0 ) operator delete(v361); if ( ((unsigned __int8)v356 & 1) != 0 ) operator delete(v358); if ( v99 ) { LABEL_143: LevelInfoLayer::downloadLevel((LevelInfoLayer *)this); LevelInfoLayer::setupLevelInfo((LevelInfoLayer *)this); v103 = *((unsigned __int8 *)this + 704); if ( *((_BYTE *)this + 704) ) goto LABEL_62; goto LABEL_144; } v100 = (__int64)*(this + 63); v356 = nullptr; v357 = 0; v358 = nullptr; if ( (*(_BYTE *)(v100 + 392) & 1) != 0 ) { std::string::__init((__int64 *)&v356, *(void **)(v100 + 408), *(_QWORD *)(v100 + 400)); } else { v101 = *(_QWORD *)(v100 + 400); v356 = *(cocos2d::CCMenu **)(v100 + 392); v357 = v101; v358 = *(void **)(v100 + 408); } v359 = nullptr; v360 = 0; v361 = nullptr; std::string::__init((__int64 *)&v359, &byte_11B8890, 0); v102 = sub_7E4E58((__int64)&v356, (__int64)&v359); if ( ((unsigned __int8)v359 & 1) != 0 ) operator delete(v361); if ( ((unsigned __int8)v356 & 1) != 0 ) operator delete(v358); if ( v102 ) { v301 = (__int64)*(this + 62); *((_BYTE *)this + 644) = 1; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v301 + 344LL))(v301, 0); v302 = (GameLevelManager *)(*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 81) + 344LL))( *(this + 81), 1); *(_QWORD *)(GameLevelManager::sharedState(v302) + 1288) = this + 52; v303 = *(this + 63); v304 = *((_DWORD *)v303 + 197); *((_DWORD *)v303 + 197) = -1; v305 = (GameLevelManager *)GameLevelManager::sharedState(v303); GameLevelManager::updateLevel(v305, *(this + 63)); *((_DWORD *)a2 + 197) = v304; } LevelInfoLayer::setupLevelInfo((LevelInfoLayer *)this); v103 = *((unsigned __int8 *)this + 704); if ( !*((_BYTE *)this + 704) ) { LABEL_144: if ( (unsigned __int8)GJGameLevel::isPlatformer(*(this + 63)) ) v103 = LevelInfoLayer::setupPlatformerStats((LevelInfoLayer *)this); else v103 = LevelInfoLayer::setupProgressBars(this); } LABEL_62: v104 = *((float *)&v340 + 1) - 51.0; v105 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v103); v106 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v105); v108 = v107; v109 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v106); cocos2d::CCDirector::getScreenTop(v109); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v344, v108 - 30.0, v110 - 30.0); cocos2d::CCNode::convertToNodeSpace(&v345, v17, (const cocos2d::CCPoint *)v344); v111 = (__int64)*(this + 63); v112 = *(_DWORD *)(v111 + 920); v113 = (const char *)*(unsigned int *)(v111 + 924); v114 = (GameLevelManager *)(unsigned int)(v112 - (_DWORD)v113); if ( (int)v114 <= 0 || (v115 = (GameLevelManager *)GameLevelManager::sharedState(v114), isPastDailyCopy = (unsigned __int8)GameLevelManager::isPastDailyCopy(v115, *(this + 63)), (_BYTE)isPastDailyCopy) ) { v117 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v113); v118 = CCMenuItemSpriteExtra::create(v117, 0, (__int64)this, (__int64)LevelInfoLayer::confirmDelete, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v118); isPastDailyCopy = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v118 + 184LL))(v118, &v345); *((float *)&v345 + 1) = *((float *)&v345 + 1) - 50.0; } v119 = (GameManager *)GameManager::sharedState((GameManager *)isPastDailyCopy); if ( !(unsigned __int8)GameManager::offlineModeEnabled(v119) ) { v298 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v120); v299 = CCMenuItemSpriteExtra::create(v298, 0, (__int64)this, (__int64)LevelInfoLayer::onUpdate, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v299); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v299 + 184LL))(v299, &v345); *((float *)&v345 + 1) = *((float *)&v345 + 1) - 50.0; } v121 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoBtn_001.png", v120); v122 = CCMenuItemSpriteExtra::create(v121, 0, (__int64)this, (__int64)LevelInfoLayer::onInfo, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v122); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v122 + 184LL))(v122, &v345); v123 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v122 + 192LL))(v122); v124 = (GameManager *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v346, v123); v125 = (GameManager *)GameManager::sharedState(v124); if ( !(unsigned __int8)GameManager::offlineModeEnabled(v125) ) { v294 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_levelLeaderboardBtn_001.png", v126); v295 = CCMenuItemSpriteExtra::create(v294, 0, (__int64)this, (__int64)LevelInfoLayer::onLevelLeaderboard, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v295); v296 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v295 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 0.0, -50.0); cocos2d::CCPoint::operator+(&v352, v346); v296(v295, &v352); v297 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v295 + 192LL))(v295); cocos2d::CCPoint::operator=(v346, v297); } v127 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_like2Btn_001.png", v126); v128 = CCMenuItemSpriteExtra::create(v127, 0, (__int64)this, (__int64)LevelInfoLayer::onLike, 0); *(this + 65) = (cocos2d::CCNode *)v128; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v128); v129 = (__int64)*(this + 65); v130 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v129 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 0.0, -50.0); cocos2d::CCPoint::operator+(&v352, v346); v130(v129, &v352); v131 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 65) + 192LL))(*(this + 65)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v347, v131); v132 = *(this + 63); v133 = (const char *)(unsigned int)v132[237]; if ( (_DWORD)v133 == v132[238] ) { v315 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_starBtn_001.png", v133); v316 = CCMenuItemSpriteExtra::create(v315, 0, (__int64)this, (__int64)LevelInfoLayer::onRateStars, 0); *(this + 66) = (cocos2d::CCNode *)v316; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v316); v317 = (__int64)*(this + 66); v318 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v317 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 0.0, -50.0); cocos2d::CCPoint::operator+(&v352, v347); v318(v317, &v352); v319 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 66) + 192LL))(*(this + 66)); cocos2d::CCPoint::operator=(v347, v319); v132 = *(this + 63); } if ( v132[233] - v132[234] == 1 ) { v359 = nullptr; v360 = 0; v361 = nullptr; v306 = (GameManager *)std::string::__init((__int64 *)&v359, "GJ_rateDiffBtn_001.png", 0x16u); v307 = GameManager::sharedState(v306); v308 = (GameManager *)(unsigned int)(*(_DWORD *)(v307 + 1032) - *(_DWORD *)(v307 + 1036) - 1); if ( (unsigned int)v308 <= 1 || *(_BYTE *)(GameManager::sharedState(v308) + 1044) ) std::string::assign((__int64 *)&v359, "GJ_rateDiffBtnMod_001.png"); v309 = (cocos2d::CCSprite *)((char *)&v359 + 1); if ( ((unsigned __int8)v359 & 1) != 0 ) v309 = v361; v310 = cocos2d::CCSprite::createWithSpriteFrameName(v309, (const char *)(unsigned __int8)v359); v311 = CCMenuItemSpriteExtra::create(v310, 0, (__int64)this, (__int64)LevelInfoLayer::onRateDemon, 0); *(this + 67) = (cocos2d::CCNode *)v311; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v311); v312 = (__int64)*(this + 67); v313 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v312 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 0.0, -50.0); cocos2d::CCPoint::operator+(&v352, v347); v313(v312, &v352); v314 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 67) + 192LL))(*(this + 67)); cocos2d::CCPoint::operator=(v347, v314); if ( ((unsigned __int8)v359 & 1) != 0 ) operator delete(v361); } if ( *((_BYTE *)this + 704) ) (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v17 + 344LL))(v17, 0); updated = (GameManager *)LevelInfoLayer::updateSideButtons(this); v135 = GameManager::sharedState(updated); v136 = *(_DWORD *)(v135 + 660) - *(_DWORD *)(v135 + 664); v137 = (unsigned int)(*((_DWORD *)*(this + 63) + 144) - *((_DWORD *)*(this + 63) + 145)); if ( v136 == (_DWORD)v137 || (v138 = GJAccountManager::sharedState((GJAccountManager *)v137), v139 = *(_DWORD *)(v138 + 352), v137 = *(unsigned int *)(v138 + 356), v139 != (_DWORD)v137) && (v140 = GJAccountManager::sharedState((GJAccountManager *)v137), v141 = *(_DWORD *)(v140 + 352) - *(_DWORD *)(v140 + 356), v137 = (unsigned int)(*((_DWORD *)*(this + 63) + 147) - *((_DWORD *)*(this + 63) + 148)), v141 == (_DWORD)v137) ) { v269 = GameManager::sharedState((GameManager *)v137); v270 = *(_DWORD *)(v269 + 1032) - *(_DWORD *)(v269 + 1036); if ( v270 == 1 ) v144 = v335; else v144 = v270 == 2; v150 = 1; v151 = 1; v148 = 1; v146 = 1; v152 = 1; } else { v142 = GameManager::sharedState((GameManager *)v137); v143 = (GameManager *)(unsigned int)(*(_DWORD *)(v142 + 1032) - *(_DWORD *)(v142 + 1036)); if ( (_DWORD)v143 == 1 ) v144 = v335; else v144 = (_DWORD)v143 == 2; v145 = GameManager::sharedState(v143); v146 = 0; v147 = (GameManager *)(unsigned int)(*(_DWORD *)(v145 + 1032) - *(_DWORD *)(v145 + 1036)); v148 = (int)v147 > 1; v149 = GameManager::sharedState(v147); v150 = v148; v151 = 0; v152 = *(_DWORD *)(v149 + 1032) - *(_DWORD *)(v149 + 1036) > 0; } if ( v144 ) v153 = (cocos2d::CCDirector *)(&dword_0 + 2); else v153 = (cocos2d::CCDirector *)(&dword_0 + 1); v154 = 50.0; v155 = (float)((int)v153 + v150 + v151 - 1); v156 = (float)(v104 - 92.0) / (float)((float)(v155 * 50.0) + 48.0); if ( v156 < 1.0 ) v154 = v156 * 50.0; else v156 = 1.0; v157 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v153); cocos2d::CCDirector::getScreenLeft(v157); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v348, (float)(v158 + 30.0) + 0.0, (float)((float)(v155 * v154) * 0.5) + (float)((float)(v104 + 92.0) * 0.5)); if ( v144 ) { v266 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_starBtnMod_001.png", v159); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v266 + 160LL))(v266, v156); v267 = CCMenuItemSpriteExtra::create(v266, 0, (__int64)this, (__int64)LevelInfoLayer::onRateStarsMod, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v267); v332 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v267 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v352, v17, (const cocos2d::CCPoint *)v348); v332(v267, &v352); v349 = v349 - v154; if ( !v148 ) { LABEL_87: if ( !v146 ) goto LABEL_88; LABEL_122: v256 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v159); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v256 + 160LL))(v256, v156); v257 = CCMenuItemSpriteExtra::create(v256, 0, (__int64)this, (__int64)LevelInfoLayer::onCreatorSettings, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v257); v258 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v257 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v352, v17, (const cocos2d::CCPoint *)v348); v258(v257, &v352); v349 = v349 - v154; if ( !v152 ) goto LABEL_89; goto LABEL_123; } } else if ( !v148 ) { goto LABEL_87; } v263 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteServerBtn_001.png", v159); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v263 + 160LL))(v263, v156); v264 = CCMenuItemSpriteExtra::create(v263, 0, (__int64)this, (__int64)LevelInfoLayer::confirmOwnerDelete, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v264); v265 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v264 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v352, v17, (const cocos2d::CCPoint *)v348); v265(v264, &v352); v349 = v349 - v154; if ( v146 ) goto LABEL_122; LABEL_88: if ( !v152 ) { LABEL_89: v160 = (const char *)*((unsigned int *)a2 + 246); if ( *((_DWORD *)a2 + 245) - (_DWORD)v160 == 1 ) v161 = "GJ_duplicateBtn_001.png"; else v161 = "GJ_duplicateLockedBtn_001.png"; v162 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v161, v160); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v162 + 160LL))(v162, v156); v163 = CCMenuItemSpriteExtra::create(v162, 0, (__int64)this, (__int64)LevelInfoLayer::tryCloneLevel, 0); *(this + 76) = (cocos2d::CCNode *)v163; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v163); v164 = (__int64)*(this + 76); v165 = v17; v166 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v164 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v352, v165, (const cocos2d::CCPoint *)v348); v166(v164, &v352); (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)*(this + 76) + 344LL))( *(this + 76), *((_DWORD *)*(this + 63) + 245) != *((_DWORD *)*(this + 63) + 246)); v167 = (__int64)*(this + 76); v168 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v167 + 1056LL); v169 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v167 + 352LL))(v167); v168(v167, v169); goto LABEL_92; } LABEL_123: v259 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_duplicateBtn_001.png", v159); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v259 + 160LL))(v259, v156); v260 = CCMenuItemSpriteExtra::create(v259, 0, (__int64)this, (__int64)LevelInfoLayer::confirmClone, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v260); v261 = v17; v262 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v260 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v352, v261, (const cocos2d::CCPoint *)v348); v262(v260, &v352); LABEL_92: v171 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v170); v329 = (cocos2d::CCLayer *)CCMenuItemSpriteExtra::create(v171, 0, (__int64)this, (__int64)LevelInfoLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v329, 1.6); v172 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v329, nullptr); (*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCDirector **, __int64))*this + 58))(this, v172, 1); v173 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v172 + 23); v174 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v172); v175 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v174); v177 = v176; v178 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v175); cocos2d::CCDirector::getScreenTop(v178); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, v177 + 24.0, v179 - 23.0); v173(v172, &v352); hasCompletedLevel = (unsigned int)(*((_DWORD *)*(this + 63) + 230) - *((_DWORD *)*(this + 63) + 231)); if ( (int)hasCompletedLevel <= 0 ) { v320 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)hasCompletedLevel); hasCompletedLevel = (unsigned __int8)GameStatsManager::hasCompletedLevel(v320, *(this + 63)); if ( (_BYTE)hasCompletedLevel ) { v321 = *(this + 63); if ( *((_DWORD *)v321 + 233) - *((_DWORD *)v321 + 234) == 1 ) { v327 = (GameStatsManager *)GameStatsManager::sharedState(v321); GameStatsManager::completedDemonLevel(v327, *(this + 63)); v321 = *(this + 63); } hasCompletedLevel = (unsigned int)(*((_DWORD *)v321 + 237) - *((_DWORD *)v321 + 238)); if ( (int)hasCompletedLevel > 0 ) { v322 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)hasCompletedLevel); hasCompletedLevel = GameStatsManager::completedStarLevel(v322, *(this + 63)); } } } v181 = (cocos2d::CCDirector **)cocos2d::CCMenu::create((cocos2d::CCMenu *)hasCompletedLevel); v183 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v182); v331 = CCMenuItemSpriteExtra::create(v183, 0, (__int64)this, (__int64)LevelInfoLayer::onLevelInfo, 0); CCMenuItemSpriteExtra::setSizeMult(v331, 1.2); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v181 + 57))(v181, v331); v184 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v181 + 23); v185 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v181); v186 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v185); v188 = v187; v189 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v186); cocos2d::CCDirector::getScreenBottom(v189); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, v188 + 30.0, v190 + 30.0); v184(v181, &v352); v191 = (cocos2d::CCMenu *)(*((__int64 (__fastcall **)(cocos2d::CCNode **, cocos2d::CCDirector **, __int64))*this + 58))( this, v181, 2); v192 = cocos2d::CCMenu::create(v191); (*((void (__fastcall **)(cocos2d::CCNode **, __int64, __int64))*this + 58))(this, v192, 21); v193 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v192 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, *(float *)&v340 - 85.0, *((float *)&v340 + 1) - 25.0); v193(v192, &v352); v195 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"garageRope_001.png", v194); v196 = (_DWORD *)CCMenuItemSpriteExtra::create(v195, 0, (__int64)this, (__int64)LevelInfoLayer::onGarage, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v196, 1.2); CCMenuItemSpriteExtra::useAnimationType(v196, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, 0.0, -8.0); *(__n128 *)&v197 = cocos2d::CCPoint::operator=(v196 + 117, &v352); v196[119] = 1045220557; v196[120] = 1045220557; (*(void (__fastcall **)(__int64, _DWORD *, long double))(*(_QWORD *)v192 + 456LL))(v192, v196, v197); if ( *((_BYTE *)*(this + 63) + 912) ) v199 = "gj_heartOn_001.png"; else v199 = "gj_heartOff_001.png"; v200 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v199, v198); v201 = CCMenuItemSpriteExtra::create(v200, 0, (__int64)this, (__int64)LevelInfoLayer::onFavorite, 0); CCMenuItemSpriteExtra::setSizeMult(v201, 1.1); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64, __int64))*v181 + 58))(v181, v201, 100); v202 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v201 + 184LL); v203 = (*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v181 + 24))(v181); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v350, 38.0, 0.0); cocos2d::CCPoint::operator+(&v351, v203); cocos2d::CCNode::convertToNodeSpace(&v352, (cocos2d::CCNode *)v181, (const cocos2d::CCPoint *)&v351); v202(v201, &v352); v205 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v204); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v205 + 160LL))(v205, 0.9); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v205 + 360LL))(v205, 90.0); v206 = CCMenuItemSpriteExtra::create(v205, 0, (__int64)this, (__int64)LevelInfoLayer::confirmMoveToTop, 0); CCMenuItemSpriteExtra::setSizeMult(v206, 1.1); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64, __int64))*v181 + 58))(v181, v206, 100); v207 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v206 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, *(float *)&v340 - 73.0, 55.0); cocos2d::CCNode::convertToNodeSpace(&v352, (cocos2d::CCNode *)v181, (const cocos2d::CCPoint *)&v351); v207(v206, &v352); v209 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_leftBtn_001.png", v208); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v209 + 160LL))(v209, 0.9); cocos2d::CCSprite::setFlipY(v209, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v209 + 360LL))(v209, -90.0); v210 = CCMenuItemSpriteExtra::create((__int64)v209, 0, (__int64)this, (__int64)LevelInfoLayer::confirmMoveToBottom, 0); CCMenuItemSpriteExtra::setSizeMult(v210, 1.1); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64, __int64))*v181 + 58))(v181, v210, 100); v211 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v210 + 184LL); v212 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v206 + 192LL))(v206); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 0.0, -30.0); cocos2d::CCPoint::operator+(&v352, v212); v211(v210, &v352); if ( *((_BYTE *)this + 704) ) (*((void (__fastcall **)(cocos2d::CCDirector **, _QWORD))*v181 + 43))(v181, 0); v213 = (__int64)*(this + 63); v214 = (SongInfoObject *)*(unsigned int *)(v213 + 608); if ( (_DWORD)v214 ) { SongObject = (CustomSongWidget *)SongInfoObject::create(v214, v213); v216 = 0; } else { SongObject = (CustomSongWidget *)LevelTools::getSongObject((LevelTools *)*(unsigned int *)(v213 + 604)); v216 = v335; } v217 = CustomSongWidget::create(SongObject, nullptr, nullptr, 0, 1, v216, 0, 0, 0, 0, 1, v328); *(this + 92) = (cocos2d::CCNode *)v217; (*((void (__fastcall **)(cocos2d::CCNode **, __int64))*this + 57))(this, v217); v218 = (cocos2d::CCDirector **)*(this + 92); v219 = *(float *)&v340 * 0.5; v333 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v218 + 23); v220 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v218); cocos2d::CCDirector::getScreenBottom(v220); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, v219, v221 + 45.0); v333(v218, &v352); if ( *((_BYTE *)SongObject + 432) ) CustomSongWidget::onGetSongInfo(*(this + 92), nullptr); v222 = (__int64)*(this + 63); v356 = nullptr; v357 = 0; v358 = nullptr; v223 = (__int64)*(this + 92); if ( (*(_BYTE *)(v222 + 1240) & 1) != 0 ) { std::string::__init((__int64 *)&v356, *(void **)(v222 + 1256), *(_QWORD *)(v222 + 1248)); v222 = (__int64)*(this + 63); } else { v224 = *(_QWORD *)(v222 + 1248); v356 = *(cocos2d::CCMenu **)(v222 + 1240); v357 = v224; v358 = *(void **)(v222 + 1256); } v359 = nullptr; v360 = 0; v361 = nullptr; if ( (*(_BYTE *)(v222 + 1264) & 1) != 0 ) { std::string::__init((__int64 *)&v359, *(void **)(v222 + 1280), *(_QWORD *)(v222 + 1272)); v222 = (__int64)*(this + 63); } else { v225 = *(_QWORD *)(v222 + 1272); v359 = *(char **)(v222 + 1264); v360 = v225; v361 = *(cocos2d::CCSprite **)(v222 + 1280); } CustomSongWidget::updateWithMultiAssets(v223, &v356, &v359, *(unsigned int *)(v222 + 1288)); if ( ((unsigned __int8)v359 & 1) != 0 ) operator delete(v361); v226 = (cocos2d::CCMenu *)(unsigned __int8)v356; if ( ((unsigned __int8)v356 & 1) != 0 ) operator delete(v358); v227 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v226); v228 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v227 + 23); v229 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v227); v230 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v229); v232 = v231; v233 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v230); cocos2d::CCDirector::getScreenBottom(v233); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, v232 + 30.0, v234 + 30.0); v228(v227, &v352); (*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCDirector **, __int64))*this + 58))(this, v227, 2); v236 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v235); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v236 + 160LL))(v236, 0.6); v237 = CCMenuItemSpriteExtra::create(v236, 0, (__int64)this, (__int64)LevelInfoLayer::onLevelOptions, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v227 + 57))(v227, v237); v337 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v237 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 30.0, 70.0); cocos2d::CCNode::convertToNodeSpace(&v352, (cocos2d::CCNode *)v227, (const cocos2d::CCPoint *)&v351); v337(v237, &v352); v239 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_folderBtn_001.png", v238); v240 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*((unsigned int *)a2 + 229)); v241 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v240); v243 = cocos2d::CCLabelBMFont::create(v241, "bigFont.fnt", v242); *(this + 75) = (cocos2d::CCNode *)v243; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v239 + 464LL))(v239, v243, 1); v334 = (__int64)*(this + 75); v244 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v334 + 184LL); *(float *)&v337 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v239 + 328LL))(v239) * 0.5; v245 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v239 + 328LL))(v239); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, *(float *)&v337, (float)(*(float *)(v245 + 4) * 0.5) + 1.0); v244(v334, &v352); cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 75), 24.0, 0.55, 0.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v239 + 160LL))(v239, 0.8); v246 = CCMenuItemSpriteExtra::create(v239, 0, (__int64)this, (__int64)LevelInfoLayer::onSetFolder, 0); CCMenuItemSpriteExtra::setSizeMult(v246, 1.2); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v181 + 57))(v181, v246); v247 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v246 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, *(float *)&v340 - 73.0, 80.0); cocos2d::CCNode::convertToNodeSpace(&v352, (cocos2d::CCNode *)v181, (const cocos2d::CCPoint *)&v351); v247(v246, &v352); v249 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_listAddBtn_001.png", v248); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v249 + 160LL))(v249, 0.9); v250 = CCMenuItemSpriteExtra::create(v249, 0, (__int64)this, (__int64)LevelInfoLayer::onAddToList, 0); (*((void (__fastcall **)(cocos2d::CCDirector **, __int64))*v181 + 57))(v181, v250); v251 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v250 + 184LL); v338 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v246 + 192LL))(v246); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v351, 0.0, 35.0); cocos2d::CCPoint::operator+(&v352, v338); v251(v250, &v352); if ( *((_DWORD *)a2 + 230) - *((_DWORD *)a2 + 231) > 0 || (v252 = (PlatformToolbox *)*((unsigned __int8 *)a2 + 649), *((_BYTE *)a2 + 649)) ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v246 + 344LL))(v246, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v246 + 1056LL))(v246, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v206 + 344LL))(v206, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v206 + 1056LL))(v206, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v210 + 344LL))(v210, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v210 + 1056LL))(v210, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v201 + 344LL))(v201, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v201 + 1056LL))(v201, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v250 + 344LL))(v250, 0); v252 = (PlatformToolbox *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v250 + 1056LL))(v250, 0); } if ( (unsigned __int8)PlatformToolbox::isControllerConnected(v252) ) { GameToolbox::addBackButton((GameToolbox *)this, v329, v253); v290 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_Start_001.png", v289); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 90) + 456LL))(*(this + 90), v290); v291 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v290 + 184LL); v339 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 90) + 328LL))(*(this + 90)) * 0.5; v292 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 90) + 328LL))(*(this + 90)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v352, v339, (float)(*(float *)(v292 + 4) * 0.5) + -40.0); v291(v290, &v352); } isNetworkAvailable = (__int64)*(this + 63); if ( (*(_BYTE *)(isNetworkAvailable + 1432) || *(_BYTE *)(isNetworkAvailable + 1433)) && *(_DWORD *)(isNetworkAvailable + 1140) != 2 ) { isNetworkAvailable = (unsigned int)(*(_DWORD *)(isNetworkAvailable + 932) - *(_DWORD *)(isNetworkAvailable + 936)); if ( (_DWORD)isNetworkAvailable == 1 ) { isNetworkAvailable = PlatformToolbox::isNetworkAvailable((PlatformToolbox *)isNetworkAvailable); if ( (_BYTE)isNetworkAvailable ) { v323 = *(this + 63); if ( *((_BYTE *)v323 + 1432) ) { v325 = GameLevelManager::sharedState(v323); GameLevelManager::getLevelLeaderboard(v325, *(this + 63), 4, 0); v323 = *(this + 63); } isNetworkAvailable = *((unsigned __int8 *)v323 + 1433); if ( (_DWORD)isNetworkAvailable ) { v324 = GameLevelManager::sharedState((GameLevelManager *)isNetworkAvailable); isNetworkAvailable = GameLevelManager::getLevelLeaderboard(v324, *(this + 63), 4, 1); } } } } *(_BYTE *)(GameManager::sharedState((GameManager *)isNetworkAvailable) + 1064) = 0; return v335; }
GD Web Decomp Icon

GD Web Decomp

Raw Source