// // GameLevelManager::friendRequestWasRemoved from 0x140258140 to 0x1402583c5 (645 bytes) // // 4 xrefs: // > GameLevelManager::onDeleteFriendRequestCompleted @ 0x1402556d1 // > GameLevelManager::onAcceptFriendRequestCompleted @ 0x140255c26 // > GameLevelManager::onBlockUserCompleted @ 0x140256b01 // > @ 0x14091c664 // // This function is hookable on this platform (idp: pc, 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 11:28:44 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall GameLevelManager::friendRequestWasRemoved(__int64 a1, unsigned int a2, unsigned __int8 a3) { int v3; // eax char v6; // si int v7; // r15d cocos2d::CCString *v8; // rax char *CString; // rbp char v10; // r14 cocos2d::CCArray *StoredOnlineLevels; // rax cocos2d::CCArray *v12; // rdi unsigned int v13; // ebx void (__fastcall ***v14)(_QWORD, cocos2d::CCArray *, char *); // rcx size_t v15; // r8 void *v16; // rcx int i; // [rsp+34h] [rbp-84h] __int128 v19; // [rsp+58h] [rbp-60h] BYREF __int128 v20; // [rsp+68h] [rbp-50h] v3 = a3; v6 = 1; v7 = 0; for ( i = a3; ; v3 = i ) { v8 = cocos2d::CCString::createWithFormat("%s_%i_%i", "fReq", v3, v7); CString = (char *)cocos2d::CCString::getCString(v8); v10 = 0; StoredOnlineLevels = (cocos2d::CCArray *)GameLevelManager::getStoredOnlineLevels(a1, CString); v12 = StoredOnlineLevels; if ( StoredOnlineLevels ) { v13 = 0; if ( cocos2d::CCArray::count(StoredOnlineLevels) ) { while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(v12, v13) + 98) != a2 ) { if ( ++v13 >= cocos2d::CCArray::count(v12) ) goto LABEL_8; } v10 = 1; v6 = 0; cocos2d::CCArray::removeObjectAtIndex(v12, v13, 1); } LABEL_8: ++v7; if ( v10 ) { v14 = *(void (__fastcall ****)(_QWORD, cocos2d::CCArray *, char *))(a1 + 1504); if ( v14 ) { (**v14)(v14, v12, CString); if ( !cocos2d::CCArray::count(v12) ) { v19 = 0; v20 = 0; v15 = -1; do ++v15; while ( CString[v15] ); sub_14003D230(&v19, CString, v15); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1152), &v19); if ( *((_QWORD *)&v20 + 1) > 0xFu ) { v16 = (void *)v19; if ( (unsigned __int64)(*((_QWORD *)&v20 + 1) + 1LL) >= 0x1000 ) { v16 = *(void **)(v19 - 8); if ( (unsigned __int64)(v19 - (_QWORD)v16 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v16); } } } } } else { v6 = 0; ++v7; } if ( !v6 ) break; } GameLevelManager::purgeFriendRequestSearchCache(a1, a3, a2); if ( !a3 ) GameLevelManager::dropIgnoredRequestLists(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source