//
// FriendRequestPopup::uploadActionFailed from 0x1403a30e0 to 0x1403a31ac (204 bytes)
//
// 2 xrefs:
// > ??> @ 0x14077ae40
// > ??> @ 0x140923678
//
// 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 11:31:18 +0000
//
char __fastcall FriendRequestPopup::uploadActionFailed(__int64 a1, int a2)
{
__int64 v2; // rax
__int128 v5; // [rsp+20h] [rbp-28h] BYREF
__int64 v6; // [rsp+30h] [rbp-18h]
__int64 v7; // [rsp+38h] [rbp-10h]
v2 = *(_QWORD *)(a1 + 32);
if ( v2 && (*(_DWORD *)(v2 + 320) == a2 || *(_DWORD *)(v2 + 324) == a2) )
{
if ( *(_QWORD *)(a1 + 56) )
{
v5 = 0;
*(_QWORD *)&v5 = sub_14003D460(0x20u);
v6 = 31;
v7 = 31;
strcpy((char *)v5, "Failed. Please try again later.");
LOBYTE(v2) = UploadActionPopup::showFailMessageOrDismiss(*(_QWORD *)(a1 + 56), (__int64)&v5);
if ( (_BYTE)v2 )
*(_QWORD *)(a1 + 56) = 0;
}
}
return v2;
}