//
// sub_100606B70 from 0x100606b70 to 0x100606c09 (153 bytes)
//
// 1 xrefs:
// > -[AppController applicationDidFinishLaunching:] @ 0x10000773a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall sub_100606B70(__int64 a1)
{
int v1; // ebx
_QWORD *v3; // rax
_QWORD *v4; // rax
_QWORD *v5; // rax
v1 = SteamInternal_SteamAPI_Init("SteamUtils010", 0);
if ( !v1 )
{
v3 = (_QWORD *)SteamInternal_ContextInit(&SteamUtils(void)::s_CallbackCounterAndContext);
*(_QWORD *)(a1 + 408) = (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)*v3 + 72LL))(*v3);
if ( *(_QWORD *)SteamInternal_ContextInit(&SteamUserStats(void)::s_CallbackCounterAndContext) )
{
if ( *(_QWORD *)SteamInternal_ContextInit(&SteamUser(void)::s_CallbackCounterAndContext) )
{
v4 = (_QWORD *)SteamInternal_ContextInit(&SteamUser(void)::s_CallbackCounterAndContext);
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(*(_QWORD *)*v4 + 8LL))(*v4) )
{
v5 = (_QWORD *)SteamInternal_ContextInit(&SteamUserStats(void)::s_CallbackCounterAndContext);
(**(void (__fastcall ***)(_QWORD))*v5)(*v5);
}
}
}
}
return v1 == 0;
}