//
// ASN1_GENERALIZEDTIME_set_string from 0xe08edc to 0xe08f74 (152 bytes)
//
// 4 xrefs:
// > OCSP_crlID_new @ 0xdc41f0
// > OCSP_archive_cutoff_new @ 0xdc4300
// > SCT_print @ 0xe7bb48
// > ??> @ 0x6c1c8
//
// 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 ASN1_GENERALIZEDTIME_set_string(__int64 a1, char *a2)
{
int v5[2]; // [xsp+38h] [xbp+38h] BYREF
char *v6; // [xsp+40h] [xbp+40h]
v5[1] = 24;
v5[0] = strlen(a2);
v6 = a2;
if ( !ASN1_GENERALIZEDTIME_check((__int64)v5) )
return 0;
if ( a1 )
{
if ( (unsigned int)ASN1_STRING_set(a1, a2, v5[0]) )
{
*(_DWORD *)(a1 + 4) = 24;
return 1;
}
return 0;
}
return 1;
}