// // SecretLayer3::showUnlockDialog from 0x140583170 to 0x140583673 (1283 bytes) // // 2 xrefs: // > SecretLayer3::onClick @ 0x14058306e // > @ 0x14092c9b4 // // 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:27 +0000 // // Hidden C++ exception states: #wind=4 __int64 __fastcall SecretLayer3::showUnlockDialog(__int64 a1) { cocos2d::CCArray *v2; // r15 __int64 v3; // rcx __int64 v4; // rsi __int64 v5; // rdi BOOL UGV; // ebx BOOL v7; // ebx void **v8; // rax void **v9; // rax void **v10; // rax cocos2d::CCNode *DialogLayer; // rsi __int64 v12; // rax __int64 v13; // rdi __int64 v14; // rbx __int64 v15; // rax __int128 v17; // [rsp+30h] [rbp-40h] BYREF __int64 v18; // [rsp+40h] [rbp-30h] __int64 v19; // [rsp+48h] [rbp-28h] __int128 v20; // [rsp+50h] [rbp-20h] BYREF __int64 v21; // [rsp+60h] [rbp-10h] __int64 v22; // [rsp+68h] [rbp-8h] __int128 *v23; // [rsp+A8h] [rbp+38h] BYREF __int16 v24; // [rsp+B0h] [rbp+40h] BYREF char v25; // [rsp+B2h] [rbp+42h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v3 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v23 = (__int128 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } v4 = v3; if ( !v3 ) { v23 = (__int128 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } v5 = v3; if ( !v3 ) { v23 = (__int128 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v3 = qword_14090BFD0; } UGV = GameManager::getUGV(v3, &word_140737FEC); v7 = GameManager::getUGV(v5, "15") + UGV; if ( v7 + GameManager::getUGV(v4, &word_140737D98) == 2 ) { v23 = &v17; v24 = -1; v25 = -1; v17 = 0; v18 = 0; v19 = 0; *(_QWORD *)&v17 = sub_14003D460(0x40u); v18 = 63; v19 = 63; strcpy((char *)v17, "You found a second key, impressive..."); v20 = 0; v21 = 3; v22 = 15; LOWORD(v20) = *(_WORD *)"..."; WORD1(v20) = (unsigned __int8)asc_14070EB14[2]; v8 = DialogObject::create((__int64)&v20, (__int64)&v17, 15, 1.0, 0, (__int64)&v24); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v8); v23 = &v20; v24 = -1; v25 = -1; v20 = 0; v21 = 0; v22 = 0; *(_QWORD *)&v20 = sub_14003D460(0x20u); v21 = 27; v22 = 31; strcpy((char *)v20, "Only one lock left."); } else { v23 = &v20; v24 = -1; v25 = -1; v20 = 0; v21 = 0; v22 = 0; *(_QWORD *)&v20 = sub_14003D460(0x20u); v21 = 30; v22 = 31; strcpy((char *)v20, "The key, you found it?"); v17 = 0; v18 = 3; v19 = 15; LOWORD(v17) = *(_WORD *)"..."; WORD1(v17) = (unsigned __int8)asc_14070EB14[2]; v9 = DialogObject::create((__int64)&v17, (__int64)&v20, 15, 1.0, 0, (__int64)&v24); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v9); v23 = &v20; v24 = -1; v25 = -1; v20 = 0; v21 = 0; v22 = 0; *(_QWORD *)&v20 = sub_14003D460(0x30u); v21 = 39; v22 = 47; strcpy((char *)v20, "Excellent, only two locks left."); } v17 = 0; LOWORD(v17) = *(_WORD *)"..."; WORD1(v17) = (unsigned __int8)asc_14070EB14[2]; v19 = 15; v18 = 3; v10 = DialogObject::create((__int64)&v17, (__int64)&v20, 15, 1.0, 0, (__int64)&v24); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v10); DialogLayer = DialogLayer::createDialogLayer(0, (__int64)v2, 4u); (*(void (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 456LL))(a1, DialogLayer, 100); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)DialogLayer + 64LL))(DialogLayer, 6); *((_QWORD *)DialogLayer + 78) = a1 + 408; v12 = cocos2d::CCDirector::sharedDirector(a1 + 408); cocos2d::CCDirector::getWinSize(v12, &v23); v13 = **((_QWORD **)DialogLayer + 70); v14 = *((_QWORD *)DialogLayer + 70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, *(float *)&v23 * 0.5, *((float *)&v23 + 1) * 0.5); (*(void (__fastcall **)(__int64, __int64))(v13 + 184))(v14, v15); return DialogLayer::animateInRandomSide(DialogLayer); }
GD Web Decomp Icon

GD Web Decomp

Raw Source