//
// sub_1007C4BA0 from 0x1007c4ba0 to 0x1007c4c3c (156 bytes)
//
// 1 xrefs:
// > sub_100207160 @ 0x1002071d8
//
// 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_1007C4BA0(_QWORD *a1, void *a2, __int64 a3, unsigned __int64 a4)
{
__int64 result; // rax
unsigned int v5; // ebx
if ( !a1 )
return 4294967194LL;
a1[17] = a1[21];
a1[16] = 0;
result = sub_1007C3EE0((__int64)a1, a1 + 22, a1 + 39, a3, a4, 0, 0, 0, 0);
a1[18] = (_DWORD)result == 0;
if ( a2 )
{
v5 = result;
memcpy(a2, a1 + 22, 0x88u);
return v5;
}
return result;
}