// // ASN1_TIME_to_generalizedtime from 0xfe5c54 to 0xfe5d60 (268 bytes) // // 1 xrefs: // > @ 0xb1058 // // 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:39 +0000 // __int64 __fastcall ASN1_TIME_to_generalizedtime(__int64 a1, __int64 *a2) { __int64 v4; // x19 __int64 v5; // x22 __int64 v6; // x21 __int64 v8; // x0 if ( (unsigned int)ASN1_TIME_check(a1) ) { if ( !a2 ) { v4 = ASN1_GENERALIZEDTIME_new(); if ( !v4 ) return 0; goto LABEL_4; } v4 = *a2; if ( *a2 ) { LABEL_4: if ( *(_DWORD *)(a1 + 4) == 24 ) { if ( (unsigned int)ASN1_STRING_set(v4, *(char **)(a1 + 8)) ) return v4; } else if ( (unsigned int)ASN1_STRING_set(v4, nullptr) ) { v5 = *(_QWORD *)(v4 + 8); v6 = *(_DWORD *)a1 + 3; if ( **(unsigned __int8 **)(a1 + 8) > 0x34u ) OPENSSL_strlcpy(v5, "19", *(_DWORD *)a1 + 3); else OPENSSL_strlcpy(v5, "20", *(_DWORD *)a1 + 3); OPENSSL_strlcat(v5, *(_QWORD *)(a1 + 8), v6); return v4; } return 0; } v8 = ASN1_GENERALIZEDTIME_new(); v4 = v8; if ( v8 ) { *a2 = v8; goto LABEL_4; } } return 0; }