//
// sub_1005E43B4 from 0x1005e43b4 to 0x1005e4470 (188 bytes)
//
// 1 xrefs:
// > sub_10061395C @ 0x100613c74
//
// 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_1005E43B4(unsigned int *a1, __int64 a2)
{
__int64 v2; // x9
__int64 result; // x0
__int64 (*v4)(void); // x9
__int16 v5; // w2
int v6; // w4
v2 = *(_QWORD *)a1;
if ( (*(_BYTE *)(*(_QWORD *)a1 + 17LL) & 2) == 0 )
return (int)sub_1005E01C8(a2, a1[26]) > 0;
if ( !v2 )
{
v5 = 131;
v6 = 610;
LABEL_10:
sub_1005E0E48(6, 124, v5, (__int64)"evp_enc.c", v6);
return 0;
}
v4 = *(__int64 (**)(void))(v2 + 72);
if ( !v4 )
{
v5 = 132;
v6 = 615;
goto LABEL_10;
}
result = v4();
if ( (_DWORD)result == -1 )
{
v5 = 133;
v6 = 622;
goto LABEL_10;
}
return result;
}