//
// sub_10054BD70 from 0x10054bd70 to 0x10054bdda (106 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:32:01 +0000
//
bool __fastcall sub_10054BD70(__int64 a1, _DWORD *a2)
{
__int64 v2; // rax
int v3; // edx
bool v4; // cc
int v5; // edx
unsigned int v6; // ecx
bool result; // al
v2 = GJAccountManager::sharedState(a1, (__int64)a2);
v3 = *(_DWORD *)(v2 + 352);
v4 = v3 <= *(_DWORD *)(v2 + 356);
v5 = v3 - *(_DWORD *)(v2 + 356);
if ( v4 )
return 0;
v6 = a2[437];
if ( (int)v6 <= 0 )
return 0;
result = 1;
if ( v6 <= 0x3E7 )
return (a2[82] - 1640531535 * v5 - a2[83]) % 0x3E8u < v6;
return result;
}