// // MPLobbyLayer::postComment from 0x9ca600 to 0x9ca7ec (492 bytes) // // 2 xrefs: // > MPLobbyLayer::keyDown @ 0x9ca7f8 // > @ 0x76020 // // 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 MPLobbyLayer::postComment(MPLobbyLayer *a1) { unsigned __int8 *v2; // x0 __int64 v3; // x23 GJMultiplayerManager *v4; // x23 unsigned __int8 *v5; // x0 CCTextInputNode *m_commentInput; // x22 unsigned __int8 *v7; // x0 unsigned int *v8; // x1 int v9; // w2 unsigned int *v10; // x1 int v11; // w2 unsigned int *v12; // x1 int v13; // w2 const unsigned __int8 *v14; // [xsp+50h] [xbp+50h] BYREF CCTextInputNode::getString(a1->m_commentInput, (__int64)&v14); v2 = (unsigned __int8 *)(v14 - 24); v3 = *((_QWORD *)v14 - 3); if ( v14 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v14 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)v14 - 2); *((_DWORD *)v14 - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v2); } if ( v3 ) { v4 = GJMultiplayerManager::sharedState(); CCTextInputNode::getString(a1->m_commentInput, (__int64)&v14); GJMultiplayerManager::uploadComment(v4, (const char **)&v14, a1->m_lobbyID); v5 = (unsigned __int8 *)(v14 - 24); if ( v14 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v14 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *((_DWORD *)v14 - 2); *((_DWORD *)v14 - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v5); } m_commentInput = a1->m_commentInput; sub_D153B8((int)&v14, &byte_F288A0); CCTextInputNode::setString(m_commentInput, &v14); v7 = (unsigned __int8 *)(v14 - 24); if ( v14 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v14 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v14 - 2); *((_DWORD *)v14 - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v7); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source