// // UILayer::toggleMenuVisibility from 0x140673140 to 0x14067321f (223 bytes) // // 12 xrefs: // > LevelEditorLayer::init @ 0x1403eda2f // > LevelEditorLayer::onPlaytest @ 0x1403fe89f // > LevelEditorLayer::onPausePlaytest @ 0x1403ffb5b // > LevelEditorLayer::onResumePlaytest @ 0x1403ffd0b // > LevelEditorLayer::onStopPlaytest @ 0x1403fff11 // > PlayLayer::showEndLayer @ 0x14050b07d // > PlayLayer::showRetryLayer @ 0x14050b288 // > PlayLayer::resetLevel @ 0x140518f47 // > PlayLayer::pauseGame @ 0x14051a5b4 // > PlayLayer::resumeAndRestart @ 0x14051a8ee // > PlayLayer::resume @ 0x14051ace0 // > @ 0x140932378 // // 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:35:55 +0000 // // Hidden C++ exception states: #wind=1 unsigned int __fastcall UILayer::toggleMenuVisibility(__int64 a1, char a2) { __int64 v4; // rcx unsigned int result; // eax __int64 v6; // rax __int64 v7; // rdx unsigned int v8; // ebx struct cocos2d::CCObject *v9; // rax void *v10; // [rsp+40h] [rbp+18h] UILayer::resetUINodeState(a1); v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } result = GameManager::getGameVariable(v4, "0024"); if ( (_BYTE)result ) { v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 568) + 952LL))(*(_QWORD *)(a1 + 568)); LOBYTE(v7) = a2 != 0 ? 0x4B : 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v6 + 320) + 40LL))(v6 + 320, v7); v8 = 0; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 616)); if ( result ) { do { v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 616), v8); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v9 + 336LL))(v9, 0); ++v8; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 616)); } while ( v8 < result ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source