//
// sub_180041860 from 0x180041860 to 0x1800418c2 (98 bytes)
//
// 9 xrefs:
// > sub_18003DC70 @ 0x18003df09
// > sub_18003DC70 @ 0x18003df19
// > sub_18003DC70 @ 0x18003df2d
// > sub_18003DC70 @ 0x18003df3e
// > sub_18003E5C0 @ 0x18003e85c
// > sub_18003E5C0 @ 0x18003e86c
// > sub_18003E5C0 @ 0x18003e880
// > sub_18003E5C0 @ 0x18003e891
// > ??> @ 0x1801bb50c
//
// 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 11:21:39 +0000
//
int sub_180041860(char *Buffer, size_t BufferCount, char *Format, ...)
{
unsigned __int64 *v6; // rax
int result; // eax
va_list va; // [rsp+88h] [rbp+20h] BYREF
va_start(va, Format);
v6 = (unsigned __int64 *)sub_1800095E0();
result = _stdio_common_vsnprintf_s(*v6, Buffer, BufferCount, 0xFFFFFFFFFFFFFFFFuLL, Format, nullptr, va);
if ( result < 0 )
return -1;
return result;
}