//
// sub_10061A360 from 0x10061a360 to 0x10061a4b4 (340 bytes)
//
// 1 xrefs:
// > ??> @ 0x100843ae8
//
// 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_10061A360(__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_100619B18(*(_QWORD *)(a1 + 40), (__int64)a3, v7, nullptr, 0, v8, v9, v10);
return 0;
}
else if ( !strcmp(__s1, "cipher") )
{
v15 = (int *)sub_1005E8058((__int64)a3);
return v15 && sub_100619B18(*(_QWORD *)(a1 + 40), 0, 0, v15, *(_QWORD *)(a1 + 8), v12, v13, v14);
}
else if ( !strcmp(__s1, "hexkey") )
{
v19 = sub_100607904(a3, &v20);
if ( v19 )
{
v6 = (v20 & 0x80000000) == 0
&& sub_100619B18(*(_QWORD *)(a1 + 40), (__int64)v19, (int)v20, nullptr, 0, v16, v17, v18);
sub_100588C44(v19);
}
else
{
return 0;
}
}
else
{
return 4294967294LL;
}
return v6;
}