//
// sub_1005D4EC4 from 0x1005d4ec4 to 0x1005d5004 (320 bytes)
//
// 2 xrefs:
// > ??> @ 0x10083b530
// > ??> @ 0x10083b600
//
// 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_1005D4EC4(__int64 a1, char *__s1, const char *a3)
{
__int64 v7; // x4
__int64 v8; // x3
unsigned int v9; // w0
if ( !strcmp(__s1, "dh_paramgen_prime_len") )
{
v7 = atoi(a3);
v8 = 4097;
return sub_1005EC7FC(a1, 28, 2, v8, v7, 0);
}
if ( strcmp(__s1, "dh_rfc5114") )
{
if ( !strcmp(__s1, "dh_paramgen_generator") )
{
v7 = atoi(a3);
v8 = 4098;
}
else if ( !strcmp(__s1, "dh_paramgen_subprime_len") )
{
v7 = atoi(a3);
v8 = 4100;
}
else
{
if ( strcmp(__s1, "dh_paramgen_type") )
return 4294967294LL;
v7 = atoi(a3);
v8 = 4101;
}
return sub_1005EC7FC(a1, 28, 2, v8, v7, 0);
}
v9 = atoi(a3);
if ( v9 > 3 )
return 4294967294LL;
*(_DWORD *)(*(_QWORD *)(a1 + 40) + 24LL) = v9;
return 1;
}