// // GameLevelManager::onDeleteUserMessagesCompleted from 0x6f8278 to 0x6f84e4 (620 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x732654 // > @ 0x4f140 // // 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 // __int64 __fastcall GameLevelManager::onDeleteUserMessagesCompleted(GameLevelManager *a1, const void **a2, char **a3) { const char *v3; // x21 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x23 char *v7; // x0 unsigned int SplitIntFromKey; // w24 int v9; // w25 _DWORD *v10; // x26 _QWORD *v11; // x1 unsigned __int64 v12; // x27 unsigned __int64 v13; // x21 size_t v14; // x2 int v15; // w19 __int64 v16; // x21 __int64 *v17; // x0 UploadActionDelegate *m_uploadActionDelegate; // x0 bool v20; // w2 unsigned int *v21; // x26 int v22; // w1 unsigned int *v23; // x1 int v24; // w2 void *v25; // [xsp+70h] [xbp+70h] BYREF v3 = *a3; m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_D153B8((int)&v25, *a3); cocos2d::CCDictionary::removeObjectForKey(m_friendReqAndUserBlocks, (const std::string *)&v25); v7 = (char *)v25 - 24; if ( (char *)v25 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)((char *)v25 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *((_DWORD *)v25 - 2); *((_DWORD *)v25 - 2) = v24 - 1; } if ( v24 <= 0 ) operator delete(v7); } SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v3, 1); v9 = GameLevelManager::getSplitIntFromKey(a1, v3, 2); sub_D153B8((int)&v25, "-1"); v10 = v25; v11 = *a2; v12 = *((_QWORD *)v25 - 3); v13 = *(v11 - 3); if ( v12 > v13 ) v14 = *(v11 - 3); else v14 = *((_QWORD *)v25 - 3); v15 = memcmp(v11, v25, v14); if ( v15 || (v15 = 0x7FFFFFFF, v16 = v13 - v12, v16 > 0x7FFFFFFF) ) { v17 = (__int64 *)(v10 - 6); if ( v10 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_8; } else { v17 = (__int64 *)(v10 - 6); if ( v16 >= (__int64)0xFFFFFFFF80000000LL ) v15 = v16; else v15 = 0x80000000; if ( v17 == &qword_124B6B0 ) goto LABEL_8; } if ( &pthread_create ) { v21 = v10 - 2; do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *(v10 - 2); *(v10 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v17); LABEL_8: m_uploadActionDelegate = a1->m_uploadActionDelegate; if ( v15 ) { if ( m_uploadActionDelegate ) m_uploadActionDelegate->uploadActionFinished(m_uploadActionDelegate, SplitIntFromKey, 39); v20 = v9 != 0; if ( SplitIntFromKey == -1 ) GameLevelManager::invalidateMessages(a1, v20, 1); else GameLevelManager::messageWasRemoved(a1, SplitIntFromKey, v20); } else if ( m_uploadActionDelegate ) { m_uploadActionDelegate->uploadActionFailed(m_uploadActionDelegate, SplitIntFromKey, 39); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source