//
// unknown_libname_75 from 0x1801424d0 to 0x18014258e (190 bytes)
//
// 3 xrefs:
// > _putwch_nolock @ 0x180142105
// > ??> @ 0x180203d40
// > ??> @ 0x180203d4c
//
// 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
//
// Microsoft VisualC 64bit universal runtime
__int64 __fastcall unknown_libname_75(void *lpBuffer, DWORD nNumberOfCharsToWrite, LPDWORD lpNumberOfCharsWritten)
{
unsigned int v6; // ebx
v6 = WriteConsoleW(hObject, lpBuffer, nNumberOfCharsToWrite, lpNumberOfCharsWritten, nullptr);
if ( !v6 && GetLastError() == 6 )
{
if ( (unsigned __int64)hObject <= 0xFFFFFFFFFFFFFFFDuLL )
CloseHandle(hObject);
hObject = CreateFileW(L"CONOUT$", 0x40000000u, 3u, nullptr, 3u, 0, nullptr);
return WriteConsoleW(hObject, lpBuffer, nNumberOfCharsToWrite, lpNumberOfCharsWritten, nullptr);
}
return v6;
}