//
// FriendsProfilePage::onSendMessage from 0x100736b30 to 0x100736bac (124 bytes)
//
// 1 xrefs:
// > FriendsProfilePage::mountVirtualRow @ 0x10073653d
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:36:25 +0000
//
void __fastcall FriendsProfilePage::onSendMessage(__int64 a1, __int64 a2)
{
__int64 v2; // rax
int v3; // ebx
__int64 v4; // rax
__int128 v5; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 640LL))(a2);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 376);
if ( v3 > 0 )
{
if ( (*(_BYTE *)(v2 + 320) & 1) != 0 )
{
sub_10001AD30(&v5, *(const void **)(v2 + 336), *(_QWORD *)(v2 + 328));
}
else
{
v4 = v2 + 320;
__p = *(void **)(v4 + 16);
v5 = *(_OWORD *)v4;
}
ThreadOpenHelper::check((unsigned int)v3, &v5);
if ( (v5 & 1) != 0 )
operator delete(__p);
}
}
}