{"type": "func", "start": 6443405056, "end": 6443405174, "name": "sub_1800E8F00", "pseudocode": "// \n// sub_1800E8F00 from 0x1800e8f00 to 0x1800e8f76 (118 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801afe18\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 sub_1800E8F00(__int64 *a1, int a2, _DWORD *a3, _BYTE *a4)\n{\n  __int64 v4; // r10\n  int v5; // eax\n\n  v4 = *a1;\n  if ( !a3 )\n    return 31;\n  switch ( a2 )\n  {\n    case 0:\n      v5 = *(_DWORD *)(v4 + 912);\n      break;\n    case 6:\n      v5 = *(_DWORD *)(v4 + 940);\n      break;\n    case 9:\n      v5 = *(_DWORD *)(v4 + 988);\n      break;\n    case 11:\n      v5 = *(_DWORD *)(v4 + 956);\n      break;\n    case 14:\n      v5 = *(_DWORD *)(v4 + 968);\n      break;\n    case 18:\n      v5 = *(unsigned __int8 *)(v4 + 984);\n      break;\n    case 20:\n      v5 = *(_DWORD *)(v4 + 916);\n      break;\n    default:\n      return 31;\n  }\n  *a3 = v5;\n  if ( a4 )\n    *a4 = 0;\n  return 0;\n}", "assembly": "; \n; sub_1800E8F00 from 0x1800e8f00 to 0x1800e8f76 (118 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801afe18\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     r10, [rcx]                                                     ; +0x0, 0x1800e8f00\ntest    r8, r8                                                         ; +0x3, 0x1800e8f03\njz      short def_1800E8F21; jumptable 00000001800E8F21 default case, cases 1-5,7,8,10,12,13,15-17,19 ; +0x6, 0x1800e8f06\ncmp     edx, 14h; switch 21 cases                                      ; +0x8, 0x1800e8f08\nja      short def_1800E8F21; jumptable 00000001800E8F21 default case, cases 1-5,7,8,10,12,13,15-17,19 ; +0xb, 0x1800e8f0b\nmovsxd  rax, edx                                                       ; +0xd, 0x1800e8f0d\nlea     rdx, cs:180000000h                                             ; +0x10, 0x1800e8f10\nmov     ecx, ds:(jpt_1800E8F21 - 180000000h)[rdx+rax*4]                ; +0x17, 0x1800e8f17\nadd     rcx, rdx                                                       ; +0x1e, 0x1800e8f1e\njmp     rcx; switch jump                                               ; +0x21, 0x1800e8f21\nmov     eax, [r10+390h]; jumptable 00000001800E8F21 case 0             ; +0x23, 0x1800e8f23\njmp     short loc_1800E8F61                                            ; +0x2a, 0x1800e8f2a\nmov     eax, [r10+3ACh]; jumptable 00000001800E8F21 case 6             ; +0x2c, 0x1800e8f2c\njmp     short loc_1800E8F61                                            ; +0x33, 0x1800e8f33\nmov     eax, [r10+3BCh]; jumptable 00000001800E8F21 case 11            ; +0x35, 0x1800e8f35\njmp     short loc_1800E8F61                                            ; +0x3c, 0x1800e8f3c\nmov     eax, [r10+3C8h]; jumptable 00000001800E8F21 case 14            ; +0x3e, 0x1800e8f3e\njmp     short loc_1800E8F61                                            ; +0x45, 0x1800e8f45\nmov     eax, [r10+3DCh]; jumptable 00000001800E8F21 case 9             ; +0x47, 0x1800e8f47\njmp     short loc_1800E8F61                                            ; +0x4e, 0x1800e8f4e\nmovzx   eax, byte ptr [r10+3D8h]; jumptable 00000001800E8F21 case 18   ; +0x50, 0x1800e8f50\njmp     short loc_1800E8F61                                            ; +0x58, 0x1800e8f58\nmov     eax, [r10+394h]; jumptable 00000001800E8F21 case 20            ; +0x5a, 0x1800e8f5a\nmov     [r8], eax                                                      ; +0x61, 0x1800e8f61\ntest    r9, r9                                                         ; +0x64, 0x1800e8f64\njz      short loc_1800E8F6D                                            ; +0x67, 0x1800e8f67\nmov     byte ptr [r9], 0                                               ; +0x69, 0x1800e8f69\nxor     eax, eax                                                       ; +0x6d, 0x1800e8f6d\nretn                                                                   ; +0x6f, 0x1800e8f6f\nmov     eax, 1Fh; jumptable 00000001800E8F21 default case, cases 1-5,7,8,10,12,13,15-17,19 ; +0x70, 0x1800e8f70\nretn                                                                   ; +0x75, 0x1800e8f75", "xrefs": ["<???> @ 0x1801afe18"], "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"}