// // LevelInfoLayer::updateLabelValues from 0x140424940 to 0x140425f80 (5696 bytes) // // 5 xrefs: // > LevelInfoLayer::setupLevelInfo @ 0x14042092e // > LevelInfoLayer::levelDownloadFinished @ 0x140420a19 // > LevelInfoLayer::likedItem @ 0x1404240d1 // > LevelInfoLayer::likedItem @ 0x1404240dc // > @ 0x140926984 // // 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:11 +0000 // // Hidden C++ exception states: #wind=21 void __fastcall LevelInfoLayer::updateLabelValues(__int64 a1) { __int64 v2; // rax int v3; // r13d int v4; // ecx unsigned __int64 v5; // rbx _QWORD *TimeString; // rax size_t v7; // r8 void **v8; // rdx __int64 v9; // rdx void *v10; // rcx _QWORD *v11; // rax _QWORD *v12; // rdx __m128i *v13; // rax __m128i *v14; // rdx int v15; // ebx _QWORD *v16; // rdi __int64 v17; // rsi int v18; // r15d char isDailyRecall; // si _DWORD *v20; // rbx int BaseCurrencyForLevel; // eax int v22; // r12d int AwardedCurrencyForLevel; // r15d void (__fastcall **v24)(__int64, const char *); // rdi __int64 v25; // rbx cocos2d::CCString *v26; // rax const char *CString; // rax __int16 *v28; // rdx signed int v29; // edi __m128i *v30; // rax __m128i *v31; // rdx __int64 v32; // rsi __int64 v33; // rbx __int64 v34; // rdx __int64 v35; // rcx cocos2d::CCSpriteFrameCache *v36; // rcx const char *v37; // rdx struct cocos2d::CCSpriteFrame *v38; // rax __int64 v39; // r8 unsigned __int64 v40; // rdx __int64 v41; // rsi __int64 v42; // rcx __int64 v43; // rbx cocos2d::CCString *v44; // rax int v45; // ebx void *v46; // r8 __int64 v47; // rdx __int64 v48; // rcx __int64 v49; // r8 __int64 v50; // rax __int64 v51; // rsi __int64 v52; // rbx cocos2d::CCString *v53; // rax int v54; // ebx void *v55; // r8 __int64 v56; // rdx __int64 v57; // rcx __int64 v58; // r8 __int64 v59; // rax __int64 v60; // rsi __int64 v61; // rbx cocos2d::CCString *v62; // rax int v63; // ebx void *v64; // r8 __int64 v65; // rdx __int64 v66; // rcx __int64 v67; // r8 __int64 v68; // rax __int64 v69; // rsi __int64 v70; // rbx cocos2d::CCString *v71; // rax int v72; // ebx void *v73; // r8 __int64 v74; // rdx __int64 v75; // rcx __int64 v76; // r8 __int64 v77; // rax __int64 v78; // rdi __int64 v79; // rbx cocos2d::CCString *v80; // rax int v81; // ebx void *v82; // r8 __int64 v83; // rdx __int64 v84; // rcx __int64 v85; // r8 __int64 v86; // rax __int64 v87; // rax __int64 v88; // rdx __int64 v89; // rdi __int64 v90; // rbx cocos2d::CCString *v91; // rax int v92; // ebx void *v93; // r8 __int64 v94; // rdx __int64 v95; // rcx __int64 v96; // r8 __int64 v97; // rax __int64 v98; // rax int v99; // ecx int v100; // ebx __int64 v101; // rdx __int64 v102; // rdx int v103; // edx int v104; // edx void (__fastcall **v105)(__int64, const char *); // rdi __int64 v106; // rbx cocos2d::CCString *v107; // rax const char *v108; // rax __int64 v109; // rcx int v110; // esi int v111; // eax float v112; // xmm12_4 __int64 *v113; // rcx __int64 v114; // rdi float v115; // xmm6_4 float *v116; // rax __int64 v117; // rbx __int64 v118; // rax __int64 *v119; // rcx __int64 v120; // rdi float v121; // xmm6_4 float *v122; // rax __int64 v123; // rbx __int64 v124; // rax char v125; // di bool v126; // bl char v127; // al float v128; // xmm6_4 unsigned int i; // esi struct cocos2d::CCObject *v130; // rdi __int64 v131; // rax __int64 v132; // rbx __int64 v133; // rax unsigned int j; // ebx struct cocos2d::CCObject *v135; // rax _DWORD *v136; // rcx float v137; // xmm7_4 _DWORD *v138; // rcx int v139; // r15d int v140; // ebx float v141; // xmm6_4 int v142; // eax const char *CoinKey; // rax size_t v144; // r8 __int64 v145; // rcx void **v146; // rdx void **v147; // rdi __int64 v148; // rcx char v149; // si struct cocos2d::CCSprite *v150; // rdi __int64 v151; // rax __int16 *v152; // rdx void *v153; // rcx __int16 v154; // [rsp+38h] [rbp-D0h] BYREF char v155; // [rsp+3Ah] [rbp-CEh] __int16 v156; // [rsp+3Ch] [rbp-CCh] BYREF char v157; // [rsp+3Eh] [rbp-CAh] void *v158; // [rsp+40h] [rbp-C8h] BYREF __int16 v159; // [rsp+48h] [rbp-C0h] __int16 v160; // [rsp+4Ch] [rbp-BCh] BYREF char v161; // [rsp+4Eh] [rbp-BAh] __int16 v162; // [rsp+50h] [rbp-B8h] __int16 v163; // [rsp+54h] [rbp-B4h] BYREF char v164; // [rsp+56h] [rbp-B2h] __int64 v165; // [rsp+60h] [rbp-A8h] BYREF void *v166; // [rsp+68h] [rbp-A0h] void *v167; // [rsp+70h] [rbp-98h] _QWORD v168[3]; // [rsp+78h] [rbp-90h] BYREF __int64 v169; // [rsp+90h] [rbp-78h] unsigned __int64 v170; // [rsp+98h] [rbp-70h] void *Block[2]; // [rsp+A0h] [rbp-68h] BYREF __int64 v172; // [rsp+B0h] [rbp-58h] unsigned __int64 v173; // [rsp+B8h] [rbp-50h] void *v174[2]; // [rsp+C0h] [rbp-48h] BYREF __int64 v175; // [rsp+D0h] [rbp-38h] unsigned __int64 v176; // [rsp+D8h] [rbp-30h] void *v177[2]; // [rsp+E0h] [rbp-28h] BYREF __int64 v178; // [rsp+F0h] [rbp-18h] unsigned __int64 v179; // [rsp+F8h] [rbp-10h] void *v180[2]; // [rsp+100h] [rbp-8h] BYREF __int64 v181; // [rsp+110h] [rbp+8h] unsigned __int64 v182; // [rsp+118h] [rbp+10h] void *v183[2]; // [rsp+120h] [rbp+18h] BYREF __int64 v184; // [rsp+130h] [rbp+28h] unsigned __int64 v185; // [rsp+138h] [rbp+30h] (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 568) + 336LL))(*(_QWORD *)(a1 + 568), 0); v2 = *(_QWORD *)(a1 + 504); v3 = 4; if ( *(_DWORD *)(v2 + 972) != 5 ) goto LABEL_18; v4 = (int)floorf((float)*(int *)(v2 + 1336) / 240.0); *(_OWORD *)Block = 0; v172 = 5; v5 = 15; v173 = 15; strcpy((char *)Block, "<1min"); if ( v4 > 60 ) { TimeString = GameToolbox::getTimeString(&v168[1], v4, 1); if ( TimeString[3] > 0xFu ) TimeString = (_QWORD *)*TimeString; v7 = -1; do ++v7; while ( *((_BYTE *)TimeString + v7) ); sub_1400405A0(Block, TimeString, v7); sub_14003D310((__int64)&v168[1]); goto LABEL_10; } if ( !v4 ) { v172 = 4; strcpy((char *)Block, "Dur."); LABEL_10: v5 = v173; } v8 = Block; if ( v5 > 0xF ) v8 = (void **)Block[0]; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 568) + 360LL))(*(_QWORD *)(a1 + 568) + 360LL, v8); LOBYTE(v9) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 568) + 336LL))(*(_QWORD *)(a1 + 568), v9); if ( v173 > 0xF ) { v10 = Block[0]; if ( v173 + 1 >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } LABEL_18: v11 = (_QWORD *)GJGameLevel::lengthKeyToString((__int64)&v168[1], *(_DWORD *)(*(_QWORD *)(a1 + 504) + 972LL)); v12 = v11; if ( v11[3] > 0xFu ) v12 = (_QWORD *)*v11; (**(void (__fastcall ***)(__int64, _QWORD *))(*(_QWORD *)(a1 + 560) + 360LL))(*(_QWORD *)(a1 + 560) + 360LL, v12); sub_14003D310((__int64)&v168[1]); v13 = GameToolbox::pointsToString((__m128i *)&v168[1], *(_DWORD *)(*(_QWORD *)(a1 + 504) + 716LL)); v14 = v13; if ( v13[1].m128i_i64[1] > 0xFuLL ) v14 = (__m128i *)v13->m128i_i64[0]; (**(void (__fastcall ***)(__int64, __m128i *))(*(_QWORD *)(a1 + 576) + 360LL))(*(_QWORD *)(a1 + 576) + 360LL, v14); sub_14003D310((__int64)&v168[1]); v15 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 992LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 996LL); v16 = (_QWORD *)qword_14090BFE0; if ( !qword_14090BFE0 ) { v158 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v16 = (_QWORD *)qword_14090BFE0; } v17 = (__int64)v16; v18 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 992LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 996LL); if ( !v16 ) { v158 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v16 = (_QWORD *)qword_14090BFE0; } isDailyRecall = GameStatsManager::isDailyRecall(v17, v15); v20 = *(_DWORD **)(a1 + 504); BaseCurrencyForLevel = GameStatsManager::getBaseCurrencyForLevel((__int64)v16, v20); v22 = BaseCurrencyForLevel - (int)(float)((float)BaseCurrencyForLevel * -0.25); AwardedCurrencyForLevel = GameStatsManager::getAwardedCurrencyForLevel(v16, (__int64)v20, v18); v24 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 592) + 360LL); v25 = *(_QWORD *)(a1 + 592); v26 = cocos2d::CCString::createWithFormat("%i/%i", AwardedCurrencyForLevel, v22); CString = cocos2d::CCString::getCString(v26); (*v24)(v25 + 360, CString); if ( isDailyRecall && AwardedCurrencyForLevel < v22 ) { v156 = -26986; v157 = -106; v28 = &v156; } else { v154 = -1; v155 = -1; v28 = &v154; } (**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 592) + 368LL))(*(_QWORD *)(a1 + 592) + 368LL, v28); v29 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 964LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 968LL); v30 = GameToolbox::pointsToString((__m128i *)&v168[1], v29); v31 = v30; if ( v30[1].m128i_i64[1] > 0xFuLL ) v31 = (__m128i *)v30->m128i_i64[0]; (**(void (__fastcall ***)(__int64, __m128i *))(*(_QWORD *)(a1 + 584) + 360LL))(*(_QWORD *)(a1 + 584) + 360LL, v31); sub_14003D310((__int64)&v168[1]); v32 = **(_QWORD **)(a1 + 624); v33 = *(_QWORD *)(a1 + 624); v36 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v35, v34); v37 = "GJ_likesIcon_001.png"; if ( v29 < 0 ) v37 = "GJ_dislikesIcon_001.png"; v38 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v36, v37); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v32 + 1008))(v33, v38); if ( !qword_14090BFD0 ) { v158 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v40 = *(_QWORD *)(a1 + 504); v41 = qword_14090BFD0; v42 = (unsigned int)(*(_DWORD *)(qword_14090BFD0 + 692) - *(_DWORD *)(qword_14090BFD0 + 696)); if ( (_DWORD)v42 == *(_DWORD *)(v40 + 648) - *(_DWORD *)(v40 + 652) ) { if ( v29 >= 50 ) { v43 = AchievementManager::sharedState(v42, v40, v39); *(_OWORD *)Block = 0; v172 = 0; v173 = 0; Block[0] = sub_14003D460(0x20u); v172 = 22; v173 = 31; strcpy((char *)Block[0], "geometry.ach.creator03"); v44 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v43 + 352), Block); v45 = cocos2d::CCString::intValue(v44); v40 = v173; if ( v173 > 0xF ) { v46 = Block[0]; if ( v173 + 1 >= 0x1000 ) { v46 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v46 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v46); } v172 = 0; v173 = 15; LOBYTE(Block[0]) = 0; if ( v45 < 100 ) { *(_OWORD *)&v168[1] = 0; v169 = 0; v170 = 0; v168[1] = sub_14003D460(0x20u); v169 = 22; v170 = 31; strcpy((char *)v168[1], "geometry.ach.creator03"); GameManager::completedAchievement(v41, (__int64)&v168[1]); v50 = AchievementManager::sharedState(v48, v47, v49); AchievementManager::reportAchievementWithID(v50, (__int64)"geometry.ach.creator03", 100); } } if ( v29 >= 100 ) { if ( !qword_14090BFD0 ) { v158 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v51 = qword_14090BFD0; v52 = AchievementManager::sharedState(v42, v40, v39); *(_OWORD *)v177 = 0; v178 = 0; v179 = 0; v177[0] = sub_14003D460(0x20u); v178 = 22; v179 = 31; strcpy((char *)v177[0], "geometry.ach.creator01"); v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v52 + 352), v177); v54 = cocos2d::CCString::intValue(v53); v40 = v179; if ( v179 > 0xF ) { v55 = v177[0]; if ( v179 + 1 >= 0x1000 ) { v55 = *((void **)v177[0] - 1); if ( (unsigned __int64)((char *)v177[0] - (char *)v55 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v55); } v178 = 0; v179 = 15; LOBYTE(v177[0]) = 0; if ( v54 < 100 ) { *(_OWORD *)&v168[1] = 0; v169 = 0; v170 = 0; v168[1] = sub_14003D460(0x20u); v169 = 22; v170 = 31; strcpy((char *)v168[1], "geometry.ach.creator01"); GameManager::completedAchievement(v51, (__int64)&v168[1]); v59 = AchievementManager::sharedState(v57, v56, v58); AchievementManager::reportAchievementWithID(v59, (__int64)"geometry.ach.creator01", 100); } } if ( v29 >= 250 ) { if ( !qword_14090BFD0 ) { v158 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v60 = qword_14090BFD0; v61 = AchievementManager::sharedState(v42, v40, v39); *(_OWORD *)v180 = 0; v181 = 0; v182 = 0; v180[0] = sub_14003D460(0x20u); v181 = 22; v182 = 31; strcpy((char *)v180[0], "geometry.ach.creator04"); v62 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v61 + 352), v180); v63 = cocos2d::CCString::intValue(v62); v40 = v182; if ( v182 > 0xF ) { v64 = v180[0]; if ( v182 + 1 >= 0x1000 ) { v64 = *((void **)v180[0] - 1); if ( (unsigned __int64)((char *)v180[0] - (char *)v64 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v64); } v181 = 0; v182 = 15; LOBYTE(v180[0]) = 0; if ( v63 < 100 ) { *(_OWORD *)&v168[1] = 0; v169 = 0; v170 = 0; v168[1] = sub_14003D460(0x20u); v169 = 22; v170 = 31; strcpy((char *)v168[1], "geometry.ach.creator04"); GameManager::completedAchievement(v60, (__int64)&v168[1]); v68 = AchievementManager::sharedState(v66, v65, v67); AchievementManager::reportAchievementWithID(v68, (__int64)"geometry.ach.creator04", 100); } } if ( v29 >= 500 ) { if ( !qword_14090BFD0 ) { v158 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v69 = qword_14090BFD0; v70 = AchievementManager::sharedState(v42, v40, v39); *(_OWORD *)v183 = 0; v184 = 0; v185 = 0; v183[0] = sub_14003D460(0x20u); v184 = 22; v185 = 31; strcpy((char *)v183[0], "geometry.ach.creator05"); v71 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v70 + 352), v183); v72 = cocos2d::CCString::intValue(v71); v40 = v185; if ( v185 > 0xF ) { v73 = v183[0]; if ( v185 + 1 >= 0x1000 ) { v73 = *((void **)v183[0] - 1); if ( (unsigned __int64)((char *)v183[0] - (char *)v73 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v73); } v184 = 0; v185 = 15; LOBYTE(v183[0]) = 0; if ( v72 < 100 ) { *(_OWORD *)&v168[1] = 0; v169 = 0; v170 = 0; v168[1] = sub_14003D460(0x20u); v169 = 22; v170 = 31; strcpy((char *)v168[1], "geometry.ach.creator05"); GameManager::completedAchievement(v69, (__int64)&v168[1]); v77 = AchievementManager::sharedState(v75, v74, v76); AchievementManager::reportAchievementWithID(v77, (__int64)"geometry.ach.creator05", 100); } } if ( v29 >= 1000 ) { if ( !qword_14090BFD0 ) { v158 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v78 = qword_14090BFD0; v79 = AchievementManager::sharedState(v42, v40, v39); *(_OWORD *)v174 = 0; v175 = 0; v176 = 0; v174[0] = sub_14003D460(0x20u); v175 = 22; v176 = 31; strcpy((char *)v174[0], "geometry.ach.creator06"); v80 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v79 + 352), v174); v81 = cocos2d::CCString::intValue(v80); if ( v176 > 0xF ) { v82 = v174[0]; if ( v176 + 1 >= 0x1000 ) { v82 = *((void **)v174[0] - 1); if ( (unsigned __int64)((char *)v174[0] - (char *)v82 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v82); } v175 = 0; v176 = 15; LOBYTE(v174[0]) = 0; if ( v81 < 100 ) { *(_OWORD *)&v168[1] = 0; v169 = 0; v170 = 0; v168[1] = sub_14003D460(0x20u); v169 = 22; v170 = 31; strcpy((char *)v168[1], "geometry.ach.creator06"); GameManager::completedAchievement(v78, (__int64)&v168[1]); v86 = AchievementManager::sharedState(v84, v83, v85); AchievementManager::reportAchievementWithID(v86, (__int64)"geometry.ach.creator06", 100); } } v87 = *(_QWORD *)(a1 + 504); v88 = (unsigned int)(*(_DWORD *)(v87 + 1020) - *(_DWORD *)(v87 + 1024)); if ( *(_DWORD *)(v87 + 1020) - *(_DWORD *)(v87 + 1024) > 0 ) { if ( !qword_14090BFD0 ) { v158 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v89 = qword_14090BFD0; v90 = AchievementManager::sharedState(v42, v88, v39); *(_OWORD *)&v168[1] = 0; v169 = 0; v170 = 0; v168[1] = sub_14003D460(0x20u); v169 = 22; v170 = 31; strcpy((char *)v168[1], "geometry.ach.creator02"); v91 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v90 + 352), &v168[1]); v92 = cocos2d::CCString::intValue(v91); if ( v170 > 0xF ) { v93 = (void *)v168[1]; if ( v170 + 1 >= 0x1000 ) { v93 = *(void **)(v168[1] - 8LL); if ( (unsigned __int64)(v168[1] - (_QWORD)v93 - 8LL) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v93); } if ( v92 < 100 ) { *(_OWORD *)&v168[1] = 0; v169 = 0; v170 = 0; v168[1] = sub_14003D460(0x20u); v169 = 22; v170 = 31; strcpy((char *)v168[1], "geometry.ach.creator02"); GameManager::completedAchievement(v89, (__int64)&v168[1]); v97 = AchievementManager::sharedState(v95, v94, v96); AchievementManager::reportAchievementWithID(v97, (__int64)"geometry.ach.creator02", 100); } } } cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 560), 60.0, 0.5, 0.0); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 568), 42.0, 0.34999999, 0.0); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 576), 60.0, 0.5, 0.0); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 584), 60.0, 0.5, 0.0); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 592), 60.0, 0.5, 0.0); v98 = *(_QWORD *)(a1 + 504); v99 = *(_DWORD *)(v98 + 708); if ( v99 >= 5 ) v100 = (int)roundf((float)*(int *)(v98 + 712) / (float)v99); else v100 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v165, (const struct cocos2d::CCPoint *)(a1 + 692)); v101 = *(_QWORD *)(a1 + 504); if ( *(_DWORD *)(v101 + 1004) - *(_DWORD *)(v101 + 1008) == 1 ) { switch ( *(_DWORD *)(v101 + 1016) ) { case 3: v100 = 7; break; case 4: v100 = 8; break; case 5: v100 = 9; break; case 6: v100 = 10; break; default: v100 = 6; break; } *((float *)&v165 + 1) = *((float *)&v165 + 1) + 5.0; } if ( *(_BYTE *)(v101 + 1032) ) v100 = -1; GJDifficultySprite::updateDifficultyFrame(*(cocos2d::CCArray ***)(a1 + 656), v100, 1); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 656) + 184LL))(*(_QWORD *)(a1 + 656), &v165); v102 = *(_QWORD *)(a1 + 504); if ( v102 ) { if ( *(int *)(v102 + 976) > 0 || *(int *)(v102 + 980) > 0 ) { v104 = *(_DWORD *)(v102 + 980); if ( v104 <= 0 ) { v103 = 1; } else { if ( v104 < 3 ) { v3 = 3; if ( v104 < 2 ) v3 = 2; } v103 = v3; } } else { v103 = 0; } GJDifficultySprite::updateFeatureState(*(_DWORD **)(a1 + 656), v103); } v105 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 672) + 360LL); v106 = *(_QWORD *)(a1 + 672); v107 = cocos2d::CCString::createWithFormat( (const char *)&word_1406ED6F8, (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 504) + 1020LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 1024LL))); v108 = cocos2d::CCString::getCString(v107); (*v105)(v106 + 360, v108); v109 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v158 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v158); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v109 = qword_14090BFE0; } if ( GameStatsManager::hasCompletedStarLevel(v109, *(_QWORD *)(a1 + 504)) ) { v154 = -1; v155 = 50; (**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 672) + 368LL))(*(_QWORD *)(a1 + 672) + 368LL, &v154); } v110 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 1020LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 1024LL); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 672) + 336LL))(*(_QWORD *)(a1 + 672), v110 > 0); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 664) + 336LL))(*(_QWORD *)(a1 + 664), v110 > 0); v111 = 0; if ( *(_DWORD *)(*(_QWORD *)(a1 + 504) + 1004LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 1008LL) == 1 ) v111 = -4; v112 = (float)v111; v113 = *(__int64 **)(a1 + 672); v114 = *v113; v115 = (float)v111 + *(float *)(a1 + 700); v116 = (float *)(*(__int64 (__fastcall **)(__int64 *))(*v113 + 200))(v113); v117 = *(_QWORD *)(a1 + 672); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, *v116, v115); (*(void (__fastcall **)(__int64, __int64))(v114 + 184))(v117, v118); v119 = *(__int64 **)(a1 + 664); v120 = *v119; v121 = v112 + *(float *)(a1 + 700); v122 = (float *)(*(__int64 (__fastcall **)(__int64 *))(*v119 + 200))(v119); v123 = *(_QWORD *)(a1 + 664); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, *v122, v121); (*(void (__fastcall **)(__int64, __int64))(v120 + 184))(v123, v124); v125 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 592) + 344LL))(*(_QWORD *)(a1 + 592)); v126 = v110 > 0 && !*(_BYTE *)(a1 + 704); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 592) + 336LL))(*(_QWORD *)(a1 + 592), v126); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 632) + 336LL))(*(_QWORD *)(a1 + 632), v126); if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 592) + 344LL))(*(_QWORD *)(a1 + 592)) != v125 ) { v127 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 592) + 344LL))(*(_QWORD *)(a1 + 592)); v128 = *(float *)(a1 + 688); if ( !v127 ) v128 = -v128; for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680)); ++i ) { v130 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), i); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 0.0, v128); v132 = v131; v133 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v130 + 200LL))(v130); cocos2d::CCPoint::operator+(v133, &v163, v132); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v130 + 184LL))(v130, &v163); } } for ( j = 0; j < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 512)); ++j ) { v135 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 512), j); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v135 + 512LL))(v135); } cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(a1 + 512)); v136 = *(_DWORD **)(a1 + 504); if ( (int)v136[259] > 0 ) { if ( v136[255] - v136[256] <= 0 ) { v137 = -31.5; } else { v137 = -45.5; if ( GJGameLevel::levelHasDiamonds((__int64)v136) ) v137 = -60.0; } v138 = *(_DWORD **)(a1 + 504); v139 = v138[260] - v138[261]; v140 = 0; if ( (int)v138[259] > 0 ) { while ( 1 ) { if ( v140 >= 3 ) return; v141 = 0.0; if ( v140 ) { if ( v140 == 1 ) { if ( v138[259] == 2 ) v141 = 5.0; } else if ( v140 == 2 ) { v141 = 10.0; } } else { v142 = v138[259]; if ( v142 == 2 ) { v141 = -5.0; } else if ( v142 >= 3 ) { v141 = -10.0; } } CoinKey = GJGameLevel::getCoinKey((__int64)v138, v140 + 1, v138[248] - v138[249]); *(_OWORD *)v174 = 0; v175 = 0; v176 = 0; v144 = -1; do ++v144; while ( CoinKey[v144] ); sub_14003D230(v174, CoinKey, v144); v145 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v166 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v166); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v145 = qword_14090BFE0; } v146 = v174; if ( v176 > 0xF ) v146 = (void **)v174[0]; if ( GameStatsManager::hasUserCoin(v145, v146) ) goto LABEL_169; v147 = v174; if ( v176 > 0xF ) v147 = (void **)v174[0]; v148 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v167 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v167); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v148 = qword_14090BFE0; } if ( GameStatsManager::hasPendingUserCoin(v148, v147) ) LABEL_169: v149 = 1; else v149 = 0; v150 = cocos2d::CCSprite::createWithSpriteFrameName("usercoin_small01_001.png"); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v150); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v168, v141, v137 + v112); cocos2d::CCPoint::operator+(a1 + 692, &v158, v151); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v150 + 184LL))(v150, &v158); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 512), v150); if ( v139 != 1 ) break; if ( !v149 ) { v162 = -23131; v163 = -23131; v164 = -91; v152 = &v163; LABEL_176: (**((void (__fastcall ***)(__int64, __int16 *))v150 + 40))((__int64)v150 + 320, v152); } if ( v176 > 0xF ) { v153 = v174[0]; if ( v176 + 1 >= 0x1000 ) { v153 = *((void **)v174[0] - 1); if ( (unsigned __int64)((char *)v174[0] - (char *)v153 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v153); } ++v140; v138 = *(_DWORD **)(a1 + 504); if ( v140 >= v138[259] ) return; } if ( v149 ) { v154 = -20481; v156 = -20481; v157 = 75; v152 = &v156; } else { v159 = 29093; v160 = 29093; v161 = 48; v152 = &v160; } goto LABEL_176; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source