// // sub_1800E1940 from 0x1800e1940 to 0x1800e1a1e (222 bytes) // // 3 xrefs: // > sub_1800DA0D0 @ 0x1800daf9b // > sub_1800E3630 @ 0x1800e3662 // > @ 0x1801c51f0 // // 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:22:36 +0000 // void *__fastcall sub_1800E1940(LPCWCH lpWideCharStr) { int v2; // eax int cbMultiByte; // edi void *lpMultiByteStr; // rbx v2 = WideCharToMultiByte(0xFDE9u, 0, lpWideCharStr, -1, nullptr, 0, nullptr, nullptr); cbMultiByte = v2; if ( v2 ) { lpMultiByteStr = calloc(v2, 1u); if ( WideCharToMultiByte(0xFDE9u, 0, lpWideCharStr, -1, (LPSTR)lpMultiByteStr, cbMultiByte, nullptr, nullptr) ) { return lpMultiByteStr; } else { sub_1800E1AF0(65544, "Win32: Failed to convert string to UTF-8"); free(lpMultiByteStr); return nullptr; } } else { sub_1800E1AF0(65544, "Win32: Failed to convert string to UTF-8"); return nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source