//
// sub_180017460 from 0x180017460 to 0x18001748c (44 bytes)
//
// 7 xrefs:
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x180020d67
// > sub_180020E50 @ 0x180020e57
// > sub_180020E68 @ 0x180020e6f
// > ??> @ 0x18002f0c7
// > ??> @ 0x18002f1df
// > ??> @ 0x18002f1eb
// > ??> @ 0x18004aa34
//
// 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_180017460(__int64 a1, __int64 a2)
{
__int64 v3; // rcx
__int64 result; // rax
v3 = *(_QWORD *)(a1 + 56);
if ( v3 )
{
LOBYTE(a2) = v3 != a1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 32LL))(v3, a2);
*(_QWORD *)(a1 + 56) = 0;
}
return result;
}