//
// SCT_set1_signature from 0x7dc7c8 to 0x7dc86c (164 bytes)
//
// 2 xrefs:
// > o2i_SCT_signature @ 0x7db614
// > ??> @ 0x604dc
//
// 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 SCT_set1_signature(_DWORD *a1, int a2, int a3)
{
bool v6; // zf
int v8; // r0
CRYPTO_free(a1[11], "crypto/ct/ct_sct.c", 173);
v6 = a2 == 0;
if ( a2 )
v6 = a3 == 0;
a1[11] = 0;
a1[12] = 0;
a1[15] = 0;
if ( v6 )
return 1;
v8 = CRYPTO_memdup(a2, a3, "crypto/ct/ct_sct.c", 179);
a1[11] = v8;
if ( v8 )
{
a1[12] = a3;
return 1;
}
else
{
ERR_put_error(50, 116, 65, "crypto/ct/ct_sct.c", 181);
return 0;
}
}