{"type": "func", "start": 5370819776, "end": 5370819970, "name": "EditorUI::deactivateTransformControl", "pseudocode": "// \n// EditorUI::deactivateTransformControl from 0x1402034c0 to 0x140203582 (194 bytes)\n// \n// 24 xrefs:\n// > EditorUI::init @ 0x1401a9eaf\n// > EditorUI::onDelete @ 0x1401b039a\n// > EditorUI::onDelete @ 0x1401b04ea\n// > EditorUI::onDeleteSelected @ 0x1401b0b24\n// > EditorUI::onDeleteSelected @ 0x1401b0de5\n// > EditorUI::onDeleteSelected @ 0x1401b0e14\n// > EditorUI::updateSpecialUIElements @ 0x1401b3b97\n// > EditorUI::addObjectsToSmartTemplate @ 0x1401b65c5\n// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b7225\n// > EditorUI::deleteSmartBlocksFromObjects @ 0x1401b7821\n// > EditorUI::createSmartObjectsFromType @ 0x1401b7ce5\n// > EditorUI::selectAll @ 0x1401c7ffe\n// > EditorUI::selectAllWithDirection @ 0x1401c81b4\n// > EditorUI::deselectAll @ 0x1401c8389\n// > EditorUI::spriteFromObjectString @ 0x1401f0be3\n// > EditorUI::alignObjects @ 0x140201c5f\n// > EditorUI::updateControlsAfterAlign @ 0x140201d10\n// > EditorUI::activateRotationControl @ 0x140202635\n// > EditorUI::activateScaleControl @ 0x140202c16\n// > EditorUI::activateTransformControl @ 0x14020330d\n// > LevelEditorLayer::handleAction @ 0x1403f2e76\n// > <???> @ 0x1408a4048\n// > <???> @ 0x1408a4058\n// > <???> @ 0x14091b020\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:14 +0000\n// \n\nvoid __fastcall EditorUI::deactivateTransformControl(__int64 a1)\n{\n  __int64 v2; // rbx\n  __int64 v3; // rcx\n  __int64 v4; // rcx\n  __int16 v5; // [rsp+30h] [rbp+8h] BYREF\n  char v6; // [rsp+32h] [rbp+Ah]\n\n  if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 344LL))(*(_QWORD *)(a1 + 840)) )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 840) + 336LL))(*(_QWORD *)(a1 + 840), 0);\n    v2 = *(_QWORD *)(a1 + 840);\n    v3 = *(_QWORD *)(v2 + 584);\n    if ( v3 )\n      (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)(v3 + 320) + 32LL))(v3 + 320, 0, 0);\n    *(_QWORD *)(v2 + 584) = 0;\n    if ( *(_DWORD *)(v2 + 432) != -1 )\n    {\n      v4 = *(_QWORD *)(v2 + 440);\n      *(_DWORD *)(v2 + 432) = -1;\n      *(_WORD *)(v2 + 436) = 0;\n      if ( v4 )\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 88LL))(v4);\n    }\n  }\n  v5 = -1;\n  v6 = -1;\n  EditorUI::updateEditButtonColor(a1, 47, &v5);\n}", "assembly": "; \n; EditorUI::deactivateTransformControl from 0x1402034c0 to 0x140203582 (194 bytes)\n; \n; 24 xrefs:\n; > EditorUI::init @ 0x1401a9eaf\n; > EditorUI::onDelete @ 0x1401b039a\n; > EditorUI::onDelete @ 0x1401b04ea\n; > EditorUI::onDeleteSelected @ 0x1401b0b24\n; > EditorUI::onDeleteSelected @ 0x1401b0de5\n; > EditorUI::onDeleteSelected @ 0x1401b0e14\n; > EditorUI::updateSpecialUIElements @ 0x1401b3b97\n; > EditorUI::addObjectsToSmartTemplate @ 0x1401b65c5\n; > EditorUI::createSmartObjectsFromTemplate @ 0x1401b7225\n; > EditorUI::deleteSmartBlocksFromObjects @ 0x1401b7821\n; > EditorUI::createSmartObjectsFromType @ 0x1401b7ce5\n; > EditorUI::selectAll @ 0x1401c7ffe\n; > EditorUI::selectAllWithDirection @ 0x1401c81b4\n; > EditorUI::deselectAll @ 0x1401c8389\n; > EditorUI::spriteFromObjectString @ 0x1401f0be3\n; > EditorUI::alignObjects @ 0x140201c5f\n; > EditorUI::updateControlsAfterAlign @ 0x140201d10\n; > EditorUI::activateRotationControl @ 0x140202635\n; > EditorUI::activateScaleControl @ 0x140202c16\n; > EditorUI::activateTransformControl @ 0x14020330d\n; > LevelEditorLayer::handleAction @ 0x1403f2e76\n; > <???> @ 0x1408a4048\n; > <???> @ 0x1408a4058\n; > <???> @ 0x14091b020\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:14 +0000\n; \npush    rdi                                                            ; +0x0, 0x1402034c0\nsub     rsp, 20h                                                       ; +0x2, 0x1402034c2\nmov     rdi, rcx                                                       ; +0x6, 0x1402034c6\nmov     rcx, [rcx+348h]                                                ; +0x9, 0x1402034c9\nmov     rax, [rcx]                                                     ; +0x10, 0x1402034d0\ncall    qword ptr [rax+158h]                                           ; +0x13, 0x1402034d3\ntest    al, al                                                         ; +0x19, 0x1402034d9\njz      short loc_140203553                                            ; +0x1b, 0x1402034db\nmov     rcx, [rdi+348h]                                                ; +0x1d, 0x1402034dd\nxor     edx, edx                                                       ; +0x24, 0x1402034e4\nmov     [rsp+28h+arg_8], rbx                                           ; +0x26, 0x1402034e6\nmov     rax, [rcx]                                                     ; +0x2b, 0x1402034eb\ncall    qword ptr [rax+150h]                                           ; +0x2e, 0x1402034ee\nmov     rbx, [rdi+348h]                                                ; +0x34, 0x1402034f4\nmov     rcx, [rbx+248h]                                                ; +0x3b, 0x1402034fb\ntest    rcx, rcx                                                       ; +0x42, 0x140203502\njz      short loc_140203519                                            ; +0x45, 0x140203505\nadd     rcx, 140h                                                      ; +0x47, 0x140203507\nxor     r8d, r8d                                                       ; +0x4e, 0x14020350e\nxor     edx, edx                                                       ; +0x51, 0x140203511\nmov     rax, [rcx]                                                     ; +0x53, 0x140203513\ncall    qword ptr [rax+20h]                                            ; +0x56, 0x140203516\nxor     eax, eax                                                       ; +0x59, 0x140203519\nmov     [rbx+248h], rax                                                ; +0x5b, 0x14020351b\ncmp     dword ptr [rbx+1B0h], 0FFFFFFFFh                               ; +0x62, 0x140203522\njz      short loc_14020354E                                            ; +0x69, 0x140203529\nmov     rcx, [rbx+1B8h]                                                ; +0x6b, 0x14020352b\nmov     dword ptr [rbx+1B0h], 0FFFFFFFFh                               ; +0x72, 0x140203532\nmov     [rbx+1B4h], ax                                                 ; +0x7c, 0x14020353c\ntest    rcx, rcx                                                       ; +0x83, 0x140203543\njz      short loc_14020354E                                            ; +0x86, 0x140203546\nmov     rax, [rcx]                                                     ; +0x88, 0x140203548\ncall    qword ptr [rax+58h]                                            ; +0x8b, 0x14020354b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8e, 0x14020354e\nmovzx   eax, cs:word_1407033E0                                         ; +0x93, 0x140203553\nlea     r8, [rsp+28h+arg_0]                                            ; +0x9a, 0x14020355a\nmov     [rsp+28h+arg_0], ax                                            ; +0x9f, 0x14020355f\nmov     edx, 2Fh ; '/'                                                 ; +0xa4, 0x140203564\nmovzx   eax, cs:byte_1407033E2                                         ; +0xa9, 0x140203569\nmov     rcx, rdi                                                       ; +0xb0, 0x140203570\nmov     [rsp+28h+arg_2], al                                            ; +0xb3, 0x140203573\ncall    EditorUI__updateEditButtonColor                                ; +0xb7, 0x140203577\nadd     rsp, 20h                                                       ; +0xbc, 0x14020357c\npop     rdi                                                            ; +0xc0, 0x140203580\nretn                                                                   ; +0xc1, 0x140203581", "xrefs": ["EditorUI::init @ 0x1401a9eaf", "EditorUI::onDelete @ 0x1401b039a", "EditorUI::onDelete @ 0x1401b04ea", "EditorUI::onDeleteSelected @ 0x1401b0b24", "EditorUI::onDeleteSelected @ 0x1401b0de5", "EditorUI::onDeleteSelected @ 0x1401b0e14", "EditorUI::updateSpecialUIElements @ 0x1401b3b97", "EditorUI::addObjectsToSmartTemplate @ 0x1401b65c5", "EditorUI::createSmartObjectsFromTemplate @ 0x1401b7225", "EditorUI::deleteSmartBlocksFromObjects @ 0x1401b7821", "EditorUI::createSmartObjectsFromType @ 0x1401b7ce5", "EditorUI::selectAll @ 0x1401c7ffe", "EditorUI::selectAllWithDirection @ 0x1401c81b4", "EditorUI::deselectAll @ 0x1401c8389", "EditorUI::spriteFromObjectString @ 0x1401f0be3", "EditorUI::alignObjects @ 0x140201c5f", "EditorUI::updateControlsAfterAlign @ 0x140201d10", "EditorUI::activateRotationControl @ 0x140202635", "EditorUI::activateScaleControl @ 0x140202c16", "EditorUI::activateTransformControl @ 0x14020330d", "LevelEditorLayer::handleAction @ 0x1403f2e76", "<???> @ 0x1408a4048", "<???> @ 0x1408a4058", "<???> @ 0x14091b020"], "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"}