// // SecretLayer4::showFirstDialog from 0x1403f2860 to 0x1403f2dfc (1436 bytes) // // 2 xrefs: // > SecretLayer4::init @ 0x1403f02d0 // > @ 0x1406d81bc // // 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=2 void SecretLayer4::showFirstDialog(SecretLayer4 *a1) { GameManager *v2; // rcx __int64 v3; // rcx cocos2d::CCArray *v4; // rbx char *v5; // rax char *v6; // rax char *v7; // rax char *v8; // rax DialogLayer *DialogLayer; // rdi __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] char v27[16]; // [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 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v33 = (__int128 *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v33); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v2 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v2, "9", 1); v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x30u); v31 = 35; v32 = 47; strcpy((char *)v30, "Wait, you are not RubRub..."); v27[15] = 0; v28 = 14; v29 = 15; strcpy(v27, "The Gatekeeper"); v5 = DialogObject::create((__int64)v27, (__int64)&v30, 3, 1.0, 1, (__int64)&v34); cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v5); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x40u); v31 = 57; v32 = 63; strcpy((char *)v30, "You seem to be skilled in the art of deception..."); v27[15] = 0; v28 = 14; v29 = 15; strcpy(v27, "The Gatekeeper"); v6 = DialogObject::create((__int64)v27, (__int64)&v30, 3, 1.0, 0, (__int64)&v34); cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v6); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x40u); v31 = 56; v32 = 63; strcpy((char *)v30, "But it does not matter, your trickery ends here."); v27[15] = 0; v28 = 14; v29 = 15; strcpy(v27, "The Gatekeeper"); v7 = DialogObject::create((__int64)v27, (__int64)&v30, 3, 1.0, 0, (__int64)&v34); cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v7); v33 = &v30; v34 = -1; v35 = -1; v30 = 0; v31 = 0; v32 = 15; *(_QWORD *)&v30 = sub_14003AA10(0x50u); v31 = 76; v32 = 79; strcpy((char *)v30, "Leave now, before you cause more problems..."); v27[15] = 0; v28 = 14; v29 = 15; strcpy(v27, "The Gatekeeper"); v8 = DialogObject::create((__int64)v27, (__int64)&v30, 3, 1.0, 0, (__int64)&v34); cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v8); DialogLayer = DialogLayer::createDialogLayer(nullptr, v4, 2); a1->addChild_0(a1, DialogLayer, 100); 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