//
// ASN1_GENERALIZEDTIME_set_string from 0x860eec to 0x860f64 (120 bytes)
//
// 4 xrefs:
// > OCSP_crlID_new @ 0x81e634
// > OCSP_archive_cutoff_new @ 0x81e72c
// > SCT_print @ 0x8cfe88
// > ??> @ 0x64bec
//
// 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_GENERALIZEDTIME_set_string(signed int *a1, char *a2)
{
int v5[4]; // [sp+0h] [bp-10h] BYREF
v5[1] = 24;
v5[2] = (int)a2;
v5[0] = strlen(a2);
if ( !ASN1_GENERALIZEDTIME_check(v5) )
return 0;
if ( !a1 )
return 1;
if ( !ASN1_STRING_set(a1, a2, v5[0]) )
return 0;
a1[1] = 24;
return 1;
}