// // GameLevelManager::getFriendRequests from 0x4c01cc to 0x4c038e (450 bytes) // // 1 xrefs: // > FRequestProfilePage::loadPage @ 0x5f21b8 // // 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:22 +0000 // int __fastcall GameLevelManager::getFriendRequests( GameLevelManager *a1, int a2, const char *a3, const char *a4, unsigned __int8 *a5, char a6) { const char *FriendRequestKey; // r5 int result; // r0 int v12; // r2 int v13; // r3 cocos2d::CCString *v14; // r0 int CString; // r0 cocos2d::CCString *v16; // r0 char *v17; // r0 char *v18; // r1 int v19; // r3 int v20; // r3 char *v21; // r1 size_t v22; // r2 size_t v23; // r0 size_t v24; // r0 char *v25[3]; // [sp+1Ch] [bp-50h] BYREF int v26[3]; // [sp+28h] [bp-44h] BYREF _DWORD v27[3]; // [sp+34h] [bp-38h] BYREF int v28[3]; // [sp+40h] [bp-2Ch] BYREF int v29[3]; // [sp+4Ch] [bp-20h] BYREF int v30[3]; // [sp+58h] [bp-14h] BYREF FriendRequestKey = (const char *)GameLevelManager::getFriendRequestKey((int)a1, a2, (int)a3, a5, a6); result = GameLevelManager::isDLActive(a1, FriendRequestKey); if ( result ) return result; GameLevelManager::addDLToActive(a1, FriendRequestKey, v12, v13); GameLevelManager::getBasePostString((GameLevelManager *)v25); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &a1i2r3e45s789g[9]); CString = cocos2d::CCString::getCString(v14); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&page=%i&total=%i&secret=%s", a3, a4, CString); v17 = (char *)cocos2d::CCString::getCString(v16); std::string::append(v25, v17); if ( a6 ) { v18 = "&getSent=2"; } else { if ( !a2 ) goto LABEL_5; v18 = "&getSent=1"; } std::string::append(v25, v18); LABEL_5: v19 = *a5; if ( (v19 & 1) != 0 ) v20 = *((_DWORD *)a5 + 1); else v20 = v19 >> 1; if ( v20 ) { std::string::append(v25, "&search="); std::string::basic_string(v26, (int)a5); LevelTools::base64EncodeString(v27, v26); if ( (v27[0] & 1) != 0 ) { v21 = (char *)v27[2]; v22 = v27[1]; } else { v22 = (int)LOBYTE(v27[0]) >> 1; v21 = (char *)v27 + 1; } std::string::append(v25, v21, v22); std::string::~string((int)v27); std::string::~string((int)v26); } memset(v28, 0, sizeof(v28)); std::string::__init(v28, "https://www.boomlings.com/database/getGJFriendRequests20.php", 0x3Cu); v29[0] = 0; v29[1] = 0; if ( ((int)v25[0] & 1) == 0 ) a4 = (char *)v25 + 1; v29[2] = 0; if ( ((int)v25[0] & 1) != 0 ) a4 = v25[2]; v23 = strlen(a4); std::string::__init(v29, a4, v23); memset(v30, 0, sizeof(v30)); v24 = strlen(FriendRequestKey); std::string::__init(v30, FriendRequestKey, v24); GameLevelManager::ProcessHttpRequest(a1, v28, (int)v29, (int)v30, 34); std::string::~string((int)v30); 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