// // SecretLayer3::onBack from 0x10049ee90 to 0x10049efca (314 bytes) // // 3 xrefs: // > SecretLayer3::keyBackClicked @ 0x1004a1425 // > sub_1004A1430 @ 0x1004a143c // > SecretLayer3::init @ 0x10049da61 // // 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 12:30:52 +0000 // void __fastcall SecretLayer3::onBack(__int64 a1) { __int64 v1; // rax __int64 v2; // rbx _BYTE *v3; // r14 char *v4; // rax char *v5; // rax __int64 v6; // r14 _OWORD *v7; // rax _OWORD *v8; // r14 __int64 v9; // rax __int64 v10; // rax if ( !*(_BYTE *)(a1 + 424) ) { v1 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getUGV(v1, "12") ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); v2 = cocos2d::CCDirector::sharedDirector(); v3 = cocos2d::CCScene::create(); *(_QWORD *)(AppDelegate::get(a1, 0) + 72) = v3; v4 = SecretLayer2::create(); (*(void (__fastcall **)(_BYTE *, char *))(*(_QWORD *)v3 + 456LL))(v3, v4); v5 = cocos2d::CCTransitionFade::create_1((__int64)v3, 0.5); cocos2d::CCDirector::replaceScene(v2, v5); } else { *(_BYTE *)(a1 + 424) = 1; cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 440)); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 440) + 160LL))(*(_QWORD *)(a1 + 440), 1.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 440) + 912LL))(*(_QWORD *)(a1 + 440), 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 440) + 344LL))(*(_QWORD *)(a1 + 440), 1); v6 = *(_QWORD *)(a1 + 440); v7 = cocos2d::CCFadeIn::create((__m128)0x3F800000u); cocos2d::CCNode::runAction(v6, (__int64)v7); v8 = cocos2d::CCDelayTime::create((__m128)0x40000000u); v9 = cocos2d::CCCallFunc::create(a1, SecretLayer3::firstInteractionStep2, 0); v10 = sub_10039EB60((__int64)v8, v9, 0); cocos2d::CCNode::runAction(a1, v10); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source