//
// sub_1008F7070 from 0x1008f7070 to 0x1008f70e6 (118 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:37:58 +0000
//
bool __fastcall sub_1008F7070(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // rax
int v4; // ecx
__int64 v5; // rax
if ( !*(_QWORD *)(a1 + 1088) )
return 0;
if ( GJAccountManager::sharedState(a1, a2) )
{
v2 = GJAccountManager::sharedState(a1, a2);
if ( *(_DWORD *)(v2 + 352) > *(_DWORD *)(v2 + 356) )
{
v3 = GJAccountManager::sharedState(a1, a2);
v4 = *(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356);
v5 = *(_QWORD *)(a1 + 1088);
if ( v4 == *(_DWORD *)(v5 + 340) && *(int *)(v5 + 316) > 0 )
return *(_DWORD *)(a1 + 1096) != 2;
}
}
return 0;
}