//
// sub_631E44 from 0x631e44 to 0x631e9a (86 bytes)
//
// 1 xrefs:
// > sub_614AFC @ 0x614cc2
//
// 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
//
int __fastcall sub_631E44(_DWORD *a1, int a2, _BYTE *a3, int a4)
{
int v5; // r5
int v6; // r2
_BYTE *v8; // r0
int v9; // r3
int v10; // t1
if ( a2 )
v5 = *a1 + 34532;
else
v5 = *a1 + 34496;
if ( !sub_62AC7C("Digest", a3, 6) )
return 61;
v8 = a3 + 6;
if ( a3[6] )
{
v9 = *(unsigned __int8 *)((unsigned __int8)a3[6] + ctype_ + 1);
v6 = v9 << 28;
if ( (v9 & 8) != 0 )
{
do
{
v10 = (unsigned __int8)*++v8;
v6 = ctype_ + v10;
}
while ( v10 && (*(_BYTE *)(v6 + 1) & 8) != 0 );
}
}
return sub_6408E4(v8, v5, v6, a4);
}