// // GameLevelManager::purgeFriendRequestSearchCache from 0x809dc0 to 0x80a06c (684 bytes) // // 4 xrefs: // > GameLevelManager::invalidateRequests @ 0x80a1b4 // > GameLevelManager::invalidateRequests @ 0x80a22c // > GameLevelManager::friendRequestWasRemoved @ 0x80a398 // > @ 0xcd7c8 // // 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::purgeFriendRequestSearchCache( cocos2d::CCDictionary **this, unsigned __int8 a2, int a3) { cocos2d::CCString *v5; // x0 const char *CString; // x0 size_t v7; // x0 __int64 v8; // x0 unsigned int *v9; // x1 cocos2d::CCString **v11; // x22 __int64 v12; // x0 char *v13; // x25 cocos2d::CCString *v14; // x0 const char *v15; // x0 char *v16; // x23 const char *v17; // x1 size_t v18; // x2 cocos2d::CCArray *StoredOnlineLevels; // x20 unsigned int i; // w19 void (__fastcall ***v21)(_QWORD, cocos2d::CCArray *, char *); // x0 size_t v22; // x0 __int64 v23; // x19 size_t v24; // x0 __int64 v25; // x19 char *v26; // [xsp+68h] [xbp+68h] __int64 v27; // [xsp+70h] [xbp+70h] BYREF size_t v28; // [xsp+78h] [xbp+78h] void *v29; // [xsp+80h] [xbp+80h] __int64 v30[2]; // [xsp+88h] [xbp+88h] BYREF void *v31; // [xsp+98h] [xbp+98h] __int64 v32[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v33; // [xsp+B0h] [xbp+B0h] v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"fReqS_%i_", (const char *)a2); CString = (const char *)cocos2d::CCString::getCString(v5); v27 = 0; v26 = (char *)CString; v28 = 0; v29 = nullptr; v7 = strlen(CString); std::string::__init(&v27, v26, v7); v8 = cocos2d::CCDictionary::allKeys(*(this + 130)); if ( v8 ) { v9 = *(unsigned int **)(v8 + 56); if ( *v9 ) { v11 = *((cocos2d::CCString ***)v9 + 2); v12 = 8LL * *v9 - 8; v13 = (char *)v11 + v12; if ( v11 <= (cocos2d::CCString **)((char *)v11 + v12) ) { v14 = *v11; if ( *v11 ) { while ( 1 ) { v15 = (const char *)cocos2d::CCString::getCString(v14); v16 = (char *)v15; if ( (v27 & 1) != 0 ) { v17 = (const char *)v29; v18 = v28; } else { v18 = (unsigned __int8)v27 >> 1; v17 = (char *)&v27 + 1; } if ( !strncmp(v15, v17, v18) ) { if ( a3 <= 0 ) { v30[0] = 0; v30[1] = 0; v31 = nullptr; v24 = strlen(v16); v25 = (__int64)*(this + 130); std::string::__init(v30, v16, v24); cocos2d::CCDictionary::removeObjectForKey(v25, v30); if ( (v30[0] & 1) != 0 ) operator delete(v31); } else { StoredOnlineLevels = (cocos2d::CCArray *)GameLevelManager::getStoredOnlineLevels( (GameLevelManager *)this, v16); if ( StoredOnlineLevels ) { for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(StoredOnlineLevels); ++i ) { if ( a3 == *(_DWORD *)(cocos2d::CCArray::objectAtIndex(StoredOnlineLevels, i) + 376) ) { cocos2d::CCArray::removeObjectAtIndex(StoredOnlineLevels, i, 1); v21 = (void (__fastcall ***)(_QWORD, cocos2d::CCArray *, char *))*(this + 172); if ( v21 ) (**v21)(v21, StoredOnlineLevels, v16); if ( !(unsigned int)cocos2d::CCArray::count(StoredOnlineLevels) ) { v32[0] = 0; v32[1] = 0; v33 = nullptr; v22 = strlen(v16); v23 = (__int64)*(this + 130); std::string::__init(v32, v16, v22); cocos2d::CCDictionary::removeObjectForKey(v23, v32); if ( (v32[0] & 1) != 0 ) operator delete(v33); } break; } } } } } if ( v13 < (char *)++v11 ) break; v14 = *v11; if ( !*v11 ) { if ( (v27 & 1) == 0 ) return _stack_chk_guard; goto LABEL_19; } } } } } } if ( (v27 & 1) != 0 ) LABEL_19: operator delete(v29); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source