//
// ASN1_UTCTIME_print from 0xfe64f0 to 0xfe6714 (548 bytes)
//
// 5 xrefs:
// > ASN1_TIME_print @ 0xfe5f7c
// > sub_108E114 @ 0x108eb40
// > sub_108E114 @ 0x108edfc
// > ASN1_item_print @ 0x108f6e4
// > ??> @ 0xb2c90
//
// 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:15:40 +0000
//
bool __fastcall ASN1_UTCTIME_print(__int64 a1, __int64 a2)
{
int v2; // w3
unsigned __int8 *v3; // x1
int v4; // w11
int v5; // w7
unsigned int v6; // w2
bool v7; // cc
int v8; // w6
int v9; // w3
int v10; // w4
int v11; // w5
int v12; // w8
int v13; // w1
int v14; // w7
const char *v15; // x2
const char *v16; // x1
v2 = *(_DWORD *)a2;
v3 = *(unsigned __int8 **)(a2 + 8);
if ( v2 <= 9 )
goto LABEL_22;
v4 = v3[v2 - 1];
if ( (unsigned __int8)(*v3 - 48) > 9u
|| (unsigned __int8)(v3[1] - 48) > 9u
|| (unsigned __int8)(v3[2] - 48) > 9u
|| (unsigned __int8)(v3[3] - 48) > 9u
|| (unsigned __int8)(v3[4] - 48) > 9u
|| (unsigned __int8)(v3[5] - 48) > 9u
|| (unsigned __int8)(v3[6] - 48) > 9u
|| (unsigned __int8)(v3[7] - 48) > 9u
|| (unsigned __int8)(v3[8] - 48) > 9u
|| (unsigned __int8)(v3[9] - 48) > 9u )
{
goto LABEL_22;
}
v5 = v3[1] - 48 + 10 * (*v3 - 48);
if ( v5 <= 49 )
v5 += 100;
v6 = v3[3] + 10 * (v3[2] - 48) - 49;
if ( v6 > 0xB )
{
LABEL_22:
BIO_write(a1, "Bad time value", 14);
return 0;
}
else
{
v7 = v2 <= 11;
v8 = 0;
v9 = v3[5] - 48 + 10 * (v3[4] - 48);
v10 = v3[7] - 48 + 10 * (v3[6] - 48);
v11 = v3[9] - 48 + 10 * (v3[8] - 48);
if ( !v7 )
{
v12 = v3[10] - 48;
if ( (unsigned __int8)(v3[10] - 48) <= 9u )
{
v13 = v3[11] - 48;
if ( (unsigned __int8)v13 <= 9u )
v8 = v13 + 10 * v12;
}
}
v14 = v5 + 1900;
v15 = asn1_mon[v6];
if ( v4 == 90 )
v16 = " GMT";
else
v16 = &byte_11B8890;
return (int)BIO_printf(a1, "%s %2d %02d:%02d:%02d %d%s", v15, v9, v10, v11, v8, v14, v16) > 0;
}
}