// // ASN1_STRING_print from 0x7bdf94 to 0x7be098 (260 bytes) // // 5 xrefs: // > sub_64231C @ 0x642776 // > X509V3_extensions_print @ 0x859e64 // > sub_85B704 @ 0x85b7b8 // > sub_8B9A58 @ 0x8b9aa0 // > @ 0x54dfc // // 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 // bool __fastcall ASN1_STRING_print(int a1, int *a2) { int v2; // r2 int v5; // r5 int v6; // r0 int v7; // r4 unsigned int v8; // r3 unsigned int v9; // t1 bool v10; // r1 _BYTE *v12; // r12 int v13; // r0 _BYTE v15[104]; // [sp+0h] [bp-68h] BYREF if ( !a2 ) return 0; if ( *a2 <= 0 ) return 1; v2 = 0; v5 = a2[2] - 1; v6 = *a2; v7 = 0; do { while ( 1 ) { v9 = *(unsigned __int8 *)++v5; v8 = v9; if ( v9 <= 0x7E ) { v10 = v8 != 10; if ( v8 > 0x1F ) v10 = 0; if ( v8 != 13 && v10 ) v8 = 46; } else { v8 = 46; } v12 = &v15[v2++ + 80]; ++v7; *(v12 - 80) = v8; if ( v2 > 79 ) break; if ( v7 >= v6 ) goto LABEL_17; } v13 = BIO_write(a1, v15, v2, v8); v2 = 0; if ( v13 <= 0 ) return 0; v6 = *a2; } while ( v7 < *a2 ); LABEL_17: if ( !v2 ) return 1; return BIO_write(a1, v15, v2, v8) > 0; }