// // LevelPage::onTheTower from 0x8c6560 to 0x8c69d4 (1140 bytes) // // 5 xrefs: // > LevelPage::dialogClosed @ 0x8c6a84 // > LevelPage::onPlay @ 0x8c8408 // > @ 0x7ce40 // > LevelPage::updateDynamicPage @ 0x8c7a90 // > @ 0x1543368 // // This function is hookable on this platform (idp: arm, 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:56:34 +0000 // __int64 __fastcall LevelPage::onTheTower(LevelPage *this, cocos2d::CCObject *a2) { GameManager *v3; // x0 cocos2d::CCDirector *UGV; // x0 cocos2d::CCArray *v5; // x23 cocos2d::CCObject *v6; // x0 cocos2d::CCObject *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCObject *v9; // x0 cocos2d::CCObject *v10; // x0 GameManager *v11; // x0 GameManager *v12; // x0 char *v13; // x24 int v14; // w2 DialogLayer *v15; // x0 DialogLayer *v16; // x19 __int64 v17; // x0 LevelAreaLayer *v19; // x19 cocos2d::CCTransitionFade *v20; // x0 cocos2d::CCScene *v21; // x1 cocos2d::CCScene *v22; // x0 GameManager *v23; // x0 GameManager *v24; // [xsp+58h] [xbp+58h] BYREF __int64 v25; // [xsp+60h] [xbp+60h] void *v26; // [xsp+68h] [xbp+68h] __int64 v27; // [xsp+70h] [xbp+70h] BYREF __int64 v28; // [xsp+78h] [xbp+78h] void *v29; // [xsp+80h] [xbp+80h] v3 = (GameManager *)GameManager::sharedState(_stack_chk_guard); UGV = (cocos2d::CCDirector *)(unsigned __int8)GameManager::getUGV(v3, "28"); if ( (_BYTE)UGV ) { v19 = (LevelAreaLayer *)cocos2d::CCDirector::sharedDirector(UGV); v20 = (cocos2d::CCTransitionFade *)LevelAreaLayer::scene(v19); v22 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v20, 0.5, v21); v23 = (GameManager *)cocos2d::CCDirector::replaceScene(v19, v22); *(_DWORD *)(GameManager::sharedState(v23) + 708) = 9; return _stack_chk_guard; } v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(UGV); v24 = nullptr; v25 = 0; v26 = nullptr; std::string::__init((__int64 *)&v24, "Scratch", 7u); v27 = 0; v28 = 0; v29 = nullptr; std::string::__init(&v27, "Where do you think you're going?", 0x28u); v6 = (cocos2d::CCObject *)DialogObject::create(&v24, &v27, 10, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v5, v6); if ( (v27 & 1) != 0 ) { operator delete(v29); if ( ((unsigned __int8)v24 & 1) == 0 ) goto LABEL_4; } else if ( ((unsigned __int8)v24 & 1) == 0 ) { goto LABEL_4; } operator delete(v26); LABEL_4: v24 = nullptr; v25 = 0; v26 = nullptr; std::string::__init((__int64 *)&v24, "Scratch", 7u); v27 = 0; v28 = 0; v29 = nullptr; std::string::__init(&v27, "There's nothing over there, that place has been abandoned for years.", 0x4Cu); v7 = (cocos2d::CCObject *)DialogObject::create(&v24, &v27, 13, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v5, v7); if ( (v27 & 1) != 0 ) { operator delete(v29); if ( ((unsigned __int8)v24 & 1) == 0 ) goto LABEL_6; } else if ( ((unsigned __int8)v24 & 1) == 0 ) { goto LABEL_6; } operator delete(v26); LABEL_6: v24 = nullptr; v25 = 0; v26 = nullptr; std::string::__init((__int64 *)&v24, "Scratch", 7u); v27 = 0; v28 = 0; v29 = nullptr; std::string::__init(&v27, "...", 0x15u); v8 = (cocos2d::CCObject *)DialogObject::create(&v24, &v27, 8, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v5, v8); if ( (v27 & 1) != 0 ) { operator delete(v29); if ( ((unsigned __int8)v24 & 1) == 0 ) goto LABEL_8; } else if ( ((unsigned __int8)v24 & 1) == 0 ) { goto LABEL_8; } operator delete(v26); LABEL_8: v24 = nullptr; v25 = 0; v26 = nullptr; std::string::__init((__int64 *)&v24, "Scratch", 7u); v27 = 0; v28 = 0; v29 = nullptr; std::string::__init(&v27, "We can take a quick look if you want, but we can't stay long.", 0x4Bu); v9 = (cocos2d::CCObject *)DialogObject::create(&v24, &v27, 13, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v5, v9); if ( (v27 & 1) != 0 ) { operator delete(v29); if ( ((unsigned __int8)v24 & 1) == 0 ) goto LABEL_10; } else if ( ((unsigned __int8)v24 & 1) == 0 ) { goto LABEL_10; } operator delete(v26); LABEL_10: v24 = nullptr; v25 = 0; v26 = nullptr; std::string::__init((__int64 *)&v24, "Scratch", 7u); v27 = 0; v28 = 0; v29 = nullptr; std::string::__init(&v27, "RubRub is always watching....", 0x37u); v10 = (cocos2d::CCObject *)DialogObject::create(&v24, &v27, 12, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v5, v10); if ( (v27 & 1) != 0 ) { operator delete(v29); v11 = (GameManager *)(unsigned __int8)v24; if ( ((unsigned __int8)v24 & 1) == 0 ) goto LABEL_12; goto LABEL_15; } v11 = (GameManager *)(unsigned __int8)v24; if ( ((unsigned __int8)v24 & 1) != 0 ) LABEL_15: operator delete(v26); LABEL_12: v12 = (GameManager *)GameManager::sharedState(v11); v13 = (char *)this + 408; GameManager::setUGV(v12, "28", 1u); v15 = (DialogLayer *)DialogLayer::createWithObjects(v5, (cocos2d::CCArray *)((char *)&dword_0 + 2), v14); *((_QWORD *)v15 + 78) = v13; v16 = v15; v17 = cocos2d::CCDirector::sharedDirector(v15); (*(void (__fastcall **)(_QWORD, DialogLayer *, __int64))(**(_QWORD **)(v17 + 272) + 464LL))( *(_QWORD *)(v17 + 272), v16, 1000); (*(void (__fastcall **)(DialogLayer *, __int64))(*(_QWORD *)v16 + 72LL))(v16, 1); *((_QWORD *)v16 + 78) = v13; *((_BYTE *)v16 + 640) = 1; DialogLayer::updateChatPlacement(v16, 0); DialogLayer::animateInRandomSide(v16); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source