//
// ASN1_STRING_clear_free from 0x7c2d58 to 0x7c2da0 (72 bytes)
//
// 8 xrefs:
// > sub_7DE054 @ 0x7de0d4
// > sub_7DE054 @ 0x7de134
// > sub_7DE1CC @ 0x7de258
// > sub_7DE1CC @ 0x7de308
// > sub_7E102C @ 0x7e10b0
// > sub_7E102C @ 0x7e110c
// > sub_7E11C4 @ 0x7e1284
// > ??> @ 0x5e7bc
//
// 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 ASN1_STRING_clear_free(int result)
{
unsigned int *v1; // r4
_BYTE *v2; // r0
if ( result )
{
v1 = (unsigned int *)result;
v2 = *(_BYTE **)(result + 8);
if ( v2 && (v1[3] & 0x10) == 0 )
{
OPENSSL_cleanse(v2, *v1);
return ASN1_STRING_free((int)v1);
}
else
{
return ASN1_STRING_free((int)v1);
}
}
return result;
}