// // GameLevelManager::acceptFriendRequest from 0x829718 to 0x829a38 (800 bytes) // // 2 xrefs: // > FriendRequestPopup::onAccept @ 0xa287d0 // > @ 0xeb3a8 // // 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:55:05 +0000 // __int64 __fastcall GameLevelManager::acceptFriendRequest(GameLevelManager *this, const char *a2, int a3) { unsigned int v3; // w20 cocos2d::CCString *v6; // x0 const char *CString; // x0 char *v8; // x24 size_t v9; // x0 __int64 v10; // x25 __int64 v11; // x25 cocos2d::CCNode *v12; // x0 __int64 v14; // x26 cocos2d::CCObject *v15; // x25 size_t v16; // x0 cocos2d::CCString *v17; // x0 __int64 v18; // x0 cocos2d::CCString *v19; // x0 size_t v20; // x0 const char *v21; // x1 size_t v22; // x0 size_t v23; // x0 char *v24; // [xsp+58h] [xbp+58h] char *v25; // [xsp+58h] [xbp+58h] __int64 v26[2]; // [xsp+68h] [xbp+68h] BYREF void *v27; // [xsp+78h] [xbp+78h] __int64 v28[2]; // [xsp+80h] [xbp+80h] BYREF void *v29; // [xsp+90h] [xbp+90h] __int64 v30[2]; // [xsp+98h] [xbp+98h] BYREF void *v31; // [xsp+A8h] [xbp+A8h] __int64 v32; // [xsp+B0h] [xbp+B0h] BYREF __int64 v33; // [xsp+B8h] [xbp+B8h] void *v34; // [xsp+C0h] [xbp+C0h] v3 = (unsigned int)a2; if ( (int)a2 <= 0 || a3 <= 0 ) return 0; v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"accFriendReq_%i_%i", a2); CString = (const char *)cocos2d::CCString::getCString(v6); v32 = 0; v8 = (char *)CString; v33 = 0; v34 = nullptr; v9 = strlen(CString); v10 = *((_QWORD *)this + 136); std::string::__init(&v32, v8, v9); v11 = cocos2d::CCDictionary::objectForKey(v10, &v32); v12 = (cocos2d::CCNode *)(unsigned __int8)v32; if ( (v32 & 1) != 0 ) { operator delete(v34); if ( v11 ) return 0; } else if ( v11 ) { return 0; } v14 = *((_QWORD *)this + 136); v15 = (cocos2d::CCObject *)cocos2d::CCNode::create(v12); v32 = 0; v33 = 0; v34 = nullptr; v16 = strlen(v8); std::string::__init(&v32, v8, v16); cocos2d::CCDictionary::setObject(v14, v15); if ( (v32 & 1) != 0 ) operator delete(v34); GameLevelManager::getBasePostString(v26); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); v18 = cocos2d::CCString::getCString(v17); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&targetAccountID=%i&requestID=%i&secret=%s", (const char *)v3, (unsigned int)a3, v18); v24 = (char *)cocos2d::CCString::getCString(v19); v20 = strlen(v24); std::string::append((__int64)v26, v24, v20); v28[0] = 0; v28[1] = 0; v29 = nullptr; std::string::__init(v28, "https://www.boomlings.com/database/acceptGJFriendRequest20.php", 0x3Eu); v21 = (char *)v26 + 1; if ( (v26[0] & 1) != 0 ) v21 = (const char *)v27; v25 = (char *)v21; v30[0] = 0; v30[1] = 0; v31 = nullptr; v22 = strlen(v21); std::string::__init(v30, v25, v22); v32 = 0; v33 = 0; v34 = nullptr; v23 = strlen(v8); std::string::__init(&v32, v8, v23); GameLevelManager::ProcessHttpRequest(this, v28, (__int64)v30, (char *)&v32, 37); if ( (v32 & 1) != 0 ) operator delete(v34); if ( (v30[0] & 1) != 0 ) operator delete(v31); if ( (v28[0] & 1) != 0 ) operator delete(v29); if ( (v26[0] & 1) != 0 ) operator delete(v27); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source