// // PauseLayer::tryQuit from 0x1404db520 to 0x1404db6e9 (457 bytes) // // 4 xrefs: // > PauseLayer::keyDown @ 0x1404db9f0 // > PauseLayer::keyBackClicked @ 0x1404dba19 // > PauseLayer::customSetup @ 0x1404d6f04 // > @ 0x1409299e4 // // 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:33:04 +0000 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCAction *__fastcall PauseLayer::tryQuit(__int64 a1) { __int64 v3; // rcx __int64 v4; // rcx __int64 v5; // rax cocos2d::CCObject *v6; // rbx __int128 v7; // [rsp+50h] [rbp-48h] BYREF __int64 v8; // [rsp+60h] [rbp-38h] __int64 v9; // [rsp+68h] [rbp-30h] _BYTE v10[40]; // [rsp+70h] [rbp-28h] BYREF void *v11; // [rsp+A0h] [rbp+8h] if ( *(_BYTE *)(a1 + 586) ) { *(_BYTE *)(a1 + 585) = 0; return PauseLayer::onToggleUI(a1); } else { v3 = *(_QWORD *)(a1 + 624); if ( v3 && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v3 + 344LL))(v3) ) { return (struct cocos2d::CCAction *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 624) + 336LL))( *(_QWORD *)(a1 + 624), 0); } else { v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v11 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } if ( GameManager::getGameVariable(v4, "0167") ) { v7 = 0; *(_QWORD *)&v7 = sub_14003D460(0x30u); v8 = 38; v9 = 47; strcpy((char *)v7, "Are you sure you want to exit?"); v5 = sub_14003F4F0((__int64)v10, (__int64)&v7); v6 = FLAlertLayer::create( (int)a1 + 552, (int)"Exit Level", v5, (__int64)"Cancel", (__int64)"Exit", 1133903872, 0, 0, 1065353216); sub_14003D310((__int64)&v7); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 64LL))(v6, 0); return (struct cocos2d::CCAction *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 1064LL))(v6); } else { return (struct cocos2d::CCAction *)PauseLayer::onQuit(a1); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source