// // GameLevelManager::deleteFriendRequests from 0x8292f0 to 0x82970c (1052 bytes) // // 4 xrefs: // > GameLevelManager::deleteSentFriendRequest @ 0x829714 // > FriendRequestPopup::onRemove @ 0xa28724 // > FRequestProfilePage::deleteSelected @ 0xa4d410 // > @ 0x98ba8 // // 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::deleteFriendRequests( GameLevelManager *this, __int64 a2, cocos2d::CCArray *a3, unsigned __int8 a4) { cocos2d::CCArray *v5; // x20 int v6; // w19 unsigned int v7; // w23 cocos2d::CCString *v8; // x0 const char *CString; // x0 char *v10; // x26 size_t v11; // x0 __int64 v12; // x22 __int64 v13; // x22 __int64 result; // x0 __int64 v15; // x27 cocos2d::CCObject *v16; // x22 size_t v17; // x0 cocos2d::CCString *v18; // x0 __int64 v19; // x0 cocos2d::CCString *v20; // x0 size_t v21; // x0 unsigned int i; // w19 __int64 v23; // x28 cocos2d::CCString *v24; // x0 size_t v25; // x0 const char *v26; // x1 size_t v27; // x0 size_t v28; // x0 char *v29; // [xsp+68h] [xbp+68h] char *v30; // [xsp+68h] [xbp+68h] char *v31; // [xsp+68h] [xbp+68h] __int64 v32[2]; // [xsp+78h] [xbp+78h] BYREF void *v33; // [xsp+88h] [xbp+88h] __int64 v34[2]; // [xsp+90h] [xbp+90h] BYREF void *v35; // [xsp+A0h] [xbp+A0h] __int64 v36[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v37; // [xsp+B8h] [xbp+B8h] __int64 v38; // [xsp+C0h] [xbp+C0h] BYREF __int64 v39; // [xsp+C8h] [xbp+C8h] void *v40; // [xsp+D0h] [xbp+D0h] v5 = a3; v6 = a2; v7 = a4; if ( a3 ) { if ( (unsigned int)cocos2d::CCArray::count(a3) != 1 ) { if ( v6 <= 0 && !(unsigned int)cocos2d::CCArray::count(v5) ) return 0; a2 = 0xFFFFFFFFLL; goto LABEL_5; } v6 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v5, 0) + 376); if ( v6 > 0 ) { v5 = nullptr; v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"delFriendReq_%i_%i", (const char *)(unsigned int)v6, v7); goto LABEL_6; } return 0; } if ( (int)a2 <= 0 ) return 0; LABEL_5: v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"delFriendReq_%i_%i", (const char *)a2, v7); LABEL_6: CString = (const char *)cocos2d::CCString::getCString(v8); v38 = 0; v10 = (char *)CString; v39 = 0; v40 = nullptr; v11 = strlen(CString); v12 = *((_QWORD *)this + 136); std::string::__init(&v38, v10, v11); v13 = cocos2d::CCDictionary::objectForKey(v12, &v38); if ( (v38 & 1) != 0 ) operator delete(v40); result = 0; if ( !v13 ) { v15 = *((_QWORD *)this + 136); v16 = (cocos2d::CCObject *)cocos2d::CCNode::create(nullptr); v38 = 0; v39 = 0; v40 = nullptr; v17 = strlen(v10); std::string::__init(&v38, v10, v17); cocos2d::CCDictionary::setObject(v15, v16); if ( (v38 & 1) != 0 ) operator delete(v40); GameLevelManager::getBasePostString(v32); v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); v19 = cocos2d::CCString::getCString(v18); v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&targetAccountID=%i&isSender=%i&secret=%s", (const char *)(unsigned int)v6, v7, v19); v29 = (char *)cocos2d::CCString::getCString(v20); v21 = strlen(v29); std::string::append((__int64)v32, v29, v21); if ( v5 ) { std::string::append((__int64)v32, "&accounts=", 0xAu); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v5); ++i ) { v23 = cocos2d::CCArray::objectAtIndex(v5, i); if ( i ) std::string::append((__int64)v32, &byte_1169BE0, 1u); v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(v23 + 376)); v30 = (char *)cocos2d::CCString::getCString(v24); v25 = strlen(v30); std::string::append((__int64)v32, v30, v25); } } v34[0] = 0; v34[1] = 0; v35 = nullptr; std::string::__init(v34, "https://www.boomlings.com/database/deleteGJFriendRequests20.php", 0x3Fu); v26 = (char *)v32 + 1; if ( (v32[0] & 1) != 0 ) v26 = (const char *)v33; v31 = (char *)v26; v36[0] = 0; v36[1] = 0; v37 = nullptr; v27 = strlen(v26); std::string::__init(v36, v31, v27); v38 = 0; v39 = 0; v40 = nullptr; v28 = strlen(v10); std::string::__init(&v38, v10, v28); GameLevelManager::ProcessHttpRequest(this, v34, (__int64)v36, (char *)&v38, 36); if ( (v38 & 1) != 0 ) operator delete(v40); if ( (v36[0] & 1) != 0 ) operator delete(v37); if ( (v34[0] & 1) != 0 ) operator delete(v35); if ( (v32[0] & 1) != 0 ) operator delete(v33); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source