{"type": "func", "start": 4301330416, "end": 4301330791, "name": "EditorUI::activateTransformControl", "pseudocode": "// \n// EditorUI::activateTransformControl from 0x1006117f0 to 0x100611967 (375 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c1e3\n// > EditorUI::deactivateTransformControl @ 0x100611204\n// > EditorUI::createMoveMenu @ 0x100639fd1\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 12:34:35 +0000\n// \n\n__int64 __fastcall EditorUI::activateTransformControl(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 result; // rax\n  __int64 v4; // rax\n  char v5; // al\n  __int64 v6; // rdi\n\n  v2 = *(_QWORD *)(a1 + 896);\n  result = sub_1007FEF90(v2);\n  if ( (_DWORD)result || *(_QWORD *)(a1 + 1496) )\n  {\n    v4 = EditorSFXManager::sharedState(v2);\n    EditorSFXManager::playAction_1(v4, 189);\n    v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 352LL))(*(_QWORD *)(a1 + 784));\n    v6 = *(_QWORD *)(a1 + 784);\n    if ( v5 )\n    {\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);\n      sub_100642300(*(_QWORD *)(a1 + 784));\n      sub_100643040(*(_QWORD *)(a1 + 784));\n      v6 = *(_QWORD *)(a1 + 784);\n      *(_QWORD *)(v6 + 584) = 0x3F00000040000000LL;\n    }\n    EditorUI::updateEditButtonColor(a1, *(unsigned int *)(v6 + 592), 0xFFFFFF);\n    *(_DWORD *)(*(_QWORD *)(a1 + 784) + 592LL) = 0;\n    *(_DWORD *)(a1 + 696) = -1;\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760)) )\n    {\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 760) + 344LL))(*(_QWORD *)(a1 + 760), 0);\n      GJRotationControl::finishTouch(*(_QWORD *)(a1 + 760));\n      GJRotationControl::releaseInputFocus(*(_QWORD *)(a1 + 760));\n    }\n    if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )\n    {\n      if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )\n      {\n        (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 792) + 344LL))(*(_QWORD *)(a1 + 792), 0);\n        sub_100645530(*(_QWORD *)(a1 + 792));\n      }\n      EditorUI::updateEditButtonColor(a1, 47, 0xFFFFFF);\n      return EditorUI::toggleSpecialEditButtons(a1, 0);\n    }\n    else\n    {\n      return EditorUI::showTransformControl(a1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::activateTransformControl from 0x1006117f0 to 0x100611967 (375 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c1e3\n; > EditorUI::deactivateTransformControl @ 0x100611204\n; > EditorUI::createMoveMenu @ 0x100639fd1\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 12:34:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006117f0\nmov     rbp, rsp                                                       ; +0x1, 0x1006117f1\npush    rbx                                                            ; +0x4, 0x1006117f4\npush    rax                                                            ; +0x5, 0x1006117f5\nmov     rbx, rdi                                                       ; +0x6, 0x1006117f6\nmov     rdi, [rdi+380h]                                                ; +0x9, 0x1006117f9\ncall    sub_1007FEF90                                                  ; +0x10, 0x100611800\ntest    eax, eax                                                       ; +0x15, 0x100611805\njnz     short loc_100611817                                            ; +0x17, 0x100611807\ncmp     qword ptr [rbx+5D8h], 0                                        ; +0x19, 0x100611809\njz      loc_100611960                                                  ; +0x21, 0x100611811\ncall    EditorSFXManager__sharedState                                  ; +0x27, 0x100611817\nmov     rdi, rax                                                       ; +0x2c, 0x10061181c\nmov     esi, 0BDh                                                      ; +0x2f, 0x10061181f\ncall    EditorSFXManager__playAction_1                                 ; +0x34, 0x100611824\nmov     rdi, [rbx+310h]                                                ; +0x39, 0x100611829\nmov     rax, [rdi]                                                     ; +0x40, 0x100611830\ncall    qword ptr [rax+160h]                                           ; +0x43, 0x100611833\nmov     rdi, [rbx+310h]                                                ; +0x49, 0x100611839\ntest    al, al                                                         ; +0x50, 0x100611840\njz      short loc_10061187E                                            ; +0x52, 0x100611842\nmov     rax, [rdi]                                                     ; +0x54, 0x100611844\nxor     esi, esi                                                       ; +0x57, 0x100611847\ncall    qword ptr [rax+158h]                                           ; +0x59, 0x100611849\nmov     rdi, [rbx+310h]                                                ; +0x5f, 0x10061184f\ncall    sub_100642300                                                  ; +0x66, 0x100611856\nmov     rdi, [rbx+310h]                                                ; +0x6b, 0x10061185b\ncall    sub_100643040                                                  ; +0x72, 0x100611862\nmov     rdi, [rbx+310h]                                                ; +0x77, 0x100611867\nmovsd   xmm0, cs:qword_100A0D760                                       ; +0x7e, 0x10061186e\nmovsd   qword ptr [rdi+248h], xmm0                                     ; +0x86, 0x100611876\nmov     esi, [rdi+250h]                                                ; +0x8e, 0x10061187e\nmov     rdi, rbx                                                       ; +0x94, 0x100611884\nmov     edx, 0FFFFFFh                                                  ; +0x97, 0x100611887\ncall    EditorUI__updateEditButtonColor                                ; +0x9c, 0x10061188c\nmov     rax, [rbx+310h]                                                ; +0xa1, 0x100611891\nmov     dword ptr [rax+250h], 0                                        ; +0xa8, 0x100611898\nmov     dword ptr [rbx+2B8h], 0FFFFFFFFh                               ; +0xb2, 0x1006118a2\nmov     rdi, [rbx+2F8h]                                                ; +0xbc, 0x1006118ac\nmov     rax, [rdi]                                                     ; +0xc3, 0x1006118b3\ncall    qword ptr [rax+160h]                                           ; +0xc6, 0x1006118b6\ntest    al, al                                                         ; +0xcc, 0x1006118bc\njz      short loc_1006118EA                                            ; +0xce, 0x1006118be\nmov     rdi, [rbx+2F8h]                                                ; +0xd0, 0x1006118c0\nmov     rax, [rdi]                                                     ; +0xd7, 0x1006118c7\nxor     esi, esi                                                       ; +0xda, 0x1006118ca\ncall    qword ptr [rax+158h]                                           ; +0xdc, 0x1006118cc\nmov     rdi, [rbx+2F8h]                                                ; +0xe2, 0x1006118d2\ncall    GJRotationControl__finishTouch                                 ; +0xe9, 0x1006118d9\nmov     rdi, [rbx+2F8h]                                                ; +0xee, 0x1006118de\ncall    GJRotationControl__releaseInputFocus                           ; +0xf5, 0x1006118e5\nmov     rdi, [rbx+318h]                                                ; +0xfa, 0x1006118ea\nmov     rax, [rdi]                                                     ; +0x101, 0x1006118f1\ncall    qword ptr [rax+160h]                                           ; +0x104, 0x1006118f4\ntest    al, al                                                         ; +0x10a, 0x1006118fa\njz      short loc_100611952                                            ; +0x10c, 0x1006118fc\nmov     rdi, [rbx+318h]                                                ; +0x10e, 0x1006118fe\nmov     rax, [rdi]                                                     ; +0x115, 0x100611905\ncall    qword ptr [rax+160h]                                           ; +0x118, 0x100611908\ntest    al, al                                                         ; +0x11e, 0x10061190e\njz      short loc_100611930                                            ; +0x120, 0x100611910\nmov     rdi, [rbx+318h]                                                ; +0x122, 0x100611912\nmov     rax, [rdi]                                                     ; +0x129, 0x100611919\nxor     esi, esi                                                       ; +0x12c, 0x10061191c\ncall    qword ptr [rax+158h]                                           ; +0x12e, 0x10061191e\nmov     rdi, [rbx+318h]                                                ; +0x134, 0x100611924\ncall    sub_100645530                                                  ; +0x13b, 0x10061192b\nmov     rdi, rbx                                                       ; +0x140, 0x100611930\nmov     esi, 2Fh ; '/'                                                 ; +0x143, 0x100611933\nmov     edx, 0FFFFFFh                                                  ; +0x148, 0x100611938\ncall    EditorUI__updateEditButtonColor                                ; +0x14d, 0x10061193d\nmov     rdi, rbx                                                       ; +0x152, 0x100611942\nxor     esi, esi                                                       ; +0x155, 0x100611945\nadd     rsp, 8                                                         ; +0x157, 0x100611947\npop     rbx                                                            ; +0x15b, 0x10061194b\npop     rbp                                                            ; +0x15c, 0x10061194c\njmp     EditorUI__toggleSpecialEditButtons                             ; +0x15d, 0x10061194d\nmov     rdi, rbx                                                       ; +0x162, 0x100611952\nadd     rsp, 8                                                         ; +0x165, 0x100611955\npop     rbx                                                            ; +0x169, 0x100611959\npop     rbp                                                            ; +0x16a, 0x10061195a\njmp     EditorUI__showTransformControl                                 ; +0x16b, 0x10061195b\nadd     rsp, 8                                                         ; +0x170, 0x100611960\npop     rbx                                                            ; +0x174, 0x100611964\npop     rbp                                                            ; +0x175, 0x100611965\nretn                                                                   ; +0x176, 0x100611966", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c1e3", "EditorUI::deactivateTransformControl @ 0x100611204", "EditorUI::createMoveMenu @ 0x100639fd1"], "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"}