// // ASN1_item_i2d_bio from 0xe09594 to 0xe0965c (200 bytes) // // 12 xrefs: // > i2d_PKCS12_bio @ 0xdcbdf0 // > i2d_X509_bio @ 0xdeffa8 // > i2d_X509_CRL_bio @ 0xdefff8 // > i2d_PKCS7_bio @ 0xdf0048 // > i2d_X509_REQ_bio @ 0xdf0098 // > i2d_RSAPrivateKey_bio @ 0xdf0140 // > i2d_RSAPublicKey_bio @ 0xdf0184 // > ASN1_item_i2d_fp @ 0xe096a8 // > i2d_CMS_bio @ 0xe1ec00 // > OCSP_REQ_CTX_i2d @ 0xe635dc // > i2d_ASN1_bio_stream @ 0xe71b14 // > @ 0x61ea8 // // 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_item_i2d_bio(__int64 a1, __int64 a2, __int64 a3) { unsigned int v4; // w0 void *v5; // x21 unsigned int v6; // w19 int v7; // w20 int v8; // w0 bool v9; // zf unsigned int v10; // w21 void *v12; // [xsp+38h] [xbp+38h] BYREF v12 = nullptr; v4 = ASN1_item_i2d(a3, (__int64 *)&v12, a1); v5 = v12; v6 = v4; if ( v12 ) { v7 = 0; while ( 1 ) { v8 = BIO_write(a2, (__int64)v5 + v7, v6); v9 = v8 == v6; v7 += v8; v6 -= v8; if ( v9 ) { v10 = 1; goto LABEL_8; } if ( v8 <= 0 ) break; v5 = v12; } v10 = 0; LABEL_8: CRYPTO_free(v12, (__int64)"crypto/asn1/a_i2d_fp.c", 106); return v10; } else { ERR_put_error(13, 192, 65, (__int64)"crypto/asn1/a_i2d_fp.c", 91); return 0; } }