// // GameLevelManager::submitUserInfo from 0x4bafe8 to 0x4bb24a (610 bytes) // // 1 xrefs: // > GameLevelManager::onUpdateUserScoreCompleted @ 0x4bb302 // // 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:16 +0000 // int __fastcall GameLevelManager::submitUserInfo(GameLevelManager *this) { GameLevelManager *v2; // r0 cocos2d::CCDictionary **v3; // r0 cocos2d::CCArray *CompletedLevels; // r7 unsigned int i; // r6 GameManager *v6; // r0 _DWORD *v7; // r4 const char *v8; // r0 cocos2d::CCString *v9; // r0 char *CString; // r0 int v11; // r0 const char *v12; // r6 int v13; // r0 int v14; // r4 cocos2d::CCString *v15; // r0 int v16; // r0 cocos2d::CCString *v17; // r0 const char *v18; // r6 size_t v19; // r0 char *v20; // r1 const char *v21; // r9 size_t v22; // r0 size_t v24; // [sp+2Ch] [bp-60h] int v25[2]; // [sp+30h] [bp-5Ch] BYREF char *v26; // [sp+38h] [bp-54h] int v27[3]; // [sp+3Ch] [bp-50h] BYREF int v28[3]; // [sp+48h] [bp-44h] BYREF int v29[2]; // [sp+54h] [bp-38h] BYREF const char *v30; // [sp+5Ch] [bp-30h] int v31[3]; // [sp+60h] [bp-2Ch] BYREF int v32[3]; // [sp+6Ch] [bp-20h] BYREF int v33[3]; // [sp+78h] [bp-14h] BYREF v25[0] = 0; v25[1] = 0; v26 = nullptr; v2 = (GameLevelManager *)std::string::__init(v25, &unk_B6B226, 0); v3 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v2); CompletedLevels = GameLevelManager::getCompletedLevels(v3, 0); for ( i = 0; ; ++i ) { v6 = (GameManager *)cocos2d::CCArray::count(CompletedLevels); if ( i >= (unsigned int)v6 ) break; v7 = (_DWORD *)cocos2d::CCArray::objectAtIndex(CompletedLevels, i); if ( i ) std::string::append(v25, ";"); std::string::basic_string(v27, (int)(v7 + 76)); if ( (v27[0] & 1) != 0 ) v8 = (const char *)v27[2]; else v8 = (char *)v27 + 1; v24 = strlen(v8); std::string::~string((int)v27); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s,%i,%s,%i,%s,%i,%s,%i", (const char *)a1i2r3e45s789g, v7[67] - v7[68], &a1i2r3e45s789g[2], v7[155] - v7[156], &a1i2r3e45s789g[4], v7[158] - v7[159], &a1i2r3e45s789g[6], v24); CString = (char *)cocos2d::CCString::getCString(v9); std::string::append(v25, CString); } v11 = GameManager::sharedState(v6); std::string::basic_string(v28, v11 + 436); if ( (v28[0] & 1) != 0 ) v12 = (const char *)v28[2]; else v12 = (char *)v28 + 1; v13 = GJAccountManager::sharedState((GJAccountManager *)(LOBYTE(v28[0]) << 31)); v14 = *(_DWORD *)(v13 + 280) - *(_DWORD *)(v13 + 284); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &a1i2r3e45s789g[9]); v16 = cocos2d::CCString::getCString(v15); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"udid=%s&accountID=%i&secret=%s", v12, v14, v16); v18 = (const char *)cocos2d::CCString::getCString(v17); v29[0] = 0; v29[1] = 0; v30 = nullptr; v19 = strlen(v18); std::string::__init(v29, v18, v19); std::string::append(v29, "&levelsInfo="); if ( (v25[0] & 1) != 0 ) v20 = v26; else v20 = (char *)v25 + 1; std::string::append(v29, v20); if ( (v29[0] & 1) != 0 ) v21 = v30; else v21 = (char *)v29 + 1; memset(v31, 0, sizeof(v31)); std::string::__init(v31, "https://www.boomlings.com/database/submitGJUserInfo.php", 0x37u); memset(v32, 0, sizeof(v32)); v22 = strlen(v21); std::string::__init(v32, v21, v22); memset(v33, 0, sizeof(v33)); std::string::__init(v33, &unk_B6B226, 0); GameLevelManager::ProcessHttpRequest(this, v31, (int)v32, (int)v33, 18); std::string::~string((int)v33); std::string::~string((int)v32); std::string::~string((int)v31); std::string::~string((int)v29); std::string::~string((int)v28); return std::string::~string((int)v25); }
GD Web Decomp Icon

GD Web Decomp

Raw Source