//
// sub_10052833C from 0x10052833c to 0x100528370 (52 bytes)
//
// 23 xrefs:
// > sub_10051E8AC @ 0x10051e994
// > sub_10052EC84 @ 0x10052f0ec
// > ??> @ 0x10082a6f0
// > ??> @ 0x10082a7d8
// > ??> @ 0x10082a8c0
// > ??> @ 0x10082ab98
// > ??> @ 0x10082ac80
// > ??> @ 0x10082ad68
// > ??> @ 0x10082ae78
// > ??> @ 0x10082af60
// > ??> @ 0x10082b048
// > ??> @ 0x10082b158
// > ??> @ 0x10082b240
// > ??> @ 0x10082b328
// > ??> @ 0x10082b430
// > ??> @ 0x10082b518
// > ??> @ 0x10082b600
// > ??> @ 0x10082b6e8
// > ??> @ 0x10082b7d0
// > ??> @ 0x10082b8b8
// > ??> @ 0x10082b9a0
// > ??> @ 0x10082ba88
// > ??> @ 0x10082bb70
//
// 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_10052833C(__int64 a1, _BYTE *a2)
{
__int64 v2; // x8
if ( !a2 )
return 2;
v2 = *(_QWORD *)(a1 + 16);
if ( (v2 & 0xFF000000) == 0x3000000 )
{
*a2 = BYTE1(v2);
a2[1] = v2;
return 2;
}
return 0;
}