//
// sub_1005D7E24 from 0x1005d7e24 to 0x1005d7f3c (280 bytes)
//
// 1 xrefs:
// > sub_1005834D0 @ 0x100585f14
//
// 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_1005D7E24(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 (__fastcall *v8)(__int64, __int64, __int64, __int64); // x8
__int64 result; // x0
__int64 v10; // x2
__int64 v11; // x4
if ( a1 )
{
sub_100588190(9, 30, (__int64)"eng_pkey.c", 109);
if ( *(_DWORD *)(a1 + 176) )
{
sub_100588190(10, 30, (__int64)"eng_pkey.c", 115);
v8 = *(__int64 (__fastcall **)(__int64, __int64, __int64, __int64))(a1 + 136);
if ( v8 )
{
result = v8(a1, a2, a3, a4);
if ( result )
return result;
v10 = 128;
v11 = 124;
}
else
{
v10 = 125;
v11 = 118;
}
}
else
{
sub_100588190(10, 30, (__int64)"eng_pkey.c", 111);
v10 = 117;
v11 = 112;
}
}
else
{
v10 = 67;
v11 = 106;
}
sub_1005E0E48(38, 150, v10, "eng_pkey.c", v11);
return 0;
}