// // CRYPTO_clear_realloc from 0xdb5b10 to 0xdb5bdc (204 bytes) // // 4 xrefs: // > BUF_MEM_grow_clean @ 0xd7fbac // > ASN1_BIT_STRING_set_bit @ 0xe07ef8 // > a2i_ASN1_INTEGER @ 0xe0f038 // > @ 0x59430 // // 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 CRYPTO_clear_realloc(_BYTE *a1, unsigned __int64 a2, void *a3, __int64 a4, unsigned int a5) { size_t v5; // x21 void *v8; // x19 const void *v9; // x20 void *result; // x0 v5 = a2; if ( !a1 ) return CRYPTO_malloc(a3, a4, a5); v8 = a3; v9 = a1; if ( !a3 ) goto LABEL_6; if ( (unsigned __int64)a3 < a2 ) { OPENSSL_cleanse((_BYTE *)a3 + (_QWORD)a1, a2 - (_QWORD)a3); return (void *)v9; } result = CRYPTO_malloc(a3, a4, a5); v8 = result; if ( result ) { memcpy(result, v9, v5); a1 = v9; a2 = v5; LABEL_6: CRYPTO_clear_free(a1, a2, a4, a5); return v8; } return result; }