// // LevelPage::onSecretDoor from 0x100424630 to 0x100424d05 (1749 bytes) // // 1 xrefs: // > LevelPage::addSecretDoor @ 0x1004240ca // // 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:17 +0000 // void __fastcall LevelPage::onSecretDoor(__int64 a1, double a2) { __int64 v3; // rax __int64 v4; // rdi __int64 v5; // rbx _BYTE *v6; // rax char *v7; // rax __int64 v8; // rax char *v9; // rbx __int64 v10; // rax _OWORD *v11; // rax __int64 v12; // rax _OWORD *v13; // rax __int64 v14; // rdi char isItemUnlocked; // r15 __int64 v16; // rbx char *v17; // rax char *v18; // rax char *v19; // rax char *v20; // rbx __int64 v21; // rdi char *v22; // rax char *v23; // rax char *v24; // rax __int64 v25; // rax float v26; // [rsp+8h] [rbp-158h] BYREF std::string v27; // [rsp+10h] [rbp-150h] BYREF std::string v28; // [rsp+28h] [rbp-138h] BYREF std::string v29; // [rsp+40h] [rbp-120h] BYREF std::string v30; // [rsp+58h] [rbp-108h] BYREF std::string v31; // [rsp+70h] [rbp-F0h] BYREF std::string v32; // [rsp+88h] [rbp-D8h] BYREF std::string v33; // [rsp+A0h] [rbp-C0h] BYREF std::string v34; // [rsp+B8h] [rbp-A8h] BYREF std::string v35; // [rsp+D0h] [rbp-90h] BYREF std::string v36; // [rsp+E8h] [rbp-78h] BYREF std::string v37; // [rsp+100h] [rbp-60h] BYREF std::string v38; // [rsp+118h] [rbp-48h] BYREF float v39; // [rsp+134h] [rbp-2Ch] if ( !byte_100BE8B9C ) { v3 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getUGV(v3, "7") ) { v4 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getUGV(v4, "8") ) { byte_100BE8B9C = 1; v5 = cocos2d::CCDirector::sharedDirector(v4, "8"); v6 = SecretLayer4::scene(v4, (__int64)"8"); v7 = cocos2d::CCTransitionFade::create_1((__int64)v6, 0.5); cocos2d::CCDirector::replaceScene(v5, v7); } else { v14 = GameStatsManager::sharedState(); isItemUnlocked = GameStatsManager::isItemUnlocked(v14, 12, 4u); v16 = sub_1007FE900(v14); if ( isItemUnlocked ) { v36.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28; strcpy(v36.__r_.__value_.__s.__data_, "The Gatekeeper"); v30.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v30.__r_.__value_.__r.__words[0] = 33; v30.__r_.__value_.__l.__size_ = 26; strcpy(v30.__r_.__value_.__l.__data_, "The Master Emblem!"); v17 = DialogObject::create(&v36, &v30, 7, 1, 0xFFFFFF, 1.0); sub_1007FEBF0(v16, v17); if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v30.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v36.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v36.__r_.__value_.__l.__data_); v37.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28; strcpy(v37.__r_.__value_.__s.__data_, "The Gatekeeper"); v31.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u); v31.__r_.__value_.__r.__words[0] = 57; v31.__r_.__value_.__l.__size_ = 50; strcpy(v31.__r_.__value_.__l.__data_, "Lord RubRub, I will open the gate for you."); v18 = DialogObject::create(&v37, &v31, 7, 0, 0xFFFFFF, 0.80000001); sub_1007FEBF0(v16, v18); if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v31.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v37.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v37.__r_.__value_.__l.__data_); v38.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28; strcpy(v38.__r_.__value_.__s.__data_, "The Gatekeeper"); strcpy((char *)&v32, " Please, come in."); v19 = DialogObject::create(&v38, &v32, 7, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v16, v19); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v32.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v38.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v38.__r_.__value_.__l.__data_); v20 = DialogLayer::createWithObjects(v16, 2u); *((_QWORD *)v20 + 78) = a1 + 408; v21 = (__int64)v20; (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v20 + 72LL))(v20, 2); } else { v33.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28; strcpy(v33.__r_.__value_.__s.__data_, "The Gatekeeper"); v27.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u); v27.__r_.__value_.__r.__words[0] = 33; v27.__r_.__value_.__l.__size_ = 24; strcpy(v27.__r_.__value_.__l.__data_, "Who disturbs my slumber?"); v22 = DialogObject::create(&v33, &v27, 7, 1, 0xFFFFFF, 1.0); sub_1007FEBF0(v16, v22); if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v27.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v33.__r_.__value_.__l.__data_); v34.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28; strcpy(v34.__r_.__value_.__s.__data_, "The Gatekeeper"); v28.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v28.__r_.__value_.__r.__words[0] = 65; v28.__r_.__value_.__l.__size_ = 61; strcpy(v28.__r_.__value_.__l.__data_, "RubRub is that you?\nI cannot see in this light."); v23 = DialogObject::create(&v34, &v28, 7, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v16, v23); if ( (*(_BYTE *)&v28.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v28.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v34.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v34.__r_.__value_.__l.__data_); v35.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28; strcpy(v35.__r_.__value_.__s.__data_, "The Gatekeeper"); v29.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x48u); v29.__r_.__value_.__r.__words[0] = 73; v29.__r_.__value_.__l.__size_ = 65; strcpy(v29.__r_.__value_.__l.__data_, "Show me the Master Emblem,\nand I will let you pass."); v24 = DialogObject::create(&v35, &v29, 7, 0, 0xFFFFFF, 1.0); sub_1007FEBF0(v16, v24); if ( (*(_BYTE *)&v29.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v29.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v35.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v35.__r_.__value_.__l.__data_); v21 = v16; v20 = DialogLayer::createWithObjects(v16, 2u); } v25 = cocos2d::CCDirector::sharedDirector(v21, 2); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v25 + 272) + 464LL))( *(_QWORD *)(v25 + 272), v20, 1000); DialogLayer::updateChatPlacement((__int64)v20, 0); DialogLayer::animateIn((__int64)v20, 2); } } else if ( *(_QWORD *)(a1 + 568) ) { v8 = GameManager::sharedState(); GameManager::setUGV(v8, "7"); v9 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretDoorBtn2_closed_001.png", a2); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 568) + 464LL))(*(_QWORD *)(a1 + 568), v9, 2); v39 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 568) + 328LL))(*(_QWORD *)(a1 + 568)) * 0.5; v10 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 568) + 328LL))(*(_QWORD *)(a1 + 568)); sub_100278250(&v26, v39, *(float *)(v10 + 4) * 0.5); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 184LL))(v9, &v26); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 1080LL))(v9, 0x100000302LL); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 568) + 912LL))(*(_QWORD *)(a1 + 568), 255); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 568) + 160LL))(*(_QWORD *)(a1 + 568), 2.0); v11 = cocos2d::CCScaleTo::create_1((__m128)0x3F000000u, 1.0); v12 = cocos2d::CCEaseBounceOut::create(v11); cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 568), v12); v13 = cocos2d::CCFadeOut::create((__m128)0x3F000000u); cocos2d::CCNode::runAction((__int64)v9, (__int64)v13); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source