// // SecretLayer2::showCompletedLevel from 0x1405794d0 to 0x14057a08c (3004 bytes) // // 2 xrefs: // > SecretLayer2::init @ 0x1405792d4 // > @ 0x14092c84c // // 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:23 +0000 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCAction *__fastcall SecretLayer2::showCompletedLevel(__int64 a1) { cocos2d::CCArray *v2; // rbx void **v3; // rax void **v4; // rax void **v5; // rax void **v6; // rax void **v7; // rax void **v8; // rax void **v9; // rax __int128 v10; // xmm0 void **v11; // rax void **v12; // rax void **v13; // rax void **v14; // rax void **v15; // rax cocos2d::CCLayerColor *DialogLayer; // rax cocos2d::CCNode *v17; // rsi __int64 v18; // rcx __int64 v19; // rcx __int64 v20; // rax __int64 *v21; // rdi __int64 v22; // rbx __int64 v23; // rax _WORD v25[8]; // [rsp+30h] [rbp-50h] BYREF __int64 v26; // [rsp+40h] [rbp-40h] __int64 v27; // [rsp+48h] [rbp-38h] __int128 v28; // [rsp+50h] [rbp-30h] BYREF __int64 v29; // [rsp+60h] [rbp-20h] __int64 v30; // [rsp+68h] [rbp-18h] __int128 *v31; // [rsp+A8h] [rbp+28h] BYREF __int16 v32; // [rsp+B0h] [rbp+30h] BYREF char v33; // [rsp+B2h] [rbp+32h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 5; v30 = 15; strcpy((char *)&v28, "Huh!?"); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v3 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 1, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v3); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x40u); v29 = 48; v30 = 63; strcpy((char *)v28, "My level... You beat it?"); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v4 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v4); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x40u); v29 = 61; v30 = 63; strcpy((char *)v28, "I guess I underestimated you.\nIt will not happen again."); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v5 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v5); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x40u); v29 = 51; v30 = 63; strcpy((char *)v28, "... Why are you still here?"); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v6 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v6); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x30u); v29 = 45; v30 = 47; strcpy((char *)v28, "Ah of course, you want a prize."); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v7 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v7); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x20u); v29 = 27; v30 = 31; strcpy((char *)v28, "RubRub always gives prizes."); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v8 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v8); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x50u); v29 = 68; v30 = 79; strcpy((char *)v28, "Uhm... Not sure what to..."); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v9 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v9); v31 = &v28; v32 = -1; v33 = -1; v10 = 0; v29 = 10; v30 = 15; *(_QWORD *)&v10 = 0x6F6E6B204920684FLL; v28 = v10; WORD4(v28) = 8567; BYTE10(v28) = 0; v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v11 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v11); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x40u); v29 = 49; v30 = 63; strcpy((char *)v28, "I left an old chest down in the basement."); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v12 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v12); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x30u); v29 = 38; v30 = 47; strcpy((char *)v28, "You can have that as a reward!"); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v13 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v13); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x40u); v29 = 59; v30 = 63; strcpy((char *)v28, "Take the door on the right, I will open it for you."); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v14 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v14); v31 = &v28; v32 = -1; v33 = -1; v28 = 0; v29 = 0; v30 = 0; *(_QWORD *)&v28 = sub_14003D460(0x80u); v29 = 126; v30 = 127; strcpy( (char *)v28, "Grab the chest and come back...\n" "DONT TOUCH ANYTHING!"); v25[7] = 0; v26 = 13; v27 = 15; strcpy((char *)v25, "The Keymaster"); v15 = DialogObject::create((__int64)v25, (__int64)&v28, 2, 1.0, 0, (__int64)&v32); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v15); DialogLayer = DialogLayer::createDialogLayer(0, (__int64)v2, 2u); v17 = DialogLayer; v18 = a1 + 424; if ( !a1 ) v18 = 0; *((_QWORD *)DialogLayer + 78) = v18; (*(void (__fastcall **)(__int64, cocos2d::CCLayerColor *, __int64))(*(_QWORD *)a1 + 456LL))(a1, DialogLayer, 100); v20 = cocos2d::CCDirector::sharedDirector(v19); cocos2d::CCDirector::getWinSize(v20, &v31); v21 = *((__int64 **)v17 + 70); v22 = *v21; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, *(float *)&v31 * 0.5, *((float *)&v31 + 1) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v21, v23); return DialogLayer::animateIn(v17, 2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source