// // LevelPage::updateDynamicPage from 0x100420450 to 0x1004218f2 (5282 bytes) // // 2 xrefs: // > LevelSelectLayer::updatePageWithObject @ 0x1004203f9 // > sub_100421B30 @ 0x100421b49 // // 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 12:30:16 +0000 // void __fastcall LevelPage::updateDynamicPage(__int64 a1, __int64 a2, double a3) { __int64 v3; // r14 __int64 v5; // rdi unsigned int v6; // r15d __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax int v10; // r14d bool v11; // cc int v12; // r14d unsigned int v13; // r14d __int64 v14; // rax unsigned int v15; // r14d __int64 v16; // rax int NormalPercent; // eax __m128 v18; // xmm2 __int64 v19; // rdi int v20; // eax unsigned int *v21; // r14 __m128 v22; // xmm2 unsigned int *v23; // r14 __int64 v24; // rax __int64 CString; // rax __int64 v26; // rax __int64 v27; // rax __int64 v28; // rax float v29; // r15d __int64 v30; // rdi __int64 v31; // r12 __int64 v32; // rax __int128 *v33; // rax char *v34; // rsi int v35; // eax unsigned int v36; // r14d __int64 v37; // rax char *v38; // r12 void *v39; // rax __int64 v40; // r14 double v41; // xmm0_8 char *v42; // r14 __int64 v43; // rax _OWORD *v44; // rax __int64 v45; // r14 _OWORD *v46; // rax __int64 v47; // rax __int64 v48; // rax _DWORD *v49; // rax __int64 v50; // r14 __int64 v51; // rax __int64 v52; // r15 __int64 v53; // rax __int64 v54; // r13 __int64 v55; // rax __int64 v56; // rdi __int64 v57; // r14 float *v58; // rax __int64 v59; // r14 __int64 v60; // rax const char *v61; // r14 __int64 v62; // r12 __int64 v63; // rax __int64 v64; // rax _DWORD *v65; // rdi float v66; // xmm0_4 float v67; // xmm0_4 __int64 v68; // r14 __int64 v69; // r14 double v70; // xmm0_8 __int64 v71; // r14 __int64 v72; // rax __int64 v73; // rax __int64 v74; // rax bool hasCompletedStarLevel; // al __int64 *v76; // rdi __int64 v77; // rax __int128 *v78; // rsi __int64 v79; // r14 bool hasSecretCoin; // r14 const char *v81; // r15 const char *v82; // r12 __int64 v83; // r13 __int64 v84; // rax __int64 v85; // rax __int64 v86; // r14 bool v87; // r14 const char *v88; // r12 __int64 v89; // r13 __int64 v90; // rax __int64 v91; // rax __int64 v92; // r14 bool v93; // r14 __int64 v94; // r13 __int64 v95; // rax __int64 v96; // rax float v97; // r15d unsigned int v98; // r12d __int64 v99; // rax char *v100; // r12 double v101; // xmm0_8 char *v102; // r13 __int64 v103; // rax __int64 v104; // rax __int64 v105; // r14 unsigned __int64 *v106; // r15 __int64 v107; // rax __int64 v108; // rax char *v109; // r14 __int64 v110; // rax __int64 v111; // rax __int64 v112; // r15 float v113; // xmm0_4 __int64 v114; // rax unsigned int v115; // r14d __int64 v116; // rax __int64 v117; // r14 char v118; // [rsp+0h] [rbp-B0h] char v119; // [rsp+0h] [rbp-B0h] char v120; // [rsp+0h] [rbp-B0h] char v121; // [rsp+0h] [rbp-B0h] char v122; // [rsp+0h] [rbp-B0h] float v123; // [rsp+8h] [rbp-A8h] BYREF _QWORD v124[2]; // [rsp+10h] [rbp-A0h] BYREF void *v125; // [rsp+20h] [rbp-90h] float v126; // [rsp+2Ch] [rbp-84h] unsigned __int64 v127[2]; // [rsp+30h] [rbp-80h] BYREF void *v128; // [rsp+40h] [rbp-70h] float v129; // [rsp+48h] [rbp-68h] BYREF float v130; // [rsp+4Ch] [rbp-64h] char *v131; // [rsp+50h] [rbp-60h] float v132; // [rsp+5Ch] [rbp-54h] __int128 v133; // [rsp+60h] [rbp-50h] BYREF void *__p; // [rsp+70h] [rbp-40h] float v135; // [rsp+84h] [rbp-2Ch] if ( !*(_BYTE *)(a1 + 416) ) { v3 = a2; v5 = *(_QWORD *)(a1 + 424); if ( v5 ) { if ( *(_DWORD *)(a2 + 328) - *(_DWORD *)(a2 + 332) == *(_DWORD *)(v5 + 328) - *(_DWORD *)(v5 + 332) ) return; cocos2d::CCObject::release(v5); *(_QWORD *)(a1 + 424) = 0; } if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 536)) ) { v6 = 0; do { a2 = v6; v7 = sub_1007FEFE0(*(_QWORD *)(a1 + 536), v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 520LL))(v7); ++v6; } while ( v6 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 536)) ); } sub_1007FF190(*(_QWORD *)(a1 + 536)); *(_QWORD *)(a1 + 568) = 0; *(_QWORD *)(a1 + 424) = v3; cocos2d::CCObject::retain(v3); v8 = cocos2d::CCDirector::sharedDirector(v3, a2); cocos2d::CCDirector::getWinSize(&v129, v8); v9 = *(_QWORD *)(a1 + 424); v10 = *(_DWORD *)(v9 + 328); v11 = v10 <= *(_DWORD *)(v9 + 332); v12 = v10 - *(_DWORD *)(v9 + 332); if ( !v11 ) { if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 552)) ) { v13 = 0; do { v14 = sub_1007FEFE0(*(_QWORD *)(a1 + 552), v13); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 344LL))(v14, 1); ++v13; } while ( v13 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 552)) ); } if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 544)) ) { v15 = 0; do { v16 = sub_1007FEFE0(*(_QWORD *)(a1 + 544), v15); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 344LL))(v16, 1); ++v15; } while ( v15 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 544)) ); } v135 = *(float *)(a1 + 480); NormalPercent = GJGameLevel::getNormalPercent(*(_QWORD *)(a1 + 424)); v18 = (__m128)*(unsigned int *)(a1 + 480); if ( v135 > (float)((float)((float)NormalPercent / 100.0) * v135) ) { v19 = *(_QWORD *)(a1 + 424); v135 = *(float *)(a1 + 480); v20 = GJGameLevel::getNormalPercent(v19); v18 = (__m128)LODWORD(v135); v18.f32[0] = v135 * (float)((float)v20 / 100.0); } v21 = *(unsigned int **)(a1 + 488); sub_100278270((__int64)&v133, 0.0, 0.0, v18, (__m128)v21[109]); (*(void (__fastcall **)(unsigned int *, __int128 *))(*(_QWORD *)v21 + 1136LL))(v21, &v133); v22 = 0; v22.f32[0] = fminf( (float)((float)*(int *)(*(_QWORD *)(a1 + 424) + 888LL) / 100.0) * *(float *)(a1 + 480), *(float *)(a1 + 480)); v23 = *(unsigned int **)(a1 + 496); sub_100278270((__int64)&v133, 0.0, 0.0, v22, (__m128)v23[109]); (*(void (__fastcall **)(unsigned int *, __int128 *))(*(_QWORD *)v23 + 1136LL))(v23, &v133); GJGameLevel::getNormalPercent(*(_QWORD *)(a1 + 424)); v24 = sub_10088E820("%i%%", v118); CString = cocos2d::CCString::getCString(v24); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 448) + 928LL))(*(_QWORD *)(a1 + 448), CString); v26 = sub_10088E820("%i%%", v119); v27 = cocos2d::CCString::getCString(v26); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 456) + 928LL))(*(_QWORD *)(a1 + 456), v27); v28 = GameStatsManager::sharedState(); LODWORD(v29) = GameStatsManager::getStat(v28, "8", (__m128)0LL); v30 = *(_QWORD *)(a1 + 464); v135 = *(float *)(*(_QWORD *)(a1 + 424) + 1108LL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 160LL))(v30, 1.0); v31 = *(_QWORD *)(a1 + 464); v32 = *(_QWORD *)(a1 + 424); if ( (*(_BYTE *)(v32 + 344) & 1) != 0 ) { sub_10001AD30(&v133, *(const void **)(v32 + 360), *(_QWORD *)(v32 + 352)); if ( (v133 & 1) == 0 ) goto LABEL_19; } else { v33 = (__int128 *)(v32 + 344); __p = *((void **)v33 + 2); v133 = *v33; if ( (v133 & 1) == 0 ) { LABEL_19: v34 = (char *)&v133 + 1; goto LABEL_33; } } v34 = (char *)__p; LABEL_33: (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v31 + 928LL))(v31, v34); if ( (v133 & 1) != 0 ) operator delete(__p); if ( *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 328LL))(*(_QWORD *)(a1 + 464)) > 250.0 ) { v57 = *(_QWORD *)(a1 + 464); v58 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v57 + 328LL))(v57); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v57 + 160LL))(v57, 250.0 / *v58); } v59 = *(_QWORD *)(a1 + 464); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v59 + 168LL))(v59) <= 1.0 ) (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 464) + 168LL))(*(_QWORD *)(a1 + 464), 1.0); (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v59 + 160LL))(v59, COERCE_DOUBLE(1065353216)); v60 = sub_10088E820("diffIcon_%02d_btn_001.png", v120); v61 = (const char *)cocos2d::CCString::getCString(v60); v62 = *(_QWORD *)(a1 + 504); v63 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v64 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v63, v61); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v62 + 1160LL))(v62, v64); v65 = *(_DWORD **)(a1 + 504); LODWORD(v131) = v65[108]; v66 = (*(float (__fastcall **)(_DWORD *))(*(_QWORD *)v65 + 168LL))(v65); *(float *)&v131 = v66 * *(float *)&v131; v126 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 328LL))(*(_QWORD *)(a1 + 464)); v67 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 168LL))(*(_QWORD *)(a1 + 464)); v68 = *(_QWORD *)(a1 + 504); sub_100278250( (float *)&v133, (float)((float)(*(float *)(a1 + 520) * 0.5) - (float)((float)((float)((float)((float)(v67 * v126) + 5.0) + (float)(*(float *)&v131 * 0.5)) + 30.0) * 0.5)) + (float)(*(float *)&v131 * 0.5), (float)(*(float *)(a1 + 524) * 0.5) + 3.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v68 + 184LL))(v68, &v133); v69 = *(_QWORD *)(a1 + 464); HIDWORD(v70) = 0; *(float *)&v70 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 504) + 192LL))(*(_QWORD *)(a1 + 504)) + 30.0; sub_100278250((float *)&v133, *(float *)&v70, (float)(*(float *)(a1 + 524) * 0.5) + 3.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v69 + 184LL))(v69, &v133); v71 = *(_QWORD *)(a1 + 472); v72 = sub_10088E820("%i", v121); v73 = cocos2d::CCString::getCString(v72); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v71 + 928LL))(v71, v73); v74 = GameStatsManager::sharedState(); hasCompletedStarLevel = GameStatsManager::hasCompletedStarLevel(v74, *(_QWORD *)(a1 + 424)); v76 = *(__int64 **)(a1 + 472); v132 = v29; if ( hasCompletedStarLevel ) { BYTE2(v133) = 50; LOWORD(v133) = -1; v77 = *v76; v78 = &v133; } else { v77 = *v76; v78 = (__int128 *)&unk_100A0A2CB; } (*(void (__fastcall **)(__int64 *, __int128 *))(v77 + 1072))(v76, v78); v79 = GameStatsManager::sharedState(); GJGameLevel::getCoinKey_1(*(_QWORD *)(a1 + 424), 1); hasSecretCoin = GameStatsManager::hasSecretCoin(v79); v81 = "GJ_coinsIcon_gray_001.png"; v82 = "GJ_coinsIcon_gray_001.png"; if ( hasSecretCoin ) v82 = "GJ_coinsIcon_001.png"; v83 = sub_1007FEFE0(*(_QWORD *)(a1 + 528), 0); v84 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v85 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v84, v82); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v83 + 1160LL))(v83, v85); if ( hasSecretCoin ) { BYTE2(v133) = -1; LOWORD(v133) = -1; } else { BYTE2(v133) = -31; LOWORD(v133) = -7711; } (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v83 + 960LL))(v83, &v133); v86 = GameStatsManager::sharedState(); GJGameLevel::getCoinKey_1(*(_QWORD *)(a1 + 424), 2); v87 = GameStatsManager::hasSecretCoin(v86); v88 = "GJ_coinsIcon_gray_001.png"; if ( v87 ) v88 = "GJ_coinsIcon_001.png"; v89 = sub_1007FEFE0(*(_QWORD *)(a1 + 528), 1); v90 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v91 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v90, v88); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v89 + 1160LL))(v89, v91); if ( v87 ) { BYTE2(v133) = -1; LOWORD(v133) = -1; } else { BYTE2(v133) = -31; LOWORD(v133) = -7711; } (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v89 + 960LL))(v89, &v133); v92 = GameStatsManager::sharedState(); GJGameLevel::getCoinKey_1(*(_QWORD *)(a1 + 424), 3); v93 = GameStatsManager::hasSecretCoin(v92); if ( v93 ) v81 = "GJ_coinsIcon_001.png"; v94 = sub_1007FEFE0(*(_QWORD *)(a1 + 528), 2); v95 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v96 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v95, v81); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v94 + 1160LL))(v94, v96); if ( v93 ) { BYTE2(v133) = -1; LOWORD(v133) = -1; } else { BYTE2(v133) = -31; LOWORD(v133) = -7711; } v97 = v132; (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v94 + 960LL))(v94, &v133); if ( SLODWORD(v135) <= SLODWORD(v97) ) { v107 = GameStatsManager::sharedState(); *(float *)&v70 = (float)(int)GameStatsManager::getBaseCurrencyForLevel(v107, *(_DWORD **)(a1 + 424)) * 0.25; v108 = GameStatsManager::sharedState(); GameStatsManager::getAwardedCurrencyForLevel_1(v108, *(_QWORD *)(a1 + 424)); v109 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"currencyOrbIcon_001.png", v70); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 440) + 456LL))(*(_QWORD *)(a1 + 440), v109); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v109 + 160LL))(v109, 0.69999999); v110 = sub_10088E820("%i/%i", v122); v111 = cocos2d::CCString::getCString(v110); v112 = cocos2d::CCLabelBMFont::create_3(v111, "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 440) + 456LL))(*(_QWORD *)(a1 + 440), v112); sub_100278250((float *)&v133, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v112 + 296LL))(v112, &v133); sub_100278250((float *)&v133, 8.0, 12.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v112 + 184LL))(v112, &v133); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v112 + 160LL))(v112, 0.40000001); v135 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v112 + 192LL))(v112); v132 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v112 + 328LL))(v112); v113 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v112 + 168LL))(v112); v135 = (float)((float)(v113 * v132) + v135) + 9.0; v114 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v112 + 192LL))(v112); sub_100278250((float *)&v133, v135, *(float *)(v114 + 4) + -0.5); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v109 + 184LL))(v109, &v133); sub_1007FEBF0(*(_QWORD *)(a1 + 536), v109); sub_1007FEBF0(*(_QWORD *)(a1 + 536), v112); v56 = *(_QWORD *)(a1 + 560); if ( !v56 ) goto LABEL_29; } else { if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 544)) ) { v98 = 0; do { v99 = sub_1007FEFE0(*(_QWORD *)(a1 + 544), v98); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v99 + 344LL))(v99, 0); ++v98; } while ( v98 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 544)) ); } v100 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJLargeLock_001.png", v70); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 440) + 456LL))(*(_QWORD *)(a1 + 440), v100); sub_100278250((float *)&v133, *(float *)(a1 + 520) * 0.5, *(float *)(a1 + 524) * 0.5); v131 = v100; v101 = (*(double (__fastcall **)(char *, __int128 *))(*(_QWORD *)v100 + 184LL))(v100, &v133); v102 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_coinsIcon_001.png", v101); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 440) + 456LL))(*(_QWORD *)(a1 + 440), v102); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v102 + 160LL))(v102, 1.0); sub_100278250((float *)&v133, *(float *)(a1 + 520) + -15.0, 15.0); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v102 + 184LL))(v102, &v133); v103 = sub_10088E820("%i/%i", v122); v104 = cocos2d::CCString::getCString(v103); v105 = cocos2d::CCLabelBMFont::create_3(v104, "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 440) + 456LL))(*(_QWORD *)(a1 + 440), v105); sub_100278250((float *)&v133, 1.0, 0.5); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v105 + 296LL))(v105, &v133); v106 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v102 + 192LL))(v102); sub_100278250((float *)v127, -15.0, 0.5); sub_100278350((double *)&v133, v106, v127); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v105 + 184LL))(v105, &v133); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v105 + 160LL))(v105, 0.69999999); sub_1007FEBF0(*(_QWORD *)(a1 + 536), v131); sub_1007FEBF0(*(_QWORD *)(a1 + 536), v102); sub_1007FEBF0(*(_QWORD *)(a1 + 536), v105); v56 = *(_QWORD *)(a1 + 560); if ( !v56 ) goto LABEL_29; } goto LABEL_28; } v35 = sub_1007FEF90(*(_QWORD *)(a1 + 552)); if ( v12 != -2 ) { if ( v35 ) { v115 = 0; do { v116 = sub_1007FEFE0(*(_QWORD *)(a1 + 552), v115); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v116 + 344LL))(v116, 0); ++v115; } while ( v115 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 552)) ); } v117 = cocos2d::CCLabelBMFont::create_3("Coming Soon!", "bigFont.fnt"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v117); sub_100278250((float *)&v133, v129 * 0.5, (float)(0.5 * v130) + 50.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v117 + 184LL))(v117, &v133); sub_1007FEBF0(*(_QWORD *)(a1 + 536), v117); LevelPage::addSecretDoor(a1); v56 = *(_QWORD *)(a1 + 560); if ( !v56 ) goto LABEL_29; goto LABEL_28; } if ( v35 ) { v36 = 0; do { v37 = sub_1007FEFE0(*(_QWORD *)(a1 + 552), v36); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v37 + 344LL))(v37, 0); ++v36; } while ( v36 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 552)) ); } v38 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"theTowerDoor_001.png", a3); v39 = CCMenuItemSpriteExtra::create((__int64)v38, 0, a1, (__int64)LevelPage::onTheTower, 0); v40 = cocos2d::CCMenu::createWithItem(v39); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v40); *(_QWORD *)&v41 = LODWORD(v129); *(float *)&v41 = v129 * 0.5; sub_100278250((float *)&v133, v129 * 0.5, (float)(v130 * 0.5) + -5.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v40 + 184LL))(v40, &v133); sub_1007FEBF0(*(_QWORD *)(a1 + 536), v40); v42 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"theTowerLabel_001.png", v41); (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v38 + 456LL))(v38, v42); v135 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v38 + 328LL))(v38) * 0.5; v43 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v38 + 328LL))(v38); sub_100278250((float *)&v133, v135, *(float *)(v43 + 4) + 23.0); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v42 + 184LL))(v42, &v133); sub_100278250((float *)&v133, 0.0, 5.0); v44 = cocos2d::CCMoveBy::create(&v133, (__m128)0x40200000u); v45 = cocos2d::CCEaseInOut::create(v44, 1.8); sub_100278250((float *)&v133, 0.0, -5.0); v46 = cocos2d::CCMoveBy::create(&v133, (__m128)0x40200000u); v47 = cocos2d::CCEaseInOut::create(v46, 1.8); v48 = sub_10039EB60(v45, v47, 0); v49 = cocos2d::CCRepeatForever::create(v48); cocos2d::CCNode::runAction((__int64)v38, (__int64)v49); __p = operator new(0xC0u); *(_QWORD *)&v133 = 193; *((_QWORD *)&v133 + 1) = 189; strcpy( (char *)__p, "30a-1a2.2a0.48a11a90a180a29a0a11a0a0a0a0a0a0a0a5a1a0a0a0.0745098a0a0a0a0.611765a0a1a0a2a1a0a0a0a0a0.937255a0a1a0a1" "a0a0.54a0a0.57a0a56a0a11a0a-25a17a1a2a1a0a0a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0"); v50 = GameToolbox::particleFromString(&v133, 0, 0); (*(void (__fastcall **)(char *, __int64, __int64))(*(_QWORD *)v38 + 464LL))(v38, v50, 11); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 160LL))(v50, 1.0); cocos2d::CCParticleSystem::resetSystem(v50); v135 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v38 + 328LL))(v38); v51 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v38 + 328LL))(v38); sub_100278250((float *)v127, v135 * 0.5, *(float *)(v51 + 4) * 0.5); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v50 + 184LL))(v50, v127); v128 = operator new(0xB8u); v127[0] = 185; v127[1] = 183; strcpy( (char *)v128, "20a-1a2a0.3a8a90a90a0a2a27a30a0a0a0a0a0a0a75a28a0a360a0a0a0.839216a0a1a0a0.05a0a0a0a0a0a0.184314a0a0a0a1a0a0.05a0a" "0.73a0a0.71a0a0a0a0a0a0a0a0a2a1a1a0a0a184a0a0a0a0a0a0a1a0a0a0a0a0a0a0"); v52 = GameToolbox::particleFromString(v127, 0, 0); (*(void (__fastcall **)(char *, __int64, __int64))(*(_QWORD *)v38 + 464LL))(v38, v52, 11); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 160LL))(v52, 1.0); cocos2d::CCParticleSystem::resetSystem(v52); v135 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v38 + 328LL))(v38); v53 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v38 + 328LL))(v38); sub_100278250((float *)v124, v135 * 0.5, *(float *)(v53 + 4) * 0.5); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v52 + 184LL))(v52, v124); v125 = operator new(0xB8u); v124[0] = 185; v124[1] = 178; strcpy( (char *)v125, "3a-1a3a0.3a1a90a90a0a2a11a13a0a0a0a0a0a0a15a5a0a0a0a0a0.839216a0a1a0a0.15a0.16a0a0a0a0a0.184314a0a0a0a1a0a0.21a0.0" "7a1a0a1a0a0a0a0a0a0a0a0a2a1a1a0a0a34a0a0a0a0a0a0a1a0a0a0a0a0a0a0"); v54 = GameToolbox::particleFromString(v124, 0, 0); (*(void (__fastcall **)(char *, __int64, __int64))(*(_QWORD *)v38 + 464LL))(v38, v54, 11); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v54 + 160LL))(v54, 1.0); cocos2d::CCParticleSystem::resetSystem(v54); v135 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v38 + 328LL))(v38); v55 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v38 + 328LL))(v38); sub_100278250(&v123, v135 * 0.5, 0.5 * *(float *)(v55 + 4)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v54 + 184LL))(v54, &v123); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 40LL))(v50, 0.1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 40LL))(v52, 0.1); if ( (v124[0] & 1) != 0 ) { operator delete(v125); if ( (v127[0] & 1) == 0 ) { LABEL_26: if ( (v133 & 1) == 0 ) goto LABEL_27; goto LABEL_72; } } else if ( (v127[0] & 1) == 0 ) { goto LABEL_26; } operator delete(v128); if ( (v133 & 1) == 0 ) { LABEL_27: v56 = *(_QWORD *)(a1 + 560); if ( !v56 ) { LABEL_29: *(_BYTE *)(a1 + 416) = 0; return; } LABEL_28: (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v56 + 344LL))( v56, *(_DWORD *)(*(_QWORD *)(a1 + 424) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 424) + 332LL) == -1); goto LABEL_29; } LABEL_72: operator delete(__p); v56 = *(_QWORD *)(a1 + 560); if ( !v56 ) goto LABEL_29; goto LABEL_28; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source