//
// sub_2B4170 from 0x2b4170 to 0x2b420e (158 bytes)
//
// 2 xrefs:
// > sub_62160C @ 0x62220c
// > sub_62160C @ 0x622c4c
//
// 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
//
int __fastcall sub_2B4170(int a1)
{
int v1; // r3
__int64 v3; // r0
__int64 v4; // r2
int v5; // r2
v1 = a1 + 34560;
v3 = *(_QWORD *)(a1 + 568);
*(_QWORD *)(v1 + 128) = v3;
if ( v3 || *(_DWORD *)(a1 + 1052) )
{
if ( *(_BYTE *)(a1 + 34682) )
off_ABAEB0(*(void **)(a1 + 34684));
v4 = *(_QWORD *)(a1 + 34688);
if ( v4 )
*(_DWORD *)(a1 + 34684) = sub_626FC4("%llu-", v4);
else
*(_DWORD *)(a1 + 34684) = off_ABAEB8(*(const char **)(a1 + 1052));
v5 = *(_DWORD *)(a1 + 34684);
*(_BYTE *)(a1 + 34682) = v5 != 0;
if ( v5 )
{
*(_BYTE *)(a1 + 34681) = 1;
return 0;
}
else
{
return 27;
}
}
else
{
*(_BYTE *)(a1 + 34681) = 0;
return 0;
}
}