// // ASN1_TIME_to_generalizedtime from 0xd678f4 to 0xd67a00 (268 bytes) // // 1 xrefs: // > @ 0x85530 // // 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 // __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; }
GD Web Decomp Icon

GD Web Decomp

Raw Source