//
// MessagesProfilePage::uploadActionFinished from 0x140337940 to 0x140337aa1 (353 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405ab8e8
// > ??> @ 0x1406d5294
//
// 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 MessagesProfilePage::uploadActionFinished(MessagesProfilePage *a1, int a2, int a3)
{
_BYTE *v5; // rbx
unsigned __int64 v6; // r8
void **v7; // rdx
size_t v8; // r8
void *v9; // rcx
__int128 v10; // [rsp+20h] [rbp-58h] BYREF
__int64 v11; // [rsp+30h] [rbp-48h]
__int64 v12; // [rsp+38h] [rbp-40h]
void *Block[2]; // [rsp+48h] [rbp-30h] BYREF
__int64 v14; // [rsp+58h] [rbp-20h]
unsigned __int64 v15; // [rsp+60h] [rbp-18h]
if ( *(_QWORD *)&a1->m_obAnchorPointInPoints.y )
{
*(_OWORD *)Block = 0;
v5 = sub_14003AA10(0x20u);
Block[0] = v5;
v14 = 23;
v6 = 31;
v15 = 31;
strcpy(v5, "Unknown action finished");
if ( a3 == 39 )
{
v14 = 16;
memmove(v5, "Messages removed", 0x10u);
v5[16] = 0;
v6 = v15;
v5 = Block[0];
}
v7 = Block;
if ( v6 > 0xF )
v7 = (void **)v5;
v10 = 0;
v11 = 0;
v12 = 0;
v8 = -1;
do
++v8;
while ( *((_BYTE *)v7 + v8) );
sub_14003A930(&v10, v7, v8);
UploadActionPopup::showSuccessMessage(*(_QWORD *)&a1->m_obAnchorPointInPoints.y, &v10);
if ( v15 > 0xF )
{
v9 = Block[0];
if ( v15 + 1 >= 0x1000 )
{
v9 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v9);
}
}
}