{"type": "func", "start": 4301338880, "end": 4301338984, "name": "EditorUI::convertToBaseKey", "pseudocode": "// \n// EditorUI::convertToBaseKey from 0x100613900 to 0x100613968 (104 bytes)\n// \n// 2 xrefs:\n// > EditorUI::processSmartObjectsFromType @ 0x10004431f\n// > EditorUI::convertKeyBasedOnNeighbors @ 0x100613a2d\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\nint __fastcall EditorUI::convertToBaseKey(EditorUI *a1, int a2)\n{\n  int result; // eax\n\n  result = a2;\n  switch ( a2 )\n  {\n    case 2808:\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      result = 2703;\n      break;\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 2838:\n    case 2839:\n    case 2840:\n    case 2841:\n      return result;\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      if ( (unsigned int)(a2 - 867) < 6 || (unsigned int)(a2 - 1266) < 2 )\n        result = 869;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::convertToBaseKey from 0x100613900 to 0x100613968 (104 bytes)\n; \n; 2 xrefs:\n; > EditorUI::processSmartObjectsFromType @ 0x10004431f\n; > EditorUI::convertKeyBasedOnNeighbors @ 0x100613a2d\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\npush    rbp                                                            ; +0x0, 0x100613900\nmov     rbp, rsp                                                       ; +0x1, 0x100613901\nmov     eax, esi                                                       ; +0x4, 0x100613904\nlea     ecx, [rax-0AF8h]; switch 42 cases                              ; +0x6, 0x100613906\ncmp     ecx, 29h                                                       ; +0xc, 0x10061390c\nja      short def_10061391F; jumptable 000000010061391F default case   ; +0xf, 0x10061390f\nlea     rdx, jpt_10061391F                                             ; +0x11, 0x100613911\nmovsxd  rcx, (jpt_10061391F - 100613968h)[rdx+rcx*4]                   ; +0x18, 0x100613918\nadd     rcx, rdx                                                       ; +0x1c, 0x10061391c\njmp     rcx; switch jump                                               ; +0x1f, 0x10061391f\nmov     eax, 0A8Fh; jumptable 000000010061391F cases 2808-2822         ; +0x21, 0x100613921\npop     rbp                                                            ; +0x26, 0x100613926\nretn                                                                   ; +0x27, 0x100613927\nmov     eax, 0A90h; jumptable 000000010061391F cases 2823-2837         ; +0x28, 0x100613928\npop     rbp                                                            ; +0x2d, 0x10061392d\nretn                                                                   ; +0x2e, 0x10061392e\nlea     ecx, [rax-363h]; jumptable 000000010061391F default case       ; +0x2f, 0x10061392f\ncmp     ecx, 6                                                         ; +0x35, 0x100613935\njb      short loc_100613945                                            ; +0x38, 0x100613938\nlea     ecx, [rax-4F2h]                                                ; +0x3a, 0x10061393a\ncmp     ecx, 2                                                         ; +0x40, 0x100613940\njnb     short loc_100613958; jumptable 000000010061391F cases 2838-2841 ; +0x43, 0x100613943\nmov     eax, 365h                                                      ; +0x45, 0x100613945\npop     rbp                                                            ; +0x4a, 0x10061394a\nretn                                                                   ; +0x4b, 0x10061394b\nmov     eax, 0B16h; jumptable 000000010061391F cases 2842,2846         ; +0x4c, 0x10061394c\npop     rbp                                                            ; +0x51, 0x100613951\nretn                                                                   ; +0x52, 0x100613952\nmov     eax, 0B19h; jumptable 000000010061391F cases 2845,2849         ; +0x53, 0x100613953\npop     rbp; jumptable 000000010061391F cases 2838-2841                ; +0x58, 0x100613958\nretn                                                                   ; +0x59, 0x100613959\nmov     eax, 0B18h; jumptable 000000010061391F cases 2844,2848         ; +0x5a, 0x10061395a\npop     rbp                                                            ; +0x5f, 0x10061395f\nretn                                                                   ; +0x60, 0x100613960\nmov     eax, 0B17h; jumptable 000000010061391F cases 2843,2847         ; +0x61, 0x100613961\npop     rbp                                                            ; +0x66, 0x100613966\nretn                                                                   ; +0x67, 0x100613967", "xrefs": ["EditorUI::processSmartObjectsFromType @ 0x10004431f", "EditorUI::convertKeyBasedOnNeighbors @ 0x100613a2d"], "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"}