//
// unknown_libname_75 from 0x1801424d0 to 0x18014258e (190 bytes)
//
// 3 xrefs:
// > _putwch_nolock @ 0x180142105
// > ??> @ 0x180203d40
// > ??> @ 0x180203d4c
//
// 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
//
// 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;
}