// // ASN1_STRING_print from 0xfe2b40 to 0xfe2c6c (300 bytes) // // 5 xrefs: // > sub_E2B824 @ 0xe2bf58 // > X509V3_extensions_print @ 0x107e920 // > sub_10802A4 @ 0x1080360 // > sub_10E1F08 @ 0x10e1f58 // > @ 0x43ae0 // // 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 // bool __fastcall ASN1_STRING_print(__int64 a1, __int64 a2) { int v2; // w4 unsigned __int8 *v3; // x19 __int64 v4; // x2 int v7; // w20 unsigned int v8; // w3 int v9; // w0 _BYTE v11[80]; // [xsp+40h] [xbp+40h] BYREF if ( !a2 ) return 0; v2 = *(_DWORD *)a2; v3 = *(unsigned __int8 **)(a2 + 8); if ( *(int *)a2 <= 0 ) return 1; LODWORD(v4) = 0; v7 = 0; do { while ( 1 ) { v8 = *v3; if ( v8 <= 0x7E ) break; v11[(int)v4] = 46; v4 = (unsigned int)(v4 + 1); ++v7; ++v3; if ( (int)v4 > 79 ) goto LABEL_12; LABEL_9: if ( v7 >= v2 ) goto LABEL_14; } if ( v8 != 10 && v8 <= 0x1F ) { if ( v8 == 13 ) LOBYTE(v8) = 13; else LOBYTE(v8) = 46; } v11[(int)v4] = v8; v4 = (unsigned int)(v4 + 1); ++v7; ++v3; if ( (int)v4 <= 79 ) goto LABEL_9; LABEL_12: v9 = BIO_write(a1, v11, v4); v4 = 0; if ( v9 <= 0 ) return 0; v2 = *(_DWORD *)a2; } while ( v7 < *(_DWORD *)a2 ); LABEL_14: if ( (_DWORD)v4 ) return (int)BIO_write(a1, v11, v4) > 0; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source