// // GJPathPage::init from 0x140393330 to 0x140394fd0 (7328 bytes) // // 2 xrefs: // > GJPathPage::create @ 0x1403932e2 // > @ 0x1409230a8 // // 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 11:31:13 +0000 // // Hidden C++ exception states: #wind=15 bool __fastcall GJPathPage::init(__int64 a1, int a2, __int64 a3) { __int64 v5; // rcx unsigned int v6; // r13d char isItemUnlocked; // di bool result; // al __int64 v9; // rdx __int64 v10; // rdx __int64 v11; // rcx __int64 v12; // rax __int64 v13; // rax char v14; // r14 int v15; // r15d cocos2d::CCSprite *v16; // rdi unsigned __int8 v17; // cl __int64 v18; // rbx __int64 v19; // rax float v20; // xmm6_4 double v21; // xmm0_8 float v22; // xmm7_4 float v23; // xmm6_4 double v24; // xmm0_8 int v25; // eax cocos2d::CCObject *v26; // rax struct cocos2d::CCMenu *v27; // rax __int64 v28; // rdi float v29; // xmm13_4 float v30; // xmm7_4 struct cocos2d::CCMenu *v31; // rbx __int64 v32; // rax __int64 *v33; // rsi __int64 v34; // rdi __int64 v35; // rbx __int64 v36; // rax __int64 v37; // rax __int64 v38; // rdi cocos2d::CCString *v39; // rax const char *CString; // rax size_t v41; // r8 const char *v42; // rcx cocos2d::CCSprite *v43; // rbx __int128 *v44; // rdx size_t v45; // r8 float v46; // xmm0_4 float v47; // xmm0_4 float v48; // xmm6_4 float v49; // xmm7_4 __int64 v50; // rax float *v51; // rax __int64 v52; // rax float v53; // xmm15_4 float v54; // xmm10_4 struct cocos2d::CCSprite *v55; // rsi __int64 v56; // rbx __int64 v57; // rax __int64 v58; // rbx __int64 v59; // rbx int v60; // esi __int64 v61; // rbx _QWORD *v62; // rax int Stat; // ebx int v64; // ebx __int64 v65; // rbx _QWORD *v66; // rax struct cocos2d::CCSprite *v67; // rdi __int64 v68; // rbx __int64 v69; // rax __int64 v70; // rax __int64 v71; // rbx __int64 v72; // rbx int v73; // r13d cocos2d::CCString *v74; // rax const char *v75; // rax size_t v76; // r8 __int64 v77; // rcx __int64 *v78; // rbx int v79; // ebx unsigned int v80; // esi __int64 *v81; // rdi cocos2d::CCObject *v82; // r14 __int64 v83; // rbx __int64 v84; // rax __int64 v85; // rbx float v86; // xmm6_4 float *v87; // rax __int64 v88; // rax __int64 v89; // rdx __int64 v90; // rcx __int64 v91; // r8 __int128 *v92; // rbx __int64 v93; // rax __int64 v94; // rbx __int64 v95; // rsi void (__fastcall **v96)(__int64, void *); // rax __int64 v97; // rcx __int64 v98; // rdx __int64 v99; // rcx __int64 v100; // rcx __int64 v101; // rcx __int64 v102; // rcx __int64 v103; // rcx __int16 v104; // di __int64 v105; // rdx __int64 v106; // rcx __int64 v107; // rdx __int64 v108; // rdx cocos2d::CCArray *v109; // rax cocos2d::CCArray *v110; // rdi unsigned int v111; // ebx struct cocos2d::CCObject *v112; // rax float v113; // xmm6_4 float v114; // xmm7_4 __int64 v115; // rsi __int64 v116; // rbx __int64 v117; // rdi __int64 v118; // rax __int64 v119; // rax __int64 v120; // rax struct cocos2d::CCSprite *v121; // rdi __int64 v122; // rbx __int64 v123; // rax __int64 v124; // rbx __int64 v125; // rax __int64 v126; // rbx __int64 v127; // rbx __int64 v128; // rdx struct cocos2d::CCSprite *v129; // rdi __int64 v130; // rbx __int64 v131; // rsi __int64 v132; // rax __int64 v133; // rax struct cocos2d::CCSprite *v134; // rdi __int64 v135; // rbx __int64 v136; // rax __int64 v137; // rax float v138; // xmm12_4 struct cocos2d::CCSprite *v139; // r14 cocos2d::CCObject *v140; // rsi __int64 v141; // rdi __int64 v142; // rbx __int64 v143; // rax __int64 v144; // rax __m128i *v145; // rcx struct cocos2d::CCLabelBMFont *v146; // rsi __int64 v147; // rbx float *v148; // rax __int64 v149; // rax struct cocos2d::CCSprite *v150; // rdi float v151; // xmm6_4 double v152; // xmm0_8 __int64 v153; // rax __int64 v154; // rbx __int64 v155; // rax float v156; // xmm10_4 cocos2d::CCString *v157; // rax const char *v158; // rax struct cocos2d::CCLabelBMFont *v159; // rdi __int64 v160; // rbx float v161; // xmm10_4 __int64 v162; // rax struct cocos2d::CCSprite *v163; // rsi float v164; // xmm6_4 float v165; // xmm0_4 __int64 v166; // rax __int64 v167; // rbx __int64 v168; // rax struct cocos2d::CCSprite *v169; // rdi __int64 v170; // rax __int64 v171; // rbx __int64 v172; // rax __int64 v173; // rcx int v174; // r13d __int64 v175; // rsi int v176; // esi __int64 v177; // r14 float v178; // xmm7_4 float v179; // xmm6_4 __int64 v180; // rdi float *v181; // rax float *v182; // rbx __int64 v183; // rax struct cocos2d::CCSprite *v184; // rsi __int64 v185; // rbx __int64 v186; // rax __int64 v187; // rdx __int64 v188; // [rsp+38h] [rbp-D0h] char v189; // [rsp+88h] [rbp-80h] char v190; // [rsp+88h] [rbp-80h] char v191; // [rsp+8Ah] [rbp-7Eh] char v192; // [rsp+8Ah] [rbp-7Eh] _DWORD v193[4]; // [rsp+98h] [rbp-70h] BYREF char v194; // [rsp+A8h] [rbp-60h] char v195; // [rsp+AAh] [rbp-5Eh] _WORD v196[2]; // [rsp+ACh] [rbp-5Ch] BYREF char v197; // [rsp+B0h] [rbp-58h] __int16 v198; // [rsp+B4h] [rbp-54h] BYREF char v199; // [rsp+B6h] [rbp-52h] _WORD v200[8]; // [rsp+B8h] [rbp-50h] BYREF float v201; // [rsp+C8h] [rbp-40h] BYREF float v202; // [rsp+CCh] [rbp-3Ch] __m128i *v203; // [rsp+D0h] [rbp-38h] BYREF int v204; // [rsp+D8h] [rbp-30h] float v205[3]; // [rsp+DCh] [rbp-2Ch] BYREF _DWORD v206[4]; // [rsp+E8h] [rbp-20h] BYREF void *v207; // [rsp+F8h] [rbp-10h] BYREF __m128i *v208; // [rsp+100h] [rbp-8h] BYREF __int16 v209; // [rsp+108h] [rbp+0h] __int16 v210; // [rsp+118h] [rbp+10h] BYREF char v211; // [rsp+11Ah] [rbp+12h] unsigned int v212; // [rsp+128h] [rbp+20h] BYREF int v213; // [rsp+130h] [rbp+28h] float v214; // [rsp+134h] [rbp+2Ch] _BYTE v215[4]; // [rsp+138h] [rbp+30h] BYREF float v216; // [rsp+13Ch] [rbp+34h] void *v217; // [rsp+140h] [rbp+38h] BYREF char v218[8]; // [rsp+148h] [rbp+40h] BYREF struct cocos2d::CCSprite *v219; // [rsp+150h] [rbp+48h] BYREF char v220[8]; // [rsp+158h] [rbp+50h] BYREF char v221[8]; // [rsp+160h] [rbp+58h] BYREF __m128i *v222; // [rsp+168h] [rbp+60h] void *v223; // [rsp+170h] [rbp+68h] __int64 *v224; // [rsp+178h] [rbp+70h] char v225[8]; // [rsp+180h] [rbp+78h] BYREF char v226[8]; // [rsp+188h] [rbp+80h] BYREF char v227[8]; // [rsp+190h] [rbp+88h] BYREF char v228[8]; // [rsp+198h] [rbp+90h] BYREF __m128i v229; // [rsp+1A0h] [rbp+98h] BYREF __int64 v230; // [rsp+1B0h] [rbp+A8h] unsigned __int64 v231; // [rsp+1B8h] [rbp+B0h] __int128 v232; // [rsp+1C0h] [rbp+B8h] BYREF __int64 v233; // [rsp+1D0h] [rbp+C8h] unsigned __int64 v234; // [rsp+1D8h] [rbp+D0h] __int128 v235; // [rsp+1E0h] [rbp+D8h] BYREF __int64 v236; // [rsp+1F0h] [rbp+E8h] unsigned __int64 v237; // [rsp+1F8h] [rbp+F0h] v204 = a2; *(_DWORD *)(a1 + 688) = a2; *(_QWORD *)(a1 + 680) = a3; v198 = 19275; memset(v193, 75, 3); (**(void (__fastcall ***)(__int64, _DWORD *))(*(_QWORD *)(a3 + 672) + 320LL))(*(_QWORD *)(a3 + 672) + 320LL, v193); v6 = a2 + 5; if ( !qword_14090BFE0 ) { v203 = (__m128i *)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v203); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); } isItemUnlocked = GameStatsManager::isItemUnlocked(v5, 0xCu, v6); v197 = isItemUnlocked; FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); v206[0] = -1358954496; v205[0] = -1.1641532e-10; result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)v205); if ( result ) { LOBYTE(v9) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v9); LOBYTE(v10) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v10); v12 = cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::getWinSize(v12, &v201); v13 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v13; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v13); memset(v196, 50, 3); v198 = 7710; v199 = 30; v14 = -106; v191 = -106; v195 = -106; LOWORD(v193[0]) = 7935; v189 = -1; v194 = -1; v15 = 0; if ( isItemUnlocked ) { v16 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_140773628); switch ( a2 ) { case 1: LOWORD(v193[0]) = -32001; v17 = 74; v196[0] = -32001; LOBYTE(v196[1]) = 74; v14 = -1; v191 = 75; v195 = 0; v189 = -56; v194 = 0; break; case 2: LOWORD(v193[0]) = -31488; v17 = -49; v196[0] = -31429; LOBYTE(v196[1]) = -49; v14 = 0; v191 = -106; v195 = -1; v189 = -1; v194 = -1; break; case 3: LOWORD(v193[0]) = -24576; v17 = 56; v196[0] = -24503; LOBYTE(v196[1]) = 56; v14 = 0; v191 = -96; v195 = 0; v189 = -1; v194 = 0; break; case 4: v17 = -62; v196[0] = 20367; LOBYTE(v196[1]) = -62; v191 = 0; v195 = -56; LOWORD(v193[0]) = 20479; v189 = 50; v194 = -1; break; case 5: v17 = 61; v196[0] = 19140; LOBYTE(v196[1]) = 61; v14 = -81; v191 = 0; v195 = 0; LOWORD(v193[0]) = 19199; v189 = 50; v194 = 25; break; case 6: v17 = 51; v196[0] = 21669; LOBYTE(v196[1]) = 51; v14 = -93; v191 = 98; v195 = 70; LOWORD(v193[0]) = 21757; v189 = -32; v194 = -96; break; case 7: v17 = 34; v196[0] = 8934; LOBYTE(v196[1]) = 34; v191 = 0; v195 = 0; LOWORD(v193[0]) = 8959; v189 = 0; v194 = 0; break; case 8: v17 = -52; v196[0] = -13108; LOBYTE(v196[1]) = -52; v14 = 0x80; v191 = 0x80; v195 = 0x80; LOWORD(v193[0]) = -13057; v189 = -1; v194 = -1; break; case 9: LOWORD(v193[0]) = -19713; v17 = 79; v196[0] = -19713; LOBYTE(v196[1]) = 79; v14 = -1; v191 = -6; v195 = 127; v189 = -1; v194 = -64; break; case 10: v17 = -103; v196[0] = 17858; LOBYTE(v196[1]) = -103; v14 = 100; v191 = 0; v195 = -106; LOWORD(v193[0]) = 17919; v189 = 0; v194 = 125; break; default: v17 = v196[1]; break; } LOBYTE(v200[0]) = (int)(float)((float)LOBYTE(v196[0]) * 0.22); HIBYTE(v200[0]) = (int)(float)((float)HIBYTE(v196[0]) * 0.22); v198 = v200[0]; v199 = (int)(float)((float)v17 * 0.22); } else { v232 = 0; v233 = 0; v234 = 0; *(_QWORD *)&v232 = sub_14003D460(0x20u); v233 = 19; v234 = 31; strcpy((char *)v232, "pathInnerBG_001.png"); v16 = CCSpriteGrayscale::createWithSpriteFrameName((__int64)&v232); sub_14003D310((__int64)&v232); qmemcpy((char *)v16 + 604, "43S?43S?43S?", 12); } (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v16, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v16 + 160LL))(v16); v18 = *(_QWORD *)v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v203, v201 * 0.5, v202 * 0.5); (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(v18 + 184))(v16, v19); v20 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v16 + 320LL))(v16); v21 = (*(double (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v16 + 168LL))(v16); v22 = *(float *)&v21 * v20; v23 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v16 + 320LL))(v16) + 4); v24 = (*(double (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v16 + 168LL))(v16); (**((void (__fastcall ***)(__int64, _WORD *))v16 + 40))((__int64)v16 + 320, v196); *(_DWORD *)(a1 + 640) = -1; v25 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("backArrowPlain_01_001.png"); v26 = CCMenuItemSpriteExtra::create(v25, 0, a1, (__int64)GJPathPage::onBack); *((_DWORD *)v26 + 93) = 1070386381; v27 = cocos2d::CCMenu::create(v26, 0); *(_QWORD *)(a1 + 552) = v27; v28 = *(_QWORD *)v27; v29 = (float)(*(float *)&v24 * v23) * 0.5; v214 = v29; v30 = v22 * 0.5; v205[0] = v30; v31 = v27; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v203, (float)((float)(v201 * 0.5) - v30) + 12.0, (float)((float)(v202 * 0.5) + v29) - 12.0); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v28 + 184))(v31, v32); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); v203 = &v229; v229 = 0; v230 = 0; v231 = 0; v229.m128i_i64[0] = (__int64)sub_14003D460(0xD0u); v230 = 195; v231 = 207; strcpy( (char *)v229.m128i_i64[0], "When you activate a path, Stars and Moons you collect will level up your Path. You" " can unlock multiple paths, but only one can be active at a time."); v233 = 14; v234 = 15; strcpy((char *)&v232, "Paths of Power"); HIBYTE(v232) = 0; v33 = (__int64 *)InfoAlertButton::create(&v232, &v229); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v33); v34 = *v33; v35 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v203, (float)((float)(v201 * 0.5) + v30) - 14.0, (float)((float)(v202 * 0.5) + v29) - 14.0); cocos2d::CCNode::convertToNodeSpace(v35, &v219, v36); (*(void (__fastcall **)(__int64 *, __int64))(v34 + 184))(v33, v37); v38 = GJPathSprite::create(*(unsigned int *)(a1 + 688)); GJPathSprite::updateState(v38); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v38, 1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v38 + 160LL))(v38); v39 = cocos2d::CCString::createWithFormat("pathLabel_%02d_001.png", v204); CString = cocos2d::CCString::getCString(v39); v235 = 0; v236 = 0; v237 = 0; v41 = -1; do ++v41; while ( CString[v41] ); sub_14003D230(&v235, CString, v41); if ( v197 ) { v42 = (const char *)&v235; if ( v237 > 0xF ) v42 = (const char *)v235; v43 = cocos2d::CCSprite::createWithSpriteFrameName(v42); } else { v44 = &v235; if ( v237 > 0xF ) v44 = (__int128 *)v235; v229 = 0; v230 = 0; v231 = 0; v45 = -1; do ++v45; while ( *((_BYTE *)v44 + v45) ); sub_14003D230(&v229, v44, v45); v43 = CCSpriteGrayscale::createWithSpriteFrameName((__int64)&v229); sub_14003D310((__int64)&v229); v46 = 3.0; switch ( v6 ) { case 7u: case 0xEu: v46 = 2.5; break; case 9u: v46 = 2.4000001; break; case 0xAu: v46 = 3.5; break; case 0xCu: v46 = 3.75; break; case 0xDu: v46 = 2.0; break; case 0xFu: v46 = 2.75; break; default: break; } v47 = v46 * 0.33000001; *((float *)v43 + 151) = v47; *((float *)v43 + 152) = v47; *((float *)v43 + 153) = v47; memset(v200, 100, 3); (**((void (__fastcall ***)(__int64, _WORD *))v43 + 40))((__int64)v43 + 320, v200); } (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v43, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v218, v201 * 0.5, (float)((float)(v202 * 0.5) + v29) - 8.0); v48 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v38 + 320LL))(v38); v49 = (float)((float)(v48 + *(float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v43 + 320LL))(v43)) + 10.0) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v203, v49 - (float)(v48 * 0.5), 0.0); cocos2d::CCPoint::operator+(v218, &v207, v50); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v38 + 184LL))(v38, &v207); v51 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v43 + 320LL))(v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v203, (float)(*v51 * 0.5) - v49, -2.0); cocos2d::CCPoint::operator+(v218, &v207, v52); (*(void (__fastcall **)(cocos2d::CCSprite *, void **))(*(_QWORD *)v43 + 184LL))(v43, &v207); v53 = (float)(v201 * 0.5) - 170.0; v54 = (float)((float)(v202 * 0.5) - 0.0) + 0.0; v219 = cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png"); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v215, (float)(v201 * 0.5) - 170.0, (float)((float)((float)(v202 * 0.5) - v29) + 30.0) + 10.0); v55 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare20_001.png"); v203 = (__m128i *)v55; v56 = *(_QWORD *)v55; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v207, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v56 + 288))(v55, v57); (*(void (__fastcall **)(struct cocos2d::CCSprite *, _BYTE *))(*(_QWORD *)v55 + 184LL))(v55, v215); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v55, 0); v58 = *(_QWORD *)v55; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v55 + 320LL))(v55); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v58 + 120))(v55); v59 = *(_QWORD *)v55; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v55 + 320LL))(v55); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v59 + 136))(v55); (**((void (__fastcall ***)(__int64, __int16 *))v55 + 40))((__int64)v55 + 320, &v198); v60 = v204; v61 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v207 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v207); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v61 = qword_14090BFE0; } v62 = GameToolbox::intToString(&v229, v60 + 29); if ( v62[3] > 0xFu ) v62 = (_QWORD *)*v62; Stat = GameStatsManager::getStat(v61, v62); sub_14003D310((__int64)&v229); if ( Stat <= 1000 ) { v65 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v207 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v207); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v65 = qword_14090BFE0; } v66 = GameToolbox::intToString(&v232, v60 + 29); if ( v66[3] > 0xFu ) v66 = (_QWORD *)*v66; v64 = GameStatsManager::getStat(v65, v66); v213 = v64; sub_14003D310((__int64)&v232); } else { v64 = 1000; v213 = 1000; } LODWORD(v207) = fminf(1.0, (float)v64 / 1000.0); if ( *(float *)&v207 > 0.0 ) { v67 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare20_001.png"); v68 = *(_QWORD *)v67; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v212, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v68 + 288))(v67, v69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v206, 2.0, 0.0); cocos2d::CCPoint::operator+(v215, &v212, v70); (*(void (__fastcall **)(struct cocos2d::CCSprite *, unsigned int *))(*(_QWORD *)v67 + 184LL))(v67, &v212); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v67, 1); v71 = *(_QWORD *)v67; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v67 + 320LL))(v67); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v71 + 120))(v67); v72 = *(_QWORD *)v67; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v67 + 320LL))(v67); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v72 + 136))(v67); (**((void (__fastcall ***)(__int64, _WORD *))v67 + 40))((__int64)v67 + 320, v196); } v73 = 0; LOBYTE(v200[0]) = v193[0]; HIBYTE(v200[0]) = v189; LOBYTE(v209) = v14; HIBYTE(v209) = v191; do { v74 = cocos2d::CCString::createWithFormat("geometry.ach.path%02d.%02d", v60, v73); v75 = cocos2d::CCString::getCString(v74); v232 = 0; v233 = 0; v234 = 0; v76 = -1; do ++v76; while ( v75[v76] ); sub_14003D230(&v232, v75, v76); v212 = 0; v193[0] = 0; v222 = &v229; v78 = (__int64 *)sub_14003F4F0((__int64)&v229, (__int64)&v232); if ( !qword_14090BFD0 ) { v223 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v223); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } GameManager::getUnlockForAchievement(v77, v78, &v212, v193); v79 = v193[0]; if ( v193[0] ) { v80 = v212; } else { v79 = 1; v80 = 1; } v81 = (__int64 *)operator new(0x278u); v224 = v81; cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v81); *v81 = (__int64)&GJItemIcon::`vftable'; v81[40] = (__int64)&GJItemIcon::`vftable'; v81[43] = (__int64)&GJItemIcon::`vftable'; v81[75] = 0; *((_DWORD *)v81 + 152) = 0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)((char *)v81 + 612)); *((_BYTE *)v81 + 620) = 0; v81[78] = 0; v210 = v200[0]; v211 = v194; LOWORD(v206[0]) = v209; BYTE2(v206[0]) = v195; if ( GJItemIcon::init((__int64)v81, v79, v80, (__int64)v206, (__int64)&v210, 0, v188, 1) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v81); if ( v81 ) { (*(void (__fastcall **)(__int64 *))(*v81 + 160))(v81); v82 = CCMenuItemSpriteExtra::create((int)v81, 0, a1, (__int64)GJPathPage::onIconInfo); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v82); v83 = *(_QWORD *)v82; v84 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v219 + 320LL))(v219); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v83 + 312))(v82, v84); v85 = *v81; v86 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v82 + 320LL))(v82) + 4) * 0.5; v87 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v82 + 320LL))(v82); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, *v87 * 0.5, v86); (*(void (__fastcall **)(__int64 *, __int64))(v85 + 184))(v81, v88); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v82 + 64LL))(v82, (unsigned int)v73); if ( !v73 && v197 ) goto LABEL_82; v92 = &v232; if ( v234 > 0xF ) v92 = (__int128 *)v232; v93 = AchievementManager::sharedState(v90, v89, v91); if ( (int)AchievementManager::percentForAchievement(v93, (__int64)v92) >= 100 ) { LABEL_82: v190 = 1; } else { v190 = 0; GJItemIcon::changeToLockedState(v81); LOWORD(v193[0]) = v198; v192 = v199; v94 = v81[75]; v95 = v94 + 320; v96 = *(void (__fastcall ***)(__int64, void *))(v94 + 320); v97 = v94 + 320; if ( *((_BYTE *)v81 + 620) ) { (*v96)(v97, &unk_140703468); LOBYTE(v98) = 120; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v95 + 40LL))(v94 + 320, v98); *(_BYTE *)(v94 + 660) = 0; SimplePlayer::updateColors(v94); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v94 + 608) + 336LL))(*(_QWORD *)(v94 + 608), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v94 + 616) + 336LL))(*(_QWORD *)(v94 + 616), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v94 + 632) + 336LL))(*(_QWORD *)(v94 + 632), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v94 + 624) + 336LL))(*(_QWORD *)(v94 + 624), 0); v99 = *(_QWORD *)(v94 + 640); if ( v99 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v99 + 1104LL))(v99); v100 = *(_QWORD *)(v94 + 640); if ( v100 ) (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v100 + 768) + 336LL))(*(_QWORD *)(v100 + 768), 0); v101 = *(_QWORD *)(v94 + 648); if ( v101 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v101 + 1104LL))(v101); v102 = *(_QWORD *)(v94 + 648); if ( v102 ) (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v102 + 768) + 336LL))(*(_QWORD *)(v102 + 768), 0); v103 = *(_QWORD *)(v94 + 640); v104 = v193[0]; if ( v103 ) { *(_WORD *)(v103 + 753) = v193[0]; *(_BYTE *)(v103 + 755) = v192; GJRobotSprite::updateColors(); LOBYTE(v105) = -66; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(v94 + 640) + 320LL) + 40LL))( *(_QWORD *)(v94 + 640) + 320LL, v105); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v94 + 640) + 1104LL))(*(_QWORD *)(v94 + 640)); } v106 = *(_QWORD *)(v94 + 648); if ( v106 ) { *(_WORD *)(v106 + 753) = v104; *(_BYTE *)(v106 + 755) = v192; GJRobotSprite::updateColors(); LOBYTE(v107) = -66; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(v94 + 648) + 320LL) + 40LL))( *(_QWORD *)(v94 + 648) + 320LL, v107); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v94 + 648) + 1104LL))(*(_QWORD *)(v94 + 648)); } } else { (*v96)(v97, &unk_140703468); LOBYTE(v108) = 120; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v95 + 40LL))(v94 + 320, v108); v109 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v94 + 480LL))(v94); v110 = v109; if ( v109 ) { v111 = 0; if ( cocos2d::CCArray::count(v109) ) { do { v112 = cocos2d::CCArray::objectAtIndex(v110, v111); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v112 + 336LL))(v112, 0); ++v111; } while ( v111 < cocos2d::CCArray::count(v110) ); } } } } v113 = (float)((float)v73 * 34.0) + v53; v114 = v54; if ( (v73 & 1) != 0 ) v114 = v54 + 0.0; v115 = *(_QWORD *)v82; v116 = *(_QWORD *)(a1 + 584); v117 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v226, v113, v114 + 10.0); cocos2d::CCNode::convertToWorldSpace(v116, v227, v118); cocos2d::CCNode::convertToNodeSpace(v117, v228, v119); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v115 + 184))(v82, v120); v121 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare20_001.png"); v122 = *(_QWORD *)v121; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v220, 0.5, 1.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v122 + 288))(v121, v123); v124 = *(_QWORD *)v121; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v221, v113, (float)(v114 - 17.0) + 10.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v124 + 184))(v121, v125); v126 = *(_QWORD *)v121; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v121 + 320LL))(v121); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v126 + 120))(v121); v127 = *(_QWORD *)v121; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v121 + 320LL))(v121); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v127 + 136))(v121); (**((void (__fastcall ***)(__int64, void *))v121 + 40))((__int64)v121 + 320, &unk_140703498); LOBYTE(v128) = 25; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v121 + 40) + 40LL))((__int64)v121 + 320, v128); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v121, 0); v129 = cocos2d::CCSprite::create("smallDot.png"); v130 = *(_QWORD *)v129; v131 = (__int64)v203; v132 = (*(__int64 (__fastcall **)(__m128i *))(v203->m128i_i64[0] + 200))(v203); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v217, v113, *(float *)(v132 + 4)); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v130 + 184))(v129, v133); (**((void (__fastcall ***)(__int64, __int16 *))v129 + 40))((__int64)v129 + 320, &v198); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v129, 0); if ( v190 ) { v134 = cocos2d::CCSprite::create("smallDot.png"); v135 = *(_QWORD *)v134; v136 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v131 + 200LL))(v131); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, v113, *(float *)(v136 + 4)); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v135 + 184))(v134, v137); (**((void (__fastcall ***)(__int64, _WORD *))v134 + 40))((__int64)v134 + 320, v196); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v134 + 160LL))(v134); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v134, 1); } } } else { (*(void (__fastcall **)(__int64 *, __int64))(*v81 + 8))(v81, 1); } sub_14003D310((__int64)&v232); ++v73; v60 = v204; } while ( v73 < 11 ); v138 = *(float *)&v207; if ( v197 ) { v157 = cocos2d::CCString::createWithFormat("%i/%i", v213, 1000); v158 = cocos2d::CCString::getCString(v157); v159 = cocos2d::CCLabelBMFont::create(v158, "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 160LL))(v159); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v159, 1); v160 = *(_QWORD *)v159; v161 = v214; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v208, (float)(v201 * 0.5) - 12.0, (float)((float)((float)(v202 * 0.5) - v214) + 12.0) + 7.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v160 + 184))(v159, v162); v163 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starsIcon_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v163, 1); v164 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 320LL))(v159); v165 = (*(float (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 168LL))(v159); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, (float)(v165 * v164) * 0.5 + 7.0, -1.5); v167 = v166; v168 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 200LL))(v159); cocos2d::CCPoint::operator+(v168, &v203, v167); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __m128i **))(*(_QWORD *)v163 + 184LL))(v163, &v203); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v163 + 160LL))(v163); v169 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14073A060); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v169, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v217, 12.0, 0.0); v171 = v170; v172 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v163 + 200LL))(v163); cocos2d::CCPoint::operator+(v172, &v203, v171); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __m128i **))(*(_QWORD *)v169 + 184LL))(v169, &v203); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v169 + 160LL))(v169); if ( v138 >= 1.0 ) { LABEL_101: sub_14003D310((__int64)&v235); return 1; } v173 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v208 = (__m128i *)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v208); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v173 = qword_14090BFE0; } GameStatsManager::trySelectActivePath(v173); v174 = *(_DWORD *)(a1 + 688) + 29; v208 = &v229; v175 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v217 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v217); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v175 = qword_14090BFE0; } v176 = *(_DWORD *)(v175 + 996); v229 = 0; v230 = 6; v231 = 15; strcpy(v229.m128i_i8, "Active"); v177 = *(_QWORD *)(a1 + 584); v178 = (float)((float)(v202 * 0.5) - v161) - 8.0; v156 = v205[0]; v179 = (float)((float)(v201 * 0.5) - v205[0]) + 17.0; v180 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v221, 6.0, 0.5); v182 = v181; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v220, v179, v178); GameToolbox::createToggleButton( v229.m128i_i8, (__int64)GJPathPage::onActivatePath, v176 == v174, v180, v183, a1, v177, 0.60000002, 0.5, 100.0, v182, "goldFont.fnt", 0, 0, nullptr); } else { v139 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lock_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 160LL))(v139); v140 = CCMenuItemSpriteExtra::create((int)v139, 0, a1, (__int64)GJPathPage::onUnlock); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v140); v141 = *(_QWORD *)v140; v142 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, v201 * 0.5, (float)((float)(v202 * 0.5) - v214) + 15.0); cocos2d::CCNode::convertToNodeSpace(v142, &v217, v143); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v141 + 184))(v140, v144); GameToolbox::pointsToString(&v229, 25000); v145 = &v229; if ( v231 > 0xF ) v145 = (__m128i *)v229.m128i_i64[0]; v146 = cocos2d::CCLabelBMFont::create(v145->m128i_i8, (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v139 + 464LL))( v139, v146); v147 = *(_QWORD *)v146; v148 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 320LL))(v139); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, (float)(*v148 * 0.5) - 4.0, -6.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v147 + 184))(v146, v149); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v146 + 160LL))(v146); v150 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071BE38); (*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 464LL))( v139, v150); v151 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v146 + 320LL))(v146) * 0.5; v152 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v146 + 168LL))(v146); LOBYTE(v15) = v204 == 4; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v208, (float)((float)(*(float *)&v152 * v151) + 6.0) + (float)v15, -0.5); v154 = v153; v155 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v146 + 200LL))(v146); cocos2d::CCPoint::operator+(v155, &v203, v154); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __m128i **))(*(_QWORD *)v150 + 184LL))(v150, &v203); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v150 + 160LL))(v150); sub_14003D310((__int64)&v229); v156 = v205[0]; } if ( v138 < 1.0 ) { v184 = cocos2d::CCSprite::createWithSpriteFrameName("chestIcon_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v184, 3); (**((void (__fastcall ***)(__int64, __int16 *))v184 + 40))((__int64)v184 + 320, &v198); v185 = *(_QWORD *)v184; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v208, (float)((float)(v201 * 0.5) + v156) - 28.5, v216); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v185 + 184))(v184, v186); LOBYTE(v187) = -56; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v184 + 40) + 40LL))((__int64)v184 + 320, v187); } goto LABEL_101; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source