// // GameLevelManager::friendRequestWasRemoved from 0x80a27c to 0x80a450 (468 bytes) // // 4 xrefs: // > GameLevelManager::onDeleteFriendRequestCompleted @ 0x80e3a4 // > GameLevelManager::onAcceptFriendRequestCompleted @ 0x80e580 // > GameLevelManager::onBlockUserCompleted @ 0x80e958 // > @ 0xc0d18 // // 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:54:47 +0000 // __int64 __fastcall GameLevelManager::friendRequestWasRemoved(GameLevelManager *this, int a2, unsigned __int8 a3) { int v5; // w26 unsigned int v6; // w25 char *FriendRequestKey; // x24 cocos2d::CCArray *StoredOnlineLevels; // x20 unsigned int i; // w19 void (__fastcall ***v10)(_QWORD, cocos2d::CCArray *, char *); // x0 size_t v12; // x0 __int64 v13; // x19 __int64 v14; // [xsp+60h] [xbp+60h] BYREF __int64 v15; // [xsp+68h] [xbp+68h] void *v16; // [xsp+70h] [xbp+70h] v5 = a3; v6 = 0; LABEL_2: v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, &byte_11B8890, 0); FriendRequestKey = (char *)GameLevelManager::getFriendRequestKey((__int64)this, v5, v6, (unsigned __int8 *)&v14, 0); if ( (v14 & 1) != 0 ) operator delete(v16); StoredOnlineLevels = (cocos2d::CCArray *)GameLevelManager::getStoredOnlineLevels(this, FriendRequestKey); if ( StoredOnlineLevels ) { for ( i = 0; ; ++i ) { if ( i >= (unsigned int)cocos2d::CCArray::count(StoredOnlineLevels) ) { ++v6; goto LABEL_2; } if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(StoredOnlineLevels, i) + 376) == a2 ) break; } cocos2d::CCArray::removeObjectAtIndex(StoredOnlineLevels, i, 1); v10 = *((void (__fastcall ****)(_QWORD, cocos2d::CCArray *, char *))this + 172); if ( v10 ) { (**v10)(v10, StoredOnlineLevels, FriendRequestKey); if ( !(unsigned int)cocos2d::CCArray::count(StoredOnlineLevels) ) { v14 = 0; v15 = 0; v16 = nullptr; v12 = strlen(FriendRequestKey); v13 = *((_QWORD *)this + 130); std::string::__init(&v14, FriendRequestKey, v12); cocos2d::CCDictionary::removeObjectForKey(v13, &v14); if ( (v14 & 1) != 0 ) operator delete(v16); } } } GameLevelManager::purgeFriendRequestSearchCache((cocos2d::CCDictionary **)this, v5, a2); if ( !v5 ) GameLevelManager::dropIgnoredRequestLists((cocos2d::CCDictionary **)this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source