//
// X509_VERIFY_PARAM_move_peername from 0x846d1c to 0x846d84 (104 bytes)
//
// 3 xrefs:
// > ssl_verify_cert_chain @ 0x7919c4
// > SSL_clear @ 0x79a324
// > ??> @ 0x5b34c
//
// 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 X509_VERIFY_PARAM_move_peername(int a1, int a2)
{
void *v4; // r6
void *v5; // r0
void *v6; // r0
if ( a2 )
{
v4 = *(void **)(a2 + 44);
v5 = *(void **)(a1 + 44);
if ( v4 != v5 )
{
CRYPTO_free(v5, (int)"crypto/x509/x509_vpm.c", 415);
*(_DWORD *)(a1 + 44) = v4;
}
*(_DWORD *)(a2 + 44) = 0;
}
else
{
v6 = *(void **)(a1 + 44);
if ( v6 )
{
CRYPTO_free(v6, (int)"crypto/x509/x509_vpm.c", 415);
*(_DWORD *)(a1 + 44) = 0;
}
}
}