//
// sub_E1DF14 from 0xe1df14 to 0xe1e038 (292 bytes)
//
// 2 xrefs:
// > sub_E1E278 @ 0xe1e4a0
// > sub_E1E278 @ 0xe1e524
//
// 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:09:45 +0000
//
__int64 __fastcall sub_E1DF14(__int64 a1)
{
__int64 v1; // x21
int v3; // w1
int v4; // w0
__int64 result; // x0
const char *v6; // x2
int v7; // [xsp+3Ch] [xbp+3Ch] BYREF
v1 = a1 + 1696;
v7 = 0;
if ( !(unsigned __int8)sub_E24B90(a1 + 1696, a1) )
{
LABEL_8:
*(_DWORD *)(a1 + 1672) = 0;
return 0;
}
if ( (*(_DWORD *)(a1 + 1728) & *(_DWORD *)(a1 + 1732) & 4) != 0 )
{
result = sub_E24BB0(v1, a1, 0, &v7);
if ( (_DWORD)result )
return result;
v3 = v7;
if ( v7 == 1 )
{
*(_DWORD *)(a1 + 1672) = 5;
return result;
}
}
else
{
v3 = v7;
}
if ( v3 )
return 0;
v4 = *(_DWORD *)(a1 + 1732) & *(_DWORD *)(a1 + 1728);
if ( (v4 & 2) != 0 )
{
if ( *(_BYTE *)(a1 + 960) )
return sub_E1D904(a1);
goto LABEL_8;
}
if ( (v4 & 1) == 0 )
{
sub_DF16E0(*(_QWORD *)a1, "No known authentication mechanisms supported!\n");
return 67;
}
if ( !*(_BYTE *)(a1 + 960) )
goto LABEL_8;
v6 = *(const char **)(a1 + 536);
if ( !v6 )
v6 = &byte_11B8890;
result = sub_E20668(a1 + 1560, "USER %s", v6);
if ( !(_DWORD)result )
*(_DWORD *)(a1 + 1672) = 7;
return result;
}