//
// sub_1005CA588 from 0x1005ca588 to 0x1005ca638 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x10083a478
//
// 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_1005CA588(__int64 a1, __int64 a2)
{
__int64 v3; // x20
char **v4; // x0
__int64 v6; // x4
__int64 v7; // [xsp+8h] [xbp-18h] BYREF
v7 = 0;
v3 = sub_1005CA2DC(*(_QWORD *)(a2 + 32), (__int64)&v7);
if ( (int)v3 <= 0 )
{
v6 = 138;
}
else
{
v4 = sub_10058AB9C(6u);
if ( (unsigned int)sub_1005FC4BC(a1, v4, 0, 5, 0, v7, v3) )
return 1;
v6 = 144;
}
sub_1005E0E48(4, 138, 65, "rsa_ameth.c", v6);
return 0;
}