// // MenuLayer::FLAlert_Clicked from 0x6eb248 to 0x6eb428 (480 bytes) // // 3 xrefs: // > `non-virtual thunk to'MenuLayer::FLAlert_Clicked @ 0x6eb42c // > @ 0x42bc8 // > @ 0x1426fe8 // // This function is hookable on this platform (idp: arm, 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:51:45 +0000 // __int64 __fastcall MenuLayer::FLAlert_Clicked(MenuLayer *this, FLAlertLayer *a2, char a3) { AppDelegate *v5; // x0 __int64 v6; // x0 AppDelegate *v7; // x0 AppDelegate *v8; // x0 cocos2d::CCDelayTime *v9; // x0 cocos2d::CCSequence *v10; // x21 cocos2d::CCFiniteTimeAction *v11; // x0 __int64 v12; // x0 cocos2d::CCActionManager *v13; // x0 GameManager *v14; // x0 PlatformToolbox *v15; // x0 PlatformToolbox *v16; // x0 __int64 v17; // x0 cocos2d::CCString *v18; // x0 size_t v19; // x0 cocos2d::CCApplication *v20; // x0 __int64 v21; // x0 char *v22; // x1 cocos2d::CCAction *v23; // [xsp+38h] [xbp+38h] cocos2d::CCAction *CString; // [xsp+38h] [xbp+38h] __int64 v25[2]; // [xsp+40h] [xbp+40h] BYREF void *v26; // [xsp+50h] [xbp+50h] if ( a3 ) { v5 = (AppDelegate *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2); switch ( (int)v5 ) { case 0: v6 = AppDelegate::get(v5); v7 = (AppDelegate *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 64LL))(v6, 1); v8 = (AppDelegate *)AppDelegate::get(v7); AppDelegate::showLoadingCircle(v8); v10 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v9, 0.5); v11 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, MenuLayer::endGame, 0); v23 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v10, v11, 0); v12 = cocos2d::CCDirector::sharedDirector(v23); v13 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 144LL))(v12); cocos2d::CCActionManager::addAction(v13, v23, this, 0); break; case 1: v14 = (GameManager *)GameManager::sharedState(v5); v15 = (PlatformToolbox *)GameManager::setGameVariable(v14, "0034", 1); PlatformToolbox::activateGameCenter(v15); if ( (unsigned __int8)PlatformToolbox::isLocalPlayerAuthenticated(v16) ) MenuLayer::onGameCenter(this, nullptr); break; case 2: v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://www.robtopgames.com/download/gj%i", nullptr); v25[0] = 0; CString = (cocos2d::CCAction *)cocos2d::CCString::getCString(v18); v25[1] = 0; v26 = nullptr; v19 = strlen((const char *)CString); v20 = (cocos2d::CCApplication *)std::string::__init(v25, CString, v19); v21 = cocos2d::CCApplication::sharedApplication(v20); v22 = (char *)v25 + 1; if ( (v25[0] & 1) != 0 ) v22 = (char *)v26; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v21 + 104LL))(v21, v22); if ( (v25[0] & 1) != 0 ) operator delete(v26); break; case 3: v17 = cocos2d::CCApplication::sharedApplication(v5); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v17 + 104LL))( v17, "https://www.newgrounds.com/audio"); break; default: return _stack_chk_guard; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source