// // LevelBrowserLayer::cellPerformedAction from 0x1403eab00 to 0x1403eaf3c (1084 bytes) // // 3 xrefs: // > LevelListLayer::cellPerformedAction @ 0x14042ee0e // > @ 0x140789f80 // > @ 0x140925154 // // 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:31:45 +0000 // // Hidden C++ exception states: #wind=4 char __fastcall LevelBrowserLayer::cellPerformedAction(_QWORD *a1, __int64 a2, int a3, int a4) { __int64 v6; // rcx __int64 v7; // rcx __int64 v9; // rax __int64 (__fastcall *v10)(__int64); // rdx cocos2d::CCObject *v11; // rcx __int64 (__fastcall ***v12)(_QWORD); // rcx cocos2d::CCObject *v13; // r14 int v14; // edi int v15; // esi __int64 v16; // rcx int Stat; // eax const char *v18; // r8 cocos2d::CCString *v19; // rax char *CString; // rax size_t v21; // rbx size_t v22; // r8 void **v23; // rdx __int64 v24; // rax cocos2d::CCObject *v25; // rbx void *v26; // rcx cocos2d::CCObject *v27; // rcx __int64 v28; // rsi cocos2d::CCObject *v29; // rbx void *v30; // [rsp+50h] [rbp-51h] __int128 v31; // [rsp+60h] [rbp-41h] BYREF __int64 v32; // [rsp+70h] [rbp-31h] __int64 v33; // [rsp+78h] [rbp-29h] _BYTE v34[32]; // [rsp+80h] [rbp-21h] BYREF void *Block[2]; // [rsp+A0h] [rbp-1h] BYREF __int64 v36; // [rsp+B0h] [rbp+Fh] unsigned __int64 v37; // [rsp+B8h] [rbp+17h] if ( a3 == 20 ) { if ( a4 == 1 ) { v6 = a1[4]; if ( v6 ) { v7 = *(_QWORD *)(v6 + 544); if ( v7 ) CustomListView::reloadAll(v7); } return 0; } if ( a4 == 6 ) { (*(void (__fastcall **)(_QWORD *, _QWORD))(*(a1 - 72) + 1056LL))(a1 - 72, 0); *(_DWORD *)(*(_QWORD *)(a2 + 560) + 204LL) = 0; v9 = SetupSmartTemplateLayer::create(*(_QWORD *)(a2 + 560)); v10 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 1064LL); v11 = (cocos2d::CCObject *)v9; LABEL_9: v10((__int64)v11); return 1; } return 0; } if ( a4 == 9 ) { v13 = (cocos2d::CCObject *)LevelCell::recallLevel(a2); v14 = *((_DWORD *)v13 + 248) - *((_DWORD *)v13 + 249); if ( v14 <= 200000 ) { v15 = 1; if ( v14 > 100000 ) v15 = 3; } else { v15 = 5; } v16 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v30 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v30); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v16 = qword_14090BFE0; } Stat = GameStatsManager::getStat(v16, &word_140737620); if ( Stat < v15 ) { if ( v14 <= 200000 ) { v18 = "Daily Level"; if ( v14 > 100000 ) v18 = "Weekly Demon"; } else { v18 = "Event Level"; } *(_OWORD *)Block = 0; v36 = 0; v37 = 15; LOBYTE(Block[0]) = 0; if ( v15 == 1 ) v19 = cocos2d::CCString::createWithFormat("You need a key to\nunlock this %s", v18); else v19 = cocos2d::CCString::createWithFormat( "You need %i more keys to\nunlock this %s", v15 - Stat, v18); CString = (char *)cocos2d::CCString::getCString(v19); v21 = -1; v22 = -1; do ++v22; while ( CString[v22] ); sub_1400405A0(Block, CString, v22); v23 = Block; if ( v37 > 0xF ) v23 = (void **)Block[0]; v31 = 0; v32 = 0; v33 = 0; do ++v21; while ( *((_BYTE *)v23 + v21) ); sub_14003D230(&v31, v23, v21); v24 = sub_14003F4F0((__int64)v34, (__int64)&v31); v25 = FLAlertLayer::create(0, (int)"Locked", v24, (__int64)"OK", 0, 1133903872, 0, 0, 1065353216); sub_14003D310((__int64)&v31); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v25 + 1064LL))(v25); if ( v37 > 0xF ) { v26 = Block[0]; if ( v37 + 1 >= 0x1000 ) { v26 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v26 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v26); } return 1; } cocos2d::CCObject::retain(v13); v27 = (cocos2d::CCObject *)a1[32]; if ( v27 ) cocos2d::CCObject::release(v27); a1[32] = v13; v28 = (__int64)(a1 - 3); if ( a1 == (_QWORD *)576 ) v28 = 0; v29 = (cocos2d::CCObject *)operator new(0x298u); FLAlertLayer::FLAlertLayer((__int64)v29); *(_QWORD *)v29 = &DailyRecallUnlockPopup::`vftable'; *((_QWORD *)v29 + 40) = &DailyRecallUnlockPopup::`vftable'; *((_QWORD *)v29 + 41) = &DailyRecallUnlockPopup::`vftable'; *((_QWORD *)v29 + 42) = &DailyRecallUnlockPopup::`vftable'; *((_QWORD *)v29 + 43) = &DailyRecallUnlockPopup::`vftable'; *((_QWORD *)v29 + 44) = &DailyRecallUnlockPopup::`vftable'; *((_QWORD *)v29 + 51) = &DailyRecallUnlockPopup::`vftable'; *((_QWORD *)v29 + 54) = &DailyRecallUnlockPopup::`vftable'; *((_QWORD *)v29 + 68) = &DailyRecallUnlockPopup::`vftable'; if ( DailyRecallUnlockPopup::init((__int64)v29, v28, (__int64)v13) ) { cocos2d::CCObject::autorelease(v29); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v29 + 8LL))(v29, 1); v29 = nullptr; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v29 + 64LL))(v29, 7); v10 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 1064LL); v11 = v29; if ( v10 == FLAlertLayer::show ) { FLAlertLayer::show((__int64)v29); return 1; } goto LABEL_9; } if ( a4 == 10 ) { LevelBrowserLayer::claimRecallChest(a1 - 72); return 1; } v12 = (__int64 (__fastcall ***)(_QWORD))a1[26]; if ( !v12 ) return 0; return (**v12)(v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source