// // GameLevelManager::messageWasRemoved from 0x14015baf0 to 0x14015bca3 (435 bytes) // // 2 xrefs: // > GameLevelManager::onDeleteUserMessagesCompleted @ 0x14015ba92 // > @ 0x1406caa4c // // 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 // // Hidden C++ exception states: #wind=1 void GameLevelManager::messageWasRemoved(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 MessageListDelegate *m_messageListDelegate; // 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("messages_%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 ( cocos2d::CCArray::objectAtIndex(v12, v13)[5].m_unknown2 != 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_messageListDelegate = a1->m_messageListDelegate; if ( m_messageListDelegate ) { m_messageListDelegate->loadMessagesFinished(m_messageListDelegate, 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; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source