// // LevelSearchLayer::init from 0x140434450 to 0x1404366eb (8859 bytes) // // 2 xrefs: // > LevelSearchLayer::scene @ 0x140434406 // > @ 0x140926dbc // // 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:32:17 +0000 // // Hidden C++ exception states: #wind=19 bool __fastcall LevelSearchLayer::init(__int64 a1, int a2) { bool result; // al __int64 v5; // rdx __int64 v6; // rax __int64 v7; // rdx __int64 v8; // rcx cocos2d::CCObject *v9; // rax __int64 v10; // rcx __int64 v11; // rax struct cocos2d::CCSprite *v12; // rdi __int64 v13; // rbx __int64 v14; // rax __int64 v15; // rbx __int64 v16; // rax struct cocos2d::CCSprite *v17; // rdi __int64 v18; // rbx __int64 v19; // rax __int64 v20; // rbx __int64 v21; // rcx cocos2d::CCDirector *v22; // rax float v23; // xmm6_4 __int64 v24; // rcx cocos2d::CCDirector *v25; // rax float v26; // xmm0_4 __int64 v27; // rax struct cocos2d::CCSprite *v28; // rdi __int64 v29; // rbx __int64 v30; // rax __int64 v31; // rbx __int64 v32; // rcx cocos2d::CCDirector *v33; // rax float v34; // xmm6_4 __int64 v35; // rcx cocos2d::CCDirector *v36; // rax float v37; // xmm0_4 __int64 v38; // rax __int64 v39; // rcx __int64 v40; // r12 __int64 v41; // rcx cocos2d::CCDirector *v42; // rax float v43; // xmm7_4 __int64 v44; // rcx cocos2d::CCDirector *v45; // rax float ScreenRight; // xmm0_4 struct cocos2d::CCSprite *v47; // rax cocos2d::CCObject *v48; // rdi __int64 v49; // rbx __int64 v50; // rax struct cocos2d::CCSprite *v51; // rbx cocos2d::CCObject *v52; // r15 __int64 v53; // rax __int64 v54; // rbx __int64 v55; // rax const char *v56; // rcx struct cocos2d::CCSprite *v57; // rax int v58; // ebx cocos2d::CCObject *v59; // rdi __int64 v60; // rax __int64 v61; // rbx __int64 v62; // rax __int64 v63; // rax _QWORD *v64; // rbx __int64 v65; // rdx __int64 v66; // rax _QWORD *v67; // rbx __int64 v68; // rdx __int64 v69; // rax const char *v70; // rdx size_t v71; // r8 __int64 v72; // rdx __int64 v73; // rcx __int128 *v74; // r8 char *v75; // rax __int64 v76; // rax __int64 *v77; // rdi __int64 v78; // rbx __int64 v79; // rax __int64 *v80; // rdi __int64 v81; // rbx __int64 v82; // rax __int64 v83; // rcx __int64 v84; // rcx _WORD *v85; // rax __int128 *v86; // rdx __int64 v87; // rcx __int64 v88; // r15 int v89; // eax cocos2d::CCObject *v90; // rdi __int64 v91; // rax __int64 v92; // rbx __int64 v93; // rax int v94; // eax cocos2d::CCObject *v95; // rdi __int64 v96; // rax __int64 v97; // rbx __int64 v98; // rax __int64 v99; // rbx int v100; // eax cocos2d::CCObject *v101; // rdi __int64 v102; // rax __int64 v103; // rbx __int64 v104; // rax struct cocos2d::CCLabelBMFont *v105; // rbx __int64 v106; // rax __int64 v107; // rax _QWORD *v108; // rbx __int64 v109; // rdx __int64 v110; // rax __int64 v111; // rcx __int64 v112; // rsi int v113; // ecx int v114; // r8d int v115; // eax int v116; // ecx int v117; // r8d int v118; // eax int v119; // ecx int v120; // r8d __int64 v121; // rdi __int64 v122; // rax __int64 v123; // rbx __int64 v124; // rax cocos2d::CCObject *v125; // r13 int v126; // ecx int v127; // r8d int v128; // eax cocos2d::CCObject *v129; // r12 int v130; // ecx int v131; // r8d int v132; // eax cocos2d::CCObject *v133; // r15 int v134; // ecx int v135; // r8d int v136; // eax cocos2d::CCObject *v137; // r14 int v138; // ecx int v139; // r8d int v140; // eax cocos2d::CCObject *v141; // rsi int v142; // ecx int v143; // r8d __int64 v144; // rdi __int64 v145; // rax __int64 v146; // rbx __int64 v147; // rax cocos2d::CCObject *v148; // rdi int v149; // ecx int v150; // r8d int v151; // eax cocos2d::CCObject *v152; // rbx __int64 v153; // rax __int64 v154; // rax __int64 v155; // rax __int64 v156; // rax __int64 v157; // rax __int64 v158; // rax __int64 v159; // rax __int64 v160; // rax __int64 v161; // rax struct cocos2d::CCLabelBMFont *v162; // rbx __int64 v163; // rax __int64 v164; // rsi __int64 v165; // rax _QWORD *v166; // rbx __int64 v167; // rdx __int64 v168; // rax __int64 v169; // rcx cocos2d::CCObject *v170; // rax __int64 v171; // rcx cocos2d::CCArray *v172; // r13 __int64 v173; // rcx __int64 v174; // r14 int v175; // edi cocos2d::CCString *v176; // rax const char *CString; // rax const char *v178; // rcx struct cocos2d::CCSprite *v179; // r15 cocos2d::CCObject *v180; // rbx __int64 v181; // rax unsigned int v182; // r15d unsigned int v183; // ebx size_t i; // r12 cocos2d::CCArray *v185; // rax __int64 *v186; // rdi cocos2d::CCObject *v187; // rbx __int64 v188; // rax __int64 v189; // rbx __int64 v190; // rax __int64 v191; // rax _QWORD *v192; // rbx __int64 v193; // rdx __int64 v194; // rax __int64 v195; // rcx cocos2d::CCObject *v196; // rax __int64 v197; // rcx __int64 v198; // rdi __int64 *v199; // r14 __int64 *v200; // rax cocos2d::CCObject *v201; // rbx __int64 v202; // rax struct cocos2d::CCLabelBMFont *v203; // r14 cocos2d::CCObject *v204; // rbx __int64 *v205; // r14 cocos2d::CCObject *v206; // rbx __int64 *v207; // r14 cocos2d::CCObject *v208; // rbx __int64 v209; // rax unsigned int j; // ebx cocos2d::CCArray *v211; // rax __int64 *v212; // rbx cocos2d::CCObject *v213; // r14 struct cocos2d::CCMenu *v214; // rdi __int64 v215; // rbx __int64 v216; // rcx cocos2d::CCDirector *v217; // rax float v218; // xmm6_4 __int64 v219; // rcx cocos2d::CCDirector *v220; // rax float v221; // xmm0_4 __int64 v222; // rax __int64 v223; // rcx int k; // ebx __int64 v225; // rdi cocos2d::CCString *v226; // rax const char *v227; // rax size_t v228; // r8 cocos2d::CCString *v229; // rax bool v230; // di void *v231; // rcx int m; // ebx __int64 v233; // rdi cocos2d::CCString *v234; // rax const char *v235; // rax size_t v236; // r8 cocos2d::CCString *v237; // rax bool v238; // di void *v239; // rcx __int64 v240; // rcx cocos2d::CCString *v241; // rax bool v242; // bl void *v243; // r8 void (__fastcall ***v244)(_QWORD, __int64 *); // rcx __int64 v245; // rcx cocos2d::CCString *v246; // rax bool v247; // bl void *v248; // r8 void (__fastcall ***v249)(_QWORD, __int64 *); // rcx cocos2d::CCString *v250; // rax const char *v251; // rax cocos2d::CCString *v252; // rax bool v253; // bl __int64 v254; // rcx cocos2d::CCString *v255; // rax unsigned int v256; // ebx void *v257; // r8 __int64 v258; // [rsp+38h] [rbp-D0h] BYREF cocos2d::CCObject *v259; // [rsp+40h] [rbp-C8h] BYREF __int64 v260; // [rsp+48h] [rbp-C0h] BYREF float v261; // [rsp+50h] [rbp-B8h] BYREF float v262; // [rsp+54h] [rbp-B4h] __int64 v263; // [rsp+58h] [rbp-B0h] BYREF __int64 v264[2]; // [rsp+60h] [rbp-A8h] BYREF char v265[8]; // [rsp+70h] [rbp-98h] BYREF __int64 v266; // [rsp+78h] [rbp-90h] BYREF void *v267; // [rsp+80h] [rbp-88h] BYREF cocos2d::CCObject *v268; // [rsp+88h] [rbp-80h] BYREF char v269[8]; // [rsp+90h] [rbp-78h] BYREF __int64 v270; // [rsp+98h] [rbp-70h] BYREF char v271[8]; // [rsp+A0h] [rbp-68h] BYREF char v272[8]; // [rsp+A8h] [rbp-60h] BYREF _BYTE v273[16]; // [rsp+B0h] [rbp-58h] BYREF char v274[8]; // [rsp+C0h] [rbp-48h] BYREF char v275[8]; // [rsp+C8h] [rbp-40h] BYREF char v276[8]; // [rsp+D0h] [rbp-38h] BYREF char v277[8]; // [rsp+D8h] [rbp-30h] BYREF _BYTE v278[16]; // [rsp+E0h] [rbp-28h] BYREF char v279[8]; // [rsp+F0h] [rbp-18h] BYREF char v280[8]; // [rsp+F8h] [rbp-10h] BYREF char v281[8]; // [rsp+100h] [rbp-8h] BYREF char v282[8]; // [rsp+108h] [rbp+0h] BYREF char v283[8]; // [rsp+110h] [rbp+8h] BYREF char v284[8]; // [rsp+118h] [rbp+10h] BYREF char v285[8]; // [rsp+120h] [rbp+18h] BYREF void *Block[2]; // [rsp+128h] [rbp+20h] BYREF __int64 v287; // [rsp+138h] [rbp+30h] unsigned __int64 v288; // [rsp+140h] [rbp+38h] __int128 v289; // [rsp+148h] [rbp+40h] BYREF __int64 v290; // [rsp+158h] [rbp+50h] unsigned __int64 v291; // [rsp+160h] [rbp+58h] v270 = a1; result = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1); if ( !result ) return result; v6 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v259 = (cocos2d::CCObject *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v259); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v6 = qword_14090BFD0; } *(_QWORD *)(v6 + 996) = -1; *(_DWORD *)(v6 + 740) = 4; *(_DWORD *)(a1 + 432) = a2; *(_DWORD *)(v6 + 1304) = a2; LOBYTE(v5) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v5); LOBYTE(v7) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v7); v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v8); *(_QWORD *)(a1 + 480) = v9; cocos2d::CCObject::retain(v9); v11 = cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11, &v261); v12 = cocos2d::CCSprite::create("GJ_gradientBG.png"); v13 = *(_QWORD *)v12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v13 + 288))(v12, v14); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v12, 4294967293LL); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 120LL))(v12); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 136LL))(v12); v15 = *(_QWORD *)v12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, -5.0, -5.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v15 + 184))(v12, v16); LOWORD(v258) = 26112; BYTE2(v258) = -1; (**((void (__fastcall ***)(__int64, __int64 *))v12 + 40))((__int64)v12 + 320, &v258); v17 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v18 = *(_QWORD *)v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 0.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v18 + 288))(v17, v19); v20 = *(_QWORD *)v17; v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v21); v23 = cocos2d::CCDirector::getScreenBottom(v22) - 1.0; v25 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v24); v26 = cocos2d::CCDirector::getScreenLeft(v25) - 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, v26, v23); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v20 + 184))(v17, v27); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v17, 1); v28 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); v29 = *(_QWORD *)v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 1.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v29 + 288))(v28, v30); v31 = *(_QWORD *)v28; v33 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v32); v34 = cocos2d::CCDirector::getScreenBottom(v33) - 1.0; v36 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v35); v37 = cocos2d::CCDirector::getScreenRight(v36) + 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, v37, v34); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v31 + 184))(v28, v38); cocos2d::CCSprite::setFlipX(v28, 1); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v28, 1); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v273, 0.0, 0.0, 80.0, 80.0); v40 = cocos2d::CCMenu::create(v39); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v40, 2); v42 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v41); v43 = cocos2d::CCDirector::getScreenTop(v42) - 25.0; v45 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v44); ScreenRight = cocos2d::CCDirector::getScreenRight(v45); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v274, ScreenRight - 25.0, v43); v47 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); LODWORD(v31) = (_DWORD)v47; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v47 + 160LL))(v47); v48 = CCMenuItemSpriteExtra::create(v31, 0, a1, (__int64)LevelSearchLayer::confirmClearFilters); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v40 + 464LL))(v40, v48); v49 = *(_QWORD *)v48; cocos2d::CCNode::convertToNodeSpace(v40, &v259, v274); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v49 + 184))(v48, v50); v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plusBtn_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v51 + 160LL))(v51); v52 = CCMenuItemSpriteExtra::create((int)v51, 0, a1, (__int64)LevelSearchLayer::onMoreOptions); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v40 + 464LL))(v40, v52); *((_DWORD *)v52 + 93) = 1069547520; if ( *(_DWORD *)(a1 + 432) == 1 ) { memset(&v258, 125, 3); (**((void (__fastcall ***)(__int64, __int64 *))v51 + 40))((__int64)v51 + 320, &v258); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v52 + 936LL))(v52, 0); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 0.0, -50.0); v54 = v53; v55 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v48 + 200LL))(v48); cocos2d::CCPoint::operator+(v55, &v260, v54); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v52 + 184LL))(v52, &v260); v56 = "GJ_viewLevelsBtn_001.png"; if ( !*(_DWORD *)(a1 + 432) ) v56 = "GJ_viewListsBtn_001.png"; v57 = cocos2d::CCSprite::createWithSpriteFrameName(v56); v58 = (int)v57; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v57 + 160LL))(v57); v59 = CCMenuItemSpriteExtra::create(v58, 0, a1, (__int64)LevelSearchLayer::onSearchMode); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v40 + 464LL))(v40, v59); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 0.0, -50.0); v61 = v60; v62 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v52 + 200LL))(v52); cocos2d::CCPoint::operator+(v62, &v260, v61); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v59 + 184LL))(v59, &v260); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, v261 * 0.5, (float)(v262 * 0.5) + 130.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v264, (const struct cocos2d::CCRect *)v273); v64 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v63); LOBYTE(v65) = -1; (*(void (__fastcall **)(_QWORD *, __int64))(v64[40] + 40LL))(v64 + 40, v65); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v265, 365.0, 40.0); (*(void (__fastcall **)(_QWORD *, char *))(*v64 + 312LL))(v64, v265); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v64, 4294967294LL); (*(void (__fastcall **)(_QWORD *, __int64 *))(*v64 + 184LL))(v64, &v266); LOWORD(v258) = 14336; BYTE2(v258) = -115; (*(void (__fastcall **)(_QWORD *, __int64 *))v64[40])(v64 + 40, &v258); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v264, 0.0, 0.0, 40.0, 40.0); v67 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v66); LOBYTE(v68) = -1; (*(void (__fastcall **)(_QWORD *, __int64))(v67[40] + 40LL))(v67 + 40, v68); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v275, 210.0, 30.0); (*(void (__fastcall **)(_QWORD *, char *))(*v67 + 312LL))(v67, v275); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v67, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, -73.0, 0.0); cocos2d::CCPoint::operator+(&v266, &v260, v69); (*(void (__fastcall **)(_QWORD *, __int64 *))(*v67 + 184LL))(v67, &v260); LOWORD(v258) = 9984; BYTE2(v258) = 98; (*(void (__fastcall **)(_QWORD *, __int64 *))v67[40])(v67 + 40, &v258); v70 = "Enter a level, user or id"; if ( *(_DWORD *)(a1 + 432) == 1 ) v70 = "Enter a list or id"; v289 = 0; v290 = 0; v291 = 0; v71 = -1; do ++v71; while ( v70[v71] ); sub_14003D230(&v289, v70, v71); v74 = &v289; if ( v291 > 0xF ) v74 = (__int128 *)v289; v75 = CCTextInputNode::create(v73, v72, (__int64)v74); *(_QWORD *)(a1 + 440) = v75; (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v75, 20); *(_QWORD *)(*(_QWORD *)(a1 + 440) + 600LL) = a1 + 408; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, -174.0, 0.0); cocos2d::CCPoint::operator+(&v266, &v260, v76); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 440) + 184LL))(*(_QWORD *)(a1 + 440), &v260); v77 = *(__int64 **)(*(_QWORD *)(a1 + 440) + 592LL); v78 = *v77; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 0.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v78 + 288))(v77, v79); v80 = *(__int64 **)(*(_QWORD *)(a1 + 440) + 616LL); v81 = *v80; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 0.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v81 + 288))(v80, v82); v83 = *(_QWORD *)(a1 + 440); *(_DWORD *)(v83 + 564) = 1060320051; CCTextInputNode::refreshLabel(v83); v84 = *(_QWORD *)(a1 + 440); *(_DWORD *)(v84 + 560) = 1128398848; CCTextInputNode::refreshLabel(v84); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 440) + 592LL) + 336LL))( *(_QWORD *)(*(_QWORD *)(a1 + 440) + 592LL), 0); *(_DWORD *)(*(_QWORD *)(a1 + 440) + 608LL) = 20; *(_OWORD *)Block = 0; v287 = 0; v288 = 0; v85 = sub_14003D460(0x40u); Block[0] = v85; v287 = 63; v288 = 63; qmemcpy(v85, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345678", 62); v85[31] = (unsigned __int8)aAbcdefghijklmn[62]; CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 440), Block); v86 = &v289; if ( v291 > 0xF ) v86 = (__int128 *)v289; LevelSearchLayer::updateSearchLabel(a1, v86); v88 = cocos2d::CCMenu::create(v87); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v88); v89 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_longBtn06_001.png"); v90 = CCMenuItemSpriteExtra::create(v89, 0, a1, (__int64)LevelSearchLayer::onSearch); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v88 + 464LL))(v88, v90); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 63.0, 0.0); cocos2d::CCPoint::operator+(&v266, &v260, v91); v92 = *(_QWORD *)v90; cocos2d::CCNode::convertToNodeSpace(v88, &v268, &v260); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v92 + 184))(v90, v93); v94 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_longBtn05_001.png"); v95 = CCMenuItemSpriteExtra::create(v94, 0, a1, (__int64)LevelSearchLayer::onSearchUser); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v88 + 464LL))(v88, v95); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 110.0, 0.0); cocos2d::CCPoint::operator+(&v266, &v260, v96); v97 = *(_QWORD *)v95; cocos2d::CCNode::convertToNodeSpace(v88, &v268, &v260); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v97 + 184))(v95, v98); v99 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v267 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v267); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v99 = qword_14090BFD0; } if ( GameManager::getGameVariable(v99, "0218") || GameManager::getGameVariable(v99, "0219") ) { (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v95 + 336LL))(v95, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v95 + 936LL))(v95, 0); } v100 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_longBtn07_001.png"); v101 = CCMenuItemSpriteExtra::create(v100, 0, a1, (__int64)LevelSearchLayer::onClearFreeSearch); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v88 + 464LL))(v88, v101); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 157.0, 0.0); cocos2d::CCPoint::operator+(&v266, &v260, v102); v103 = *(_QWORD *)v101; cocos2d::CCNode::convertToNodeSpace(v88, &v268, &v260); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v103 + 184))(v101, v104); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v271, v261 * 0.5, (float)(v262 * 0.5) + 28.0); v105 = cocos2d::CCLabelBMFont::create("Quick Search", (const char *)&qword_140704F78); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v259, 0.0, 69.5); cocos2d::CCPoint::operator+(v271, &v260, v106); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v105 + 184LL))(v105, &v260); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v105); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v105 + 160LL))(v105); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v278, (const struct cocos2d::CCRect *)v273); v108 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v107); LOBYTE(v109) = -1; (*(void (__fastcall **)(_QWORD *, __int64))(v108[40] + 40LL))(v108 + 40, v109); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v259, 365.0, 115.0); cocos2d::CCSize::operator=(v265, v110); (*(void (__fastcall **)(_QWORD *, char *))(*v108 + 312LL))(v108, v265); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v108, 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD *, char *))(*v108 + 184LL))(v108, v271); LOWORD(v258) = 11776; BYTE2(v258) = 117; (*(void (__fastcall **)(_QWORD *, __int64 *))v108[40])(v108 + 40, &v258); v112 = cocos2d::CCMenu::create(v111); v260 = v112; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v112); cocos2d::CCNode::convertToNodeSpace(v112, &v263, v271); v115 = SearchButton::create( v113, (unsigned int)"Downloads", v114, (unsigned int)"GJ_sDownloadIcon_001.png", 1066192077); v268 = CCMenuItemSpriteExtra::create(v115, 0, a1, (__int64)LevelSearchLayer::onMostDownloaded); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v112 + 464LL))(v112, v268); v118 = SearchButton::create(v116, (unsigned int)"Likes", v117, (unsigned int)"GJ_sLikeIcon_001.png", 1066192077); v259 = CCMenuItemSpriteExtra::create(v118, 0, a1, (__int64)LevelSearchLayer::onMostLikes); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v112 + 464LL))(v112, v259); v121 = SearchButton::create(v119, (unsigned int)"Hyped", v120, (unsigned int)"particle_228_001.png", 1066192077); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v278, -1.0, 1.0); v123 = v122; v124 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v121 + 608) + 200LL))(*(_QWORD *)(v121 + 608)); cocos2d::CCPoint::operator+(v124, &v267, v123); (*(void (__fastcall **)(_QWORD, void **))(**(_QWORD **)(v121 + 608) + 184LL))(*(_QWORD *)(v121 + 608), &v267); v125 = CCMenuItemSpriteExtra::create(v121, 0, a1, (__int64)LevelSearchLayer::onHyped); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v112 + 464LL))(v112, v125); v128 = SearchButton::create( v126, (unsigned int)"Trending", v127, (unsigned int)"GJ_sTrendingIcon_001.png", 1066192077); v129 = CCMenuItemSpriteExtra::create(v128, 0, a1, (__int64)LevelSearchLayer::onTrending); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v112 + 464LL))(v112, v129); v132 = SearchButton::create(v130, (unsigned int)"Recent", v131, (unsigned int)"GJ_sRecentIcon_001.png", 1066192077); v133 = CCMenuItemSpriteExtra::create(v132, 0, a1, (__int64)LevelSearchLayer::onMostRecent); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v112 + 464LL))(v112, v133); v136 = SearchButton::create( v134, (unsigned int)&dword_140769348, v135, (unsigned int)"GJ_sMagicIcon_001.png", 1066192077); v137 = CCMenuItemSpriteExtra::create(v136, 0, a1, (__int64)LevelSearchLayer::onMagic); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v112 + 464LL))(v112, v137); v140 = SearchButton::create(v138, (unsigned int)"Awarded", v139, (unsigned int)"GJ_sStarsIcon_001.png", 1066192077); v141 = CCMenuItemSpriteExtra::create(v140, 0, v270, (__int64)LevelSearchLayer::onLatestStars); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v260 + 464LL))(v260, v141); v144 = SearchButton::create(v142, (unsigned int)"Followed", v143, (unsigned int)"GJ_followIcon_001.png", 1060529766); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v278, -2.5, 0.5); v146 = v145; v147 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v144 + 608) + 200LL))(*(_QWORD *)(v144 + 608)); cocos2d::CCPoint::operator+(v147, &v267, v146); (*(void (__fastcall **)(_QWORD, void **))(**(_QWORD **)(v144 + 608) + 184LL))(*(_QWORD *)(v144 + 608), &v267); v148 = CCMenuItemSpriteExtra::create(v144, 0, v270, (__int64)LevelSearchLayer::onFollowed); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v260 + 464LL))(v260, v148); v151 = SearchButton::create(v149, (unsigned int)"Friends", v150, (unsigned int)"GJ_sFriendsIcon_001.png", 1066192077); v152 = CCMenuItemSpriteExtra::create(v151, 0, v270, (__int64)LevelSearchLayer::onFriends); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v260 + 464LL))(v260, v152); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v279, -119.0, 36.0); cocos2d::CCPoint::operator+(&v263, &v267, v153); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v268 + 184LL))(v268, &v267); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v280, 0.0, 36.0); cocos2d::CCPoint::operator+(&v263, &v268, v154); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_QWORD *)v259 + 184LL))(v259, &v268); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 119.0, 36.0); cocos2d::CCPoint::operator+(&v263, &v259, v155); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_QWORD *)v125 + 184LL))(v125, &v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, -119.0, 0.0); cocos2d::CCPoint::operator+(&v263, &v259, v156); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_QWORD *)v129 + 184LL))(v129, &v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v283, 0.0, 0.0); cocos2d::CCPoint::operator+(&v263, &v259, v157); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_QWORD *)v133 + 184LL))(v133, &v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 119.0, 0.0); cocos2d::CCPoint::operator+(&v263, &v259, v158); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_QWORD *)v137 + 184LL))(v137, &v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, -119.0, -36.0); cocos2d::CCPoint::operator+(&v263, &v259, v159); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_QWORD *)v141 + 184LL))(v141, &v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v276, 0.0, -36.0); cocos2d::CCPoint::operator+(&v263, &v259, v160); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_QWORD *)v148 + 184LL))(v148, &v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v277, 119.0, -36.0); cocos2d::CCPoint::operator+(&v263, &v259, v161); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_QWORD *)v152 + 184LL))(v152, &v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v269, v261 * 0.5, (float)(v262 * 0.5) - 77.0); v162 = cocos2d::CCLabelBMFont::create("Filters", (const char *)&qword_140704F78); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v264, 0.0, 37.0); cocos2d::CCPoint::operator+(v269, &v259, v163); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, cocos2d::CCObject **))(*(_QWORD *)v162 + 184LL))(v162, &v259); v164 = v270; (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v270 + 464LL))(v270, v162); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v162 + 160LL))(v162); cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, (const struct cocos2d::CCRect *)v273); v166 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v165); LOBYTE(v167) = -1; (*(void (__fastcall **)(_QWORD *, __int64))(v166[40] + 40LL))(v166 + 40, v167); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v270, 365.0, 50.0); cocos2d::CCSize::operator=(v265, v168); (*(void (__fastcall **)(_QWORD *, char *))(*v166 + 312LL))(v166, v265); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v164 + 456LL))(v164, v166, -1); (*(void (__fastcall **)(_QWORD *, char *))(*v166 + 184LL))(v166, v269); LOWORD(v258) = 9216; BYTE2(v258) = 91; (*(void (__fastcall **)(_QWORD *, __int64 *))v166[40])(v166 + 40, &v258); v170 = (cocos2d::CCObject *)cocos2d::CCArray::create(v169); *(_QWORD *)(v164 + 464) = v170; cocos2d::CCObject::retain(v170); v172 = (cocos2d::CCArray *)cocos2d::CCArray::create(v171); v174 = cocos2d::CCMenu::create(v173); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v164 + 456LL))(v164, v174, 10); v175 = 0; LOWORD(v258) = 32125; do { while ( 1 ) { v176 = cocos2d::CCString::createWithFormat("difficulty_%02d_btn_001.png", v175); CString = cocos2d::CCString::getCString(v176); v178 = "difficulty_auto_btn_001.png"; if ( v175 != 7 ) v178 = CString; v179 = cocos2d::CCSprite::createWithSpriteFrameName(v178); memset(&v258, 125, 3); (**((void (__fastcall ***)(__int64, __int64 *))v179 + 40))((__int64)v179 + 320, &v258); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v164 + 464), v179); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v179 + 160LL))(v179); v264[0] = (__int64)operator new(0x208u); v180 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v264[0]); if ( v180 ) { if ( CCMenuItemSpriteExtra::init( (__int64 *)v180, (__int64 *)v179, 0, v164, (__int64)LevelSearchLayer::toggleDifficulty) ) { cocos2d::CCObject::autorelease(v180); goto LABEL_29; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v180 + 8LL))(v180, 1); } v180 = nullptr; LABEL_29: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v180 + 64LL))(v180, (unsigned int)v175); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v174 + 464LL))(v174, v180); cocos2d::CCArray::addObject(v172, v180); if ( v175 != 6 ) break; *(_QWORD *)(v164 + 488) = v179; v175 = 7; } ++v175; } while ( v175 <= 7 ); cocos2d::CCNode::convertToNodeSpace(v174, v264, v269); GameToolbox::alignItemsHorisontally((__int64)v172, 18.0, v181, 0); v182 = 0; v183 = 0; for ( i = -1; v183 < (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v174 + 488LL))(v174); *((_DWORD *)cocos2d::CCArray::objectAtIndex(v185, v183++) + 93) = 1069547520 ) { v185 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v174 + 480LL))(v174); } v186 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); v264[0] = (__int64)operator new(0x208u); v187 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v264[0]); if ( v187 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v187, v186, 0, v164, (__int64)LevelSearchLayer::onSpecialDemon) ) { cocos2d::CCObject::autorelease(v187); goto LABEL_39; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v187 + 8LL))(v187, 1); } v187 = nullptr; LABEL_39: *(_QWORD *)(v164 + 496) = v187; (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v174 + 464LL))(v174, v187); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v264, 202.5, 0.0); v189 = v188; cocos2d::CCNode::convertToNodeSpace(v174, v277, v269); cocos2d::CCPoint::operator+(v190, &v259, v189); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject **))(**(_QWORD **)(v164 + 496) + 184LL))( *(_QWORD *)(v164 + 496), &v259); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v272, v261 * 0.5, (float)(v262 * 0.5) - 128.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, (const struct cocos2d::CCRect *)v273); v192 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v191); LOBYTE(v193) = -1; (*(void (__fastcall **)(_QWORD *, __int64))(v192[40] + 40LL))(v192 + 40, v193); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v276, 365.0, 35.0); cocos2d::CCSize::operator=(v265, v194); (*(void (__fastcall **)(_QWORD *, char *))(*v192 + 312LL))(v192, v265); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v164 + 456LL))(v164, v192, 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD *, char *))(*v192 + 184LL))(v192, v272); LOWORD(v258) = 7936; BYTE2(v258) = 79; (*(void (__fastcall **)(_QWORD *, __int64 *))v192[40])(v192 + 40, &v258); v196 = (cocos2d::CCObject *)cocos2d::CCArray::create(v195); *(_QWORD *)(v164 + 472) = v196; cocos2d::CCObject::retain(v196); cocos2d::CCArray::removeAllObjects(v172); v198 = cocos2d::CCMenu::create(v197); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v164 + 456LL))(v164, v198, 10); if ( *(_DWORD *)(v164 + 432) ) goto LABEL_55; v199 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"); v264[0] = (__int64)operator new(0x208u); v200 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v264[0]); v201 = (cocos2d::CCObject *)v200; if ( v200 ) { if ( CCMenuItemSpriteExtra::init(v200, v199, 0, 0, 0) ) { cocos2d::CCObject::autorelease(v201); goto LABEL_45; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v201 + 8LL))(v201, 1); } v201 = nullptr; LABEL_45: (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v198 + 464LL))(v198, v201); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v201 + 936LL))(v201, 0); cocos2d::CCArray::addObject(v172, v201); LOWORD(v258) = 32125; while ( 2 ) { v202 = GJGameLevel::lengthKeyToString((__int64)Block, v182); if ( *(_QWORD *)(v202 + 24) > 0xFu ) v202 = *(_QWORD *)v202; v203 = cocos2d::CCLabelBMFont::create((const char *)v202, (const char *)&qword_140704F78); sub_14003D310((__int64)Block); memset(&v258, 125, 3); (**((void (__fastcall ***)(__int64, __int64 *))v203 + 46))((__int64)v203 + 368, &v258); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v164 + 472), v203); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v203 + 160LL))(v203); v264[0] = (__int64)operator new(0x208u); v204 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v264[0]); if ( v204 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v204, (__int64 *)v203, 0, v164, (__int64)LevelSearchLayer::toggleTime) ) { cocos2d::CCObject::autorelease(v204); goto LABEL_53; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v204 + 8LL))(v204, 1); } v204 = nullptr; LABEL_53: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v204 + 64LL))(v204, v182); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v198 + 464LL))(v198, v204); cocos2d::CCArray::addObject(v172, v204); if ( (int)++v182 < 6 ) continue; break; } i = -1; LABEL_55: v205 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_starsIcon_001.png"); *(_QWORD *)(v164 + 448) = v205; v264[0] = (__int64)operator new(0x208u); v206 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v264[0]); if ( v206 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v206, v205, 0, v164, (__int64)LevelSearchLayer::toggleStar) ) { cocos2d::CCObject::autorelease(v206); goto LABEL_60; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v206 + 8LL))(v206, 1); } v206 = nullptr; LABEL_60: (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v198 + 464LL))(v198, v206); cocos2d::CCArray::addObject(v172, v206); if ( *(_DWORD *)(v164 + 432) == 1 ) { v207 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_noStarsIcon_001.png"); *(_QWORD *)(v164 + 456) = v207; v264[0] = (__int64)operator new(0x208u); v208 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v264[0]); if ( v208 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v208, v207, 0, v164, (__int64)LevelSearchLayer::toggleNoStar) ) { cocos2d::CCObject::autorelease(v208); goto LABEL_66; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v208 + 8LL))(v208, 1); } v208 = nullptr; LABEL_66: (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v198 + 464LL))(v198, v208); cocos2d::CCArray::addObject(v172, v208); } cocos2d::CCNode::convertToNodeSpace(v198, v264, v272); GameToolbox::alignItemsHorisontally((__int64)v172, 12.0, v209, 0); for ( j = 0; j < (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v198 + 488LL))(v198); *((_DWORD *)cocos2d::CCArray::objectAtIndex(v211, j++) + 93) = 1067869798 ) { v211 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v198 + 480LL))(v198); } v212 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v264[0] = (__int64)operator new(0x208u); v213 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v264[0]); if ( v213 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v213, v212, 0, v164, (__int64)LevelSearchLayer::onBack) ) { cocos2d::CCObject::autorelease(v213); goto LABEL_74; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v213 + 8LL))(v213, 1); } v213 = nullptr; LABEL_74: *((_DWORD *)v213 + 93) = 1069547520; v214 = cocos2d::CCMenu::create(v213, 0); (*(void (__fastcall **)(__int64, struct cocos2d::CCMenu *, __int64))(*(_QWORD *)v164 + 456LL))(v164, v214, 1); v215 = *(_QWORD *)v214; v217 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v216); v218 = cocos2d::CCDirector::getScreenTop(v217) - 23.0; v220 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v219); v221 = cocos2d::CCDirector::getScreenLeft(v220) + 24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v264, v221, v218); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v215 + 184))(v214, v222); if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v223) + 209) ) GameToolbox::addBackButton(v164, (__int64)v213); for ( k = 0; k <= 7; ++k ) { v225 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v264[0] = (__int64)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v264[0]); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v225 = *(_QWORD *)&qword_14090BFB0; } v226 = cocos2d::CCString::createWithFormat("Diff%i", k); v227 = cocos2d::CCString::getCString(v226); *(_OWORD *)Block = 0; v287 = 0; v288 = 0; v228 = -1; do ++v228; while ( v227[v228] ); sub_14003D230(Block, v227, v228); v229 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v225 + 848), Block); v230 = cocos2d::CCString::boolValue(v229); if ( v288 > 0xF ) { v231 = Block[0]; if ( v288 + 1 >= 0x1000 ) { v231 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v231 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v231); } LevelSearchLayer::toggleDifficultyNum(v164, (unsigned int)k, v230); } for ( m = 0; m <= 5; ++m ) { v233 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v264[0] = (__int64)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v264[0]); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v233 = *(_QWORD *)&qword_14090BFB0; } v234 = cocos2d::CCString::createWithFormat("Len%i", m); v235 = cocos2d::CCString::getCString(v234); *(_OWORD *)Block = 0; v287 = 0; v288 = 0; v236 = -1; do ++v236; while ( v235[v236] ); sub_14003D230(Block, v235, v236); v237 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v233 + 848), Block); v238 = cocos2d::CCString::boolValue(v237); if ( v288 > 0xF ) { v239 = Block[0]; if ( v288 + 1 >= 0x1000 ) { v239 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v239 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v239); } LevelSearchLayer::toggleTimeNum(v164, (unsigned int)m, v238); } v240 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v264[0] = (__int64)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v264[0]); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v240 = *(_QWORD *)&qword_14090BFB0; } v287 = 11; v288 = 15; Block[0] = (void *)0x6C69665F72617473LL; Block[1] = (void *)7497076; v241 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v240 + 848), Block); v242 = cocos2d::CCString::boolValue(v241); if ( v288 > 0xF ) { v243 = Block[0]; if ( v288 + 1 >= 0x1000 ) { v243 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v243 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v243); } v244 = (void (__fastcall ***)(_QWORD, __int64 *))(*(_QWORD *)(v164 + 448) + 320LL); if ( v242 ) { LOWORD(v258) = -1; BYTE2(v258) = -1; } else { memset(&v258, 125, 3); } (**v244)(v244, &v258); if ( *(_QWORD *)(v164 + 456) ) { v245 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v264[0] = (__int64)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v264[0]); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v245 = *(_QWORD *)&qword_14090BFB0; } v287 = 13; v288 = 15; strcpy((char *)Block, "nostar_filter"); HIWORD(Block[1]) = 0; v246 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v245 + 848), Block); v247 = cocos2d::CCString::boolValue(v246); if ( v288 > 0xF ) { v248 = Block[0]; if ( v288 + 1 >= 0x1000 ) { v248 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v248 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v248); } v249 = (void (__fastcall ***)(_QWORD, __int64 *))(*(_QWORD *)(v164 + 456) + 320LL); if ( v247 ) { LOWORD(v258) = -1; BYTE2(v258) = -1; } else { memset(&v258, 125, 3); } (**v249)(v249, &v258); } v250 = cocos2d::CCString::createWithFormat("D%i", 6); v251 = cocos2d::CCString::getCString(v250); *(_OWORD *)Block = 0; v287 = 0; v288 = 0; do ++i; while ( v251[i] ); sub_14003D230(Block, v251, i); v252 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v164 + 480), Block); v253 = cocos2d::CCString::boolValue(v252); sub_14003D310((__int64)Block); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v164 + 496) + 936LL))(*(_QWORD *)(v164 + 496), v253); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v164 + 496) + 336LL))(*(_QWORD *)(v164 + 496), v253); v254 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v264[0] = (__int64)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v264[0]); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v254 = *(_QWORD *)&qword_14090BFB0; } v287 = 12; v288 = 15; strcpy((char *)Block, "demon_filter"); BYTE5(Block[1]) = 0; HIWORD(Block[1]) = 0; v255 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v254 + 848), Block); v256 = cocos2d::CCString::intValue(v255); if ( v288 > 0xF ) { v257 = Block[0]; if ( v288 + 1 >= 0x1000 ) { v257 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v257 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v257); } (**(void (__fastcall ***)(__int64, _QWORD))(v164 + 424))(v164 + 424, v256); sub_14003D310((__int64)&v289); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source