//
// sub_1007404C8 from 0x1007404c8 to 0x10074061c (340 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009c7158
//
// 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:13:20 +0000
//
__int64 __fastcall sub_1007404C8(__int64 a1, char *__s1, char *a3)
{
_BOOL8 v6; // x19
int v7; // w0
__int64 v8; // x5
int v9; // w6
int v10; // w7
__int64 v12; // x5
int v13; // w6
int v14; // w7
int *v15; // x8
__int64 v16; // x5
int v17; // w6
int v18; // w7
_BYTE *v19; // x20
__int64 v20; // [xsp+8h] [xbp-28h] BYREF
if ( !a3 )
return 0;
if ( !strcmp(__s1, "key") )
{
v7 = strlen(a3);
if ( (v7 & 0x80000000) == 0 )
return sub_10073FC80(*(_QWORD *)(a1 + 40), (__int64)a3, v7, nullptr, 0, v8, v9, v10);
return 0;
}
else if ( !strcmp(__s1, "cipher") )
{
v15 = (int *)sub_10070E1C0((__int64)a3);
return v15 && sub_10073FC80(*(_QWORD *)(a1 + 40), 0, 0, v15, *(_QWORD *)(a1 + 8), v12, v13, v14);
}
else if ( !strcmp(__s1, "hexkey") )
{
v19 = sub_10072DA6C(a3, &v20);
if ( v19 )
{
v6 = (v20 & 0x80000000) == 0
&& sub_10073FC80(*(_QWORD *)(a1 + 40), (__int64)v19, (int)v20, nullptr, 0, v16, v17, v18);
sub_1006AEDAC(v19);
}
else
{
return 0;
}
}
else
{
return 4294967294LL;
}
return v6;
}