{"type": "func", "start": 5369302560, "end": 5369302675, "name": "ColorSelectPopup::onCopy", "pseudocode": "// \n// ColorSelectPopup::onCopy from 0x140090e20 to 0x140090e93 (115 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::init @ 0x14008e7d0\n// > SetupPulsePopup::init @ 0x140439af2\n// > <???> @ 0x1406c6f9c\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\n// Merged with: ColorSelectPopup::onCopy, SetupPulsePopup::onCopy\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall ColorSelectPopup::onCopy(__int64 a1)\n{\n  __int64 v1; // rax\n  __int16 v2; // bx\n  char v3; // di\n  __int64 result; // rax\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  v1 = *(_QWORD *)(a1 + 952);\n  v2 = *(_WORD *)(v1 + 472);\n  v3 = *(_BYTE *)(v1 + 474);\n  result = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    result = qword_1406C2ED8;\n  }\n  *(_WORD *)(result + 944) = v2;\n  *(_BYTE *)(result + 946) = v3;\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::onCopy from 0x140090e20 to 0x140090e93 (115 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::init @ 0x14008e7d0\n; > SetupPulsePopup::init @ 0x140439af2\n; > <???> @ 0x1406c6f9c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140090e20\npush    rdi                                                            ; +0x5, 0x140090e25\nsub     rsp, 20h                                                       ; +0x6, 0x140090e26\nmov     rax, [rcx+3B8h]                                                ; +0xa, 0x140090e2a\nmovzx   ebx, word ptr [rax+1D8h]                                       ; +0x11, 0x140090e31\nmovzx   edi, byte ptr [rax+1DAh]                                       ; +0x18, 0x140090e38\nmov     rax, cs:qword_1406C2ED8                                        ; +0x1f, 0x140090e3f\ntest    rax, rax                                                       ; +0x26, 0x140090e46\njnz     short loc_140090E7A                                            ; +0x29, 0x140090e49\nmov     ecx, 668h; Size                                                ; +0x2b, 0x140090e4b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x30, 0x140090e50\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x140090e55\nmov     rcx, rax                                                       ; +0x3a, 0x140090e5a\ncall    sub_14017AB00                                                  ; +0x3d, 0x140090e5d\nnop                                                                    ; +0x42, 0x140090e62\nmov     cs:qword_1406C2ED8, rax                                        ; +0x43, 0x140090e63\nmov     rdx, [rax]                                                     ; +0x4a, 0x140090e6a\nmov     rcx, rax                                                       ; +0x4d, 0x140090e6d\ncall    qword ptr [rdx+48h]                                            ; +0x50, 0x140090e70\nmov     rax, cs:qword_1406C2ED8                                        ; +0x53, 0x140090e73\nmov     [rax+3B0h], bx                                                 ; +0x5a, 0x140090e7a\nmov     [rax+3B2h], dil                                                ; +0x61, 0x140090e81\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x68, 0x140090e88\nadd     rsp, 20h                                                       ; +0x6d, 0x140090e8d\npop     rdi                                                            ; +0x71, 0x140090e91\nretn                                                                   ; +0x72, 0x140090e92", "xrefs": ["ColorSelectPopup::init @ 0x14008e7d0", "SetupPulsePopup::init @ 0x140439af2", "<???> @ 0x1406c6f9c"], "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"}