{"type": "func", "start": 4300965520, "end": 4300965630, "name": "EditorUI::onPasteColor", "pseudocode": "// \n// EditorUI::onPasteColor from 0x1005b8690 to 0x1005b86fe (110 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060bf26\n// > EditorUI::init @ 0x1000070b8\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:32:42 +0000\n// \n\n__int64 __fastcall EditorUI::onPasteColor(__int64 a1)\n{\n  __int64 v1; // rbx\n  __int64 result; // rax\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rsi\n  __int64 v6; // rdx\n\n  v1 = a1;\n  if ( *(_QWORD *)(a1 + 1496) || (a1 = *(_QWORD *)(a1 + 896), result = sub_1007FEF90(a1), (_DWORD)result) )\n  {\n    v3 = EditorSFXManager::sharedState(a1);\n    EditorSFXManager::playAction(v3, 114, 111);\n    v4 = GameManager::sharedState();\n    v5 = *(_QWORD *)(v1 + 1496);\n    LevelEditorLayer::pasteColorState(*(_QWORD *)(v4 + 552), v5, *(_QWORD *)(v1 + 896));\n    return EditorUI::updateObjectInfoLabel(v1, v5, v6);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onPasteColor from 0x1005b8690 to 0x1005b86fe (110 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060bf26\n; > EditorUI::init @ 0x1000070b8\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:32:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005b8690\nmov     rbp, rsp                                                       ; +0x1, 0x1005b8691\npush    rbx                                                            ; +0x4, 0x1005b8694\npush    rax                                                            ; +0x5, 0x1005b8695\nmov     rbx, rdi                                                       ; +0x6, 0x1005b8696\ncmp     qword ptr [rdi+5D8h], 0                                        ; +0x9, 0x1005b8699\njnz     short loc_1005B86B3                                            ; +0x11, 0x1005b86a1\nmov     rdi, [rbx+380h]                                                ; +0x13, 0x1005b86a3\ncall    sub_1007FEF90                                                  ; +0x1a, 0x1005b86aa\ntest    eax, eax                                                       ; +0x1f, 0x1005b86af\njz      short loc_1005B86F7                                            ; +0x21, 0x1005b86b1\ncall    EditorSFXManager__sharedState                                  ; +0x23, 0x1005b86b3\nmov     rdi, rax                                                       ; +0x28, 0x1005b86b8\nmov     esi, 72h ; 'r'                                                 ; +0x2b, 0x1005b86bb\nmov     edx, 6Fh ; 'o'                                                 ; +0x30, 0x1005b86c0\ncall    EditorSFXManager__playAction                                   ; +0x35, 0x1005b86c5\ncall    GameManager__sharedState                                       ; +0x3a, 0x1005b86ca\nmov     rdi, [rax+228h]                                                ; +0x3f, 0x1005b86cf\nmov     rsi, [rbx+5D8h]                                                ; +0x46, 0x1005b86d6\nmov     rdx, [rbx+380h]                                                ; +0x4d, 0x1005b86dd\ncall    LevelEditorLayer__pasteColorState                              ; +0x54, 0x1005b86e4\nmov     rdi, rbx                                                       ; +0x59, 0x1005b86e9\nadd     rsp, 8                                                         ; +0x5c, 0x1005b86ec\npop     rbx                                                            ; +0x60, 0x1005b86f0\npop     rbp                                                            ; +0x61, 0x1005b86f1\njmp     EditorUI__updateObjectInfoLabel                                ; +0x62, 0x1005b86f2\nadd     rsp, 8                                                         ; +0x67, 0x1005b86f7\npop     rbx                                                            ; +0x6b, 0x1005b86fb\npop     rbp                                                            ; +0x6c, 0x1005b86fc\nretn                                                                   ; +0x6d, 0x1005b86fd", "xrefs": ["EditorUI::handleEditorAction @ 0x10060bf26", "EditorUI::init @ 0x1000070b8"], "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"}