// // GameLevelManager::deleteFriendRequests from 0x3d2bb8 to 0x3d2da6 (494 bytes) // // 4 xrefs: // > GJRequestCell::FLAlert_Clicked @ 0x3397bc // > GameLevelManager::deleteSentFriendRequest @ 0x3d2dd8 // > FriendRequestPopup::onRemove @ 0x4ac73a // > FRequestProfilePage::deleteSelected @ 0x4c22a6 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool GameLevelManager::deleteFriendRequests(GameLevelManager *a1, int a2, cocos2d::CCArray *a3, bool a4) { _BOOL4 v4; // r11 const char *v5; // r7 cocos2d::CCArray *v7; // r5 int v8; // r0 cocos2d::CCString *v10; // r0 char *CString; // r0 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r6 char *v13; // r10 int v14; // r6 cocos2d::CCDictionary *v15; // r6 cocos2d::CCString *v16; // r0 const char *v17; // r0 cocos2d::CCString *v18; // r0 char *v19; // r0 unsigned int i; // r7 int v21; // r11 cocos2d::CCString *v22; // r0 char *v23; // r0 cocos2d::CCNode *v24; // [sp+18h] [bp-2Ch] char *v25; // [sp+2Ch] [bp-18h] BYREF char *v26; // [sp+30h] [bp-14h] BYREF const char *v27; // [sp+34h] [bp-10h] BYREF std::string v28; // [sp+38h] [bp-Ch] BYREF v4 = a4; v5 = (const char *)a2; v7 = a3; if ( a3 ) { if ( cocos2d::CCArray::count(a3) == 1 ) { v8 = cocos2d::CCArray::objectAtIndex(v7, 0); v5 = *(const char **)(v8 + 280); if ( (int)v5 <= 0 ) return 0; v7 = nullptr; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"delFriendReq_%i_%i", *(const char **)(v8 + 280), v4); } else { if ( (int)v5 <= 0 && !cocos2d::CCArray::count(v7) ) return 0; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"delFriendReq_%i_%i", (const char *)0xFFFFFFFF, v4); } } else { if ( a2 <= 0 ) return 0; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"delFriendReq_%i_%i", (const char *)a2, a4); } CString = (char *)cocos2d::CCString::getCString(v10); m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; v13 = CString; sub_776584((int)&v28, CString); v14 = cocos2d::CCDictionary::objectForKey(m_friendReqAndUserBlocks, &v28); sub_774008(&v28); if ( v14 ) return 0; v15 = a1->m_friendReqAndUserBlocks; v24 = cocos2d::CCNode::create(); sub_776584((int)&v28, v13); cocos2d::CCDictionary::setObject((int)v15, v24); sub_774008(&v28); GameLevelManager::getBasePostString((GameLevelManager *)&v25); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)&dword_54 + 3, "mfd", "2893", 103, 98, &aO1i2r3e45s7t89[10]); v17 = cocos2d::CCString::getCString(v16); v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&targetAccountID=%i&isSender=%i&secret=%s", v5, v4, v17); v19 = (char *)cocos2d::CCString::getCString(v18); sub_774544((int)&v25, v19); if ( v7 ) { sub_774544((int)&v25, "&accounts="); for ( i = 0; i < cocos2d::CCArray::count(v7); ++i ) { v21 = cocos2d::CCArray::objectAtIndex(v7, i); if ( i ) sub_774544((int)&v25, ","); v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", *(const char **)(v21 + 280)); v23 = (char *)cocos2d::CCString::getCString(v22); sub_774544((int)&v25, v23); } } sub_776584((int)&v26, "https://www.boomlings.com/database/deleteGJFriendRequests20.php"); sub_776584((int)&v27, v25); sub_776584((int)&v28, v13); GameLevelManager::ProcessHttpRequest(a1, &v26, &v27, (char **)&v28, 30); sub_774008(&v28); sub_774008(&v27); sub_774008(&v26); sub_774008(&v25); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source