// // LevelPage::init from 0x140443150 to 0x140443ded (3229 bytes) // // 5 xrefs: // > LevelSelectLayer::init @ 0x140441cfd // > @ 0x1408cb758 // > @ 0x1408cb778 // > @ 0x1408cb790 // > @ 0x1409271a0 // // 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:22 +0000 // bool __fastcall LevelPage::init(__int64 *a1, __int64 a2) { bool result; // al __int64 v4; // rdx __int64 v5; // rcx __int64 v6; // rax __int64 v7; // rax __int64 v8; // rcx cocos2d::CCObject *v9; // rax __int64 v10; // rcx cocos2d::CCObject *v11; // rax __int64 v12; // rcx __int64 v13; // rax __int64 v14; // rcx __int64 *v15; // rdi __int64 v16; // rbx __int64 v17; // rax __int64 v18; // rax __int64 v19; // rax __int64 v20; // rdx __int64 *v21; // rdi __int64 v22; // rbx __int64 v23; // rax __int64 v24; // r13 __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rbx __int64 v28; // rax __int64 *v29; // r14 float *v30; // rdi __int64 v31; // rsi __int64 v32; // rax __int64 v33; // rax cocos2d::CCObject *v34; // rax struct cocos2d::CCObject *v35; // r14 __int64 v36; // rdx void (__fastcall *v37)(char *, __int64); // r8 __int64 v38; // rbx __int64 v39; // rax struct cocos2d::CCSprite *v40; // rax __int64 v41; // rdx float v42; // xmm6_4 __int64 *v43; // rdi __int64 v44; // rbx __int64 v45; // rax __int64 v46; // rdi __int64 v47; // rax void (__fastcall *v48)(__int64, __int64); // rbx __int64 v49; // rax struct cocos2d::CCObject *v50; // rsi __int64 v51; // rdx void (__fastcall *v52)(char *, __int64); // r9 __int64 v53; // rax __int64 v54; // rbx __int64 v55; // rax struct cocos2d::CCSprite *v56; // rax void (__fastcall ***v57)(_QWORD, __int16 *); // rcx __int64 *v58; // rdi __int64 v59; // rbx __int64 v60; // rax __int64 *v61; // rdi __int64 v62; // rbx __int64 v63; // rax struct cocos2d::CCLabelBMFont *v64; // rax __int64 v65; // rcx __int64 *v66; // rdi __int64 v67; // rbx __int64 v68; // rax struct cocos2d::CCLabelBMFont *v69; // rax __int64 v70; // rcx __int64 *v71; // rdi __int64 v72; // rbx __int64 v73; // rax struct cocos2d::CCObject *v74; // rdi __int64 v75; // rax __int64 v76; // rbx __int64 v77; // rax struct cocos2d::CCObject *v78; // rdi __int64 v79; // rax __int64 v80; // rbx __int64 v81; // rax struct cocos2d::CCLabelBMFont *v82; // rax struct cocos2d::CCLabelBMFont *v83; // rdi __int64 v84; // rbx __int64 v85; // rax struct cocos2d::CCSprite *v86; // rax __int64 v87; // rcx struct cocos2d::CCSprite *v88; // rax __int64 v89; // rcx __int64 *v90; // rdi __int64 v91; // rbx __int64 v92; // rax struct cocos2d::CCLabelBMFont *v93; // rax __int64 v94; // rcx __int64 *v95; // rdi __int64 v96; // rbx __int64 v97; // rax __int64 v98; // rax __int64 v99; // rbx __int64 v100; // rax __int64 v101; // rcx cocos2d::CCObject *v102; // rax int i; // edi struct cocos2d::CCObject *v104; // rbx __int64 v105; // rax __int64 v106; // rcx cocos2d::CCObject *v107; // rax __int64 v108; // rcx struct cocos2d::CCObject *v109; // rdi __int64 v110; // rax __int64 v111; // rbx __int64 v112; // rax _BYTE v113[8]; // [rsp+30h] [rbp-29h] BYREF _BYTE v114[24]; // [rsp+38h] [rbp-21h] BYREF __int64 v115; // [rsp+C8h] [rbp+6Fh] BYREF __int16 v116; // [rsp+D0h] [rbp+77h] BYREF char v117; // [rsp+D2h] [rbp+79h] float v118; // [rsp+D8h] [rbp+7Fh] BYREF float v119; // [rsp+DCh] [rbp+83h] v115 = a2; result = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1); if ( result ) { LOBYTE(v4) = 1; (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 920))(a1, v4); v6 = cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6, &v118); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v116, 340.0, 95.0); cocos2d::CCSize::operator=(a1 + 65, v7); v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(v8); a1[69] = (__int64)v9; cocos2d::CCObject::retain(v9); v11 = (cocos2d::CCObject *)cocos2d::CCArray::create(v10); a1[68] = (__int64)v11; cocos2d::CCObject::retain(v11); v13 = cocos2d::CCMenu::create(v12); v14 = *a1; a1[54] = v13; (*(void (__fastcall **)(__int64 *, __int64, __int64))(v14 + 456))(a1, v13, 0xFFFFFFFFLL); v15 = (__int64 *)a1[54]; v16 = *v15; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v118 * 0.5, (float)(v119 * 0.5) + 60.0); (*(void (__fastcall **)(__int64 *, __int64))(v16 + 184))(v15, v17); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, 0.0, 0.0, 80.0, 80.0); v19 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v18); a1[55] = v19; LOBYTE(v20) = 125; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v19 + 320) + 40LL))(v19 + 320, v20); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1[55] + 312LL))(a1[55], a1 + 65); v21 = (__int64 *)a1[55]; v22 = *v21; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v118 * 0.5, (float)(v119 * 0.5) + 50.0); (*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v21, v23); v24 = cocos2d::CCSprite::create(); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v24 + 464LL))(v24, a1[55]); v25 = *(_QWORD *)v24; v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[55] + 320LL))(a1[55]); (*(void (__fastcall **)(__int64, __int64))(v25 + 312))(v24, v26); v27 = a1[55]; v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 320LL))(v27); v29 = (__int64 *)a1[55]; v30 = (float *)v28; v31 = *v29; v32 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 320LL))(v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, *v30 * 0.5, *(float *)(v32 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v31 + 184))(v29, v33); v34 = CCMenuItemSpriteExtra::create(v24, 0, (int)a1, (__int64)LevelPage::onPlay); *((_DWORD *)v34 + 100) = 1066192077; (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1[54] + 464LL))(a1[54], v34); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[69], (struct cocos2d::CCObject *)a1[54]); LOWORD(v115) = 0; BYTE2(v115) = 0; v35 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); (**((void (__fastcall ***)(__int64, __int64 *))v35 + 40))((__int64)v35 + 320, &v115); v36 = *((_QWORD *)v35 + 40); v37 = *(void (__fastcall **)(char *, __int64))(v36 + 40); LOBYTE(v36) = 125; v37((char *)v35 + 320, v36); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 160LL))(v35); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCObject *, __int64))(*a1 + 456))(a1, v35, 3); v38 = *(_QWORD *)v35; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v118 * 0.5, (float)(v119 * 0.5) - 30.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v38 + 184))(v35, v39); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[69], v35); v40 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); a1[61] = (__int64)v40; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v40 + 120LL))(v40); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[61] + 136LL))(a1[61]); (**(void (__fastcall ***)(__int64, void *))(a1[61] + 320))(a1[61] + 320, &unk_140703BCC); v41 = a1[61]; *((_DWORD *)a1 + 120) = *(_DWORD *)(v41 + 432); v42 = *(float *)(v41 + 432); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v35 + 456LL))(v35, v41, 1); v43 = (__int64 *)a1[61]; v44 = *v43; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, 0.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v44 + 288))(v43, v45); v46 = a1[61]; v47 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 320LL))(v35); v48 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v46 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v116, (float)(v42 - (float)(v42 * 0.99199998)) * 0.5, *(float *)(v47 + 4) * 0.5); v48(v46, v49); v50 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); (**((void (__fastcall ***)(__int64, __int64 *))v50 + 40))((__int64)v50 + 320, &v115); v51 = *((_QWORD *)v50 + 40); v52 = *(void (__fastcall **)(char *, __int64))(v51 + 40); LOBYTE(v51) = 125; v52((char *)v50 + 320, v51); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v50 + 160LL))(v50); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCObject *, __int64))(*a1 + 456))(a1, v50, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, -50.0); v54 = v53; v55 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 200LL))(v35); cocos2d::CCPoint::operator+(v55, &v116, v54); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v50 + 184LL))(v50, &v116); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[69], v50); v56 = cocos2d::CCSprite::create("GJ_progressBar_001.png"); a1[62] = (__int64)v56; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v56 + 120LL))(v56); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[62] + 136LL))(a1[62]); v57 = (void (__fastcall ***)(_QWORD, __int16 *))(a1[62] + 320); v116 = -256; v117 = -1; (**v57)(v57, &v116); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64, __int64))(*(_QWORD *)v50 + 456LL))(v50, a1[62], 1); v58 = (__int64 *)a1[62]; v59 = *v58; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, 0.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v59 + 288))(v58, v60); v61 = (__int64 *)a1[62]; v62 = *v61; v63 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[61] + 200LL))(a1[61]); (*(void (__fastcall **)(__int64 *, __int64))(v62 + 184))(v61, v63); v64 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); v65 = *a1; a1[56] = (__int64)v64; (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *, __int64))(v65 + 456))(a1, v64, 4); v66 = (__int64 *)a1[56]; v67 = *v66; v68 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 200LL))(v35); (*(void (__fastcall **)(__int64 *, __int64))(v67 + 184))(v66, v68); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[56] + 160LL))(a1[56]); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[69], (struct cocos2d::CCObject *)a1[56]); v69 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); v70 = *a1; a1[57] = (__int64)v69; (*(void (__fastcall **)(__int64 *, struct cocos2d::CCLabelBMFont *, __int64))(v70 + 456))(a1, v69, 4); v71 = (__int64 *)a1[57]; v72 = *v71; v73 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v50 + 200LL))(v50); (*(void (__fastcall **)(__int64 *, __int64))(v72 + 184))(v71, v73); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[57] + 160LL))(a1[57]); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[69], (struct cocos2d::CCObject *)a1[57]); v74 = cocos2d::CCLabelBMFont::create("Normal Mode", (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCObject *, __int64))(*a1 + 456))(a1, v74, 4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, 20.0); v76 = v75; v77 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v35 + 200LL))(v35); cocos2d::CCPoint::operator+(v77, &v116, v76); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v74 + 184LL))(v74, &v116); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v74 + 160LL))(v74); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[69], v74); v78 = cocos2d::CCLabelBMFont::create("Practice Mode", (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCObject *, __int64))(*a1 + 456))(a1, v78, 4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, 20.0); v80 = v79; v81 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v50 + 200LL))(v50); cocos2d::CCPoint::operator+(v81, &v116, v80); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v78 + 184LL))(v78, &v116); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v78 + 160LL))(v78); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[69], v78); v82 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); a1[58] = (__int64)v82; v83 = v82; v84 = *(_QWORD *)v82; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v84 + 288))(v83, v85); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1[55] + 464LL))(a1[55], a1[58]); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[68], (struct cocos2d::CCObject *)a1[58]); v86 = cocos2d::CCSprite::createWithSpriteFrameName("diffIcon_01_btn_001.png"); v87 = a1[55]; a1[63] = (__int64)v86; (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)v87 + 464LL))(v87, v86); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[63] + 160LL))(a1[63]); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[68], (struct cocos2d::CCObject *)a1[63]); v88 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starsIcon_001.png"); v89 = a1[55]; a1[64] = (__int64)v88; (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)v89 + 464LL))(v89, v88); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[64] + 160LL))(a1[64]); v90 = (__int64 *)a1[64]; v91 = *v90; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, *((float *)a1 + 130) - 15.0, *((float *)a1 + 131) - 13.0); (*(void (__fastcall **)(__int64 *, __int64))(v91 + 184))(v90, v92); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[68], (struct cocos2d::CCObject *)a1[64]); v93 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); v94 = a1[55]; a1[59] = (__int64)v93; (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v94 + 464LL))(v94, v93); v95 = (__int64 *)a1[59]; v96 = *v95; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, 1.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v96 + 288))(v95, v97); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, -12.0, 0.5); v99 = v98; v100 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[64] + 200LL))(a1[64]); cocos2d::CCPoint::operator+(v100, &v116, v99); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)a1[59] + 184LL))(a1[59], &v116); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[59] + 160LL))(a1[59]); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[68], (struct cocos2d::CCObject *)a1[59]); v102 = (cocos2d::CCObject *)cocos2d::CCArray::create(v101); a1[66] = (__int64)v102; cocos2d::CCObject::retain(v102); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v113, *((float *)a1 + 130) - 16.0, 16.0); for ( i = 2; i >= 0; --i ) { v104 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)a1[55] + 464LL))(a1[55], v104); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v104 + 160LL))(v104); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, (float)i * -26.0, 0.0); cocos2d::CCPoint::operator+(v113, &v116, v105); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v104 + 184LL))(v104, &v116); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[66], v104); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[68], v104); } v107 = (cocos2d::CCObject *)cocos2d::CCArray::create(v106); a1[67] = (__int64)v107; cocos2d::CCObject::retain(v107); if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v108) + 209) ) { v109 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v24 + 456LL))(v24, v109, 10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, -35.0); v111 = v110; v112 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[55] + 200LL))(a1[55]); cocos2d::CCPoint::operator+(v112, &v116, v111); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v109 + 184LL))(v109, &v116); cocos2d::CCArray::addObject((cocos2d::CCArray *)a1[68], v109); } return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source