//
// sub_100990250 from 0x100990250 to 0x100990367 (279 bytes)
//
// 1 xrefs:
// > sub_10098E530 @ 0x10098ec27
//
// 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_100990250(__int64 a1)
{
char v1; // al
__int64 v2; // rsi
char *v3; // rax
__int64 v4; // rsi
const std::string::value_type *CString; // rax
__int64 v6; // rax
std::string v7; // [rsp+18h] [rbp-58h] BYREF
void *v8[2]; // [rsp+30h] [rbp-40h]
__int64 v9; // [rsp+40h] [rbp-30h]
std::string v10; // [rsp+50h] [rbp-20h] BYREF
memset(&v10, 0, sizeof(v10));
v1 = *(_BYTE *)(a1 + 1056);
if ( *(_DWORD *)(a1 + 1092) == 2 )
{
if ( (v1 & 1) != 0 )
v2 = *(_QWORD *)(a1 + 1072);
else
v2 = a1 + 1057;
v3 = sub_10088E820("Lift the Trending ban for %s?", v2);
}
else
{
if ( (v1 & 1) != 0 )
v4 = *(_QWORD *)(a1 + 1072);
else
v4 = a1 + 1057;
v3 = sub_10088E820(
"Allow %s on Trending?\nOnly creators with a rated or sent level trend by default.",
v4);
}
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v3);
std::string::assign(&v10, CString);
*(_OWORD *)v8 = 0;
v9 = 0;
*(_WORD *)&v7.__r_.__value_.__l.0 = 0;
v6 = sub_1009A4AD0((int)a1 + 1040, 10, (int)"Confirm Allow", &v7, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v7.__r_.__value_.__l.__data_);
if ( v8[0] )
{
v8[1] = v8[0];
operator delete(v8[0]);
}
if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v10.__r_.__value_.__l.__data_);
}