//
// ThreadOpenHelper::showRulesOnce from 0x1400f3fd0 to 0x1400f41c7 (503 bytes)
//
// 3 xrefs:
// > MessageThreadsPage::show @ 0x1400d91b8
// > NewThreadPopup::show @ 0x1400f3d88
// > ??> @ 0x1409151b8
//
// 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:26:37 +0000
//
// Hidden C++ exception states: #wind=3
__int64 ThreadOpenHelper::showRulesOnce()
{
__int64 v0; // rcx
__int64 result; // rax
__int64 v2; // r8
__int64 v3; // rcx
_QWORD *v4; // r8
_OWORD *v5; // rcx
const char *v6; // rax
__int64 v7; // rdx
__int64 v8; // rax
cocos2d::CCObject *v9; // rbx
__int128 v10; // [rsp+50h] [rbp-48h] BYREF
__int64 v11; // [rsp+60h] [rbp-38h]
__int64 v12; // [rsp+68h] [rbp-30h]
_BYTE v13[40]; // [rsp+70h] [rbp-28h] BYREF
void *v14; // [rsp+A0h] [rbp+8h]
void *v15; // [rsp+A0h] [rbp+8h]
v0 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v14 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v14);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v0 = qword_14090BFD0;
}
result = GameManager::getGameVariable(v0, "0246");
if ( !(_BYTE)result )
{
v3 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v15 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v15);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v3 = qword_14090BFD0;
}
LOBYTE(v2) = 1;
GameManager::setGameVariable(v3, "0246", v2);
v10 = 0;
v4 = sub_14003D460(0x1B0u);
*(_QWORD *)&v10 = v4;
v11 = 424;
v12 = 431;
v5 = v4;
v6 = "1. Do not harass, threaten, or bully other players.\n"
"2. Do not share personal info such as your address, passwords, or contact details.\n"
"3. Do not spam, scam, or send inappropriate content.\n"
"4. Do not try to bypass filters or safety systems.\n"
"Messages are filtered automatically and may be reviewed when reported or flagged for safety.\n"
"Report or Block users who break these rules.";
v7 = 3;
do
{
*v5 = *(_OWORD *)v6;
v5[1] = *((_OWORD *)v6 + 1);
v5[2] = *((_OWORD *)v6 + 2);
v5[3] = *((_OWORD *)v6 + 3);
v5[4] = *((_OWORD *)v6 + 4);
v5[5] = *((_OWORD *)v6 + 5);
v5[6] = *((_OWORD *)v6 + 6);
v5 += 8;
*(v5 - 1) = *((_OWORD *)v6 + 7);
v6 += 128;
--v7;
}
while ( v7 );
*v5 = *(_OWORD *)v6;
v5[1] = *((_OWORD *)v6 + 1);
*((_QWORD *)v5 + 4) = *((_QWORD *)v6 + 4);
*((_BYTE *)v4 + 424) = 0;
v8 = sub_14003F4F0((__int64)v13, (__int64)&v10);
v9 = FLAlertLayer::create(0, (int)&qword_1407263D8, v8, (__int64)"OK", 0, 1136525312, 0, 0, 1065353216);
sub_14003D310((__int64)&v10);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 1064LL))(v9);
}
return result;
}