{"type": "func", "start": 6443708436, "end": 6443708503, "name": "_errcode", "pseudocode": "// \n// _errcode from 0x180133014 to 0x180133057 (67 bytes)\n// \n// 1 xrefs:\n// > _except2 @ 0x1801330e7\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 __fastcall errcode(char a1)\n{\n  if ( (a1 & 0x20) != 0 )\n  {\n    return 5;\n  }\n  else if ( (a1 & 8) != 0 )\n  {\n    return 1;\n  }\n  else if ( (a1 & 4) != 0 )\n  {\n    return 2;\n  }\n  else if ( (a1 & 1) != 0 )\n  {\n    return 3;\n  }\n  else\n  {\n    return (unsigned int)(2 * (a1 & 2));\n  }\n}", "assembly": "; \n; _errcode from 0x180133014 to 0x180133057 (67 bytes)\n; \n; 1 xrefs:\n; > _except2 @ 0x1801330e7\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     eax, ecx                                                       ; +0x0, 0x180133014\ntest    cl, 20h                                                        ; +0x2, 0x180133016\njz      short loc_180133022                                            ; +0x5, 0x180133019\nmov     ecx, 5                                                         ; +0x7, 0x18013301b\njmp     short loc_180133054                                            ; +0xc, 0x180133020\ntest    al, 8                                                          ; +0xe, 0x180133022\njz      short loc_18013302D                                            ; +0x10, 0x180133024\nmov     ecx, 1                                                         ; +0x12, 0x180133026\njmp     short loc_180133054                                            ; +0x17, 0x18013302b\ntest    al, 4                                                          ; +0x19, 0x18013302d\njz      short loc_180133038                                            ; +0x1b, 0x18013302f\nmov     ecx, 2                                                         ; +0x1d, 0x180133031\njmp     short loc_180133054                                            ; +0x22, 0x180133036\nmov     ecx, 1                                                         ; +0x24, 0x180133038\ntest    cl, al                                                         ; +0x29, 0x18013303d\njz      short loc_180133048                                            ; +0x2b, 0x18013303f\nmov     ecx, 3                                                         ; +0x2d, 0x180133041\njmp     short loc_180133054                                            ; +0x32, 0x180133046\nmovzx   eax, al                                                        ; +0x34, 0x180133048\nmov     ecx, 2                                                         ; +0x37, 0x18013304b\nand     ecx, eax                                                       ; +0x3c, 0x180133050\nadd     ecx, ecx                                                       ; +0x3e, 0x180133052\nmov     eax, ecx                                                       ; +0x40, 0x180133054\nretn                                                                   ; +0x42, 0x180133056", "xrefs": ["_except2 @ 0x1801330e7"], "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"}