//
// sub_1004884A0 from 0x1004884a0 to 0x100488517 (119 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_1004884A0(__int64 a1, int a2)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
unsigned int *v6; // rax
__int64 *v7; // rcx
unsigned __int64 v8; // rdx
__int64 result; // rax
v2 = *(_QWORD *)(a1 + 608);
if ( !v2 )
return 0;
v3 = *(_QWORD *)(v2 + 544);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 424);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 592);
if ( v5 )
{
v6 = *(unsigned int **)(v5 + 56);
if ( *v6 )
{
v7 = *((__int64 **)v6 + 2);
v8 = (unsigned __int64)&v7[*v6 - 1];
do
{
result = *v7;
if ( !*v7 )
break;
if ( *(_DWORD *)(*(_QWORD *)(result + 560) + 1292LL) == a2 )
return result;
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
}
}
return 0;
}