// // GameLevelManager::deleteFriendRequests from 0x140160b70 to 0x140160f66 (1014 bytes) // // 6 xrefs: // > GJUserCell::FLAlert_Clicked @ 0x1400bbe34 // > GJRequestCell::FLAlert_Clicked @ 0x1400bd015 // > FRequestProfilePage::deleteSelected @ 0x14013eb9a // > FriendRequestPopup::onRemove @ 0x140296cab // > ProfilePage::FLAlert_Clicked @ 0x1403c4b84 // > @ 0x1406cab60 // // 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 // // Hidden C++ exception states: #wind=5 bool GameLevelManager::deleteFriendRequests(GameLevelManager *a1, int a2, cocos2d::CCArray *a3, bool a4) { BOOL v4; // ebx cocos2d::CCArray *v5; // rsi BOOL v8; // r12d int v9; // edx size_t v10; // rbx cocos2d::CCString *v11; // rax const char *CString; // rax const char *v13; // r14 size_t v14; // r8 __int64 v15; // r15 void *v16; // rcx size_t v18; // r8 __int64 v19; // rax __int64 v20; // rcx cocos2d::CCString *v21; // rax const char *v22; // rax cocos2d::CCString *v23; // rax char *v24; // rax size_t v25; // r8 unsigned int i; // edi struct cocos2d::CCObject *v27; // r15 cocos2d::CCString *v28; // rax char *v29; // rax size_t v30; // r8 size_t v31; // r8 _QWORD *v32; // rdx __int128 v33; // [rsp+40h] [rbp-89h] BYREF __int64 v34; // [rsp+50h] [rbp-79h] __int64 v35; // [rsp+58h] [rbp-71h] __int128 *v36; // [rsp+60h] [rbp-69h] __int128 *v37; // [rsp+68h] [rbp-61h] void *Block[2]; // [rsp+78h] [rbp-51h] BYREF __int128 v39; // [rsp+88h] [rbp-41h] __int128 v40; // [rsp+98h] [rbp-31h] BYREF __int128 v41; // [rsp+A8h] [rbp-21h] _QWORD Src[4]; // [rsp+B8h] [rbp-11h] BYREF v4 = a4; v5 = a3; if ( a3 && cocos2d::CCArray::count(a3) == 1 ) { a2 = (int)cocos2d::CCArray::objectAtIndex(v5, 0)[7].__vftable; v5 = nullptr; } if ( a2 <= 0 && (!v5 || !cocos2d::CCArray::count(v5)) ) return 0; v8 = v4; v9 = a2; v10 = -1; if ( v5 ) v9 = -1; v11 = cocos2d::CCString::createWithFormat("delFriendReq_%i_%i", v9, v8); CString = cocos2d::CCString::getCString(v11); v13 = CString; *(_OWORD *)Block = 0; v39 = 0; v14 = -1; do ++v14; while ( CString[v14] ); sub_14003A930(Block, CString, v14); v15 = cocos2d::CCDictionary::objectForKey(a1->m_friendReqAndUserBlocks, Block); if ( *((_QWORD *)&v39 + 1) > 0xFu ) { v16 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v39 + 1) + 1LL) >= 0x1000 ) { v16 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v16); } if ( v15 ) return 0; v40 = 0; v41 = 0; v18 = -1; do ++v18; while ( v13[v18] ); sub_14003A930(&v40, v13, v18); v19 = cocos2d::CCNode::create(); cocos2d::CCDictionary::setObject(a1->m_friendReqAndUserBlocks, v19, &v40); sub_14003A830((__int64)&v40); GameLevelManager::getBasePostString(v20, Src); v21 = cocos2d::CCString::createWithFormat("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, (const char *)&word_140531E88); v22 = cocos2d::CCString::getCString(v21); v23 = cocos2d::CCString::createWithFormat("&targetAccountID=%i&isSender=%i&secret=%s", a2, v8, v22); v24 = (char *)cocos2d::CCString::getCString(v23); v25 = -1; do ++v25; while ( v24[v25] ); sub_140041270(Src, v24, v25); if ( v5 ) { sub_140041270(Src, "&accounts=", 0xAu); for ( i = 0; i < cocos2d::CCArray::count(v5); ++i ) { v27 = cocos2d::CCArray::objectAtIndex(v5, i); if ( i ) sub_140041270(Src, ",", 1u); v28 = cocos2d::CCString::createWithFormat("%i", LODWORD(v27[7].__vftable)); v29 = (char *)cocos2d::CCString::getCString(v28); v30 = -1; do ++v30; while ( v29[v30] ); sub_140041270(Src, v29, v30); } } v36 = &v33; v37 = &v40; v33 = 0; v34 = 0; v35 = 0; v31 = -1; do ++v31; while ( v13[v31] ); sub_14003A930(&v33, v13, v31); v32 = Src; if ( Src[3] > 0xFu ) v32 = (_QWORD *)Src[0]; v40 = 0; v41 = 0u; do ++v10; while ( *((_BYTE *)v32 + v10) ); sub_14003A930(&v40, v32, v10); *(_OWORD *)Block = 0; *(_QWORD *)&v39 = 0; *((_QWORD *)&v39 + 1) = 15; Block[0] = sub_14003AA10(0x40u); *(_QWORD *)&v39 = 63; *((_QWORD *)&v39 + 1) = 63; strcpy((char *)Block[0], "https://www.boomlings.com/database/deleteGJFriendRequests20.php"); GameLevelManager::ProcessHttpRequest(a1, (__int64)Block, (const char *)&v40, (const char *)&v33, 30); sub_14003A830((__int64)Src); return 1; }