//
// sub_1008879E0 from 0x1008879e0 to 0x100887aca (234 bytes)
//
// 1 xrefs:
// > sub_10037CA80 @ 0x10037ca85
//
// 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:36:59 +0000
//
void sub_1008879E0()
{
__int64 v0; // rdi
unsigned int IntGameVariable; // eax
unsigned int v2; // ebx
int v3; // eax
__int64 v4; // rax
__int64 v5; // rdi
int v6; // eax
int v7; // r14d
__int64 v8; // rax
__int64 v9; // rax
char *v10; // rax
__int64 v11; // rax
if ( !byte_100BE6BD0 )
{
v0 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v0, "0227");
if ( IntGameVariable <= 4 )
{
v2 = IntGameVariable;
v3 = 26;
if ( _bittest(&v3, v2) )
{
v4 = GJAccountManager::sharedState(v0, (__int64)"0227");
if ( *(_DWORD *)(v4 + 352) > *(_DWORD *)(v4 + 356) )
{
if ( v2 == 3
&& (v5 = GameManager::sharedState(), v6 = GameManager::getIntGameVariable(v5, "0244"), v6 > 0)
&& (v7 = v6,
v8 = GJAccountManager::sharedState(v5, (__int64)"0244"),
*(_DWORD *)(v8 + 352) > *(_DWORD *)(v8 + 356))
&& (v9 = GJAccountManager::sharedState(v5, (__int64)"0244"),
v7 != *(_DWORD *)(v9 + 352) - *(_DWORD *)(v9 + 356)) )
{
v11 = GameManager::sharedState();
GameManager::setIntGameVariable(v11, "0227");
}
else if ( PlatformToolbox::isNetworkAvailable() )
{
byte_100BE6BD0 = 1;
v10 = ParentalPrivacyPopup::create(v2 == 3);
(*(void (__fastcall **)(char *))(*(_QWORD *)v10 + 1312LL))(v10);
}
}
}
}
}
}