//
// sub_14008CB70 from 0x14008cb70 to 0x14008ccf7 (391 bytes)
//
// 4 xrefs:
// > AccountRegisterLayer::updatePasswordInfo @ 0x14008fa2e
// > ??> @ 0x14088c46c
// > ??> @ 0x14088c47c
// > ??> @ 0x14091292c
//
// This function is hookable on this platform (idp: pc, 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:25:59 +0000
//
__int64 __fastcall sub_14008CB70(__int64 *a1)
{
unsigned __int64 v1; // rdx
__int64 *v2; // rbx
__int64 *v4; // rax
__int64 *v5; // r8
__int64 *v6; // rdx
unsigned __int64 v7; // r9
int v8; // r8d
int v9; // r11d
int v10; // esi
int v11; // edi
int v12; // r14d
char *v13; // rdx
__int64 v14; // rax
char v15; // cl
int v16; // ecx
v1 = a1[2];
v2 = a1;
if ( v1 < 8 )
return 0;
if ( (unsigned __int64)a1[3] <= 0xF )
{
v4 = a1;
v5 = a1;
}
else
{
v4 = (__int64 *)*a1;
v5 = (__int64 *)*a1;
a1 = (__int64 *)*a1;
}
v6 = (__int64 *)((char *)v5 + v1);
if ( v4 == v6 )
{
LABEL_9:
if ( (unsigned __int8)sub_14008C7D0(v2) )
{
return 2;
}
else
{
v7 = v2[2];
v8 = 0;
v9 = 0;
v10 = 0;
v11 = 0;
v12 = 0;
if ( (unsigned __int64)v2[3] <= 0xF )
{
v13 = (char *)v2;
v14 = (__int64)v2;
}
else
{
v13 = (char *)*v2;
v14 = *v2;
v2 = (__int64 *)*v2;
}
if ( v2 != (__int64 *)(v7 + v14) )
{
do
{
v15 = *v13;
if ( (unsigned __int8)(*v13 - 97) > 0x19u )
{
if ( (unsigned __int8)(v15 - 65) > 0x19u )
{
if ( (unsigned __int8)(v15 - 48) > 9u )
v12 = 1;
else
v10 = 1;
}
else
{
v11 = 1;
}
}
else
{
v9 = 1;
}
++v13;
}
while ( v13 != (char *)(v7 + v14) );
}
v16 = v9 + v11 + v12 + v10;
if ( v7 < 0x10 || v16 < 3 )
{
if ( v7 < 0x14 )
{
if ( v7 < 0xE )
{
if ( v7 >= 0xC || v7 >= 0xA && v16 >= 2 )
{
return 4;
}
else if ( v7 < 8 )
{
return 3;
}
else
{
LOBYTE(v8) = v16 >= 3;
return (unsigned int)(v8 + 3);
}
}
else
{
return 5;
}
}
else
{
LOBYTE(v8) = v16 >= 2;
return (unsigned int)(v8 + 5);
}
}
else
{
return 6;
}
}
}
else
{
while ( (unsigned __int8)(*(_BYTE *)a1 - 32) <= 0x5Eu )
{
a1 = (__int64 *)((char *)a1 + 1);
if ( a1 == v6 )
goto LABEL_9;
}
return 1;
}
}