// // asn1_enc_save from 0x7ca4ec to 0x7ca598 (172 bytes) // // 4 xrefs: // > sub_7C5148 @ 0x7c5afc // > sub_7C626C @ 0x7c6ad8 // > ASN1_item_ex_d2i @ 0x7c73b8 // > @ 0x5ea8c // // 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 // void *__fastcall asn1_enc_save(int *a1, const void *a2, size_t a3, int a4) { int v4; // r6 int v5; // r3 int v6; // r9 int v7; // r8 void *result; // r0 if ( !a1 ) return &dword_0 + 1; v4 = *a1; if ( !*a1 ) return &dword_0 + 1; v5 = *(_DWORD *)(a4 + 16); if ( !v5 ) return &dword_0 + 1; if ( (*(_DWORD *)(v5 + 4) & 2) == 0 ) return &dword_0 + 1; v6 = *(_DWORD *)(v5 + 20); v7 = v4 + v6; if ( !(v4 + v6) ) return &dword_0 + 1; CRYPTO_free(*(_DWORD *)(v4 + v6), "crypto/asn1/tasn_utl.c", 134); result = (void *)CRYPTO_malloc(a3, "crypto/asn1/tasn_utl.c", 135); *(_DWORD *)(v4 + v6) = result; if ( result ) { memcpy(result, a2, a3); *(_DWORD *)(v7 + 4) = a3; *(_DWORD *)(v7 + 8) = 0; return &dword_0 + 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source