//
// s2i_ASN1_OCTET_STRING from 0xe01d24 to 0xe01da4 (128 bytes)
//
// 2 xrefs:
// > sub_E01DA4 @ 0xe01e80
// > ??> @ 0x4bb40
//
// 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
//
__int64 __fastcall s2i_ASN1_OCTET_STRING(__int64 a1, __int64 a2, const char *a3)
{
__int64 v3; // x19
void *v4; // x20
__int64 result; // x0
__int64 v7; // [xsp+38h] [xbp+38h] BYREF
v3 = ASN1_OCTET_STRING_new();
if ( v3 )
{
v4 = OPENSSL_hexstr2buf(a3, &v7);
*(_QWORD *)(v3 + 8) = v4;
result = v3;
if ( v4 )
{
*(_DWORD *)v3 = v7;
}
else
{
ASN1_OCTET_STRING_free(v3);
return 0;
}
}
else
{
ERR_put_error(34, 112, 65, (__int64)"crypto/x509v3/v3_skey.c", 40);
return 0;
}
return result;
}