// // SecretLayer3::showUnlockDialog from 0x1403ed710 to 0x1403edc15 (1285 bytes) // // 2 xrefs: // > SecretLayer3::onClick @ 0x1403ed589 // > @ 0x1406d80b4 // // 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=4 void SecretLayer3::showUnlockDialog(SecretLayer3 *a1) { cocos2d::CCArray *v2; // r15 GameManager *v3; // rcx GameManager *v4; // rsi GameManager *v5; // rdi BOOL UGV; // ebx int v7; // edi char *v8; // rax char *v9; // rax char *v10; // rax DialogLayer *DialogLayer; // rdi cocos2d::CCDirector *v12; // rax cocos2d::CCLayer_vtbl *v13; // rbx const cocos2d::CCPoint *v14; // rax __int128 v15; // [rsp+30h] [rbp-40h] BYREF __int64 v16; // [rsp+40h] [rbp-30h] __int64 v17; // [rsp+48h] [rbp-28h] __int128 v18; // [rsp+50h] [rbp-20h] BYREF __int64 v19; // [rsp+60h] [rbp-10h] __int64 v20; // [rsp+68h] [rbp-8h] void *v21; // [rsp+A8h] [rbp+38h] void *v22; // [rsp+A8h] [rbp+38h] void *v23; // [rsp+A8h] [rbp+38h] __int16 v24; // [rsp+B0h] [rbp+40h] BYREF char v25; // [rsp+B2h] [rbp+42h] v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v3 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v21 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } v4 = v3; if ( !v3 ) { v22 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v22); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } v5 = v3; if ( !v3 ) { v23 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } UGV = GameManager::getUGV(v3, (const char *)&word_140544454); v7 = UGV + GameManager::getUGV(v5, "15"); if ( v7 + GameManager::getUGV(v4, "14") == 2 ) { v24 = -1; v25 = -1; v15 = 0; v16 = 0; v17 = 15; *(_QWORD *)&v15 = sub_14003AA10(0x40u); v16 = 63; v17 = 63; strcpy((char *)v15, "You found a second key, impressive..."); v18 = 0; v19 = 3; v20 = 15; LOWORD(v18) = *(_WORD *)"..."; WORD1(v18) = (unsigned __int8)asc_14053DBB0[2]; v8 = DialogObject::create((__int64)&v18, (__int64)&v15, 15, 1.0, 0, (__int64)&v24); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v8); v24 = -1; v25 = -1; v18 = 0; v19 = 0; v20 = 15; *(_QWORD *)&v18 = sub_14003AA10(0x20u); v19 = 27; v20 = 31; strcpy((char *)v18, "Only one lock left."); } else { v24 = -1; v25 = -1; v18 = 0; v19 = 0; v20 = 15; *(_QWORD *)&v18 = sub_14003AA10(0x20u); v19 = 30; v20 = 31; strcpy((char *)v18, "The key, you found it?"); v15 = 0; v16 = 3; v17 = 15; LOWORD(v15) = *(_WORD *)"..."; WORD1(v15) = (unsigned __int8)asc_14053DBB0[2]; v9 = DialogObject::create((__int64)&v15, (__int64)&v18, 15, 1.0, 0, (__int64)&v24); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v9); v24 = -1; v25 = -1; v18 = 0; v19 = 0; v20 = 15; *(_QWORD *)&v18 = sub_14003AA10(0x30u); v19 = 39; v20 = 47; strcpy((char *)v18, "Excellent, only two locks left."); } v15 = 0; LOWORD(v15) = *(_WORD *)"..."; WORD1(v15) = (unsigned __int8)asc_14053DBB0[2]; v17 = 15; v16 = 3; v10 = DialogObject::create((__int64)&v15, (__int64)&v18, 15, 1.0, 0, (__int64)&v24); cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v10); DialogLayer = DialogLayer::createDialogLayer(nullptr, v2, 4); a1->addChild_0(a1, DialogLayer, 100); DialogLayer->setTag(DialogLayer, 6); DialogLayer->m_delegate = &a1->DialogDelegate; v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(&a1->DialogDelegate); cocos2d::CCDirector::getWinSize(v12); v13 = DialogLayer->m_mainLayer->__vftable; cocos2d::CCPoint::CCPoint(0.0, COERCE_FLOAT(&v18) * 0.5); v13->setPosition_0(DialogLayer->m_mainLayer, v14); DialogLayer::animateInRandomSide(DialogLayer); }
GD Web Decomp Icon

GD Web Decomp

Raw Source