// // LevelLeaderboard::init from 0x140428450 to 0x14042961c (4556 bytes) // // 2 xrefs: // > LevelLeaderboard::create @ 0x140428410 // > @ 0x140926a2c // // 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:12 +0000 // // Hidden C++ exception states: #wind=12 bool __fastcall LevelLeaderboard::init(__int64 a1, cocos2d::CCObject *a2, int a3, int a4) { bool result; // al int v9; // r13d __int64 v10; // rcx __int64 v11; // rax float v12; // xmm9_4 __int64 v13; // rax __int64 *v14; // rdi __int64 v15; // rdx __int64 v16; // rbx __int64 v17; // rax size_t v18; // rsi __int64 v19; // rbx __int64 v20; // rax __int64 v21; // rcx __int64 v22; // rax __int128 *v23; // rdx size_t v24; // r8 const char *p_Src; // rcx struct cocos2d::CCLabelBMFont *v26; // r15 __int64 v27; // rbx __int64 v28; // rax const char *v29; // rdx const char *v30; // rcx cocos2d::CCSprite *v31; // rdi float v32; // xmm7_4 float v33; // xmm6_4 double v34; // xmm0_8 __int64 v35; // rax __int64 v36; // rbx __int64 v37; // rax __int64 v38; // rax __int64 v39; // rbx __int64 v40; // rax __int64 v41; // rdi __int64 v42; // rax __int64 SpriteButton; // rax __int64 v44; // rdx __int64 v45; // rdi __int64 v46; // rax __int64 v47; // rax __int64 v48; // rdx __int64 v49; // rbx __int64 v50; // rdi __int64 v51; // rax __int64 v52; // rax __int64 v53; // rax __int64 v54; // rax int v55; // r15d __int64 v56; // rbx __int64 v57; // rax __int64 *v58; // rsi __int64 v59; // rdi __int64 v60; // rbx __int64 v61; // rax __int64 v62; // rax _DWORD *v63; // rcx int v64; // ebx __int64 v65; // rcx cocos2d::CCString *v66; // rax int v67; // eax cocos2d::CCObject *v68; // rsi __int64 v69; // rdi __int64 v70; // rbx __int64 v71; // rax __int64 v72; // rax struct cocos2d::CCSprite *v73; // rax cocos2d::CCObject *v74; // rax __int64 v75; // rsi __int64 v76; // rbx __int64 v77; // rdi __int64 v78; // rax __int64 v79; // rax cocos2d::CCLayerColor *v80; // rax const struct cocos2d::CCPoint *v81; // rax char *v82; // rax __int64 v83; // rdi __int64 v84; // rbx __int64 v85; // rax __int64 v86; // r12 __int64 v87; // rcx __int64 v88; // rbx int v89; // edi int v90; // esi char *v91; // rax unsigned int v92; // r15d const char *v93; // rcx struct cocos2d::CCSprite *v94; // r13 cocos2d::CCObject *v95; // rdi __int64 v96; // rbx __int64 v97; // rax __int64 v98; // rax void *v99; // rcx _QWORD *v100; // r8 _OWORD *v101; // rdx const char *v102; // rax char *v103; // rsi __int64 v104; // rdi __int64 v105; // rbx __int64 v106; // rax __int64 v107; // rax __int64 v108; // rax __int64 v109; // r14 __int64 v110; // rcx int v111; // [rsp+40h] [rbp-C0h] BYREF float v112; // [rsp+48h] [rbp-B8h] BYREF float v113; // [rsp+4Ch] [rbp-B4h] __int128 *v114; // [rsp+50h] [rbp-B0h] BYREF __int128 *v115; // [rsp+58h] [rbp-A8h] BYREF __int16 v116; // [rsp+60h] [rbp-A0h] int v117; // [rsp+68h] [rbp-98h] BYREF __int128 *v118; // [rsp+70h] [rbp-90h] BYREF __int128 v119; // [rsp+78h] [rbp-88h] BYREF __int64 v120; // [rsp+88h] [rbp-78h] unsigned __int64 v121; // [rsp+90h] [rbp-70h] __int128 v122; // [rsp+98h] [rbp-68h] BYREF __int64 v123; // [rsp+A8h] [rbp-58h] unsigned __int64 v124; // [rsp+B0h] [rbp-50h] __int128 v125; // [rsp+B8h] [rbp-48h] BYREF __int64 v126; // [rsp+C8h] [rbp-38h] unsigned __int64 v127; // [rsp+D0h] [rbp-30h] __int128 Src; // [rsp+D8h] [rbp-28h] BYREF __int64 v129; // [rsp+E8h] [rbp-18h] unsigned __int64 v130; // [rsp+F0h] [rbp-10h] result = FLAlertLayer::init_1(a1, 150); if ( result ) { if ( a3 == 3 && *((_DWORD *)a2 + 243) != 5 ) a3 = 1; v117 = *((_DWORD *)a2 + 305); if ( v117 == 2 ) a3 = 3; *(_DWORD *)(a1 + 688) = a3; *(_DWORD *)(a1 + 692) = a4; *(_QWORD *)(a1 + 680) = a2; cocos2d::CCObject::retain(a2); v9 = *((_DWORD *)a2 + 243); v11 = cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11, &v112); v12 = 0.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v122, 0.0, 0.0, 80.0, 80.0); v14 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v13); LOBYTE(v15) = -1; (*(void (__fastcall **)(__int64 *, __int64))(v14[40] + 40))(v14 + 40, v15); v16 = *v14; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v115, 440.0, 290.0); (*(void (__fastcall **)(__int64 *, __int64))(v16 + 312))(v14, v17); v18 = -1; (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v14, 0xFFFFFFFFLL); v19 = *v14; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v115, v112 * 0.5, v113 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v19 + 184))(v14, v20); v22 = cocos2d::CCMenu::create(v21); *(_QWORD *)(a1 + 552) = v22; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v22, 10); sub_14003F4F0((__int64)&v125, *(_QWORD *)(a1 + 680) + 344LL); v23 = &v125; if ( v127 > 0xF ) v23 = (__int128 *)v125; Src = 0; v129 = 0; v130 = 0; v24 = -1; do ++v24; while ( *((_BYTE *)v23 + v24) ); sub_14003D230(&Src, v23, v24); sub_14003D310((__int64)&v125); sub_140044D80(&Src, " Leaderboard", 0xCu); p_Src = (const char *)&Src; if ( v130 > 0xF ) p_Src = (const char *)Src; v26 = cocos2d::CCLabelBMFont::create(p_Src, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v26, 20); v27 = *(_QWORD *)v26; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v115, v112 * 0.5, (float)((float)(v113 * 0.5) + 145.0) - 18.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v27 + 184))(v26, v28); cocos2d::CCLabelBMFont::limitLabelWidth(v26, 300.0, 0.80000001, 0.0); if ( v9 == 5 ) { v29 = "GJ_timeIcon_001.png"; if ( a4 == 1 ) v29 = "GJ_pointsIcon_001.png"; v122 = 0; v123 = 0; v124 = 0; do ++v18; while ( v29[v18] ); sub_14003D230(&v122, v29, v18); v30 = (const char *)&v122; if ( v124 > 0xF ) v30 = (const char *)v122; v31 = cocos2d::CCSprite::createWithSpriteFrameName(v30); v32 = *((float *)cocos2d::CCSprite::getTextureRect(v31) + 2); (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v31, 20); v33 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v26 + 320LL))(v26); v34 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v26 + 168LL))(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v114, (float)((float)(*(float *)&v34 * v33) * 0.5) + 2.5, -3.0); v36 = v35; v37 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v26 + 200LL))(v26); cocos2d::CCPoint::operator+(v37, &v111, v36); (*(void (__fastcall **)(cocos2d::CCSprite *, int *))(*(_QWORD *)v31 + 184LL))(v31, &v111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v114, (float)((float)-v32 * 0.5) - 2.5, 0.0); v39 = v38; v40 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v26 + 200LL))(v26); cocos2d::CCPoint::operator+(v40, &v111, v39); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v26 + 184LL))(v26, &v111); v114 = &v119; v119 = 0; v120 = 0; v121 = 0; *(_QWORD *)&v119 = sub_14003D460(0x20u); v120 = 19; v121 = 31; strcpy((char *)v119, "GJ_timeIcon_001.png"); v41 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v111, 0.0, -0.5); SpriteButton = LevelLeaderboard::getSpriteButton( a1, (unsigned int)&v119, (unsigned int)LevelLeaderboard::onChangeMode, v41, 1060320051, v42, 2 - (unsigned int)(a4 != 0)); *(_QWORD *)(a1 + 736) = SpriteButton; LOBYTE(v44) = a4 != 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)SpriteButton + 936LL))(SpriteButton, v44); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 736) + 64LL))(*(_QWORD *)(a1 + 736), 0); v114 = &v119; v119 = 0; v120 = 0; v121 = 0; *(_QWORD *)&v119 = sub_14003D460(0x20u); v120 = 21; v121 = 31; strcpy((char *)v119, "GJ_pointsIcon_001.png"); v45 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v111, 0.0, -1.0); v47 = LevelLeaderboard::getSpriteButton( a1, (unsigned int)&v119, (unsigned int)LevelLeaderboard::onChangeMode, v45, 1060320051, v46, (unsigned int)(a4 == 1) + 1); *(_QWORD *)(a1 + 744) = v47; LOBYTE(v48) = a4 != 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v47 + 936LL))(v47, v48); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 744) + 64LL))(*(_QWORD *)(a1 + 744), 1); v49 = *(_QWORD *)(a1 + 584); v50 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v114, (float)((float)(v112 * 0.5) - 220.0) + 25.0, (float)(v113 * 0.5) + 40.0); cocos2d::CCNode::convertToWorldSpace(v49, &v111, v51); cocos2d::CCNode::convertToNodeSpace(v50, &v115, v52); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v114, 0.0, 20.0); cocos2d::CCPoint::operator+(&v115, &v111, v53); (*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 736) + 184LL))(*(_QWORD *)(a1 + 736), &v111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v114, 0.0, -20.0); cocos2d::CCPoint::operator+(&v115, &v111, v54); (*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 744) + 184LL))(*(_QWORD *)(a1 + 744), &v111); v55 = v117; if ( v117 == 2 ) { v114 = &v119; v119 = 0; v120 = 0; v121 = 0; *(_QWORD *)&v119 = sub_14003D460(0x20u); v120 = 19; v121 = 31; strcpy((char *)v119, "edit_delBtn_001.png"); v56 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, 0.0, -0.5); v58 = (__int64 *)LevelLeaderboard::getSpriteButton( a1, (unsigned int)&v119, (unsigned int)LevelLeaderboard::onDeleteLocalScores, v56, 1060320051, v57, 4); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v111, (float)((float)(v112 * 0.5) + 220.0) - 25.0, (float)((float)(v113 * 0.5) + 145.0) - 23.0); v59 = *v58; v60 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), &v114, &v111); cocos2d::CCNode::convertToNodeSpace(v60, &v118, v61); (*(void (__fastcall **)(__int64 *, __int64))(v59 + 184))(v58, v62); } sub_14003D310((__int64)&v122); } else { v55 = v117; } v63 = *(_DWORD **)(a1 + 680); if ( v63[165] == v63[166] ) { v64 = v63[162] - v63[163]; v65 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v118 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v118); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v65 = *(_QWORD *)&qword_14090BFB0; } v66 = cocos2d::CCDictionary::valueForKey(*(cocos2d::CCDictionary **)(v65 + 1080), v64); cocos2d::CCString::intValue(v66); } v67 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v68 = CCMenuItemSpriteExtra::create(v67, 0, a1, (__int64)PagedListPopup::onClose); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v68); *((_DWORD *)v68 + 93) = 1070386381; v69 = *(_QWORD *)v68; v70 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v118, (float)((float)(v112 * 0.5) - 220.0) + 10.0, (float)((float)(v113 * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace(v70, &v114, v71); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v69 + 184))(v68, v72); v73 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); LODWORD(v70) = (_DWORD)v73; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v73 + 160LL))(v73); v74 = CCMenuItemSpriteExtra::create(v70, 0, a1, (__int64)LevelLeaderboard::onUpdate); *(_QWORD *)(a1 + 728) = v74; *((_DWORD *)v74 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 728)); v75 = **(_QWORD **)(a1 + 728); v76 = *(_QWORD *)(a1 + 552); v77 = *(_QWORD *)(a1 + 728); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v118, (float)((float)(v112 * 0.5) + 220.0) - 25.0, (float)(v113 * 0.5) + 100.0); cocos2d::CCNode::convertToNodeSpace(v76, &v114, v78); (*(void (__fastcall **)(__int64, __int64))(v75 + 184))(v77, v79); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 728) + 336LL))(*(_QWORD *)(a1 + 728), 0); v80 = LoadingCircle::create(); *(_QWORD *)(a1 + 712) = v80; *((_QWORD *)v80 + 69) = *(_QWORD *)(a1 + 584); *(_BYTE *)(*(_QWORD *)(a1 + 712) + 560LL) = 0; cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 712)); LoadingCircle::show(*(_QWORD *)(a1 + 712)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 712) + 336LL))(*(_QWORD *)(a1 + 712), 0); v118 = &v119; v119 = 0; v120 = 0; v121 = 0; *(_QWORD *)&v119 = sub_14003D460(0x20u); v120 = 31; v121 = 31; strcpy((char *)v119, "No Internet connection!"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v114, 0.5, 1.0); v82 = TextArea::create((__int64)&v119, &qword_140704F78, 1.0, 600.0, v81, 1101004800, 0, 0); *(_QWORD *)(a1 + 720) = v82; *((_DWORD *)v82 + 166) = 1106247680; v83 = **(_QWORD **)(a1 + 720); v84 = *(_QWORD *)(a1 + 720); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v118, v112 * 0.5, (float)(v113 * 0.5) + 10.0); (*(void (__fastcall **)(__int64, __int64))(v83 + 184))(v84, v85); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 720) + 160LL))(*(_QWORD *)(a1 + 720)); v86 = 2; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 720), 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 720) + 336LL))(*(_QWORD *)(a1 + 720), 0); if ( v55 != 2 ) { v88 = cocos2d::CCMenu::create(v87); v115 = (__int128 *)v88; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v88, 2); if ( v9 == 5 ) v12 = 15.0; v89 = (v9 == 5) + 3; v111 = v89; v90 = 0; while ( 1 ) { v119 = 0; v120 = 0; v121 = 15; LOBYTE(v119) = 0; if ( !v90 ) break; switch ( v90 ) { case 1: v91 = (char *)sub_14003D460(0x30u); v120 = 34; v121 = 47; strcpy(v91, "levelLeaderboard_globalBtn_001.png"); v92 = 1; goto LABEL_40; case 2: v91 = (char *)sub_14003D460(0x30u); v120 = 40; v121 = 47; strcpy(v91, "levelLeaderboard_globalWeeklyBtn_001.png"); v92 = 2; goto LABEL_40; case 3: v91 = (char *)sub_14003D460(0x30u); v120 = 33; v121 = 47; strcpy(v91, "levelLeaderboard_localBtn_001.png"); v92 = 3; goto LABEL_40; } LABEL_46: if ( v121 > 0xF ) { v99 = (void *)v119; if ( v121 + 1 >= 0x1000 ) { v99 = *(void **)(v119 - 8); if ( (unsigned __int64)(v119 - (_QWORD)v99 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v99); } if ( ++v90 >= v89 ) goto LABEL_51; } v91 = (char *)sub_14003D460(0x30u); v120 = 35; v121 = 47; strcpy(v91, "levelLeaderboard_friendsBtn_001.png"); v92 = 0; LABEL_40: *(_QWORD *)&v119 = v91; if ( v120 ) { v93 = (const char *)&v119; if ( v121 > 0xF ) v93 = v91; v94 = cocos2d::CCSprite::createWithSpriteFrameName(v93); v95 = CCMenuItemSpriteExtra::create((int)v94, 0, a1, (__int64)LevelLeaderboard::onChangeType); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v95 + 64LL))(v95, v92); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v88 + 464LL))(v88, v95); v96 = *(_QWORD *)v95; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v118, (float)((float)(v112 * 0.5) + 220.0) - 25.0, (float)((float)((float)(v113 * 0.5) + 42.0) - (float)((float)v90 * 42.0)) + v12); cocos2d::CCNode::convertToNodeSpace(v115, &v114, v97); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v96 + 184))(v95, v98); if ( v92 == *(_DWORD *)(a1 + 688) ) { (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v95 + 936LL))(v95, 0); v116 = -26986; LOWORD(v117) = -26986; BYTE2(v117) = -106; (**((void (__fastcall ***)(__int64, int *))v94 + 40))((__int64)v94 + 320, &v117); } v89 = v111; v88 = (__int64)v115; } goto LABEL_46; } LABEL_51: if ( *(_DWORD *)(*(_QWORD *)(a1 + 680) + 932LL) - *(_DWORD *)(*(_QWORD *)(a1 + 680) + 928LL) > *(_DWORD *)(*(_QWORD *)(a1 + 680) + 948LL) - *(_DWORD *)(*(_QWORD *)(a1 + 680) + 952LL) ) { v115 = &v122; v122 = 0; v123 = 0; v124 = 0; v100 = sub_14003D460(0x120u); *(_QWORD *)&v122 = v100; v123 = 276; v124 = 287; v101 = v100; v102 = "Q: My score is wrong!?\n" "A: Level leaderboards changed in update 2.11. Scores from before update 2.11 need to be replayed. You can s" "ee your leaderboard percentage by pressing the info button on the bottom left of the level page, or toggle " "the Leaderboard percent option."; do { *v101 = *(_OWORD *)v102; v101[1] = *((_OWORD *)v102 + 1); v101[2] = *((_OWORD *)v102 + 2); v101[3] = *((_OWORD *)v102 + 3); v101[4] = *((_OWORD *)v102 + 4); v101[5] = *((_OWORD *)v102 + 5); v101[6] = *((_OWORD *)v102 + 6); v101 += 8; *(v101 - 1) = *((_OWORD *)v102 + 7); v102 += 128; --v86; } while ( v86 ); *v101 = *(_OWORD *)v102; *((_DWORD *)v101 + 4) = *((_DWORD *)v102 + 4); *((_BYTE *)v100 + 276) = 0; v125 = 0; v126 = 0; v127 = 0; *(_QWORD *)&v125 = sub_14003D460(0x20u); v126 = 18; v127 = 31; strcpy((char *)v125, "Level Leaderboards"); v103 = InfoAlertButton::create((__int64)&v125, (__int64)&v122); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v103); v104 = *(_QWORD *)v103; v105 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v115, (float)((float)(v112 * 0.5) + 220.0) - 5.0, (float)((float)(v113 * 0.5) + 145.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(v105, &v111, v106); (*(void (__fastcall **)(char *, __int64))(v104 + 184))(v103, v107); } v108 = qword_14090BFD0; if ( !qword_14090BFD0 ) { *(_QWORD *)&v122 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v122); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v108 = qword_14090BFD0; } if ( *(_BYTE *)(v108 + 688) || *(_DWORD *)(a1 + 688) == 3 ) { LevelLeaderboard::loadScores(a1); } else { LevelLeaderboard::setupLeaderboard(a1, 0); v109 = a1 + 664; v110 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { *(_QWORD *)&v122 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v122); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v110 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v110 + 1424) = v109; GameLevelManager::updateUserScore(v110); } sub_14003D310((__int64)&Src); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source