//
// sub_10062D7F8 from 0x10062d7f8 to 0x10062d924 (300 bytes)
//
// 1 xrefs:
// > sub_10062CB98 @ 0x10062cbd4
//
// 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_10062D7F8(__int64 a1, char *__s1, __int64 a3)
{
__int64 v6; // x19
__int64 v7; // x0
_OWORD *v8; // x20
__int64 v9; // x0
__int64 v11; // [xsp+8h] [xbp-28h] BYREF
if ( !strcmp(__s1, "key") )
{
if ( strlen((const char *)a3) == 32 )
{
v7 = sub_1005EC8F8(a1);
*(_OWORD *)(v7 + 32) = *(_OWORD *)(a3 + 16);
*(_OWORD *)(v7 + 16) = *(_OWORD *)a3;
v6 = 1;
*(_DWORD *)v7 = 1;
}
else
{
sub_100624720(129, 111, (__int64)"gost_pmeth.c", 503);
return 0;
}
}
else if ( !strcmp(__s1, "hexkey") )
{
v8 = sub_100607904((char *)a3, &v11);
if ( v8 && v11 == 32 )
{
v9 = sub_1005EC8F8(a1);
*(_OWORD *)(v9 + 32) = v8[1];
*(_OWORD *)(v9 + 16) = *v8;
v6 = 1;
*(_DWORD *)v9 = 1;
sub_100588C44(v8);
}
else
{
sub_100624720(129, 111, (__int64)"gost_pmeth.c", 515);
sub_100588C44(v8);
return 0;
}
}
else
{
return 4294967294LL;
}
return v6;
}