// // SecretLayer3::firstInteractionStep4 from 0x1403ebe90 to 0x1403ec3f1 (1377 bytes) // // 2 xrefs: // > SecretLayer3::dialogClosed @ 0x1403ef536 // > @ 0x1406d809c // // 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::firstInteractionStep4(SecretLayer3 *a1) { cocos2d::CCArray *v2; // rbx char *v3; // rax char *v4; // rax char *v5; // rax char *v6; // rax DialogLayer *DialogLayer; // rsi DialogDelegate *v8; // rcx __int64 v9; // rcx cocos2d::CCDirector *v10; // rax cocos2d::CCLayer_vtbl *v11; // rbx const cocos2d::CCPoint *v12; // rax _BOOL8 v13; // rdx float v14; // xmm2_4 struct cocos2d::CCScaleTo *v15; // rax struct cocos2d::CCEaseElasticOut *v16; // rax cocos2d::ccColor3B *v17; // r8 float v18; // xmm6_4 struct cocos2d::CCFadeTo *v19; // rax cocos2d::ccColor3B *v20; // r8 float v21; // [rsp+28h] [rbp-29h] float v22; // [rsp+28h] [rbp-29h] __int128 v23; // [rsp+38h] [rbp-19h] BYREF __int64 v24; // [rsp+48h] [rbp-9h] __int64 v25; // [rsp+50h] [rbp-1h] __int128 v26; // [rsp+58h] [rbp+7h] BYREF __int64 v27; // [rsp+68h] [rbp+17h] __int128 v28; // [rsp+70h] [rbp+1Fh] __int16 v29; // [rsp+C8h] [rbp+77h] BYREF char v30; // [rsp+CAh] [rbp+79h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v29 = -1; v30 = -1; v23 = 0; v24 = 0; v25 = 15; *(_QWORD *)&v23 = sub_14003AA10(0x40u); v24 = 48; v25 = 63; strcpy((char *)v23, "RubRub locked me in here, for no reason."); v26 = 0; v27 = 3; *(_QWORD *)&v28 = 15; LOWORD(v26) = *(_WORD *)"..."; WORD1(v26) = (unsigned __int8)asc_14053DBB0[2]; v3 = DialogObject::create((__int64)&v26, (__int64)&v23, 15, 1.0, 0, (__int64)&v29); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v3); v29 = -1; v30 = -1; v26 = 0; v27 = 0; *(_QWORD *)&v28 = 15; *(_QWORD *)&v26 = sub_14003AA10(0x20u); v27 = 31; *(_QWORD *)&v28 = 31; strcpy((char *)v26, "He said there would be chicken."); v23 = 0; v24 = 3; v25 = 15; LOWORD(v23) = *(_WORD *)"..."; WORD1(v23) = (unsigned __int8)asc_14053DBB0[2]; v4 = DialogObject::create((__int64)&v23, (__int64)&v26, 15, 1.0, 0, (__int64)&v29); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v4); v29 = -1; v30 = -1; v26 = 0; v27 = 0; *(_QWORD *)&v28 = 15; *(_QWORD *)&v26 = sub_14003AA10(0x20u); v27 = 31; *(_QWORD *)&v28 = 31; strcpy((char *)v26, "There was no chicken..."); v23 = 0; v24 = 3; v25 = 15; LOWORD(v23) = *(_WORD *)"..."; WORD1(v23) = (unsigned __int8)asc_14053DBB0[2]; v5 = DialogObject::create((__int64)&v23, (__int64)&v26, 15, 1.0, 0, (__int64)&v29); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v5); v29 = -1; v30 = -1; v26 = 0; v27 = 0; *(_QWORD *)&v28 = 15; *(_QWORD *)&v26 = sub_14003AA10(0x50u); v27 = 79; *(_QWORD *)&v28 = 79; strcpy((char *)v26, "I cannot stay here any longer.\nYou must find a way to release me."); v23 = 0; v24 = 3; v25 = 15; LOWORD(v23) = *(_WORD *)"..."; WORD1(v23) = (unsigned __int8)asc_14053DBB0[2]; v6 = DialogObject::create((__int64)&v23, (__int64)&v26, 15, 0.89999998, 0, (__int64)&v29); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v6); DialogLayer = DialogLayer::createDialogLayer(nullptr, v2, 4); a1->addChild_0(a1, DialogLayer, 100); v8 = &a1->DialogDelegate; if ( !a1 ) v8 = nullptr; DialogLayer->m_delegate = v8; DialogLayer->setTag(DialogLayer, 2); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(v10); v11 = DialogLayer->m_mainLayer->__vftable; cocos2d::CCPoint::CCPoint(0.0, COERCE_FLOAT(&v26) * 0.5); v11->setPosition_0(DialogLayer->m_mainLayer, v12); LOBYTE(v13) = 1; DialogLayer->setVisible(DialogLayer, v13); v14 = sub_14003CF30(); DialogLayer->m_animateTime = v14; ((void (__fastcall *)(cocos2d::CCLayer *))DialogLayer->m_mainLayer->setScale_0)(DialogLayer->m_mainLayer); v15 = cocos2d::CCScaleTo::create(0.5, 1.0); v16 = cocos2d::CCEaseElasticOut::create(v15, 0.60000002); cocos2d::CCNode::runAction((CCLightFlash *)DialogLayer->m_mainLayer, (cocos2d::CCPoint)v16, v17, 0.89999998, v21); v18 = (float)DialogLayer->getOpacity(&DialogLayer->cocos2d::CCRGBAProtocol); if ( v18 > 0.0 ) { DialogLayer->setOpacity(&DialogLayer->cocos2d::CCRGBAProtocol, 0); v19 = cocos2d::CCFadeTo::create(0.14, (int)v18); cocos2d::CCNode::runAction((CCLightFlash *)DialogLayer, (cocos2d::CCPoint)v19, v20, 0.89999998, v22); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source