//
// sub_1004F5380 from 0x1004f5380 to 0x1004f53c9 (73 bytes)
//
// 5 xrefs:
// > sub_1000D5780 @ 0x1000d5958
// > sub_1005BD5B0 @ 0x1005bd5e3
// > sub_1005BD820 @ 0x1005bd8c0
// > sub_1005BDE20 @ 0x1005bde38
// > sub_1005BDF10 @ 0x1005bdf43
//
// 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:31:26 +0000
//
bool __fastcall sub_1004F5380(__int64 a1)
{
const char *v1; // rdi
int v2; // eax
stat v4; // [rsp-98h] [rbp-98h] BYREF
if ( (*(_BYTE *)a1 & 1) != 0 )
v1 = *(const char **)(a1 + 16);
else
v1 = (const char *)(a1 + 1);
v2 = stat_INODE64(v1, &v4);
return v2 == 0 && (v4.st_mode & 0xF000) == 0x4000;
}