//
// s2i_ASN1_OCTET_STRING from 0x85b4c8 to 0x85b548 (128 bytes)
//
// 2 xrefs:
// > sub_85B54C @ 0x85b630
// > ??> @ 0x6965c
//
// 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
//
_DWORD *__fastcall s2i_ASN1_OCTET_STRING(int a1, int a2, const char *a3)
{
_DWORD *v4; // r5
unsigned int v5; // r4
_DWORD *result; // r0
int v7; // [sp+Ch] [bp-8h] BYREF
v4 = (_DWORD *)ASN1_OCTET_STRING_new();
if ( v4 )
{
v5 = OPENSSL_hexstr2buf(a3, &v7);
v4[2] = v5;
if ( v5 )
{
result = v4;
*v4 = v7;
}
else
{
ASN1_OCTET_STRING_free((int)v4);
return nullptr;
}
}
else
{
ERR_put_error(34, 112, 65, (int)"crypto/x509v3/v3_skey.c", 40);
return nullptr;
}
return result;
}