//
// sub_100990D00 from 0x100990d00 to 0x100990eb4 (436 bytes)
//
// 0 xrefs:
//
// 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_100990D00(__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; // [rsp+40h] [rbp-40h] BYREF
__int64 v13; // [rsp+48h] [rbp-38h]
void *v14; // [rsp+50h] [rbp-30h]
if ( (*(_BYTE *)(a1 + 1056) & 1) != 0 )
v1 = *(const char **)(a1 + 1072);
else
v1 = (const char *)(a1 + 1057);
v2 = sub_10088E820(
"Lock the username of %s?\nThey can no longer change it on the website until unlocked.",
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;
sub_100964940((__int64)&v12);
*(_WORD *)&v9.__r_.__value_.__l.0 = 0;
v8 = sub_1009A4AD0((int)a1 + 1040, 11, (int)"Confirm Lock", &v9, 1);
if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v9.__r_.__value_.__l.__data_);
if ( v12 )
{
v13 = (__int64)v12;
operator delete(v12);
}
v14 = operator new(0xE0u);
v12 = (void *)225;
v13 = 222;
strcpy(
(char *)v14,
"The website tells the player their username is permanently locked. The reason and categories only go to the moderato"
"r log.\n"
"\n"
"No duration: the lock survives the weekly name change reset until a moderator unlocks the account.");
sub_1009A59E0(v8, "Name Lock", &v12);
if ( ((unsigned __int8)v12 & 1) != 0 )
operator delete(v14);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
if ( (__dst[0] & 1) != 0 )
operator delete(v11);
}