// // GameLevelManager::invalidateRequests from 0x140163560 to 0x1401636ae (334 bytes) // // 7 xrefs: // > FRequestProfilePage::onUpdate @ 0x14013e745 // > GameLevelManager::onDeleteFriendRequestCompleted @ 0x140161126 // > ProfilePage::init @ 0x1403bea30 // > ProfilePage::init @ 0x1403bea74 // > ProfilePage::onUpdate @ 0x1403bfb96 // > ProfilePage::onUpdate @ 0x1403bfbda // > @ 0x1406cac44 // // 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::invalidateRequests(GameLevelManager *a1, bool a2, bool a3) { BOOL v4; // r14d char v6; // di int v7; // ebx cocos2d::CCString *v8; // rax const char *CString; // rax size_t v10; // r8 const char *v11; // rdx void *v12; // rcx FriendRequestDelegate *m_friendRequestDelegate; // rcx __int128 v14; // [rsp+20h] [rbp-58h] BYREF __int64 v15; // [rsp+30h] [rbp-48h] unsigned __int64 v16; // [rsp+38h] [rbp-40h] v4 = a2; v6 = 1; v7 = 0; do { v8 = cocos2d::CCString::createWithFormat("fReq_%i_%i", v4, v7); CString = cocos2d::CCString::getCString(v8); v14 = 0; v15 = 0; v16 = 0; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003A930(&v14, CString, v10); v11 = (const char *)&v14; if ( v16 > 0xF ) v11 = (const char *)v14; if ( GameLevelManager::getStoredOnlineLevels(a1, v11) ) cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, &v14); else v6 = 0; ++v7; if ( v16 > 0xF ) { v12 = (void *)v14; if ( v16 + 1 >= 0x1000 ) { v12 = *(void **)(v14 - 8); if ( (unsigned __int64)(v14 - (_QWORD)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v12); } } while ( v6 ); if ( a3 ) { m_friendRequestDelegate = a1->m_friendRequestDelegate; if ( m_friendRequestDelegate ) m_friendRequestDelegate->forceReloadRequests(m_friendRequestDelegate, v4); } }