// // LevelAreaInnerLayer::init from 0x1403df810 to 0x1403e07f7 (4071 bytes) // // 2 xrefs: // > LevelAreaInnerLayer::scene @ 0x1403df7ca // > @ 0x140924dc4 // // 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:31:40 +0000 // // Hidden C++ exception states: #wind=11 bool __fastcall LevelAreaInnerLayer::init(cocos2d::CCLayer *a1, char a2) { cocos2d::CCLayer *v2; // r12 bool result; // al __int64 v4; // rdx __int64 v5; // rdx __int64 v6; // rcx __int64 v7; // rax cocos2d::CCTextureCache *v8; // rax __int64 v9; // rdx __int64 v10; // rcx cocos2d::CCSpriteFrameCache *v11; // rax struct cocos2d::CCSprite *v12; // rbx cocos2d::CCObject *v13; // rdi struct cocos2d::CCAction *v14; // rax struct cocos2d::CCMenu *v15; // rsi __int64 v16; // rbx __int64 v17; // rcx cocos2d::CCDirector *v18; // rax float v19; // xmm6_4 __int64 v20; // rcx cocos2d::CCDirector *v21; // rax float v22; // xmm0_4 __int64 v23; // rax __int64 v24; // rcx __int64 v25; // rdx __int64 v26; // rcx cocos2d::CCNode *v27; // r15 __int64 v28; // rcx struct cocos2d::CCSprite *v29; // rax __int64 v30; // rbx __int64 v31; // rax __int64 v32; // rax __int64 v33; // rax __int64 v34; // rax __int64 v35; // rax int v36; // edi int v37; // ebx __int64 v38; // rcx unsigned int v39; // r13d __int64 MainLevel; // r14 __int64 v41; // rcx bool hasCompletedMainLevel; // si __int64 v43; // rcx char v44; // bl unsigned __int64 v45; // rdi _BYTE *v46; // rbx unsigned __int64 v47; // rcx __int64 v48; // rsi char *v49; // rax _BYTE *v50; // rbx unsigned __int64 v51; // rcx __int64 v52; // rsi char *v53; // rbx void *v54; // rcx void **v55; // rcx __int64 v56; // rdi __int64 v57; // rbx _BYTE *v58; // r13 __int64 v59; // rax __int64 v60; // rax signed int i; // edi __int64 v62; // rbx const char *CoinKey; // rax struct cocos2d::CCSprite *v64; // rbx __int16 *v65; // rsi int v66; // eax __int64 v67; // rax __int64 *v68; // rdi __int64 *v69; // rbx __int64 v70; // rsi __int64 v71; // rdi __int64 v72; // rbx __int64 v73; // rax __int64 v74; // rax int j; // esi struct cocos2d::CCSprite *v76; // rdi __int64 v77; // rbx int v78; // ecx __int64 v79; // rax __int64 v80; // rax __int64 v81; // rbx __int64 v82; // rax struct cocos2d::CCActionInterval *v83; // rax struct cocos2d::CCAction *v84; // rax struct cocos2d::CCSprite *v85; // rsi struct cocos2d::CCFadeTo *v86; // rbx struct cocos2d::CCFiniteTimeAction *v87; // rax struct cocos2d::CCAction *v88; // rax cocos2d::CCObject *v89; // rdi struct cocos2d::CCMenu *v90; // r14 __int64 v91; // rbx __int64 v92; // rcx cocos2d::CCDirector *v93; // rax float v94; // xmm0_4 __int64 v95; // rax __int64 v96; // rax __int64 v97; // rax __int64 v98; // rbx __int64 v99; // rax const struct cocos2d::CCPoint *v100; // rax struct cocos2d::CCActionInterval *v101; // rax struct cocos2d::CCFiniteTimeAction *v102; // rbx const struct cocos2d::CCPoint *v103; // rax struct cocos2d::CCActionInterval *v104; // rax struct cocos2d::CCEaseInOut *v105; // rax struct cocos2d::CCActionInterval *v106; // rax struct cocos2d::CCAction *v107; // rax __int64 v108; // rbx struct cocos2d::CCFiniteTimeAction *v109; // rax struct cocos2d::CCAction *v110; // rax cocos2d::CCNode *v111; // rsi struct cocos2d::CCFadeTo *v112; // rbx struct cocos2d::CCFiniteTimeAction *v113; // rax struct cocos2d::CCAction *v114; // rax cocos2d::CCObject *v115; // rdi __int64 v116; // rbx __int64 v117; // rcx cocos2d::CCDirector *v118; // rax float v119; // xmm6_4 __int64 v120; // rcx cocos2d::CCDirector *v121; // rax float v122; // xmm0_4 __int64 v123; // rax __int64 v124; // rax __int64 v125; // rcx __int64 v126; // rbx struct cocos2d::CCFiniteTimeAction *v127; // rax struct cocos2d::CCAction *v128; // rax __int64 v129; // rax char v130; // [rsp+40h] [rbp-C0h] bool v131; // [rsp+41h] [rbp-BFh] void *v133; // [rsp+48h] [rbp-B8h] BYREF __int16 v134; // [rsp+50h] [rbp-B0h] __int16 v135; // [rsp+54h] [rbp-ACh] BYREF char v136; // [rsp+56h] [rbp-AAh] __int16 v137; // [rsp+57h] [rbp-A9h] BYREF char v138; // [rsp+59h] [rbp-A7h] __int16 v139; // [rsp+5Ah] [rbp-A6h] __int16 v140; // [rsp+5Eh] [rbp-A2h] BYREF char v141; // [rsp+60h] [rbp-A0h] int v142; // [rsp+64h] [rbp-9Ch] int v143; // [rsp+68h] [rbp-98h] _BYTE v144[12]; // [rsp+6Ch] [rbp-94h] BYREF void *v145; // [rsp+78h] [rbp-88h] BYREF __int64 v146; // [rsp+80h] [rbp-80h] cocos2d::CCLayer *v147; // [rsp+88h] [rbp-78h] BYREF struct cocos2d::CCMenu *v148; // [rsp+90h] [rbp-70h] BYREF float v149[2]; // [rsp+98h] [rbp-68h] BYREF __int64 *v150; // [rsp+A0h] [rbp-60h] char v151[8]; // [rsp+A8h] [rbp-58h] BYREF void *v152; // [rsp+B0h] [rbp-50h] BYREF char v153[8]; // [rsp+B8h] [rbp-48h] BYREF void *v154; // [rsp+C0h] [rbp-40h] void *v155; // [rsp+C8h] [rbp-38h] void *v156; // [rsp+D0h] [rbp-30h] void *v157; // [rsp+D8h] [rbp-28h] char v158[8]; // [rsp+E0h] [rbp-20h] BYREF void *v159[2]; // [rsp+E8h] [rbp-18h] BYREF __int64 v160; // [rsp+F8h] [rbp-8h] unsigned __int64 v161; // [rsp+100h] [rbp+0h] _BYTE v162[8]; // [rsp+108h] [rbp+8h] BYREF char v163[8]; // [rsp+110h] [rbp+10h] BYREF char v164[8]; // [rsp+118h] [rbp+18h] BYREF char v165[8]; // [rsp+120h] [rbp+20h] BYREF v2 = a1; v147 = a1; result = cocos2d::CCLayer::init(a1); if ( !result ) return result; LOBYTE(v4) = 1; (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v2 + 992LL))(v2, v4); LOBYTE(v5) = 1; (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v2 + 1008LL))(v2, v5); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, v149); v8 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v8, "TowerSheet.png", 0); v11 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10, v9); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v11, "TowerSheet.plist"); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v12 + 40) + 40LL))((__int64)v12 + 320, 0); v13 = CCMenuItemSpriteExtra::create((int)v12, 0, (int)v2, (__int64)LevelAreaInnerLayer::onBack); *((_DWORD *)v13 + 93) = 1070386381; v14 = cocos2d::CCFadeIn::create(0.30000001); cocos2d::CCNode::runAction(v12, v14); v15 = cocos2d::CCMenu::create(v13, 0); v148 = v15; (*(void (__fastcall **)(cocos2d::CCLayer *, struct cocos2d::CCMenu *, __int64))(*(_QWORD *)v2 + 456LL))(v2, v15, 1); v16 = *(_QWORD *)v15; v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v17); v19 = cocos2d::CCDirector::getScreenTop(v18) - 23.0; v21 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v20); v22 = cocos2d::CCDirector::getScreenLeft(v21) + 24.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, v22, v19); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v16 + 184))(v15, v23); if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v24) + 209) ) GameToolbox::addBackButton((__int64)v2, (__int64)v13); v27 = (cocos2d::CCNode *)cocos2d::CCNode::create(v26, v25); (*(void (__fastcall **)(cocos2d::CCLayer *, cocos2d::CCNode *))(*(_QWORD *)v2 + 464LL))(v2, v27); v146 = cocos2d::CCMenu::create(v28); v29 = cocos2d::CCSprite::createWithSpriteFrameName("towerBG_01_001.png"); (*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v27 + 456LL))(v27, v29, 1); v30 = *(_QWORD *)v27; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, v149[0] * 0.5, v149[1] * 0.5); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v30 + 184))(v27, v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v162); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v163); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v164); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, -95.5, -89.25); cocos2d::CCPoint::operator=(v162, v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, 103.75, -33.5); cocos2d::CCPoint::operator=(v163, v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, -95.5, 21.25); cocos2d::CCPoint::operator=(v164, v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v153, 57.5, 75.5); cocos2d::CCPoint::operator=(v165, v35); v36 = 0; v143 = 0; v37 = 0; v142 = 0; while ( 1 ) { v38 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v154 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v154); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v38 = *(_QWORD *)&qword_14090BFB0; } v39 = v37 + 5001; MainLevel = GameLevelManager::getMainLevel(v38, v37 + 5001, 1u); v41 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v155 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v155); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v41 = qword_14090BFE0; } hasCompletedMainLevel = GameStatsManager::hasCompletedMainLevel(v41, v39); v131 = hasCompletedMainLevel; if ( !v37 ) goto LABEL_14; v43 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v156 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v156); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v43 = qword_14090BFE0; } if ( GameStatsManager::hasCompletedMainLevel(v43, v37 + 5000) ) LABEL_14: v44 = 1; else v44 = 0; v130 = v44; if ( hasCompletedMainLevel ) v143 = v36 + 1; *(_OWORD *)v159 = 0; v160 = 0; v161 = 0; v159[0] = sub_14003D460(0x20u); v160 = 24; v161 = 31; strcpy((char *)v159[0], "towerDoor_locked_001.png"); if ( hasCompletedMainLevel ) { v45 = v161; if ( v161 < 0x16 ) { v47 = v161 >> 1; if ( v161 <= 0x7FFFFFFFFFFFFFFFLL - (v161 >> 1) ) { v48 = 31; if ( v47 + v161 > 0x1F ) v48 = v47 + v161; } else { v48 = 0x7FFFFFFFFFFFFFFFLL; } v49 = (char *)sub_14003D460(v48 + 1); v160 = 22; v161 = v48; strcpy(v49, "towerDoor_open_001.png"); LABEL_33: v53 = v49; if ( v45 > 0xF ) { v54 = v159[0]; if ( v45 + 1 >= 0x1000 ) { v54 = *((void **)v159[0] - 1); if ( (unsigned __int64)((char *)v159[0] - (char *)v54 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v54); } hasCompletedMainLevel = v131; v159[0] = v53; goto LABEL_38; } v46 = v159[0]; v160 = 22; memmove(v159[0], "towerDoor_open_001.png", 0x16u); v46[22] = 0; } else { if ( !v44 ) goto LABEL_39; v45 = v161; if ( v161 < 0x1A ) { v51 = v161 >> 1; if ( v161 <= 0x7FFFFFFFFFFFFFFFLL - (v161 >> 1) ) { v52 = 31; if ( v161 + v51 > 0x1F ) v52 = v161 + v51; } else { v52 = 0x7FFFFFFFFFFFFFFFLL; } v49 = (char *)sub_14003D460(v52 + 1); v160 = 26; v161 = v52; strcpy(v49, "towerDoor_unlocked_001.png"); goto LABEL_33; } v50 = v159[0]; v160 = 26; memmove(v159[0], "towerDoor_unlocked_001.png", 0x1Au); v50[26] = 0; } LABEL_38: v44 = v130; LABEL_39: v55 = v159; if ( v161 > 0xF ) v55 = (void **)v159[0]; v150 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName((const char *)v55); v157 = operator new(0x208u); v56 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v157); if ( !v56 ) goto LABEL_45; if ( !CCMenuItemSpriteExtra::init((__int64 *)v56, v150, 0, (__int64)v2, (__int64)LevelAreaInnerLayer::onDoor) ) { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v56 + 8LL))(v56, 1); LABEL_45: v56 = 0; goto LABEL_46; } cocos2d::CCObject::autorelease((cocos2d::CCObject *)v56); LABEL_46: *(_WORD *)(v56 + 408) = 256; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v56 + 64LL))(v56, v39); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v146 + 464LL))(v146, v56); if ( !hasCompletedMainLevel && !v44 ) { v134 = -6703; v135 = -6703; v136 = -1; (*(void (__fastcall **)(__int64 *, __int16 *))v150[40])(v150 + 40, &v135); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v56 + 936LL))(v56, 0); } v57 = *(_QWORD *)v56; v58 = &v162[8 * v142]; cocos2d::CCNode::convertToNodeSpace(v146, v158, v58); (*(void (__fastcall **)(__int64, __int64))(v57 + 184))(v56, v59); if ( hasCompletedMainLevel ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v152, 0.0, 32.0); cocos2d::CCPoint::operator+(v58, v151, v60); for ( i = 1; i <= 3; ++i ) { v62 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v145 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v145); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v62 = qword_14090BFE0; } CoinKey = GJGameLevel::getCoinKey(MainLevel, i, *(_DWORD *)(MainLevel + 992) - *(_DWORD *)(MainLevel + 996)); if ( GameStatsManager::hasSecretCoin(v62, CoinKey) ) { v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); v137 = -1; v138 = -1; v65 = &v137; } else { v139 = -7711; v140 = -7711; v141 = -31; v65 = &v140; v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_gray_001.png"); } (**((void (__fastcall ***)(__int64, __int16 *))v64 + 40))((__int64)v64 + 320, v65); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v64 + 160LL))(v64); (*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v27 + 456LL))( v27, v64, 10); v66 = 0; if ( i == 2 ) v66 = 8; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, (float)(i - 2) * 20.0, (float)v66); cocos2d::CCPoint::operator+(v151, v144, v67); (*(void (__fastcall **)(struct cocos2d::CCSprite *, _BYTE *))(*(_QWORD *)v64 + 184LL))(v64, v144); } v2 = v147; } sub_14003D310((__int64)v159); v37 = v142 + 1; v142 = v37; if ( v37 >= 4 ) break; v36 = v143; } v68 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("towerLockedArrow_001.png"); v133 = operator new(0x208u); v69 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v133); if ( !v69 ) { LABEL_67: v69 = nullptr; goto LABEL_68; } if ( !CCMenuItemSpriteExtra::init(v69, v68, 0, (__int64)v2, (__int64)LevelAreaInnerLayer::onNextFloor) ) { (*(void (__fastcall **)(__int64 *, __int64))(*v69 + 8))(v69, 1); goto LABEL_67; } cocos2d::CCObject::autorelease((cocos2d::CCObject *)v69); LABEL_68: *((_QWORD *)v2 + 52) = v69; v70 = v146; (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v146 + 464LL))(v146, v69); v71 = **((_QWORD **)v2 + 52); v72 = *((_QWORD *)v2 + 52); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, -96.0, 108.0); cocos2d::CCNode::convertToNodeSpace(v70, &v145, v73); (*(void (__fastcall **)(__int64, __int64))(v71 + 184))(v72, v74); (*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)v27 + 456LL))(v27, v70, 2); for ( j = 0; j < 2; ++j ) { v76 = cocos2d::CCSprite::createWithSpriteFrameName("towerTorchInner_001.png"); (*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v27 + 456LL))( v27, v76, 4); v77 = *(_QWORD *)v76; v78 = 195; if ( !j ) v78 = -195; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, (float)v78, 4.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v77 + 184))(v76, v79); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v145, 0.0, 33.0); v81 = v80; v82 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v76 + 200LL))(v76); cocos2d::CCPoint::operator+(v82, &v147, v81); LevelAreaLayer::addTorch((__int64)v27, (__int64)&v147, 2, 1.0, 4u, 1, 0, 0); } if ( !a2 ) { (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v27 + 160LL))(v27); v83 = cocos2d::CCScaleTo::create(1.0, 1.0); v84 = cocos2d::CCEaseExponentialOut::create(v83); cocos2d::CCNode::runAction(v27, v84); } v85 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_secretLock4_small_001.png"); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v85 + 40) + 40LL))((__int64)v85 + 320, 0); v86 = cocos2d::CCFadeTo::create(2.0, 0xC8u); v87 = cocos2d::CCDelayTime::create(0.5); v88 = cocos2d::CCSequence::create(v87, v86, 0); cocos2d::CCNode::runAction(v85, v88); v133 = operator new(0x208u); v89 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v133); if ( v89 ) { if ( CCMenuItemSpriteExtra::init( (__int64 *)v89, (__int64 *)v85, 0, (__int64)v2, (__int64)LevelAreaInnerLayer::onOnlineVault) ) { cocos2d::CCObject::autorelease(v89); goto LABEL_79; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v89 + 8LL))(v89, 1); } v89 = nullptr; LABEL_79: v90 = v148; (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v148 + 464LL))(v148, v89); v91 = *(_QWORD *)v89; v93 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v92); v94 = cocos2d::CCDirector::getScreenRight(v93) - 22.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v94, 23.0); cocos2d::CCNode::convertToNodeSpace(v90, &v145, v95); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v91 + 184))(v89, v96); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 0.0, -2.0); v98 = v97; v99 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v27 + 200LL))(v27); cocos2d::CCPoint::operator+(v99, &v148, v98); (*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCMenu **))(*(_QWORD *)v27 + 184LL))(v27, &v148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 0.0, 4.0); v101 = cocos2d::CCMoveBy::create(2.0, v100); v102 = cocos2d::CCEaseInOut::create(v101, 2.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 0.0, -4.0); v104 = cocos2d::CCMoveBy::create(2.0, v103); v105 = cocos2d::CCEaseInOut::create(v104, 2.0); v106 = cocos2d::CCSequence::create(v102, v105, 0); v107 = cocos2d::CCRepeatForever::create(v106); cocos2d::CCNode::runAction(v27, v107); v108 = cocos2d::CCCallFunc::create(v2, LevelAreaInnerLayer::tryResumeTowerMusic); v109 = cocos2d::CCDelayTime::create(0.0); v110 = cocos2d::CCSequence::create(v109, v108, 0); cocos2d::CCNode::runAction(v2, v110); *(_OWORD *)v159 = 0; v160 = 0; v161 = 0; v159[0] = sub_14003D460(0x20u); v160 = 19; v161 = 31; strcpy((char *)v159[0], "GJ_infoIcon_001.png"); v111 = CCSpriteGrayscale::createWithSpriteFrameName((__int64)v159); sub_14003D310((__int64)v159); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v111 + 40) + 40LL))((__int64)v111 + 320, 0); (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v111 + 160LL))(v111); v112 = cocos2d::CCFadeTo::create(1.0, 0xC8u); v113 = cocos2d::CCDelayTime::create(0.1); v114 = cocos2d::CCSequence::create(v113, v112, 0); cocos2d::CCNode::runAction(v111, v114); v133 = operator new(0x208u); v115 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v133); if ( v115 ) { if ( CCMenuItemSpriteExtra::init( (__int64 *)v115, (__int64 *)v111, 0, (__int64)v2, (__int64)LevelAreaInnerLayer::onInfo) ) { cocos2d::CCObject::autorelease(v115); goto LABEL_84; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v115 + 8LL))(v115, 1); } v115 = nullptr; LABEL_84: (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v90 + 464LL))(v90, v115); v116 = *(_QWORD *)v115; v118 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v117); v119 = cocos2d::CCDirector::getScreenTop(v118) - 20.0; v121 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v120); v122 = cocos2d::CCDirector::getScreenRight(v121) - 20.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v122, v119); cocos2d::CCNode::convertToNodeSpace(v90, &v145, v123); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v116 + 184))(v115, v124); if ( v143 == 4 ) { v125 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v152 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v152); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v125 = qword_14090BFD0; } if ( !GameManager::getUGV(v125, &word_14075AA2C) ) { *((_BYTE *)v2 + 424) = 1; v126 = cocos2d::CCCallFunc::create(v2, LevelAreaInnerLayer::showFloor1CompleteDialog); v127 = cocos2d::CCDelayTime::create(1.0); v128 = cocos2d::CCSequence::create(v127, v126, 0); cocos2d::CCNode::runAction(v2, v128); goto LABEL_90; } } else if ( v143 < 4 ) { LABEL_90: (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v2 + 52) + 936LL))(*((_QWORD *)v2 + 52), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v2 + 52) + 336LL))(*((_QWORD *)v2 + 52), 0); } if ( !*((_BYTE *)v2 + 424) ) { v129 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v133 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v133); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v129 = qword_14090BFD0; } *(_BYTE *)(v129 + 1096) = 0; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source