//
// ssl_cert_set_cert_store from 0x79289c to 0x7928e4 (72 bytes)
//
// 5 xrefs:
// > ssl3_ctrl @ 0x78f7d0
// > ssl3_ctrl @ 0x78f7ec
// > ssl3_ctx_ctrl @ 0x78fee4
// > ssl3_ctx_ctrl @ 0x78fefc
// > ??> @ 0x5af7c
//
// 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
//
int __fastcall ssl_cert_set_cert_store(int a1, int a2, int a3, int a4)
{
_DWORD *v4; // r5
bool v5; // zf
int v6; // r2
bool v9; // zf
v5 = a3 == 0;
v6 = a1;
if ( v5 )
a1 = *(_DWORD *)(a1 + 204);
else
v4 = (_DWORD *)(a1 + 200);
if ( v5 )
v4 = (_DWORD *)(v6 + 204);
else
a1 = *(_DWORD *)(a1 + 200);
X509_STORE_free(a1);
v9 = a2 == 0;
if ( a2 )
v9 = a4 == 0;
*v4 = a2;
if ( !v9 )
X509_STORE_up_ref(a2);
return 1;
}