{"type": "func", "start": 6442961008, "end": 6442961085, "name": "sub_18007C870", "pseudocode": "// \n// sub_18007C870 from 0x18007c870 to 0x18007c8bd (77 bytes)\n// \n// 7 xrefs:\n// > sub_18007C130 @ 0x18007c1b1\n// > sub_18007C540 @ 0x18007c60e\n// > sub_180099C50 @ 0x18009b37f\n// > sub_1800E4120 @ 0x1800e427d\n// > sub_1800E8520 @ 0x1800e8733\n// > sub_1800E9660 @ 0x1800e9684\n// > sub_1800E9660 @ 0x1800e972d\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:53:35 +0000\n// \n\n__int64 __fastcall sub_18007C870(int a1)\n{\n  __int64 result; // rax\n\n  switch ( a1 )\n  {\n    case 1:\n      result = 2;\n      break;\n    case 2:\n      result = 3;\n      break;\n    case 4:\n      result = 4;\n      break;\n    case 5:\n      result = 5;\n      break;\n    case 6:\n      result = 6;\n      break;\n    case 8:\n      result = 7;\n      break;\n    case 12:\n      result = 8;\n      break;\n    default:\n      result = 1;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; sub_18007C870 from 0x18007c870 to 0x18007c8bd (77 bytes)\n; \n; 7 xrefs:\n; > sub_18007C130 @ 0x18007c1b1\n; > sub_18007C540 @ 0x18007c60e\n; > sub_180099C50 @ 0x18009b37f\n; > sub_1800E4120 @ 0x1800e427d\n; > sub_1800E8520 @ 0x1800e8733\n; > sub_1800E9660 @ 0x1800e9684\n; > sub_1800E9660 @ 0x1800e972d\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:53:35 +0000\n; \ndec     ecx; switch 12 cases                                           ; +0x0, 0x18007c870\ncmp     ecx, 0Bh                                                       ; +0x2, 0x18007c872\nja      short def_18007C88B; jumptable 000000018007C88B default case, cases 3,7,9-11 ; +0x5, 0x18007c875\nmovsxd  rax, ecx                                                       ; +0x7, 0x18007c877\nlea     rdx, cs:180000000h                                             ; +0xa, 0x18007c87a\nmov     ecx, ds:(jpt_18007C88B - 180000000h)[rdx+rax*4]                ; +0x11, 0x18007c881\nadd     rcx, rdx                                                       ; +0x18, 0x18007c888\njmp     rcx; switch jump                                               ; +0x1b, 0x18007c88b\nmov     eax, 2; jumptable 000000018007C88B case 1                      ; +0x1d, 0x18007c88d\nretn                                                                   ; +0x22, 0x18007c892\nmov     eax, 3; jumptable 000000018007C88B case 2                      ; +0x23, 0x18007c893\nretn                                                                   ; +0x28, 0x18007c898\nmov     eax, 4; jumptable 000000018007C88B case 4                      ; +0x29, 0x18007c899\nretn                                                                   ; +0x2e, 0x18007c89e\nmov     eax, 5; jumptable 000000018007C88B case 5                      ; +0x2f, 0x18007c89f\nretn                                                                   ; +0x34, 0x18007c8a4\nmov     eax, 6; jumptable 000000018007C88B case 6                      ; +0x35, 0x18007c8a5\nretn                                                                   ; +0x3a, 0x18007c8aa\nmov     eax, 7; jumptable 000000018007C88B case 8                      ; +0x3b, 0x18007c8ab\nretn                                                                   ; +0x40, 0x18007c8b0\nmov     eax, 8; jumptable 000000018007C88B case 12                     ; +0x41, 0x18007c8b1\nretn                                                                   ; +0x46, 0x18007c8b6\nmov     eax, 1; jumptable 000000018007C88B default case, cases 3,7,9-11 ; +0x47, 0x18007c8b7\nretn                                                                   ; +0x4c, 0x18007c8bc", "xrefs": ["sub_18007C130 @ 0x18007c1b1", "sub_18007C540 @ 0x18007c60e", "sub_180099C50 @ 0x18009b37f", "sub_1800E4120 @ 0x1800e427d", "sub_1800E8520 @ 0x1800e8733", "sub_1800E9660 @ 0x1800e9684", "sub_1800E9660 @ 0x1800e972d"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}