//
// sub_1009903D0 from 0x1009903d0 to 0x10099058a (442 bytes)
//
// 1 xrefs:
// > sub_10098E530 @ 0x10098eca1
//
// 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:39:08 +0000
//
void __fastcall sub_1009903D0(__int64 a1)
{
const char *v1; // rsi
char *v2; // rax
const char *CString; // r15
size_t v4; // rax
size_t v5; // r14
char *v6; // r12
size_t v7; // r13
__int64 v8; // rbx
std::string v9; // [rsp+10h] [rbp-70h] BYREF
_QWORD __dst[2]; // [rsp+28h] [rbp-58h] BYREF
void *v11; // [rsp+38h] [rbp-48h]
void *v12[2]; // [rsp+40h] [rbp-40h] BYREF
void *v13; // [rsp+50h] [rbp-30h]
if ( (*(_BYTE *)(a1 + 1056) & 1) != 0 )
v1 = *(const char **)(a1 + 1072);
else
v1 = (const char *)(a1 + 1057);
v2 = sub_10088E820(
"Mute %s in the moderation queue?\nReports still count, the account just gets no queue row.",
v1);
CString = (const char *)cocos2d::CCString::getCString((__int64)v2);
v4 = strlen(CString);
if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v5 = v4;
if ( v4 >= 0x17 )
{
v7 = 26;
if ( (v4 | 7) != 0x17 )
v7 = (v4 | 7) + 1;
v6 = (char *)operator new(v7);
v11 = v6;
__dst[0] = v7 + 1;
__dst[1] = v5;
goto LABEL_11;
}
LOBYTE(__dst[0]) = 2 * v4;
v6 = (char *)__dst + 1;
if ( v4 )
LABEL_11:
memmove(v6, CString, v5);
v6[v5] = 0;
*(_OWORD *)v12 = 0;
v13 = nullptr;
*(_WORD *)&v9.__r_.__value_.__l.0 = 0;
v8 = sub_1009A4AD0((int)a1 + 1040, 13, (int)"Confirm Mute", &v9, 1);
if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v9.__r_.__value_.__l.__data_);
if ( v12[0] )
{
v12[1] = v12[0];
operator delete(v12[0]);
}
v13 = operator new(0x120u);
v12[0] = (void *)289;
v12[1] = (void *)284;
strcpy(
(char *)v13,
"The player is not told and nothing is blocked. Reports and filter hits still count, the account just stops showing u"
"p in the moderation queue for every moderator. The Account Review still opens from the profile page.\n"
"\n"
"No duration: the mute stays until a moderator unmutes the account.");
sub_1009A59E0(v8, "Queue Mute", v12);
if ( ((__int64)v12[0] & 1) != 0 )
operator delete(v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
if ( (__dst[0] & 1) != 0 )
operator delete(v11);
}