// // GameLevelManager::createNewLevelList from 0x4d00b4 to 0x4d025a (422 bytes) // // 3 xrefs: // > LevelBrowserLayer::createNewList @ 0x4a4f7a // > LevelBrowserLayer::shareCommentClosed @ 0x4a87f2 // > LevelListLayer::cloneList @ 0x6d9b24 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:50:46 +0000 // cocos2d::CCNode *__fastcall GameLevelManager::createNewLevelList(GameLevelManager *this) { cocos2d::CCNode *v1; // r0 cocos2d::CCNode *v2; // r6 int v3; // r0 GJAccountManager *v4; // r0 LocalLevelManager *v5; // r0 int v6; // r3 int v7; // r8 _DWORD *v8; // r3 int v9; // r5 int *v10; // r3 unsigned int v11; // r5 int *v12; // r8 int v13; // r2 int v14; // t1 char *v15; // r1 size_t v16; // r2 int v17; // r3 LocalLevelManager *v18; // r0 int v19; // r0 int v21; // r3 int v22; // r3 int v23; // [sp+4h] [bp-48h] char v24[8]; // [sp+Ch] [bp-40h] BYREF int *v25; // [sp+14h] [bp-38h] BYREF _DWORD *v26[2]; // [sp+18h] [bp-34h] BYREF int v27[3]; // [sp+20h] [bp-2Ch] BYREF unsigned __int8 v28; // [sp+2Ch] [bp-20h] BYREF char v29; // [sp+2Dh] [bp-1Fh] BYREF size_t v30; // [sp+30h] [bp-1Ch] char *v31; // [sp+34h] [bp-18h] int v32[3]; // [sp+38h] [bp-14h] BYREF v1 = GJLevelList::create(this); *((_DWORD *)v1 + 102) = 2; *((_BYTE *)v1 + 324) = 1; v2 = v1; v3 = GameManager::sharedState(v1); std::string::basic_string(v32, v3 + 448); std::string::operator=((unsigned __int8 *)v2 + 336, (unsigned __int8 *)v32); v4 = (GJAccountManager *)std::string::~string((int)v32); v5 = (LocalLevelManager *)GJAccountManager::sharedState(v4); *((_DWORD *)v2 + 74) = *((_DWORD *)v5 + 70) - *((_DWORD *)v5 + 71); v26[0] = nullptr; v26[1] = nullptr; v25 = (int *)v26; v6 = *(_DWORD *)(LocalLevelManager::sharedState(v5) + 288); if ( v6 ) { v8 = *(_DWORD **)(v6 + 52); if ( *v8 ) { v9 = *v8 + 0x40000000; v10 = (int *)v8[3]; v11 = (unsigned int)&v10[v9 - 1]; v12 = v10; while ( (unsigned int)v12 <= v11 ) { v14 = *v12++; v13 = v14; if ( !v14 ) break; v21 = *(unsigned __int8 *)(v13 + 348); if ( (v21 & 1) != 0 ) v22 = *(_DWORD *)(v13 + 352); else v22 = v21 >> 1; if ( v22 ) std::__tree::__emplace_unique_key_args( (int)v24, &v25, (unsigned __int8 *)(v13 + 348), v13 + 348); } } } v7 = 0; do { memset(v27, 0, sizeof(v27)); std::string::__init(v27, "Unnamed ", 8u); GameToolbox::intToString((GameToolbox *)&v28, v7); if ( (v28 & 1) != 0 ) { v15 = v31; v16 = v30; } else { v16 = (int)v28 >> 1; v15 = &v29; } std::string::append(v27, v15, v16); std::string::~string((int)&v28); if ( std::__tree::__count_unique((int)&v25, (unsigned __int8 *)v27) && v7 <= 998 ) { v17 = 1; } else { std::string::basic_string(v32, (int)v27); std::string::operator=((unsigned __int8 *)v2 + 360, (unsigned __int8 *)v32); std::string::~string((int)v32); v17 = 0; } v23 = v17; v18 = (LocalLevelManager *)std::string::~string((int)v27); ++v7; } while ( v23 ); v19 = LocalLevelManager::sharedState(v18); cocos2d::CCArray::insertObject(*(cocos2d::CCArray **)(v19 + 288), v2, 0); std::__tree::destroy((int)&v25, v26[0]); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source