{"type": "func", "start": 6443770084, "end": 6443770143, "name": "_putwch_nolock", "pseudocode": "// \n// _putwch_nolock from 0x1801420e4 to 0x18014211f (59 bytes)\n// \n// 3 xrefs:\n// > _write_nolock @ 0x180140492\n// > _write_nolock @ 0x1801404b1\n// > <???> @ 0x180203d10\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nwint_t __cdecl putwch_nolock(wchar_t Character)\n{\n  wint_t Buffer; // [rsp+30h] [rbp+8h] BYREF\n  DWORD NumberOfCharsWritten; // [rsp+38h] [rbp+10h] BYREF\n\n  Buffer = Character;\n  if ( (unsigned int)_dcrt_lowio_ensure_console_output_initialized()\n    && (unsigned int)unknown_libname_75(&Buffer, 1u, &NumberOfCharsWritten) )\n  {\n    return Buffer;\n  }\n  else\n  {\n    return -1;\n  }\n}", "assembly": "; \n; _putwch_nolock from 0x1801420e4 to 0x18014211f (59 bytes)\n; \n; 3 xrefs:\n; > _write_nolock @ 0x180140492\n; > _write_nolock @ 0x1801404b1\n; > <???> @ 0x180203d10\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+Buffer], cx                                               ; +0x0, 0x1801420e4\nsub     rsp, 28h                                                       ; +0x5, 0x1801420e9\ncall    __dcrt_lowio_ensure_console_output_initialized                 ; +0x9, 0x1801420ed\ntest    eax, eax                                                       ; +0xe, 0x1801420f2\njz      short loc_180142115                                            ; +0x10, 0x1801420f4\nlea     r8, [rsp+28h+NumberOfCharsWritten]; lpNumberOfCharsWritten     ; +0x12, 0x1801420f6\nmov     edx, 1; nNumberOfCharsToWrite                                  ; +0x17, 0x1801420fb\nlea     rcx, [rsp+28h+Buffer]; lpBuffer                                ; +0x1c, 0x180142100\ncall    unknown_libname_75; Microsoft VisualC 64bit universal runtime  ; +0x21, 0x180142105\ntest    eax, eax                                                       ; +0x26, 0x18014210a\njz      short loc_180142115                                            ; +0x28, 0x18014210c\nmovzx   eax, [rsp+28h+Buffer]                                          ; +0x2a, 0x18014210e\njmp     short loc_18014211A                                            ; +0x2f, 0x180142113\nmov     eax, 0FFFFh                                                    ; +0x31, 0x180142115\nadd     rsp, 28h                                                       ; +0x36, 0x18014211a\nretn                                                                   ; +0x3a, 0x18014211e", "xrefs": ["_write_nolock @ 0x180140492", "_write_nolock @ 0x1801404b1", "<???> @ 0x180203d10"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}