//
// sub_FEDABC from 0xfedabc to 0xfedb60 (164 bytes)
//
// 4 xrefs:
// > sub_FEDB60 @ 0xfedef8
// > sub_FEDB60 @ 0xfedf20
// > ASN1_item_ex_new @ 0xfee264
// > ASN1_item_ex_new @ 0xfee2e8
//
// 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 13:15:43 +0000
//
_DWORD *__fastcall sub_FEDABC(_DWORD *result, __int64 a2)
{
__int64 v2; // x2
__int64 (*v3)(void); // x2
__int64 v4; // x2
_QWORD *v5; // x3
while ( 2 )
{
switch ( *(_BYTE *)a2 )
{
case 0:
v5 = *(_QWORD **)(a2 + 16);
if ( v5 )
{
if ( (*v5 & 0x306LL) != 0 )
goto LABEL_4;
a2 = v5[4];
continue;
}
v2 = *(_QWORD *)(a2 + 32);
if ( v2 )
goto LABEL_3;
if ( (unsigned int)*(_QWORD *)(a2 + 8) != 1 )
goto LABEL_4;
*result = *(_QWORD *)(a2 + 40);
return result;
case 1:
case 2:
case 6:
goto LABEL_4;
case 4:
v4 = *(_QWORD *)(a2 + 32);
if ( v4 )
{
v3 = *(__int64 (**)(void))(v4 + 24);
if ( v3 )
return (_DWORD *)v3();
}
goto LABEL_4;
case 5:
v2 = *(_QWORD *)(a2 + 32);
if ( !v2 )
goto LABEL_4;
LABEL_3:
v3 = *(__int64 (**)(void))(v2 + 32);
if ( v3 )
return (_DWORD *)v3();
LABEL_4:
*(_QWORD *)result = 0;
return result;
default:
return result;
}
}
}