// // GameLevelManager::suggestLevelStars from 0x4b6b40 to 0x4b6cec (428 bytes) // // 3 xrefs: // > GJRateLevelLayer::onRate @ 0x566452 // > RateStarsLayer::onRate @ 0x5693ce // > RateStarsModLayer::onRate @ 0x79e7e0 // // 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:09 +0000 // int __fastcall GameLevelManager::suggestLevelStars( GameLevelManager *this, const char *a2, int a3, int a4, bool a5, int a6) { const char *v7; // r11 cocos2d::CCString *v10; // r0 const char *CString; // r0 int v12; // r7 const char *v13; // r6 size_t v14; // r0 int v15; // r7 cocos2d::CCNode *v16; // r0 cocos2d::CCObject *v17; // r0 size_t v18; // r0 cocos2d::CCString *v19; // r0 int v20; // r0 cocos2d::CCString *v21; // r0 char *v22; // r0 size_t v23; // r0 size_t v24; // r0 cocos2d::CCObject *v26; // [sp+10h] [bp-44h] int v27; // [sp+14h] [bp-40h] char *v28[3]; // [sp+1Ch] [bp-38h] BYREF int v29[3]; // [sp+28h] [bp-2Ch] BYREF int v30[3]; // [sp+34h] [bp-20h] BYREF int v31; // [sp+40h] [bp-14h] BYREF int v32; // [sp+44h] [bp-10h] int v33; // [sp+48h] [bp-Ch] v7 = a2; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"suggest_%i_%i_%i", a2); CString = (const char *)cocos2d::CCString::getCString(v10); v31 = 0; v32 = 0; v33 = 0; v12 = *((_DWORD *)this + 187); v13 = CString; v14 = strlen(CString); std::string::__init(&v31, v13, v14); v15 = cocos2d::CCDictionary::objectForKey(v12, &v31); v16 = (cocos2d::CCNode *)std::string::~string((int)&v31); if ( v15 ) return 0; v27 = *((_DWORD *)this + 187); v17 = (cocos2d::CCObject *)cocos2d::CCNode::create(v16); v31 = 0; v32 = 0; v33 = 0; v26 = v17; v18 = strlen(v13); std::string::__init(&v31, v13, v18); cocos2d::CCDictionary::setObject(v27, v26); std::string::~string((int)&v31); GameLevelManager::getBasePostString((GameLevelManager *)v28); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfp", "3879", 103, 99, &a1i2r3e45s789g[4]); v20 = cocos2d::CCString::getCString(v19); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&levelID=%i&stars=%i&feature=%i&coin=%i&demonDiff=%i&secret=%s", v7, a3, a4, a5, a6, v20); v22 = (char *)cocos2d::CCString::getCString(v21); std::string::append(v28, v22); memset(v29, 0, sizeof(v29)); std::string::__init(v29, "https://www.boomlings.com/database/suggestGJStars20.php", 0x37u); v30[0] = 0; v30[1] = 0; if ( ((int)v28[0] & 1) == 0 ) v7 = (char *)v28 + 1; v30[2] = 0; if ( ((int)v28[0] & 1) != 0 ) v7 = v28[2]; v23 = strlen(v7); std::string::__init(v30, v7, v23); v31 = 0; v32 = 0; v33 = 0; v24 = strlen(v13); std::string::__init(&v31, v13, v24); GameLevelManager::ProcessHttpRequest(this, v29, (int)v30, (int)&v31, 51); std::string::~string((int)&v31); std::string::~string((int)v30); std::string::~string((int)v29); std::string::~string((int)v28); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source