//
// __dcrt_lowio_ensure_console_output_initialized from 0x180142460 to 0x1801424b2 (82 bytes)
//
// 2 xrefs:
// > _putwch_nolock @ 0x1801420ed
// > ??> @ 0x180203d34
//
// 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 10:55:05 +0000
//
__int64 _dcrt_lowio_ensure_console_output_initialized()
{
char *FileW; // rax
unsigned int v1; // ebx
FileW = (char *)hObject;
v1 = 0;
if ( hObject == (HANDLE)-2LL )
{
FileW = (char *)CreateFileW(L"CONOUT$", 0x40000000u, 3u, nullptr, 3u, 0, nullptr);
hObject = FileW;
}
LOBYTE(v1) = FileW + 1 != nullptr;
return v1;
}