// // SecretLayer4::showFirstDialog from 0x140588070 to 0x14058852a (1210 bytes) // // 3 xrefs: // > SecretLayer4::init @ 0x140585b8b // > @ 0x14092caa4 // > @ 0x14092cab0 // // 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 11:34:28 +0000 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCAction *__fastcall SecretLayer4::showFirstDialog(__int64 a1) { __int64 v2; // rcx __int64 v3; // rcx cocos2d::CCArray *v4; // rbx void **v5; // rax void **v6; // rax void **v7; // rax void **v8; // rax cocos2d::CCLayerColor *DialogLayer; // rsi __int64 v10; // rcx __int64 v11; // rax __int64 v12; // rdi __int64 v13; // rbx __int64 v14; // rax char v16[16]; // [rsp+30h] [rbp-50h] BYREF __int64 v17; // [rsp+40h] [rbp-40h] __int64 v18; // [rsp+48h] [rbp-38h] __int128 v19; // [rsp+50h] [rbp-30h] BYREF __int64 v20; // [rsp+60h] [rbp-20h] __int64 v21; // [rsp+68h] [rbp-18h] __int128 *v22; // [rsp+A8h] [rbp+28h] BYREF __int16 v23; // [rsp+B0h] [rbp+30h] BYREF char v24; // [rsp+B2h] [rbp+32h] v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v22 = (__int128 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v22); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } GameManager::setUGV(v2, "9", 1u); v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3); v22 = &v19; v23 = -1; v24 = -1; v19 = 0; v20 = 0; v21 = 0; *(_QWORD *)&v19 = sub_14003D460(0x30u); v20 = 35; v21 = 47; strcpy((char *)v19, "Wait, you are not RubRub..."); v16[15] = 0; v17 = 14; v18 = 15; strcpy(v16, "The Gatekeeper"); v5 = DialogObject::create((__int64)v16, (__int64)&v19, 3, 1.0, 1, (__int64)&v23); cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v5); v22 = &v19; v23 = -1; v24 = -1; v19 = 0; v20 = 0; v21 = 0; *(_QWORD *)&v19 = sub_14003D460(0x40u); v20 = 57; v21 = 63; strcpy((char *)v19, "You seem to be skilled in the art of deception..."); v16[15] = 0; v17 = 14; v18 = 15; strcpy(v16, "The Gatekeeper"); v6 = DialogObject::create((__int64)v16, (__int64)&v19, 3, 1.0, 0, (__int64)&v23); cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v6); v22 = &v19; v23 = -1; v24 = -1; v19 = 0; v20 = 0; v21 = 0; *(_QWORD *)&v19 = sub_14003D460(0x40u); v20 = 56; v21 = 63; strcpy((char *)v19, "But it does not matter, your trickery ends here."); v16[15] = 0; v17 = 14; v18 = 15; strcpy(v16, "The Gatekeeper"); v7 = DialogObject::create((__int64)v16, (__int64)&v19, 3, 1.0, 0, (__int64)&v23); cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v7); v22 = &v19; v23 = -1; v24 = -1; v19 = 0; v20 = 0; v21 = 0; *(_QWORD *)&v19 = sub_14003D460(0x50u); v20 = 76; v21 = 79; strcpy((char *)v19, "Leave now, before you cause more problems..."); v16[15] = 0; v17 = 14; v18 = 15; strcpy(v16, "The Gatekeeper"); v8 = DialogObject::create((__int64)v16, (__int64)&v19, 3, 1.0, 0, (__int64)&v23); cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v8); DialogLayer = DialogLayer::createDialogLayer(0, (__int64)v4, 2u); (*(void (__fastcall **)(__int64, cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a1 + 456LL))(a1, DialogLayer, 100); v11 = cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11, &v22); v12 = **((_QWORD **)DialogLayer + 70); v13 = *((_QWORD *)DialogLayer + 70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, *(float *)&v22 * 0.5, *((float *)&v22 + 1) * 0.5); (*(void (__fastcall **)(__int64, __int64))(v12 + 184))(v13, v14); return DialogLayer::animateIn(DialogLayer, 2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source