// // CreatorLayer::onSecretVault from 0x493d78 to 0x493f2e (438 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:49:39 +0000 // int __fastcall CreatorLayer::onSecretVault(CreatorLayer *this, cocos2d::CCObject *a2) { GameStatsManager *v3; // r0 cocos2d::CCDirector *Stat; // r0 SecretLayer2 *v5; // r4 float v6; // r0 cocos2d::CCScene *v7; // r2 cocos2d::CCScene *v8; // r0 int v10; // r6 char *v11; // r1 DialogLayer *v12; // r0 int v13; // r2 DialogLayer *v14; // r9 int v15; // [sp+4h] [bp-30h] int v16[3]; // [sp+8h] [bp-2Ch] BYREF int v17[3]; // [sp+14h] [bp-20h] BYREF int v18[3]; // [sp+20h] [bp-14h] BYREF v3 = (GameStatsManager *)GameStatsManager::sharedState(this); Stat = (cocos2d::CCDirector *)GameStatsManager::getStat(v3, "13"); if ( (int)Stat <= 49 ) { memset(v16, 0, sizeof(v16)); std::string::__init(v16, "zzz", 3u); v10 = *((_DWORD *)this + 88); if ( v10 >= 0 ) { *((_DWORD *)this + 88) = v10 + 1; } else { rand(); *((_DWORD *)this + 88) = lroundf(); } if ( *((int *)this + 88) > 10 ) *((_DWORD *)this + 88) = 0; switch ( *((_DWORD *)this + 88) ) { case 0: v11 = "You are not ready..."; goto LABEL_20; case 1: v11 = "I can't let you in."; goto LABEL_20; case 2: v11 = "Player used knock.\nIt's not very effective."; goto LABEL_20; case 3: v11 = "Don't you have something better to do?"; goto LABEL_20; case 4: v11 = "That is a bad idea..."; goto LABEL_20; case 5: v11 = "..."; goto LABEL_20; case 6: v11 = "I guess you don't like rules..."; goto LABEL_20; case 7: v11 = "RubRub told me not to let anyone in."; goto LABEL_20; case 8: v11 = "This is not the door you are looking for."; goto LABEL_20; case 9: v11 = "I don't understand why you keep clicking..."; goto LABEL_20; case 0xA: v11 = "Trust me, you don't want to come in here."; LABEL_20: std::string::assign(v16, v11); break; default: break; } memset(v17, 0, sizeof(v17)); std::string::__init(v17, "The Keymaster", 0xDu); std::string::basic_string(v18, (int)v16); LOWORD(v15) = -1; BYTE2(v15) = -1; v12 = (DialogLayer *)DialogObject::create(v17, v18, 2, 1065353216, 0, v15); v14 = (DialogLayer *)DialogLayer::create(v12, (DialogObject *)((char *)&dword_0 + 2), v13); std::string::~string((int)v18); std::string::~string((int)v17); (*(void (__fastcall **)(CreatorLayer *, DialogLayer *, int))(*(_DWORD *)this + 232))(this, v14, 100); DialogLayer::updateChatPlacement(v14, 0); DialogLayer::animateInRandomSide(v14); return std::string::~string((int)v16); } else { v5 = (SecretLayer2 *)cocos2d::CCDirector::sharedDirector(Stat); v6 = COERCE_FLOAT(SecretLayer2::scene(v5)); v8 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create((cocos2d::CCTransitionFade *)0x3F000000, v6, v7); return cocos2d::CCDirector::replaceScene(v5, v8); } }