// // LevelInfoLayer::FLAlert_Clicked from 0x140425f80 to 0x1404264c4 (1348 bytes) // // 3 xrefs: // > @ 0x14078c528 // > @ 0x140926984 // > @ 0x140926990 // // 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:11 +0000 // // Hidden C++ exception states: #wind=7 void __fastcall LevelInfoLayer::FLAlert_Clicked(__int64 a1, __int64 a2, char a3) { _QWORD *v5; // rcx void *v6; // rcx void *v7; // rcx __int64 v8; // rdi __int64 v9; // rax _DWORD *NewLevel; // rsi int v11; // ebx _DWORD *v12; // r8 int v13; // edx int v14; // r9d int v15; // ecx int v16; // edx float v17; // xmm0_4 __int64 v18; // rdx __int64 v19; // r8 __int64 v20; // r9 struct cocos2d::CCScene *v21; // rax struct cocos2d::CCScene *v22; // rbx __int64 v23; // rcx cocos2d::CCDirector *v24; // rax __int64 v25; // rax int v26; // ebx __int64 v27; // rax __int64 v28; // rax __int64 i; // rdx int v30; // ecx __int64 v31; // rax int v32; // ebx __int64 v33; // rax __int64 v34; // rax __int64 j; // rdx int v36; // ecx void *v37; // [rsp+30h] [rbp-58h] void *v38; // [rsp+30h] [rbp-58h] void *v39; // [rsp+30h] [rbp-58h] void *v40; // [rsp+30h] [rbp-58h] void *v41; // [rsp+30h] [rbp-58h] void *Block[2]; // [rsp+38h] [rbp-50h] BYREF __int64 v43; // [rsp+48h] [rbp-40h] void *v44[2]; // [rsp+50h] [rbp-38h] BYREF __int64 v45; // [rsp+60h] [rbp-28h] unsigned __int64 v46; // [rsp+68h] [rbp-20h] switch ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) ) { case 4u: if ( a3 ) { (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 56) + 1040LL))(*(_QWORD *)(a1 + 56), 0); v5 = *(_QWORD **)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v37 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v37); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v5 = *(_QWORD **)&qword_14090BFB0; } GameLevelManager::deleteLevel(v5, *(struct cocos2d::CCObject **)(a1 + 64)); LevelInfoLayer::onBack(a1 - 440, 0); *(_BYTE *)(a1 + 48) = 1; } break; case 5u: if ( a3 ) { *(_OWORD *)v44 = 0; v45 = 0; v46 = 15; LOBYTE(v44[0]) = 0; *(_OWORD *)Block = 0; v43 = 0; LevelInfoLayer::startServerDelete(a1 - 440, (__int64)v44, (__int64)Block); v6 = Block[0]; if ( Block[0] ) { if ( ((v43 - (unsigned __int64)Block[0]) & 0xFFFFFFFFFFFFFFFCuLL) >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v6); } if ( v46 > 0xF ) { v7 = v44[0]; if ( v46 + 1 >= 0x1000 ) { v7 = *((void **)v44[0] - 1); if ( (unsigned __int64)((char *)v44[0] - (char *)v7 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v7); } } break; case 6u: if ( a3 ) { v8 = a1 - 440; if ( !(unsigned __int8)LevelInfoLayer::shouldDownloadLevel(v8) && !*(_BYTE *)(v8 + 488) ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 992LL))(v8, 0); *(_BYTE *)(v8 + 488) = 1; v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v38 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v38); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } *(_DWORD *)(v9 + 740) = 2; if ( !*(_QWORD *)&qword_14090BFB0 ) { v39 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v39); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); } NewLevel = (_DWORD *)GameLevelManager::createNewLevel(); GJGameLevel::copyLevelInfo((__int64)NewLevel, *(_QWORD **)(v8 + 504)); v11 = 0; v12 = *(_DWORD **)(v8 + 504); v13 = v12[265]; v14 = v12[266]; if ( v13 == v14 ) { v15 = v12[82]; v16 = v12[83]; if ( v15 != v16 ) v11 = v15 - v16; } else { v11 = v13 - v14; } NewLevel[267] = v11; v17 = (float)((float)rand() / 32767.0) * 1000.0; NewLevel[266] = (int)v17; NewLevel[265] = v11 + (int)v17; v21 = (struct cocos2d::CCScene *)EditLevelLayer::scene((__int64)NewLevel, v18, v19, v20); v22 = cocos2d::CCTransitionFade::create(0.5, v21); v24 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v23); cocos2d::CCDirector::replaceScene(v24, v22); } } break; case 7u: LevelInfoLayer::onRate(a1 - 440); break; case 8u: LevelInfoLayer::onRateStars(a1 - 440); break; case 9u: if ( a3 ) { *(_BYTE *)(*(_QWORD *)(a1 + 64) + 1120LL) = 1; goto LABEL_62; } break; case 0xAu: if ( a3 ) { *(_BYTE *)(*(_QWORD *)(a1 + 64) + 1296LL) = 1; goto LABEL_62; } break; case 0xBu: if ( a3 && *(_QWORD *)(a1 + 64) ) { v25 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v40 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v40); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v25 = *(_QWORD *)&qword_14090BFB0; } v26 = 0; v27 = *(_QWORD *)(v25 + 856); if ( v27 ) { v28 = *(_QWORD *)(v27 + 56); if ( v28 ) { for ( i = *(_QWORD *)(v28 + 288); ; i = *(_QWORD *)(i + 288) ) { v30 = *(_DWORD *)(*(_QWORD *)(v28 + 264) + 704LL); if ( v30 <= v26 ) v30 = v26; v28 = i; v26 = v30; if ( !i ) break; } } } *(_DWORD *)(*(_QWORD *)(a1 + 64) + 704LL) = v26 + 1; } break; case 0xCu: if ( a3 && *(_QWORD *)(a1 + 64) ) { v31 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v41 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v41); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v31 = *(_QWORD *)&qword_14090BFB0; } v32 = 0; v33 = *(_QWORD *)(v31 + 856); if ( v33 ) { v34 = *(_QWORD *)(v33 + 56); if ( v34 ) { for ( j = *(_QWORD *)(v34 + 288); ; j = *(_QWORD *)(j + 288) ) { v36 = *(_DWORD *)(*(_QWORD *)(v34 + 264) + 704LL); if ( v36 >= v32 ) v36 = v32; v34 = j; v32 = v36; if ( !j ) break; } } } *(_DWORD *)(*(_QWORD *)(a1 + 64) + 704LL) = v32 - 1; } break; case 0xEu: *(_BYTE *)(*(_QWORD *)(a1 + 64) + 1296LL) = 1; if ( a3 ) *(_BYTE *)(a1 + 304) = 1; else GJGameLevel::clearPlatformerSave(*(_QWORD *)(a1 + 64)); LABEL_62: LevelInfoLayer::onPlay(a1 - 440); break; default: return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source