//
// ASN1_GENERALIZEDTIME_set_string from 0x10871dc to 0x1087274 (152 bytes)
//
// 4 xrefs:
// > OCSP_crlID_new @ 0x1042550
// > OCSP_archive_cutoff_new @ 0x1042660
// > SCT_print @ 0x10f9b48
// > ??> @ 0x920f8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:17:13 +0000
//
__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;
}