//
// sub_6449AC from 0x6449ac to 0x644a22 (118 bytes)
//
// 1 xrefs:
// > sub_645AAC @ 0x645aac
//
// 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_6449AC(int a1, const char *a2)
{
int v4; // r5
int v6; // r0
int error; // r0
char v8[260]; // [sp+0h] [bp-104h] BYREF
v4 = ENGINE_by_id(a2);
if ( v4 )
{
if ( *(_DWORD *)(a1 + 34608) )
{
ENGINE_finish();
ENGINE_free(*(_DWORD *)(a1 + 34608));
*(_DWORD *)(a1 + 34608) = 0;
}
if ( ENGINE_init(v4) )
{
*(_DWORD *)(a1 + 34608) = v4;
return 0;
}
else
{
v6 = ENGINE_free(v4);
error = ERR_get_error(v6);
ERR_error_string_n(error, v8, 256);
sub_6180F8(a1, "Failed to initialise SSL Engine '%s':\n%s", a2, v8);
return 66;
}
}
else
{
sub_6180F8(a1, "SSL Engine '%s' not found", a2);
return 53;
}
}