// // d2i_AutoPrivateKey from 0x7c3c7c to 0x7c3db4 (312 bytes) // // 4 xrefs: // > @ 0x5e8cc // > d2i_PrivateKey_fp @ 0x848a94 // > d2i_PrivateKey_bio @ 0x848ba0 // > @ 0xab87d4 // // 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 d2i_AutoPrivateKey(int *a1, int *a2, int a3) { int v6; // r0 int v7; // r6 int v8; // r4 int v10; // r8 int v11; // r4 int v12; // [sp+Ch] [bp-4h] BYREF v12 = *a2; v6 = d2i_ASN1_SEQUENCE_ANY(0, &v12); v12 = *a2; v7 = v6; if ( OPENSSL_sk_num(v6) == 6 ) { v8 = 116; goto LABEL_6; } if ( OPENSSL_sk_num(v7) == 4 ) { v8 = 408; goto LABEL_6; } if ( OPENSSL_sk_num(v7) != 3 ) { v8 = 6; LABEL_6: OPENSSL_sk_pop_free(v7, ASN1_TYPE_free); return d2i_PrivateKey(v8, a1, a2, a3); } v10 = d2i_PKCS8_PRIV_KEY_INFO(0, &v12, a3); OPENSSL_sk_pop_free(v7, ASN1_TYPE_free); if ( v10 ) { v11 = EVP_PKCS82PKEY(v10); PKCS8_PRIV_KEY_INFO_free(v10); if ( v11 && (*a2 = v12, a1) ) { *a1 = v11; return v11; } else { return v11; } } else { ERR_put_error(13, 207, 167, "crypto/asn1/d2i_pr.c", 109); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source