// // ASN1_UTCTIME_adj from 0x7c16c8 to 0x7c1870 (424 bytes) // // 4 xrefs: // > ASN1_TIME_adj @ 0x7c1094 // > ASN1_UTCTIME_set @ 0x7c1884 // > X509_time_adj_ex @ 0x8429e4 // > @ 0x5e40c // // 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 // size_t *__fastcall ASN1_UTCTIME_adj(size_t *a1, int a2, __int64 a3) { size_t *v3; // r5 _DWORD *v5; // r4 int v6; // r8 int v7; // r2 const char *v8; // r6 size_t v9; // r0 _DWORD v11[2]; // [sp+1Ch] [bp-34h] BYREF _BYTE v12[44]; // [sp+24h] [bp-2Ch] BYREF v3 = a1; v11[0] = a2; if ( a1 ) { v5 = (_DWORD *)OPENSSL_gmtime(v11, v12); if ( !v5 ) return nullptr; v6 = 0; } else { v3 = (size_t *)ASN1_UTCTIME_new(); if ( !v3 ) return nullptr; v5 = (_DWORD *)OPENSSL_gmtime(v11, v12); if ( !v5 ) goto LABEL_21; v6 = 1; } if ( !a3 || OPENSSL_gmtime_adj(v5, a3, HIDWORD(a3)) ) { v7 = v5[5]; if ( (unsigned int)(v7 - 50) <= 0x63 ) { v8 = (const char *)v3[2]; if ( v8 && *v3 > 0x13 ) goto LABEL_11; v8 = (const char *)CRYPTO_malloc(20, "crypto/asn1/a_utctm.c", 166); if ( v8 ) { CRYPTO_free(v3[2], "crypto/asn1/a_utctm.c", 171); v7 = v5[5]; v3[2] = (size_t)v8; LABEL_11: BIO_snprintf(v8, 20, "%02d%02d%02d%02d%02d%02dZ", v7 % 100, v5[4] + 1, v5[3], v5[2], v5[1], *v5); v9 = strlen(v8); v3[1] = 23; *v3 = v9; return v3; } ERR_put_error(13, 218, 65, "crypto/asn1/a_utctm.c", 168); } if ( !v6 ) return nullptr; LABEL_21: ASN1_UTCTIME_free(v3); return nullptr; } if ( v6 ) goto LABEL_21; return nullptr; }