//
// ssl_cert_set_cert_store from 0xd3ba18 to 0xd3ba78 (96 bytes)
//
// 5 xrefs:
// > ssl3_ctrl @ 0xd38be0
// > ssl3_ctrl @ 0xd38bfc
// > ssl3_ctx_ctrl @ 0xd391e8
// > ssl3_ctx_ctrl @ 0xd3932c
// > ??> @ 0x6e148
//
// 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
//
__int64 __fastcall ssl_cert_set_cert_store(__int64 a1, __int64 a2, int a3, int a4)
{
__int64 v4; // x2
_QWORD *v5; // x19
if ( a3 )
{
v4 = *(_QWORD *)(a1 + 392);
v5 = (_QWORD *)(a1 + 392);
}
else
{
v4 = *(_QWORD *)(a1 + 400);
v5 = (_QWORD *)(a1 + 400);
}
X509_STORE_free(v4);
*v5 = a2;
if ( a2 && a4 )
X509_STORE_up_ref(a2);
return 1;
}