//
// sub_AB186 from 0xab186 to 0xab210 (138 bytes)
//
// 2 xrefs:
// > sub_61B58 @ 0x61df0
// > sub_AB144 @ 0xab182
//
// 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_AB186(_DWORD *a1)
{
int v2; // r0
int v3; // r6
int v4; // r5
int v5; // r0
int (__fastcall *v6)(_DWORD *); // r1
_DWORD v8[2]; // [sp+4h] [bp-1Ch] BYREF
char v9; // [sp+Ch] [bp-14h]
v8[0] = a1[32];
v8[1] = 7;
v9 = 0;
sub_44998((int)v8);
v2 = a1[93];
if ( v2 )
{
v3 = *(unsigned __int8 *)(v2 + 1062);
v4 = v3;
if ( *(_BYTE *)(v2 + 1062) )
v4 = v2 + 532;
if ( *(_BYTE *)(v2 + 530) )
{
*(_WORD *)(v2 + 528) = 0;
*(_DWORD *)(v2 + 524) = 0;
memset((void *)v2, 0, 0x208u);
}
if ( v3 )
{
*(_WORD *)(v4 + 528) = 0;
*(_DWORD *)(v4 + 524) = 0;
memset((void *)v4, 0, 0x208u);
}
}
sub_448CC((int)v8);
v5 = a1[41];
if ( !v5 )
return 0;
v6 = *(int (__fastcall **)(_DWORD *))(v5 + 56);
if ( !v6 )
return 0;
a1[33] = a1;
return v6(a1 + 33);
}