//
// sub_644A2C from 0x644a2c to 0x644a70 (68 bytes)
//
// 1 xrefs:
// > sub_645AB0 @ 0x645ab0
//
// 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 sub_644A2C(size_t a1)
{
bool v2; // cc
int v3; // r0
const char *id; // r0
const char *v6; // r0
if ( !*(_DWORD *)(a1 + 34608) )
return 0;
v2 = ENGINE_set_default(*(_DWORD *)(a1 + 34608), 0xFFFF) <= 0;
v3 = *(_DWORD *)(a1 + 34608);
if ( !v2 )
{
id = (const char *)ENGINE_get_id(v3);
sub_61807C(a1, "set default crypto engine '%s'\n", id);
return 0;
}
v6 = (const char *)ENGINE_get_id(v3);
sub_6180F8(a1, "set default crypto engine '%s' failed", v6);
return 54;
}