//
// ASN1_TYPE_set1 from 0x864700 to 0x864758 (88 bytes)
//
// 2 xrefs:
// > X509_ATTRIBUTE_set1_data @ 0x83e1f0
// > ??> @ 0x66c4c
//
// 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_TYPE_set1(_DWORD *a1, int a2, const char **a3)
{
bool v3; // zf
int v4; // r4
_DWORD *v5; // r5
v3 = a2 == 1;
if ( a2 != 1 )
v3 = a3 == nullptr;
v4 = a2;
if ( v3 )
goto LABEL_7;
v5 = a1;
if ( a2 == 6 )
{
a3 = OBJ_dup(a3);
if ( a3 )
goto LABEL_6;
}
else
{
a3 = (const char **)ASN1_STRING_dup((int)a3);
if ( a3 )
{
LABEL_6:
a1 = v5;
a2 = v4;
LABEL_7:
ASN1_TYPE_set(a1, a2, (int)a3);
return 1;
}
}
return 0;
}