{"type": "func", "start": 6443733080, "end": 6443733144, "name": "_set_error_mode", "pseudocode": "// \n// _set_error_mode from 0x180139058 to 0x180139098 (64 bytes)\n// \n// 3 xrefs:\n// > _wassert @ 0x180131577\n// > <???> @ 0x180203770\n// > <???> @ 0x18020377c\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\nint __cdecl set_error_mode(int Mode)\n{\n  int result; // eax\n\n  if ( Mode >= 0 )\n  {\n    if ( Mode <= 2 )\n    {\n      result = dword_1801F5598;\n      dword_1801F5598 = Mode;\n      return result;\n    }\n    if ( Mode == 3 )\n      return dword_1801F5598;\n  }\n  *errno() = 22;\n  invalid_parameter_noinfo();\n  return -1;\n}", "assembly": "; \n; _set_error_mode from 0x180139058 to 0x180139098 (64 bytes)\n; \n; 3 xrefs:\n; > _wassert @ 0x180131577\n; > <???> @ 0x180203770\n; > <???> @ 0x18020377c\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\nsub     rsp, 28h                                                       ; +0x0, 0x180139058\ntest    ecx, ecx                                                       ; +0x4, 0x18013905c\njs      short loc_180139080                                            ; +0x6, 0x18013905e\ncmp     ecx, 2                                                         ; +0x8, 0x180139060\njle     short loc_180139072                                            ; +0xb, 0x180139063\ncmp     ecx, 3                                                         ; +0xd, 0x180139065\njnz     short loc_180139080                                            ; +0x10, 0x180139068\nmov     eax, cs:dword_1801F5598                                        ; +0x12, 0x18013906a\njmp     short loc_180139093                                            ; +0x18, 0x180139070\nmov     eax, cs:dword_1801F5598                                        ; +0x1a, 0x180139072\nmov     cs:dword_1801F5598, ecx                                        ; +0x20, 0x180139078\njmp     short loc_180139093                                            ; +0x26, 0x18013907e\ncall    _errno                                                         ; +0x28, 0x180139080\nmov     dword ptr [rax], 16h                                           ; +0x2d, 0x180139085\ncall    _invalid_parameter_noinfo                                      ; +0x33, 0x18013908b\nor      eax, 0FFFFFFFFh                                                ; +0x38, 0x180139090\nadd     rsp, 28h                                                       ; +0x3b, 0x180139093\nretn                                                                   ; +0x3f, 0x180139097", "xrefs": ["_wassert @ 0x180131577", "<???> @ 0x180203770", "<???> @ 0x18020377c"], "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"}