//
// sub_100487790 from 0x100487790 to 0x1004877dc (76 bytes)
//
// 0 xrefs:
//
// 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 12:30:43 +0000
//
__int64 __fastcall sub_100487790(__int64 a1)
{
__int64 v1; // rcx
__int64 result; // rax
unsigned int *v3; // rcx
__int64 v4; // rdx
unsigned __int64 v5; // rcx
unsigned __int64 v6; // rdx
v1 = *(_QWORD *)(a1 + 656);
result = 0;
if ( v1 )
{
v3 = *(unsigned int **)(v1 + 56);
v4 = *v3;
if ( *v3 )
{
v5 = *((_QWORD *)v3 + 2);
v6 = v5 + 8 * v4 - 8;
result = 0;
do
{
if ( !*(_QWORD *)v5 )
break;
result = *(unsigned __int8 *)(*(_QWORD *)v5 + 771LL) + (unsigned int)result;
v5 += 8LL;
}
while ( v5 <= v6 );
}
}
return result;
}