{"type": "func", "start": 5370779680, "end": 5370779834, "name": "EditorUI::convertToBaseKey", "pseudocode": "// \n// EditorUI::convertToBaseKey from 0x1401f9820 to 0x1401f98ba (154 bytes)\n// \n// 2 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x1401b7e15\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x1401f9941\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 11:28:10 +0000\n// \n\n__int64 __fastcall EditorUI::convertToBaseKey(__int64 a1, int a2)\n{\n  __int64 result; // rax\n\n  if ( a2 > 1266 )\n  {\n    if ( a2 > 2808 )\n    {\n      switch ( a2 )\n      {\n        case 2809:\n        case 2810:\n        case 2811:\n        case 2812:\n        case 2813:\n        case 2814:\n        case 2815:\n        case 2816:\n        case 2817:\n        case 2818:\n        case 2819:\n        case 2820:\n        case 2821:\n        case 2822:\n          return 2703;\n        case 2823:\n        case 2824:\n        case 2825:\n        case 2826:\n        case 2827:\n        case 2828:\n        case 2829:\n        case 2830:\n        case 2831:\n        case 2832:\n        case 2833:\n        case 2834:\n        case 2835:\n        case 2836:\n        case 2837:\n          result = 2704;\n          break;\n        case 2842:\n        case 2846:\n          result = 2838;\n          break;\n        case 2843:\n        case 2847:\n          result = 2839;\n          break;\n        case 2844:\n        case 2848:\n          result = 2840;\n          break;\n        case 2845:\n        case 2849:\n          result = 2841;\n          break;\n        default:\n          return (unsigned int)a2;\n      }\n    }\n    else if ( a2 == 2808 )\n    {\n      return 2703;\n    }\n    else\n    {\n      if ( a2 == 1267 )\n        return 869;\n      return (unsigned int)a2;\n    }\n  }\n  else\n  {\n    if ( a2 != 1266 )\n    {\n      switch ( a2 )\n      {\n        case 867:\n        case 868:\n        case 869:\n        case 870:\n        case 871:\n        case 872:\n          return 869;\n        default:\n          return (unsigned int)a2;\n      }\n    }\n    return 869;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::convertToBaseKey from 0x1401f9820 to 0x1401f98ba (154 bytes)\n; \n; 2 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x1401b7e15\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x1401f9941\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 11:28:10 +0000\n; \ncmp     edx, 4F2h                                                      ; +0x0, 0x1401f9820\njg      short loc_1401F9851                                            ; +0x6, 0x1401f9826\njz      short loc_1401F984B; jumptable 00000001401F9849 cases 867-872  ; +0x8, 0x1401f9828\nlea     eax, [rdx-363h]; switch 6 cases                                ; +0xa, 0x1401f982a\ncmp     eax, 5                                                         ; +0x10, 0x1401f9830\nja      short def_1401F9849; jumptable 00000001401F9849 default case   ; +0x13, 0x1401f9833\ncdqe                                                                   ; +0x15, 0x1401f9835\nlea     r8, cs:140000000h                                              ; +0x17, 0x1401f9837\nmov     eax, ds:(jpt_1401F9849 - 140000000h)[r8+rax*4]                 ; +0x1e, 0x1401f983e\nadd     rax, r8                                                        ; +0x26, 0x1401f9846\njmp     rax; switch jump                                               ; +0x29, 0x1401f9849\nmov     eax, 365h; jumptable 00000001401F9849 cases 867-872            ; +0x2b, 0x1401f984b\nretn                                                                   ; +0x30, 0x1401f9850\ncmp     edx, 0AF8h                                                     ; +0x31, 0x1401f9851\njg      short loc_1401F986C                                            ; +0x37, 0x1401f9857\njz      short loc_1401F9896; jumptable 00000001401F9894 cases 2809-2822 ; +0x39, 0x1401f9859\ncmp     edx, 4F3h                                                      ; +0x3b, 0x1401f985b\nmov     eax, 365h                                                      ; +0x41, 0x1401f9861\ncmovz   edx, eax                                                       ; +0x46, 0x1401f9866\nmov     eax, edx; jumptable 00000001401F9849 default case              ; +0x49, 0x1401f9869\nretn                                                                   ; +0x4b, 0x1401f986b\nlea     eax, [rdx-0AF9h]; switch 41 cases                              ; +0x4c, 0x1401f986c\ncmp     eax, 28h                                                       ; +0x52, 0x1401f9872\nja      short def_1401F9849; jumptable 00000001401F9849 default case   ; +0x55, 0x1401f9875\nlea     r8, cs:140000000h                                              ; +0x57, 0x1401f9877\ncdqe                                                                   ; +0x5e, 0x1401f987e\nmovzx   eax, ds:(byte_1401F98F0 - 140000000h)[r8+rax]                  ; +0x60, 0x1401f9880\nmov     ecx, ds:(jpt_1401F9894 - 140000000h)[r8+rax*4]                 ; +0x69, 0x1401f9889\nadd     rcx, r8                                                        ; +0x71, 0x1401f9891\njmp     rcx; switch jump                                               ; +0x74, 0x1401f9894\nmov     eax, 0A8Fh; jumptable 00000001401F9894 cases 2809-2822         ; +0x76, 0x1401f9896\nretn                                                                   ; +0x7b, 0x1401f989b\nmov     eax, 0A90h; jumptable 00000001401F9894 cases 2823-2837         ; +0x7c, 0x1401f989c\nretn                                                                   ; +0x81, 0x1401f98a1\nmov     eax, 0B16h; jumptable 00000001401F9894 cases 2842,2846         ; +0x82, 0x1401f98a2\nretn                                                                   ; +0x87, 0x1401f98a7\nmov     eax, 0B17h; jumptable 00000001401F9894 cases 2843,2847         ; +0x88, 0x1401f98a8\nretn                                                                   ; +0x8d, 0x1401f98ad\nmov     eax, 0B18h; jumptable 00000001401F9894 cases 2844,2848         ; +0x8e, 0x1401f98ae\nretn                                                                   ; +0x93, 0x1401f98b3\nmov     eax, 0B19h; jumptable 00000001401F9894 cases 2845,2849         ; +0x94, 0x1401f98b4\nretn                                                                   ; +0x99, 0x1401f98b9", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x1401b7e15", "EditorUI::convertKeyBasedOnNeighbors @ 0x1401f9941"], "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"}