{"type": "func", "start": 6443770976, "end": 6443771058, "name": "__dcrt_lowio_ensure_console_output_initialized", "pseudocode": "// \n// __dcrt_lowio_ensure_console_output_initialized from 0x180142460 to 0x1801424b2 (82 bytes)\n// \n// 2 xrefs:\n// > _putwch_nolock @ 0x1801420ed\n// > <???> @ 0x180203d34\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\n__int64 _dcrt_lowio_ensure_console_output_initialized()\n{\n  char *FileW; // rax\n  unsigned int v1; // ebx\n\n  FileW = (char *)hObject;\n  v1 = 0;\n  if ( hObject == (HANDLE)-2LL )\n  {\n    FileW = (char *)CreateFileW(L\"CONOUT$\", 0x40000000u, 3u, nullptr, 3u, 0, nullptr);\n    hObject = FileW;\n  }\n  LOBYTE(v1) = FileW + 1 != nullptr;\n  return v1;\n}", "assembly": "; \n; __dcrt_lowio_ensure_console_output_initialized from 0x180142460 to 0x1801424b2 (82 bytes)\n; \n; 2 xrefs:\n; > _putwch_nolock @ 0x1801420ed\n; > <???> @ 0x180203d34\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\npush    rbx                                                            ; +0x0, 0x180142460\nsub     rsp, 40h                                                       ; +0x2, 0x180142462\nmov     rax, cs:hObject                                                ; +0x6, 0x180142466\nxor     ebx, ebx                                                       ; +0xd, 0x18014246d\ncmp     rax, 0FFFFFFFFFFFFFFFEh                                        ; +0xf, 0x18014246f\njnz     short loc_1801424A3                                            ; +0x13, 0x180142473\nmov     [rsp+48h+hTemplateFile], rbx; hTemplateFile                    ; +0x15, 0x180142475\nlea     r8d, [rbx+3]; dwShareMode                                      ; +0x1a, 0x18014247a\nmov     [rsp+48h+dwFlagsAndAttributes], ebx; dwFlagsAndAttributes      ; +0x1e, 0x18014247e\nlea     rcx, FileName                                                  ; +0x22, 0x180142482\nxor     r9d, r9d; lpSecurityAttributes                                 ; +0x29, 0x180142489\nmov     [rsp+48h+dwCreationDisposition], r8d; dwCreationDisposition    ; +0x2c, 0x18014248c\nmov     edx, 40000000h; dwDesiredAccess                                ; +0x31, 0x180142491\ncall    cs:CreateFileW                                                 ; +0x36, 0x180142496\nmov     cs:hObject, rax                                                ; +0x3c, 0x18014249c\ncmp     rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x43, 0x1801424a3\nsetnz   bl                                                             ; +0x47, 0x1801424a7\nmov     eax, ebx                                                       ; +0x4a, 0x1801424aa\nadd     rsp, 40h                                                       ; +0x4c, 0x1801424ac\npop     rbx                                                            ; +0x50, 0x1801424b0\nretn                                                                   ; +0x51, 0x1801424b1", "xrefs": ["_putwch_nolock @ 0x1801420ed", "<???> @ 0x180203d34"], "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"}