// // GameLevelManager::friendRequestWasRemoved from 0x1401633a0 to 0x140163553 (435 bytes) // // 4 xrefs: // > GameLevelManager::onDeleteFriendRequestCompleted @ 0x140161135 // > GameLevelManager::onAcceptFriendRequestCompleted @ 0x14016163b // > GameLevelManager::onBlockUserCompleted @ 0x1401623ac // > @ 0x1406cac38 // // 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 // void GameLevelManager::friendRequestWasRemoved(GameLevelManager *a1, int a2, bool a3) { char v5; // si int v6; // r12d BOOL v7; // eax cocos2d::CCString *v8; // rax const char *CString; // rbp char v10; // r14 cocos2d::CCArray *StoredOnlineLevels; // rax cocos2d::CCArray *v12; // rdi unsigned int v13; // ebx FriendRequestDelegate *m_friendRequestDelegate; // rcx size_t v15; // r8 void *v16; // rcx BOOL i; // [rsp+20h] [rbp-68h] __int128 v18; // [rsp+28h] [rbp-60h] BYREF __int64 v19; // [rsp+38h] [rbp-50h] unsigned __int64 v20; // [rsp+40h] [rbp-48h] v5 = 1; v6 = 0; v7 = a3; for ( i = a3; ; v7 = i ) { v8 = cocos2d::CCString::createWithFormat("fReq_%i_%i", v7, v6); CString = cocos2d::CCString::getCString(v8); v10 = 0; StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(a1, CString); v12 = StoredOnlineLevels; if ( !StoredOnlineLevels ) break; v13 = 0; if ( cocos2d::CCArray::count(StoredOnlineLevels) ) { while ( LODWORD(cocos2d::CCArray::objectAtIndex(v12, v13)[7].__vftable) != a2 ) { if ( ++v13 >= cocos2d::CCArray::count(v12) ) goto LABEL_8; } v10 = 1; v5 = 0; cocos2d::CCArray::removeObjectAtIndex(v12, v13, 1); } LABEL_8: ++v6; if ( v10 ) { m_friendRequestDelegate = a1->m_friendRequestDelegate; if ( m_friendRequestDelegate ) { m_friendRequestDelegate->loadFRequestsFinished(m_friendRequestDelegate, v12, CString); if ( !cocos2d::CCArray::count(v12) ) { v18 = 0; v19 = 0; v20 = 0; v15 = -1; do ++v15; while ( CString[v15] ); sub_14003A930(&v18, CString, v15); cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, &v18); if ( v20 > 0xF ) { v16 = (void *)v18; if ( v20 + 1 >= 0x1000 ) { v16 = *(void **)(v18 - 8); if ( (unsigned __int64)(v18 - (_QWORD)v16 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v16); } } } } if ( !v5 ) break; } }