//
// sub_1006EE7C8 from 0x1006ee7c8 to 0x1006ee858 (144 bytes)
//
// 1 xrefs:
// > sub_1006EC4B0 @ 0x1006ec5d4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:12:39 +0000
//
__int64 __fastcall sub_1006EE7C8(_WORD *a1, int a2, const void *a3, unsigned int a4)
{
size_t v7; // x2
char *v8; // x21
if ( a2 - 11 >= (int)a4 )
{
v7 = (int)(a2 - 3 - a4);
v8 = (char *)a1 + v7;
*a1 = 256;
memset(a1 + 1, 255, v7);
v8[2] = 0;
memcpy(v8 + 3, a3, a4);
return 1;
}
else
{
sub_100706FB0(4, 108, 110, "rsa_pk1.c", 75);
return 0;
}
}