{"type": "func", "start": 6443404288, "end": 6443404500, "name": "sub_1800E8C00", "pseudocode": "// \n// sub_1800E8C00 from 0x1800e8c00 to 0x1800e8cd4 (212 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1801afe10\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_1800E8C00(_QWORD *a1, int a2, _DWORD *a3, _BYTE *a4)\n{\n  _DWORD *v4; // r10\n  int v5; // xmm0_4\n\n  v4 = (_DWORD *)*a1;\n  if ( !a3 )\n    return 31;\n  switch ( a2 )\n  {\n    case 1:\n      v5 = v4[230];\n      break;\n    case 2:\n      v5 = v4[231];\n      break;\n    case 3:\n      v5 = v4[232];\n      break;\n    case 4:\n      v5 = v4[233];\n      break;\n    case 5:\n      v5 = v4[234];\n      break;\n    case 7:\n      v5 = v4[236];\n      break;\n    case 8:\n      v5 = v4[237];\n      break;\n    case 12:\n      v5 = v4[142];\n      break;\n    case 13:\n      v5 = v4[143];\n      break;\n    case 15:\n      v5 = v4[243];\n      break;\n    case 16:\n      v5 = v4[245];\n      break;\n    case 17:\n      v5 = v4[244];\n      break;\n    case 21:\n      v5 = v4[238];\n      break;\n    default:\n      return 31;\n  }\n  *a3 = v5;\n  if ( a4 )\n    *a4 = 0;\n  return 0;\n}", "assembly": "; \n; sub_1800E8C00 from 0x1800e8c00 to 0x1800e8cd4 (212 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1801afe10\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, 0x1800e8c00\ntest    r8, r8                                                         ; +0x3, 0x1800e8c03\njz      def_1800E8C2B; jumptable 00000001800E8C2B default case, cases 6,9-11,14,18-20 ; +0x6, 0x1800e8c06\nlea     eax, [rdx-1]; switch 21 cases                                  ; +0xc, 0x1800e8c0c\ncmp     eax, 14h                                                       ; +0xf, 0x1800e8c0f\nja      def_1800E8C2B; jumptable 00000001800E8C2B default case, cases 6,9-11,14,18-20 ; +0x12, 0x1800e8c12\nlea     rdx, cs:180000000h                                             ; +0x18, 0x1800e8c18\ncdqe                                                                   ; +0x1f, 0x1800e8c1f\nmov     ecx, ds:(jpt_1800E8C2B - 180000000h)[rdx+rax*4]                ; +0x21, 0x1800e8c21\nadd     rcx, rdx                                                       ; +0x28, 0x1800e8c28\njmp     rcx; switch jump                                               ; +0x2b, 0x1800e8c2b\nmovss   xmm0, dword ptr [r10+398h]; jumptable 00000001800E8C2B case 1  ; +0x2d, 0x1800e8c2d\njmp     loc_1800E8CBD                                                  ; +0x36, 0x1800e8c36\nmovss   xmm0, dword ptr [r10+39Ch]; jumptable 00000001800E8C2B case 2  ; +0x3b, 0x1800e8c3b\njmp     short loc_1800E8CBD                                            ; +0x44, 0x1800e8c44\nmovss   xmm0, dword ptr [r10+3A0h]; jumptable 00000001800E8C2B case 3  ; +0x46, 0x1800e8c46\njmp     short loc_1800E8CBD                                            ; +0x4f, 0x1800e8c4f\nmovss   xmm0, dword ptr [r10+3A4h]; jumptable 00000001800E8C2B case 4  ; +0x51, 0x1800e8c51\njmp     short loc_1800E8CBD                                            ; +0x5a, 0x1800e8c5a\nmovss   xmm0, dword ptr [r10+3A8h]; jumptable 00000001800E8C2B case 5  ; +0x5c, 0x1800e8c5c\njmp     short loc_1800E8CBD                                            ; +0x65, 0x1800e8c65\nmovss   xmm0, dword ptr [r10+3B0h]; jumptable 00000001800E8C2B case 7  ; +0x67, 0x1800e8c67\njmp     short loc_1800E8CBD                                            ; +0x70, 0x1800e8c70\nmovss   xmm0, dword ptr [r10+3B4h]; jumptable 00000001800E8C2B case 8  ; +0x72, 0x1800e8c72\njmp     short loc_1800E8CBD                                            ; +0x7b, 0x1800e8c7b\nmovss   xmm0, dword ptr [r10+238h]; jumptable 00000001800E8C2B case 12 ; +0x7d, 0x1800e8c7d\njmp     short loc_1800E8CBD                                            ; +0x86, 0x1800e8c86\nmovss   xmm0, dword ptr [r10+23Ch]; jumptable 00000001800E8C2B case 13 ; +0x88, 0x1800e8c88\njmp     short loc_1800E8CBD                                            ; +0x91, 0x1800e8c91\nmovss   xmm0, dword ptr [r10+3CCh]; jumptable 00000001800E8C2B case 15 ; +0x93, 0x1800e8c93\njmp     short loc_1800E8CBD                                            ; +0x9c, 0x1800e8c9c\nmovss   xmm0, dword ptr [r10+3D4h]; jumptable 00000001800E8C2B case 16 ; +0x9e, 0x1800e8c9e\njmp     short loc_1800E8CBD                                            ; +0xa7, 0x1800e8ca7\nmovss   xmm0, dword ptr [r10+3D0h]; jumptable 00000001800E8C2B case 17 ; +0xa9, 0x1800e8ca9\njmp     short loc_1800E8CBD                                            ; +0xb2, 0x1800e8cb2\nmovss   xmm0, dword ptr [r10+3B8h]; jumptable 00000001800E8C2B case 21 ; +0xb4, 0x1800e8cb4\nmovss   dword ptr [r8], xmm0                                           ; +0xbd, 0x1800e8cbd\ntest    r9, r9                                                         ; +0xc2, 0x1800e8cc2\njz      short loc_1800E8CCB                                            ; +0xc5, 0x1800e8cc5\nmov     byte ptr [r9], 0                                               ; +0xc7, 0x1800e8cc7\nxor     eax, eax                                                       ; +0xcb, 0x1800e8ccb\nretn                                                                   ; +0xcd, 0x1800e8ccd\nmov     eax, 1Fh; jumptable 00000001800E8C2B default case, cases 6,9-11,14,18-20 ; +0xce, 0x1800e8cce\nretn                                                                   ; +0xd3, 0x1800e8cd3", "xrefs": ["<???> @ 0x1801afe10"], "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"}