// // MenuLayer::FLAlert_Clicked from 0x140475320 to 0x140475548 (552 bytes) // // 2 xrefs: // > @ 0x1407b4830 // > @ 0x140928334 // // 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:32:40 +0000 // // Hidden C++ exception states: #wind=10 void __fastcall MenuLayer::FLAlert_Clicked(__int64 a1, __int64 a2, char a3) { int v4; // eax __int64 v5; // rcx int v6; // eax int v7; // eax __int64 v8; // rax cocos2d::CCString *v9; // rax const char *CString; // rax size_t v11; // r8 __int64 v12; // rcx __int64 v13; // rax void **v14; // rdx void *v15; // rcx __int64 v16; // rcx __int64 v17; // rcx __int64 v18; // rax __int64 v19; // rdx __int64 v20; // rcx struct cocos2d::CCFiniteTimeAction *v21; // rbx __int64 v22; // rax struct cocos2d::CCAction *v23; // rbx __int64 v24; // rcx __int64 v25; // rax cocos2d::CCActionManager *v26; // rax void *v27; // [rsp+30h] [rbp-38h] void *Block[2]; // [rsp+38h] [rbp-30h] BYREF __int64 v29; // [rsp+48h] [rbp-20h] unsigned __int64 v30; // [rsp+50h] [rbp-18h] if ( a3 ) { v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); if ( v4 ) { v6 = v4 - 1; if ( v6 ) { v7 = v6 - 1; if ( v7 ) { if ( v7 == 1 ) { v8 = cocos2d::CCApplication::sharedApplication(v5); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v8 + 96LL))( v8, "https://www.newgrounds.com/audio"); } } else { v9 = cocos2d::CCString::createWithFormat("https://www.robtopgames.com/download/gj%i", 0); CString = cocos2d::CCString::getCString(v9); *(_OWORD *)Block = 0; v29 = 0; v30 = 0; v11 = -1; do ++v11; while ( CString[v11] ); sub_14003D230(Block, CString, v11); v13 = cocos2d::CCApplication::sharedApplication(v12); v14 = Block; if ( v30 > 0xF ) v14 = (void **)Block[0]; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v13 + 96LL))(v13, v14); if ( v30 > 0xF ) { v15 = Block[0]; if ( v30 + 1 >= 0x1000 ) { v15 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v15); } } } else { v16 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v27 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v27); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v16 = qword_14090BFD0; } GameManager::setGameVariable(v16, "0034", 1u); } } else { *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v5) + 121) = 1; v18 = cocos2d::CCApplication::sharedApplication(v17); LOBYTE(v19) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 56LL))(v18, v19); cocos2d::CCApplication::sharedApplication(v20); v21 = cocos2d::CCDelayTime::create(0.5); v22 = cocos2d::CCCallFunc::create(a1 - 408, MenuLayer::endGame); v23 = cocos2d::CCSequence::create(v21, v22, 0); v25 = cocos2d::CCDirector::sharedDirector(v24); v26 = (cocos2d::CCActionManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 128LL))(v25); cocos2d::CCActionManager::addAction(v26, v23, (struct cocos2d::CCNode *)(a1 - 408), 0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source