// // LevelCell::onClick from 0x14014d200 to 0x14014d513 (787 bytes) // // 8 xrefs: // > LevelCell::loadCustomLevelCell @ 0x140149d0f // > LevelCell::loadCustomLevelCell @ 0x14014a2d6 // > LevelCell::loadCustomLevelCell @ 0x14014a340 // > LevelCell::loadCustomLevelCell @ 0x14014a460 // > LevelCell::loadCustomLevelCell @ 0x14014a57c // > LevelCell::loadCustomLevelCell @ 0x14014a67e // > LevelCell::loadLocalLevelCell @ 0x14014cac2 // > @ 0x140917648 // // 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:27:16 +0000 // // Hidden C++ exception states: #wind=3 __int64 __fastcall LevelCell::onClick(__int64 a1, __int64 a2) { __int64 result; // rax __int64 (__fastcall ***v5)(_QWORD, __int64, __int64, __int64, _QWORD); // rcx __int64 v6; // r9 __int64 v7; // r8 int v8; // eax int v9; // eax __int64 v10; // rax cocos2d::CCObject *v11; // rbx __int64 v12; // rdi _DWORD *v13; // rax __int64 v14; // rcx __int128 v15; // [rsp+50h] [rbp-48h] BYREF __int64 v16; // [rsp+60h] [rbp-38h] __int64 v17; // [rsp+68h] [rbp-30h] _BYTE v18[40]; // [rsp+70h] [rbp-28h] BYREF void *v19; // [rsp+A0h] [rbp+8h] void *v20; // [rsp+A0h] [rbp+8h] if ( *(_BYTE *)(a1 + 576) ) { result = *(_QWORD *)(a1 + 416); v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 624); if ( !v5 ) return result; v6 = 1; v7 = 37; return (**v5)(v5, a1, v7, v6, 0); } if ( *(_DWORD *)(a1 + 552) == 29 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) ) { v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) - 1; if ( v8 ) { v9 = v8 - 1; if ( v9 ) { result = (unsigned int)(v9 - 1); if ( (_DWORD)result ) { if ( (_DWORD)result != 1 ) return result; v6 = 2; } else { v6 = 5; } } else { v6 = 4; } } else { v6 = 3; } result = *(_QWORD *)(a1 + 416); v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 624); if ( v5 ) { LABEL_28: v7 = *(unsigned int *)(a1 + 552); return (**v5)(v5, a1, v7, v6, 0); } } else { if ( *(int *)(*(_QWORD *)(a1 + 568) + 864LL) > 22 ) { v15 = 0; *(_QWORD *)&v15 = sub_14003D460(0x40u); v16 = 54; v17 = 63; strcpy((char *)v15, "Please update your application to download this level."); v10 = sub_14003F4F0((__int64)v18, (__int64)&v15); v11 = FLAlertLayer::create(0, (int)"Unavailable", v10, (__int64)"Close", 0, 1132068864, 0, 0, 1065353216); sub_14003D310((__int64)&v15); return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v11 + 1064LL))(v11); } if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 5 || (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 6 ) { v6 = (unsigned int)((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) != 5) + 9; result = *(_QWORD *)(a1 + 416); v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 624); if ( !v5 ) return result; goto LABEL_28; } if ( *(int *)(*(_QWORD *)(a1 + 568) + 1412LL) <= 0 ) { v14 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v20 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v20); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v14 = *(_QWORD *)&qword_14090BFB0; } return GameLevelManager::gotoLevelPage(v14, *(_QWORD *)(a1 + 568)); } else { v12 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v19 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v19); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v12 = *(_QWORD *)&qword_14090BFB0; } v13 = LevelCell::recallLevel(a1); return GameLevelManager::gotoLevelPage(v12, v13); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source