// // SecretLayer3::revealStep5 from 0x1403eeaf0 to 0x1403ef18c (1692 bytes) // // 2 xrefs: // > SecretLayer3::dialogClosed @ 0x1403ef311 // > @ 0x1406d80e4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=1 void SecretLayer3::revealStep5(SecretLayer3 *a1) { cocos2d::CCArray *v2; // rbx char *v3; // rax char *v4; // rax char *v5; // rax char *v6; // rax char *v7; // rax DialogLayer *DialogLayer; // rsi DialogDelegate *v9; // rcx __int64 v10; // rcx cocos2d::CCDirector *v11; // rax cocos2d::CCLayer_vtbl *v12; // rbx const cocos2d::CCPoint *v13; // rax _BOOL8 v14; // rdx float v15; // xmm1_4 double v16; // xmm0_8 cocos2d::CCLayer_vtbl *v17; // rbx const cocos2d::CCPoint *v18; // rax struct cocos2d::CCMoveTo *v19; // rax struct cocos2d::CCEaseElasticOut *v20; // rax cocos2d::ccColor3B *v21; // r8 float v22; // xmm6_4 struct cocos2d::CCFadeTo *v23; // rax cocos2d::ccColor3B *v24; // r8 float v25; // [rsp+20h] [rbp-60h] float v26; // [rsp+20h] [rbp-60h] _WORD v27[8]; // [rsp+30h] [rbp-50h] BYREF __int64 v28; // [rsp+40h] [rbp-40h] __int64 v29; // [rsp+48h] [rbp-38h] __int128 v30; // [rsp+50h] [rbp-30h] BYREF __int64 v31; // [rsp+60h] [rbp-20h] __int64 v32; // [rsp+68h] [rbp-18h] __int128 *v33; // [rsp+A8h] [rbp+28h] BYREF __int16 v34; // [rsp+B0h] [rbp+30h] BYREF char v35; // [rsp+B2h] [rbp+32h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x20u); v31 = 23; v32 = 31; strcpy((char *)v30, "Hey I heard some noi..."); v27[7] = 0; v28 = 13; v29 = 15; strcpy((char *)v27, "The Keymaster"); v3 = DialogObject::create((__int64)v27, (__int64)&v30, 2, 1.0, 0, (__int64)&v34); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v3); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x40u); v31 = 58; v32 = 63; strcpy((char *)v30, "Wait... Is the gate..."); v27[7] = 0; v28 = 13; v29 = 15; strcpy((char *)v27, "The Keymaster"); v4 = DialogObject::create((__int64)v27, (__int64)&v30, 4, 1.0, 0, (__int64)&v34); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v4); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x40u); v31 = 62; v32 = 63; strcpy((char *)v30, "... You opened the gate..."); v27[7] = 0; v28 = 13; v29 = 15; strcpy((char *)v27, "The Keymaster"); v5 = DialogObject::create((__int64)v27, (__int64)&v30, 17, 1.0, 0, (__int64)&v34); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v5); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x30u); v31 = 43; v32 = 47; strcpy((char *)v30, "YOU OPENED THE GATE!\nGAH THIS IS BAD."); v27[7] = 0; v28 = 13; v29 = 15; strcpy((char *)v27, "The Keymaster"); v6 = DialogObject::create((__int64)v27, (__int64)&v30, 18, 1.0, 0, (__int64)&v34); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v6); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x50u); v31 = 76; v32 = 79; strcpy((char *)v30, "BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD BAD..."); v27[7] = 0; v28 = 13; v29 = 15; strcpy((char *)v27, "The Keymaster"); v7 = DialogObject::create((__int64)v27, (__int64)&v30, 18, 1.0, 0, (__int64)&v34); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v7); DialogLayer = DialogLayer::createDialogLayer(nullptr, v2, 2); a1->addChild_0(a1, DialogLayer, 100); v9 = &a1->DialogDelegate; if ( !a1 ) v9 = nullptr; DialogLayer->m_delegate = v9; DialogLayer->setTag(DialogLayer, 5); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); v12 = DialogLayer->m_mainLayer->__vftable; cocos2d::CCPoint::CCPoint(1.9431574e-19, *(float *)&v33 * 0.5); v12->setPosition_0(DialogLayer->m_mainLayer, v13); LOBYTE(v14) = 1; DialogLayer->setVisible(DialogLayer, v14); v15 = sub_14003CF30(); DialogLayer->m_animateTime = v15; DialogLayer->m_mainLayer->getPosition_0(DialogLayer->m_mainLayer); v16 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33); v17 = DialogLayer->m_mainLayer->__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v16, -191.0); v17->setPosition_0(DialogLayer->m_mainLayer, v18); v19 = cocos2d::CCMoveTo::create(0.5, (const struct cocos2d::CCPoint *)&v33); v20 = cocos2d::CCEaseElasticOut::create(v19, 0.60000002); cocos2d::CCNode::runAction((CCLightFlash *)DialogLayer->m_mainLayer, (cocos2d::CCPoint)v20, v21, 1.0, v25); v22 = (float)DialogLayer->getOpacity(&DialogLayer->cocos2d::CCRGBAProtocol); if ( v22 > 0.0 ) { DialogLayer->setOpacity(&DialogLayer->cocos2d::CCRGBAProtocol, 0); v23 = cocos2d::CCFadeTo::create(0.14, (int)v22); cocos2d::CCNode::runAction((CCLightFlash *)DialogLayer, (cocos2d::CCPoint)v23, v24, 1.0, v26); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source