// // GameLevelManager::acceptFriendRequest from 0x4b9db8 to 0x4b9f56 (414 bytes) // // 1 xrefs: // > FriendRequestPopup::onAccept @ 0x5d9b96 // // 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:14 +0000 // int __fastcall GameLevelManager::acceptFriendRequest(GameLevelManager *this, const char *a2, int a3) { cocos2d::CCString *v7; // r0 const char *CString; // r0 int v9; // r5 const char *v10; // r7 size_t v11; // r0 int v12; // r5 cocos2d::CCNode *v13; // r0 cocos2d::CCObject *v14; // r0 cocos2d::CCObject *v15; // r8 size_t v16; // r0 cocos2d::CCString *v17; // r0 int v18; // r0 cocos2d::CCString *v19; // r0 char *v20; // r0 const char *v21; // r1 size_t v22; // r0 size_t v23; // r0 int v24; // [sp+14h] [bp-40h] const char *v25; // [sp+14h] [bp-40h] char *v26[3]; // [sp+1Ch] [bp-38h] BYREF int v27[3]; // [sp+28h] [bp-2Ch] BYREF int v28[3]; // [sp+34h] [bp-20h] BYREF int v29; // [sp+40h] [bp-14h] BYREF int v30; // [sp+44h] [bp-10h] int v31; // [sp+48h] [bp-Ch] if ( (int)a2 <= 0 ) return 0; if ( a3 <= 0 ) return 0; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"accFriendReq_%i_%i", a2); CString = (const char *)cocos2d::CCString::getCString(v7); v29 = 0; v30 = 0; v31 = 0; v9 = *((_DWORD *)this + 187); v10 = CString; v11 = strlen(CString); std::string::__init(&v29, v10, v11); v12 = cocos2d::CCDictionary::objectForKey(v9, &v29); v13 = (cocos2d::CCNode *)std::string::~string((int)&v29); if ( v12 ) return 0; v24 = *((_DWORD *)this + 187); v14 = (cocos2d::CCObject *)cocos2d::CCNode::create(v13); v29 = 0; v30 = 0; v31 = 0; v15 = v14; v16 = strlen(v10); std::string::__init(&v29, v10, v16); cocos2d::CCDictionary::setObject(v24, v15); std::string::~string((int)&v29); GameLevelManager::getBasePostString((GameLevelManager *)v26); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &a1i2r3e45s789g[9]); v18 = cocos2d::CCString::getCString(v17); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&targetAccountID=%i&requestID=%i&secret=%s", a2, a3, v18); v20 = (char *)cocos2d::CCString::getCString(v19); std::string::append(v26, v20); memset(v27, 0, sizeof(v27)); std::string::__init(v27, "https://www.boomlings.com/database/acceptGJFriendRequest20.php", 0x3Eu); v28[0] = 0; v28[1] = 0; if ( ((int)v26[0] & 1) == 0 ) v21 = (char *)v26 + 1; v28[2] = 0; if ( ((int)v26[0] & 1) != 0 ) v21 = v26[2]; v25 = v21; v22 = strlen(v21); std::string::__init(v28, v25, v22); v29 = 0; v30 = 0; v31 = 0; v23 = strlen(v10); std::string::__init(&v29, v10, v23); GameLevelManager::ProcessHttpRequest(this, v27, (int)v28, (int)&v29, 37); std::string::~string((int)&v29); std::string::~string((int)v28); std::string::~string((int)v27); std::string::~string((int)v26); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source