//
// sub_100565E04 from 0x100565e04 to 0x100565e88 (132 bytes)
//
// 1 xrefs:
// > sub_100548630 @ 0x1005487d0
//
// 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_100565E04(size_t a1, __int64 a2)
{
__int64 v3; // x8
__int64 v4; // x19
if ( !a2 )
return 1;
v3 = *(_QWORD *)(a1 + 1056);
if ( !v3 )
return 1;
v4 = 1;
if ( *(_DWORD *)(a1 + 1048) == 2 )
{
if ( v3 <= a2 )
{
sub_1005524A4(a1, "The requested document is not old enough\n");
LABEL_10:
*(_BYTE *)(a1 + 35768) = 1;
return 0;
}
}
else if ( v3 >= a2 )
{
sub_1005524A4(a1, "The requested document is not new enough\n");
goto LABEL_10;
}
return v4;
}