//
// ASN1_TIME_set_string from 0x7c1210 to 0x7c1298 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x5e4bc
//
// 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_TIME_set_string(int a1, char *a2)
{
int result; // r0
size_t v4; // [sp+0h] [bp-10h] BYREF
int v5; // [sp+4h] [bp-Ch]
char *v6; // [sp+8h] [bp-8h]
int v7; // [sp+Ch] [bp-4h]
v6 = a2;
v7 = 0;
v4 = strlen(a2);
v5 = 23;
if ( ASN1_TIME_check((int)&v4) )
return !a1 || ASN1_STRING_copy(a1, &v4) != 0;
v5 = 24;
if ( (result = ASN1_TIME_check((int)&v4)) != 0 )
return !a1 || ASN1_STRING_copy(a1, &v4) != 0;
return result;
}