//
// sub_CFF8DC from 0xcff8dc to 0xcff9d0 (244 bytes)
//
// 2 xrefs:
// > ??> @ 0x111ed70
// > ??> @ 0x111eda0
//
// 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_CFF8DC(
__int64 a1,
__int64 a2,
char a3,
__int64 a4,
__int64 a5,
const struct tm *a6,
unsigned __int8 a7,
unsigned __int8 a8)
{
__int64 v8; // x24
wchar_t v11; // w21
wchar_t v12; // w20
void *v13; // x23
void *v14; // x24
wchar_t v15; // w6
int v16; // w0
wchar_t v19[4]; // [xsp+50h] [xbp+50h] BYREF
wchar_t v20[128]; // [xsp+60h] [xbp+60h] BYREF
v8 = a4 + 208;
v11 = a7;
v12 = a8;
v13 = sub_CFDB80(a4 + 208);
v14 = sub_CFF874(v8);
v19[0] = (*(__int64 (__fastcall **)(void *, __int64))(*(_QWORD *)v13 + 80LL))(v13, 37);
if ( v12 )
{
v15 = v11;
v19[3] = 0;
}
else
{
v12 = v11;
v15 = 0;
}
v19[2] = v15;
v19[1] = v12;
sub_CFA64C((__int64)v14, v20, 0x80u, v19, a6);
v16 = wcslen(v20);
if ( !a3 )
(*(__int64 (__fastcall **)(__int64, wchar_t *, _QWORD))(*(_QWORD *)a2 + 96LL))(a2, v20, v16);
return a2;
}