// // LevelPage::onTheTower from 0x10048540c to 0x100485708 (764 bytes) // // 3 xrefs: // > LevelPage::onPlay @ 0x100484344 // > LevelPage::dialogClosed @ 0x1004863e4 // > LevelPage::updateDynamicPage @ 0x1004830fc // // 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 11:05:48 +0000 // __int64 __fastcall LevelPage::onTheTower(__int64 a1) { __int64 v2; // x0 __int64 v3; // x19 _QWORD *v4; // x0 char *v5; // x0 __int64 result; // x0 _QWORD *v7; // x20 __int64 v8; // x0 _QWORD *v9; // x20 __int64 v10; // x19 __int64 v11; // x0 void *v12[2]; // [xsp+0h] [xbp-110h] BYREF char v13; // [xsp+17h] [xbp-F9h] void *v14[2]; // [xsp+18h] [xbp-F8h] BYREF char v15; // [xsp+2Fh] [xbp-E1h] void *v16[2]; // [xsp+30h] [xbp-E0h] BYREF char v17; // [xsp+47h] [xbp-C9h] void *v18[2]; // [xsp+48h] [xbp-C8h] BYREF char v19; // [xsp+5Fh] [xbp-B1h] void *__p[2]; // [xsp+60h] [xbp-B0h] BYREF char v21; // [xsp+77h] [xbp-99h] void *v22[2]; // [xsp+78h] [xbp-98h] BYREF char v23; // [xsp+8Fh] [xbp-81h] void *v24[2]; // [xsp+90h] [xbp-80h] BYREF char v25; // [xsp+A7h] [xbp-69h] void *v26[2]; // [xsp+A8h] [xbp-68h] BYREF char v27; // [xsp+BFh] [xbp-51h] void *v28[2]; // [xsp+C0h] [xbp-50h] BYREF char v29; // [xsp+D7h] [xbp-39h] void *v30[2]; // [xsp+D8h] [xbp-38h] BYREF char v31; // [xsp+EFh] [xbp-21h] v2 = GameManager::sharedState(); if ( GameManager::getUGV(v2, "28") ) { v3 = cocos2d::CCDirector::sharedDirector(); v4 = LevelAreaLayer::scene(); v5 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.5); cocos2d::CCDirector::replaceScene(v3, v5); result = GameManager::sharedState(); *(_DWORD *)(result + 708) = 9; } else { v7 = sub_1002E736C(); sub_100009900(v30, "Scratch"); sub_100009900(v28, "Where do you think you're going?"); DialogObject::create((__int64)v30, (__int64)v28, 10, 0, 0xFFFFFF, 1.0); sub_1002E74E0((__int64)v7); if ( v29 < 0 ) operator delete(v28[0]); if ( v31 < 0 ) operator delete(v30[0]); sub_100009900(v26, "Scratch"); sub_100009900(v24, "There's nothing over there, that place has been abandoned for years."); DialogObject::create((__int64)v26, (__int64)v24, 13, 0, 0xFFFFFF, 1.0); sub_1002E74E0((__int64)v7); if ( v25 < 0 ) operator delete(v24[0]); if ( v27 < 0 ) operator delete(v26[0]); sub_100009900(v22, "Scratch"); sub_100009900(__p, "..."); DialogObject::create((__int64)v22, (__int64)__p, 8, 0, 0xFFFFFF, 1.0); sub_1002E74E0((__int64)v7); if ( v21 < 0 ) operator delete(__p[0]); if ( v23 < 0 ) operator delete(v22[0]); sub_100009900(v18, "Scratch"); sub_100009900(v16, "We can take a quick look if you want, but we can't stay long."); DialogObject::create((__int64)v18, (__int64)v16, 13, 0, 0xFFFFFF, 1.0); sub_1002E74E0((__int64)v7); if ( v17 < 0 ) operator delete(v16[0]); if ( v19 < 0 ) operator delete(v18[0]); sub_100009900(v14, "Scratch"); sub_100009900(v12, "RubRub is always watching...."); DialogObject::create((__int64)v14, (__int64)v12, 12, 0, 0xFFFFFF, 1.0); sub_1002E74E0((__int64)v7); if ( v13 < 0 ) operator delete(v12[0]); if ( v15 < 0 ) operator delete(v14[0]); v8 = GameManager::sharedState(); GameManager::setUGV(v8, "28", 1); v9 = DialogLayer::createWithObjects((__int64)v7, 2); v10 = a1 + 408; v9[78] = v10; v11 = cocos2d::CCDirector::sharedDirector(); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(v11 + 272) + 464LL))( *(_QWORD *)(v11 + 272), v9, 1000); (*(void (__fastcall **)(_QWORD *, __int64))(*v9 + 72LL))(v9, 1); v9[78] = v10; *((_BYTE *)v9 + 640) = 1; DialogLayer::updateChatPlacement((__int64)v9, 0); return DialogLayer::animateInRandomSide((__int64)v9); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source