// // LevelInfoLayer::setupLevelInfo from 0x14041fd50 to 0x14042097e (3118 bytes) // // 2 xrefs: // > LevelInfoLayer::init @ 0x14041cdbf // > @ 0x1409267d4 // // 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:09 +0000 // // Hidden C++ exception states: #wind=3 __int64 __fastcall LevelInfoLayer::setupLevelInfo(struct cocos2d::CCObject **a1) { unsigned int v2; // r14d cocos2d::CCObject *v3; // rax __int64 v4; // rcx __int64 v5; // rax struct cocos2d::CCObject *v6; // r12 struct cocos2d::CCObject *v7; // r13 struct cocos2d::CCLabelBMFont *v8; // rax __int64 v9; // rdi struct cocos2d::CCObject *v10; // rbx __int64 v11; // rax struct cocos2d::CCLabelBMFont *v12; // rax __int64 v13; // rdi struct cocos2d::CCObject *v14; // rbx __int64 v15; // rax struct cocos2d::CCLabelBMFont *v16; // rax __int64 v17; // rdi struct cocos2d::CCObject *v18; // rbx __int64 v19; // rax struct cocos2d::CCLabelBMFont *v20; // rax __int64 v21; // rdi struct cocos2d::CCObject *v22; // rbx __int64 v23; // rax struct cocos2d::CCLabelBMFont *v24; // rax __int64 v25; // rdi struct cocos2d::CCObject *v26; // rbx __int64 v27; // rax struct cocos2d::CCObject *v28; // rax int v29; // r15d float v30; // xmm8_4 float v31; // xmm9_4 float v32; // xmm6_4 int v33; // eax float v34; // xmm11_4 __int64 v35; // rbx __int64 v36; // rax __int64 v37; // rbx __int64 v38; // rax __int64 v39; // rdi __int64 v40; // rax struct cocos2d::CCObject *v41; // rbx __int64 v42; // rax __int64 v43; // rdi struct cocos2d::CCObject *v44; // rbx __int64 v45; // rax __int64 v46; // rdi struct cocos2d::CCObject *v47; // rbx __int64 v48; // rax __int64 v49; // rdi __int64 v50; // rax struct cocos2d::CCObject *v51; // rbx __int64 v52; // rax __int64 v53; // rbx __int64 v54; // rax __int64 v55; // rbx __int64 v56; // rax __int64 v57; // rdi __int64 v58; // rax int v59; // ecx int v60; // r12d struct cocos2d::CCObject *v61; // rbx __int64 v62; // rax __int64 v63; // rax __int64 v64; // rbx __int64 v65; // rax __int64 v66; // rdi struct cocos2d::CCObject *v67; // rbx __int64 v68; // rax __int64 v69; // rdi struct cocos2d::CCObject *v70; // rbx __int64 v71; // rax __int64 v72; // rdi __int64 v73; // rax struct cocos2d::CCObject *v74; // rbx __int64 v75; // rax __int64 v76; // rax cocos2d::CCSprite *v77; // rax const char *v78; // rcx struct cocos2d::CCSprite *v79; // rax __int64 v80; // rax struct cocos2d::CCLabelBMFont *v81; // rax __int64 v82; // rdi struct cocos2d::CCObject *v83; // rbx __int64 v84; // rax __int64 v85; // rax __int64 v86; // rbx __int64 v87; // rax struct cocos2d::CCSprite *v88; // r15 int v89; // ebx __int64 v90; // rcx int v91; // r12d int AwardedDiamondsForLevel; // r13d cocos2d::CCString *v93; // rax const char *CString; // rax size_t v95; // r8 const char *v96; // rcx struct cocos2d::CCLabelBMFont *v97; // rdi __int64 v98; // rbx __int64 v99; // rax float v100; // xmm6_4 float v101; // xmm0_4 int v102; // eax __int64 v103; // rax __int64 v104; // rax __int64 v105; // rbx __int64 v106; // rax struct cocos2d::CCObject *v107; // rax int v109; // [rsp+28h] [rbp-69h] BYREF void *v110; // [rsp+30h] [rbp-61h] BYREF float v111[2]; // [rsp+38h] [rbp-59h] BYREF __int128 v112; // [rsp+40h] [rbp-51h] BYREF __int64 v113; // [rsp+50h] [rbp-41h] unsigned __int64 v114; // [rsp+58h] [rbp-39h] v2 = 0; v3 = (cocos2d::CCObject *)cocos2d::CCArray::create(a1); a1[85] = v3; cocos2d::CCObject::retain(v3); v5 = cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(v5, v111); v6 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"); v7 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png"); a1[79] = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071BE38); a1[78] = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png"); v8 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); a1[70] = v8; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v8 + 160LL))(v8); v9 = *(_QWORD *)a1[70]; v10 = a1[70]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v109, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v9 + 288))(v10, v11); v12 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); a1[71] = v12; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v12 + 160LL))(v12); v13 = *(_QWORD *)a1[71]; v14 = a1[71]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v109, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v13 + 288))(v14, v15); v16 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); a1[72] = v16; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 160LL))(v16); v17 = *(_QWORD *)a1[72]; v18 = a1[72]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v109, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v17 + 288))(v18, v19); v20 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); a1[73] = v20; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v20 + 160LL))(v20); v21 = *(_QWORD *)a1[73]; v22 = a1[73]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v109, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v21 + 288))(v22, v23); v24 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); a1[74] = v24; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v24 + 160LL))(v24); v25 = *(_QWORD *)a1[74]; v26 = a1[74]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v109, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v25 + 288))(v26, v27); cocos2d::CCArray::addObject(a1[85], v6); cocos2d::CCArray::addObject(a1[85], v7); cocos2d::CCArray::addObject(a1[85], a1[79]); cocos2d::CCArray::addObject(a1[85], a1[78]); cocos2d::CCArray::addObject(a1[85], a1[72]); cocos2d::CCArray::addObject(a1[85], a1[70]); cocos2d::CCArray::addObject(a1[85], a1[71]); cocos2d::CCArray::addObject(a1[85], a1[73]); cocos2d::CCArray::addObject(a1[85], a1[74]); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, v6); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, v7); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, a1[79]); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, a1[78]); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, a1[72]); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, a1[70]); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, a1[71]); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, a1[73]); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCObject *))*a1 + 58))(a1, a1[74]); v28 = a1[63]; v29 = *((_DWORD *)v28 + 255) - *((_DWORD *)v28 + 256); v109 = *((_DWORD *)v28 + 243); v30 = (float)(v111[0] * 0.5) + 80.0; v31 = v30 + 33.0; v32 = (float)(v111[1] * 0.5) + 51.0; v33 = 30; if ( v29 > 0 ) v33 = 28; v34 = (float)v33; *((_DWORD *)a1 + 172) = 1092616192; if ( v29 > 0 ) v32 = v32 + 10.0; v35 = *(_QWORD *)v7; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v35 + 288))(v7, v36); v37 = *(_QWORD *)v7; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v30, v34 + v32); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v37 + 184))(v7, v38); v39 = *(_QWORD *)a1[72]; v40 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 200LL))(v7); v41 = a1[72]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v31, *(float *)(v40 + 4)); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v39 + 184))(v41, v42); v43 = *(_QWORD *)a1[78]; v44 = a1[78]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v43 + 288))(v44, v45); v46 = *(_QWORD *)a1[78]; v47 = a1[78]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v30, v32 + 1.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v46 + 184))(v47, v48); v49 = *(_QWORD *)a1[73]; v50 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)a1[78] + 200LL))(a1[78]); v51 = a1[73]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v31, *(float *)(v50 + 4)); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v49 + 184))(v51, v52); v53 = *(_QWORD *)v6; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v53 + 288))(v6, v54); v55 = *(_QWORD *)v6; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v30, v32 - v34); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v55 + 184))(v6, v56); v57 = *(_QWORD *)a1[70]; v58 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 200LL))(v6); v59 = 0; v60 = v109; if ( v109 == 5 ) v59 = 6; v61 = a1[70]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v31, (float)v59 + *(float *)(v58 + 4)); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v57 + 184))(v61, v62); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, 0.0, -14.0); v64 = v63; v65 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)a1[70] + 200LL))(a1[70]); cocos2d::CCPoint::operator+(v65, &v109, v64); (*(void (__fastcall **)(struct cocos2d::CCObject *, int *))(*(_QWORD *)a1[71] + 184LL))(a1[71], &v109); v66 = *(_QWORD *)a1[79]; v67 = a1[79]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v66 + 288))(v67, v68); v69 = *(_QWORD *)a1[79]; v70 = a1[79]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v30 + 1.0, v32 - (float)(v34 + v34)); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v69 + 184))(v70, v71); v72 = *(_QWORD *)a1[74]; v73 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)a1[79] + 200LL))(a1[79]); v74 = a1[74]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, v31, *(float *)(v73 + 4)); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v72 + 184))(v74, v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, (float)(v111[0] * 0.5) - 100.0, v32 + 5.0); cocos2d::CCPoint::operator=((char *)a1 + 692, v76); v77 = GJDifficultySprite::create(); a1[82] = v77; (*((void (__fastcall **)(struct cocos2d::CCObject **, cocos2d::CCSprite *, __int64))*a1 + 57))(a1, v77, 3); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)a1[82] + 184LL))(a1[82], (__int64)a1 + 692); v78 = "star_small01_001.png"; if ( v60 == 5 ) v78 = "moon_small01_001.png"; v79 = cocos2d::CCSprite::createWithSpriteFrameName(v78); a1[83] = v79; (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCSprite *))*a1 + 58))(a1, v79); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, 8.0, -30.0); cocos2d::CCPoint::operator+((char *)a1 + 692, &v109, v80); (*(void (__fastcall **)(struct cocos2d::CCObject *, int *))(*(_QWORD *)a1[83] + 184LL))(a1[83], &v109); v81 = cocos2d::CCLabelBMFont::create("0", (const char *)&qword_140704F78); a1[84] = v81; (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCLabelBMFont *))*a1 + 58))(a1, v81); v82 = *(_QWORD *)a1[84]; v83 = a1[84]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v82 + 288))(v83, v84); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, -8.0, 0.0); v86 = v85; v87 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)a1[83] + 200LL))(a1[83]); cocos2d::CCPoint::operator+(v87, &v109, v86); (*(void (__fastcall **)(struct cocos2d::CCObject *, int *))(*(_QWORD *)a1[84] + 184LL))(a1[84], &v109); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)a1[84] + 160LL))(a1[84]); *((_DWORD *)a1 + 175) = *(_DWORD *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)a1[84] + 200LL))(a1[84]) + 4); if ( v29 > 0 && GJGameLevel::levelHasDiamonds((__int64)a1[63]) ) { v88 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCSprite *))*a1 + 58))(a1, v88); v89 = *((_DWORD *)a1[63] + 255) - *((_DWORD *)a1[63] + 256); v90 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v110 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v110); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v90 = qword_14090BFE0; } v91 = v89 + 2; if ( (unsigned int)(v89 - 2) > 8 ) v91 = 0; if ( !v90 ) { v110 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v110); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v90 = qword_14090BFE0; } AwardedDiamondsForLevel = GameStatsManager::getAwardedDiamondsForLevel(v90, (__int64)a1[63]); v93 = cocos2d::CCString::createWithFormat("%i/%i", AwardedDiamondsForLevel, v91); CString = cocos2d::CCString::getCString(v93); v112 = 0; v113 = 0; v114 = 0; v95 = -1; do ++v95; while ( CString[v95] ); sub_14003D230(&v112, CString, v95); v96 = (const char *)&v112; if ( v114 > 0xF ) v96 = (const char *)v112; v97 = cocos2d::CCLabelBMFont::create(v96, (const char *)&qword_140704F78); (*((void (__fastcall **)(struct cocos2d::CCObject **, struct cocos2d::CCLabelBMFont *))*a1 + 58))(a1, v97); v98 = *(_QWORD *)v97; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v98 + 288))(v97, v99); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v97 + 160LL))(v97); v100 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v97 + 320LL))(v97); v101 = (*(float (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v97 + 168LL))(v97) * v100; v102 = 0; if ( *((_DWORD *)a1[63] + 255) - *((_DWORD *)a1[63] + 256) == 10 ) v102 = -4; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, (float)(v101 * 0.5) + 2.0, (float)v102 - 44.5); cocos2d::CCPoint::operator+((char *)a1 + 692, &v109, v103); (*(void (__fastcall **)(struct cocos2d::CCSprite *, int *))(*(_QWORD *)v88 + 184LL))(v88, &v109); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v110, -8.0, 0.0); v105 = v104; v106 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v88 + 200LL))(v88); cocos2d::CCPoint::operator+(v106, &v109, v105); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v97 + 184LL))(v97, &v109); if ( AwardedDiamondsForLevel == v91 ) { LOWORD(v109) = -156; BYTE2(v109) = -1; (**((void (__fastcall ***)(__int64, int *))v97 + 46))((__int64)v97 + 368, &v109); } sub_14003D310((__int64)&v112); } if ( *((_BYTE *)a1 + 704) ) { if ( cocos2d::CCArray::count(a1[85]) ) { do { v107 = cocos2d::CCArray::objectAtIndex(a1[85], v2); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v107 + 336LL))(v107, 0); ++v2; } while ( v2 < cocos2d::CCArray::count(a1[85]) ); } (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1[79] + 336LL))(a1[79], 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1[74] + 336LL))(a1[74], 0); } return LevelInfoLayer::updateLabelValues(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source