//
// sub_1001790C4 from 0x1001790c4 to 0x100179138 (116 bytes)
//
// 14 xrefs:
// > sub_100178E5C @ 0x100178e88
// > sub_100178E5C @ 0x100178ea0
// > sub_100178E5C @ 0x100178eb8
// > sub_100178E5C @ 0x100178efc
// > sub_100178F14 @ 0x100178f48
// > sub_100178F14 @ 0x100178f60
// > sub_100178F14 @ 0x100178f78
// > sub_100178F14 @ 0x100178f90
// > sub_100178F14 @ 0x100178fa8
// > sub_100178F14 @ 0x100178fc0
// > sub_100178F14 @ 0x100178fd8
// > sub_100178F14 @ 0x100179034
// > sub_10017904C @ 0x100179074
// > sub_10017904C @ 0x100179098
//
// 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_1001790C4(__int64 a1, __int64 a2, _DWORD *a3)
{
unsigned __int8 v7; // [xsp+Fh] [xbp-21h] BYREF
if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, unsigned __int8 *, __int64))(a1 + 8))(
*(_QWORD *)(a1 + 56),
a2,
&v7,
1) == 1 )
{
*a3 = v7;
return 0;
}
else if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )
{
return 0xFFFFFFFFLL;
}
else
{
return 0;
}
}