// // GJMoreGamesLayer::getMoreGamesList from 0x5381a0 to 0x5383d4 (564 bytes) // // 1 xrefs: // > GJMoreGamesLayer::customSetup @ 0x5383fe // // 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:52:09 +0000 // cocos2d::CCArray *__fastcall GJMoreGamesLayer::getMoreGamesList(GJMoreGamesLayer *this) { int v1; // r10 cocos2d::CCArray *v2; // r0 cocos2d::CCArray *v3; // r9 char *v4; // r3 int v5; // r1 char *v6; // r2 char *v7; // r3 int v8; // r1 char *v9; // r2 const void **i; // r7 PlatformToolbox **v11; // r3 PlatformToolbox *v12; // r0 int v13; // r1 char *v14; // r2 char *v15; // r0 cocos2d::CCString *v16; // r0 char *CString; // r0 char *v18; // r1 size_t v19; // r0 int v20; // r1 int v21; // r2 int v22; // r3 cocos2d::CCObject *v23; // r0 cocos2d::CCTextureCache *v24; // r0 cocos2d::CCTextureCache *v25; // r0 char *v26; // r1 char *v28; // [sp+Ch] [bp-48h] int doesFileExist; // [sp+Ch] [bp-48h] char *v30; // [sp+10h] [bp-44h] BYREF char *v31; // [sp+14h] [bp-40h] unsigned int v32; // [sp+18h] [bp-3Ch] int v33[3]; // [sp+1Ch] [bp-38h] BYREF PlatformToolbox *v34; // [sp+28h] [bp-2Ch] BYREF int v35; // [sp+2Ch] [bp-28h] char *v36; // [sp+30h] [bp-24h] char v37[4]; // [sp+34h] [bp-20h] BYREF int v38; // [sp+38h] [bp-1Ch] char *v39; // [sp+3Ch] [bp-18h] int v40[3]; // [sp+40h] [bp-14h] BYREF v1 = cocos2d::CCTexture2D::defaultAlphaPixelFormat(this); v2 = (cocos2d::CCArray *)cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(0); v30 = nullptr; v31 = nullptr; v32 = 0; memset(v33, 0, sizeof(v33)); v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); std::string::__init(v33, "gjm", 3u); std::vector::__push_back_slow_path((void **)&v30, v33); std::string::~string((int)v33); v34 = nullptr; v35 = 0; v36 = nullptr; std::string::__init((int *)&v34, "gjw", 3u); v4 = v31; if ( (unsigned int)v31 >= v32 ) { std::vector::__push_back_slow_path((void **)&v30, (int *)&v34); } else { if ( v31 ) { v5 = v35; v6 = v36; *(_DWORD *)v31 = v34; *((_DWORD *)v4 + 1) = v5; *((_DWORD *)v4 + 2) = v6; v34 = nullptr; v35 = 0; v36 = nullptr; } v31 += 12; } std::string::~string((int)&v34); *(_DWORD *)v37 = 0; v38 = 0; v39 = nullptr; std::string::__init((int *)v37, "gjz", 3u); v7 = v31; if ( (unsigned int)v31 >= v32 ) { std::vector::__push_back_slow_path((void **)&v30, (int *)v37); } else { if ( v31 ) { v8 = v38; v9 = v39; *(_DWORD *)v31 = *(_DWORD *)v37; *((_DWORD *)v7 + 1) = v8; *((_DWORD *)v7 + 2) = v9; *(_DWORD *)v37 = 0; v38 = 0; v39 = nullptr; } v31 += 12; } std::string::~string((int)v37); for ( i = (const void **)(v30 + 12); ; i += 3 ) { v11 = (PlatformToolbox **)(i - 3); if ( v31 == (char *)(i - 3) ) break; v34 = nullptr; v35 = 0; v36 = nullptr; if ( (*(_BYTE *)(i - 3) & 1) != 0 ) { v12 = (PlatformToolbox *)std::string::__init((int *)&v34, *(i - 1), (size_t)*(i - 2)); } else { v12 = *v11; v13 = (int)*(i - 2); v14 = (char *)*(i - 1); v34 = *v11; v35 = v13; v36 = v14; } *(_DWORD *)v37 = 0; v38 = 0; v39 = nullptr; if ( PlatformToolbox::isHD(v12) ) { v15 = "promo_%s-hd.png"; if ( ((unsigned __int8)v34 & 1) == 0 ) goto LABEL_18; v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"promo_%s-hd.png", v36); } else { v15 = "promo_%s.png"; if ( ((unsigned __int8)v34 & 1) == 0 ) { LABEL_18: v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v15, (const char *)&v34 + 1); goto LABEL_20; } v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"promo_%s.png", v36); } LABEL_20: CString = (char *)cocos2d::CCString::getCString(v16); std::string::assign((int *)v37, CString); if ( (v37[0] & 1) != 0 ) v18 = v39; else v18 = &v37[1]; v28 = v18; memset(v40, 0, sizeof(v40)); v19 = strlen(v18); std::string::__init(v40, v28, v19); doesFileExist = PlatformToolbox::doesFileExist((cocos2d::CCFileUtils *)v40, v20, v21, v22); std::string::~string((int)v40); if ( doesFileExist ) { v23 = (cocos2d::CCObject *)cocos2d::CCString::create(&v34); v24 = (cocos2d::CCTextureCache *)cocos2d::CCArray::addObject(v3, v23); v25 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v24); if ( (v37[0] & 1) != 0 ) v26 = v39; else v26 = &v37[1]; cocos2d::CCTextureCache::addImage(v25, v26, 0); } std::string::~string((int)v37); std::string::~string((int)&v34); } cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v1); std::__vector_base::~__vector_base((int)&v30); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source