//
// SupportLayer::uploadActionFinished from 0x1404c9b00 to 0x1404c9cc3 (451 bytes)
//
// 2 xrefs:
// > ??> @ 0x140621258
// > ??> @ 0x1406dd328
//
// 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=3
void SupportLayer::uploadActionFinished(SupportLayer *a1, int a2, int a3)
{
__int64 v4; // rax
int v5; // ecx
__int128 v6; // [rsp+20h] [rbp-20h] BYREF
__int64 v7; // [rsp+30h] [rbp-10h]
__int64 v8; // [rsp+38h] [rbp-8h]
void *v9; // [rsp+68h] [rbp+28h]
if ( a3 == 43 && *(_QWORD *)&a1->m_nTag )
{
v4 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v9 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v4 = qword_1406C2ED8;
}
v5 = *(_DWORD *)(v4 + 1012) - *(_DWORD *)(v4 + 1016);
if ( v5 == 2 )
{
v6 = 0;
*(_QWORD *)&v6 = sub_14003AA10(0x30u);
v7 = 40;
v8 = 47;
strcpy((char *)v6, "Success! Elder Moderator\naccess granted.");
}
else if ( v5 == 1 )
{
v6 = 0;
*(_QWORD *)&v6 = sub_14003AA10(0x30u);
v7 = 34;
v8 = 47;
strcpy((char *)v6, "Success! Moderator access granted.");
}
else
{
if ( !*(_BYTE *)(v4 + 1024) )
return;
v6 = 0;
*(_QWORD *)&v6 = sub_14003AA10(0x30u);
v7 = 46;
v8 = 47;
strcpy((char *)v6, "Success! Leaderboard Moderator\naccess granted.");
}
UploadActionPopup::showSuccessMessage(*(_QWORD *)&a1->m_nTag, &v6);
}
}