// // GJMoreGamesLayer::getMoreGamesList from 0x8ff74c to 0x8ffc00 (1204 bytes) // // 2 xrefs: // > GJMoreGamesLayer::customSetup @ 0x8ffc24 // > @ 0x9e800 // // This function is hookable on this platform (idp: arm, 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 12:57:06 +0000 // cocos2d::CCArray *__fastcall GJMoreGamesLayer::getMoreGamesList(GJMoreGamesLayer *this) { unsigned int v1; // w27 cocos2d::CCArray *v2; // x0 cocos2d::CCArray *v3; // x25 void **v4; // x0 void *v5; // x3 void **v6; // x0 void *v7; // x3 char *v8; // x22 void *v9; // x1 void *v10; // x0 const char *v11; // x1 cocos2d::CCString *v12; // x0 char *CString; // x0 const char *v14; // x1 size_t v15; // x0 int doesFileExist; // w28 void **v17; // x19 void **v18; // x0 cocos2d::CCObject *v20; // x0 cocos2d::CCTextureCache *v21; // x0 cocos2d::CCTextureCache *v22; // x0 const char *v23; // x1 const char *v24; // x1 char *v25; // [xsp+68h] [xbp+68h] void *v26; // [xsp+70h] [xbp+70h] BYREF void **v27; // [xsp+78h] [xbp+78h] unsigned __int64 v28; // [xsp+80h] [xbp+80h] __int64 v29[2]; // [xsp+88h] [xbp+88h] BYREF void *v30; // [xsp+98h] [xbp+98h] void *v31; // [xsp+A0h] [xbp+A0h] BYREF void *v32; // [xsp+A8h] [xbp+A8h] void *v33; // [xsp+B0h] [xbp+B0h] void *v34; // [xsp+B8h] [xbp+B8h] BYREF void *v35; // [xsp+C0h] [xbp+C0h] void *v36; // [xsp+C8h] [xbp+C8h] __int64 v37[2]; // [xsp+D0h] [xbp+D0h] BYREF void *v38; // [xsp+E0h] [xbp+E0h] v1 = cocos2d::CCTexture2D::defaultAlphaPixelFormat(_stack_chk_guard); v2 = (cocos2d::CCArray *)cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(0); v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); v26 = nullptr; v27 = nullptr; v28 = 0; v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, "gjm", 3u); std::vector::__push_back_slow_path((void ***)&v26, v29); if ( (v29[0] & 1) != 0 ) operator delete(v30); v31 = nullptr; v32 = nullptr; v33 = nullptr; std::string::__init((__int64 *)&v31, "gjw", 3u); v4 = v27; if ( (unsigned __int64)v27 >= v28 ) { std::vector::__push_back_slow_path((void ***)&v26, &v31); } else { if ( v27 ) { v5 = v32; *v27 = v31; v4[1] = v5; v4[2] = v33; v4 = v27; v31 = nullptr; v32 = nullptr; v33 = nullptr; } v27 = v4 + 3; } if ( ((unsigned __int8)v31 & 1) != 0 ) operator delete(v33); v34 = nullptr; v35 = nullptr; v36 = nullptr; std::string::__init((__int64 *)&v34, "gjz", 3u); v6 = v27; if ( (unsigned __int64)v27 >= v28 ) { std::vector::__push_back_slow_path((void ***)&v26, &v34); } else { if ( v27 ) { v7 = v35; *v27 = v34; v6[1] = v7; v6[2] = v36; v6 = v27; v34 = nullptr; v35 = nullptr; v36 = nullptr; } v27 = v6 + 3; } if ( ((unsigned __int8)v34 & 1) != 0 ) operator delete(v36); v8 = (char *)v26; if ( v26 != v27 ) { do { v31 = nullptr; v32 = nullptr; v33 = nullptr; if ( (*v8 & 1) != 0 ) { v10 = (void *)std::string::__init((__int64 *)&v31, *((void **)v8 + 2), *((_QWORD *)v8 + 1)); } else { v9 = *((void **)v8 + 1); v31 = *(void **)v8; v32 = v9; v10 = *((void **)v8 + 2); v33 = v10; } v34 = nullptr; v35 = nullptr; v36 = nullptr; if ( (unsigned __int8)PlatformToolbox::isHD((PlatformToolbox *)v10) ) { v11 = (char *)&v31 + 1; if ( ((unsigned __int8)v31 & 1) != 0 ) v11 = (const char *)v33; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"promo_%s-hd.png", v11); } else { v24 = (char *)&v31 + 1; if ( ((unsigned __int8)v31 & 1) != 0 ) v24 = (const char *)v33; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"promo_%s.png", v24); } CString = (char *)cocos2d::CCString::getCString(v12); std::string::assign((__int64 *)&v34, CString); v14 = (char *)&v34 + 1; if ( ((unsigned __int8)v34 & 1) != 0 ) v14 = (const char *)v36; v25 = (char *)v14; v37[0] = 0; v37[1] = 0; v38 = nullptr; v15 = strlen(v14); std::string::__init(v37, v25, v15); doesFileExist = (unsigned __int8)PlatformToolbox::doesFileExist((char *)v37); if ( (v37[0] & 1) != 0 ) { operator delete(v38); if ( !doesFileExist ) { LABEL_25: if ( ((unsigned __int8)v34 & 1) == 0 ) goto LABEL_26; goto LABEL_40; } } else if ( !doesFileExist ) { goto LABEL_25; } v20 = (cocos2d::CCObject *)cocos2d::CCString::create(&v31); v21 = (cocos2d::CCTextureCache *)cocos2d::CCArray::addObject(v3, v20); v22 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v21); v23 = (char *)&v34 + 1; if ( ((unsigned __int8)v34 & 1) != 0 ) v23 = (const char *)v36; cocos2d::CCTextureCache::addImage(v22, v23, 0); if ( ((unsigned __int8)v34 & 1) == 0 ) { LABEL_26: if ( ((unsigned __int8)v31 & 1) != 0 ) goto LABEL_41; goto LABEL_27; } LABEL_40: operator delete(v36); if ( ((unsigned __int8)v31 & 1) != 0 ) LABEL_41: operator delete(v33); LABEL_27: v8 += 24; } while ( v27 != (void **)v8 ); } cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(v1); v17 = (void **)v26; if ( v26 ) { v18 = v27; if ( v26 != v27 ) { do { v27 = v18 - 3; if ( (*(_BYTE *)(v18 - 3) & 1) != 0 ) operator delete(*(v18 - 1)); v18 = v27; } while ( v17 != v27 ); v18 = (void **)v26; } operator delete(v18); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source