//
// sub_DD379C from 0xdd379c to 0xdd3814 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x1130938
// > ??> @ 0x1130998
//
// 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 sub_DD379C(unsigned int a1, __int64 *a2)
{
bool v3; // zf
__int64 result; // x0
__int64 v5; // x0
if ( a1 )
{
v3 = a1 == 2;
result = 1;
if ( v3 )
{
RSA_free(*a2);
*a2 = 0;
return a1;
}
}
else
{
v5 = RSA_new();
*a2 = v5;
if ( v5 )
return 2;
else
return 0;
}
return result;
}