//
// sub_1005C8DA4 from 0x1005c8da4 to 0x1005c8e28 (132 bytes)
//
// 3 xrefs:
// > sub_1005C5FEC @ 0x1005c62d0
// > sub_1005C67D8 @ 0x1005c6c18
// > sub_100621FA0 @ 0x100622144
//
// 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_1005C8DA4(char *a1, __int64 a2, const void *a3, int a4)
{
__int64 v6; // x19
v6 = a2;
if ( (int)a2 >= a4 )
{
bzero(a1, (int)a2 - a4);
memcpy(&a1[(int)v6 - (__int64)a4], a3, a4);
}
else
{
sub_1005E0E48(4, 111, 109, "rsa_none.c", 87);
return 0xFFFFFFFFLL;
}
return v6;
}