// // X509_NAME_print from 0x84a274 to 0x84a3f4 (384 bytes) // // 3 xrefs: // > X509_NAME_print_ex @ 0x7c04fc // > X509_NAME_print_ex_fp @ 0x7c0778 // > @ 0x5e2fc // // 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 X509_NAME_print(int a1, int *a2) { char *v3; // r0 char *v4; // r7 int v5; // r6 unsigned __int8 *i; // r2 int v7; // r3 unsigned __int8 *v8; // r4 int v10; // r3 v3 = X509_NAME_oneline(a2, nullptr, 0); v4 = v3; if ( !v3 ) return 0; if ( *v3 ) { v5 = (int)(v3 + 1); i = (unsigned __int8 *)(v3 + 1); v8 = (unsigned __int8 *)(v3 + 2); v7 = (unsigned __int8)v3[1]; if ( v7 == 47 ) goto LABEL_12; while ( 1 ) { if ( !v7 ) { LABEL_5: if ( (unsigned __int8 *)BIO_write(a1, v5, (int)&i[-v5]) != &i[-v5] ) goto LABEL_17; v5 = (int)v8; if ( !*(v8 - 1) ) { LABEL_7: CRYPTO_free(v4, (int)"crypto/x509/x_name.c", 548); return 1; } if ( BIO_write(a1, (int)", ", 2) != 2 ) { LABEL_17: ERR_put_error(11, 117, 7, (int)"crypto/x509/x_name.c", 551); CRYPTO_free(v4, (int)"crypto/x509/x_name.c", 552); return 0; } if ( !*(v8 - 1) ) goto LABEL_7; } LABEL_10: for ( i = v8; ; i = v8 ) { v8 = i + 1; v7 = *i; if ( v7 != 47 ) break; LABEL_12: if ( (unsigned int)i[1] - 65 > 0x19 ) goto LABEL_10; v10 = v8[1]; if ( v10 != 61 ) { if ( (unsigned int)(v10 - 65) > 0x19 ) goto LABEL_10; if ( v8[2] != 61 ) continue; } goto LABEL_5; } } } CRYPTO_free(v3, (int)"crypto/x509/x_name.c", 511); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source