// // EndLevelLayer::onReplay from 0x1402061b0 to 0x1402063be (526 bytes) // // 3 xrefs: // > EndLevelLayer::keyDown @ 0x1402080f4 // > EndLevelLayer::customSetup @ 0x140204dcf // > @ 0x14091b170 // // 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:28:15 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall EndLevelLayer::onReplay(cocos2d::CCNode **a1) { __int64 v2; // rcx __int64 v3; // rdx __int64 v4; // rcx __int64 v5; // r8 __int64 v6; // r9 cocos2d::CCEGLView *v7; // rax __int64 v8; // rcx __int64 v9; // r8 __int64 v10; // r9 int v11; // ecx cocos2d::CCNode *v12; // rdi __int64 v13; // rbx struct cocos2d::CCFiniteTimeAction *v14; // rax struct cocos2d::CCAction *v15; // rax __int128 v16; // [rsp+30h] [rbp-28h] BYREF __int64 v17; // [rsp+40h] [rbp-18h] __int64 v18; // [rsp+48h] [rbp-10h] void *v19; // [rsp+60h] [rbp+8h] void *v20; // [rsp+60h] [rbp+8h] void *v21; // [rsp+70h] [rbp+18h] if ( !*((_BYTE *)a1 + 619) ) { *((_BYTE *)a1 + 619) = 1; v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v19 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } if ( !(unsigned __int8)GameManager::getGameVariable(v2, "0024") ) { v7 = (cocos2d::CCEGLView *)cocos2d::CCEGLView::sharedOpenGLView(v4, v3, v5, v6); cocos2d::CCEGLView::showCursor(v7, 0); } v8 = qword_14090BF60; if ( !qword_14090BF60 ) { v20 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v8 = qword_14090BF60; } FMODAudioEngine::clearAllAudio(v8); v16 = 0; *(_QWORD *)&v16 = sub_14003D460(0x20u); v17 = 16; v18 = 31; strcpy((char *)v16, "playSound_01.ogg"); v11 = qword_14090BF60; if ( !qword_14090BF60 ) { v21 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v21); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v11 = qword_14090BF60; } FMODAudioEngine::playEffect(v11, (__int64)&v16, v9, v10, 1050253722); (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*a1 + 134))(a1, 0); (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*a1 + 115))(a1, 0); (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*a1 + 126))(a1, 0); (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*a1 + 124))(a1, 0); v12 = a1[76]; if ( *((_BYTE *)v12 + 12670) ) { *((_BYTE *)v12 + 13144) = 0; *((_BYTE *)v12 + 14828) = 1; } v13 = cocos2d::CCCallFunc::create(v12, PlayLayer::fullReset); v14 = cocos2d::CCDelayTime::create(0.5); v15 = cocos2d::CCSequence::create(v14, v13, 0); cocos2d::CCNode::runAction(v12, v15); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source