{"type": "func", "start": 5369506000, "end": 5369506331, "name": "CommentOptionsPopup::onCopy", "pseudocode": "// \n// CommentOptionsPopup::onCopy from 0x1400c28d0 to 0x1400c2a1b (331 bytes)\n// \n// 2 xrefs:\n// > CommentOptionsPopup::init @ 0x1400c250b\n// > <???> @ 0x140913b98\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:26:19 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall CommentOptionsPopup::onCopy(__int64 *a1)\n{\n  const CHAR *v2; // rax\n  __int64 v3; // rbx\n  __int64 v4; // rdx\n  __int64 v5; // r8\n  __int64 v6; // rax\n  __int128 v7; // [rsp+38h] [rbp-80h] BYREF\n  __int64 v8; // [rsp+48h] [rbp-70h]\n  __int64 v9; // [rsp+50h] [rbp-68h]\n  __int128 v10; // [rsp+58h] [rbp-60h] BYREF\n  __int64 v11; // [rsp+68h] [rbp-50h]\n  __int64 v12; // [rsp+70h] [rbp-48h]\n  unsigned __int64 v13[4]; // [rsp+80h] [rbp-38h] BYREF\n\n  sub_14003F4F0((__int64)v13, a1[125] + 320);\n  GameToolbox::stripNonBreakingSpaces(v13);\n  v2 = (const CHAR *)sub_14003F4F0((__int64)&v10, (__int64)v13);\n  PlatformToolbox::copyToClipboard(v2);\n  v10 = 0;\n  v11 = 0;\n  v12 = 15;\n  LOBYTE(v10) = 0;\n  v7 = 0;\n  *(_QWORD *)&v7 = sub_14003D460(0x20u);\n  v8 = 19;\n  v9 = 31;\n  strcpy((char *)v7, \"Copied to clipboard\");\n  v3 = *a1;\n  v6 = TextAlertPopup::create(&v7, v4, v5, 150, &v10);\n  (*(void (__fastcall **)(__int64 *, __int64, __int64))(v3 + 456))(a1, v6, 100);\n  sub_14003D310((__int64)v13);\n}", "assembly": "; \n; CommentOptionsPopup::onCopy from 0x1400c28d0 to 0x1400c2a1b (331 bytes)\n; \n; 2 xrefs:\n; > CommentOptionsPopup::init @ 0x1400c250b\n; > <???> @ 0x140913b98\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:26:19 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400c28d0\npush    rdi                                                            ; +0x5, 0x1400c28d5\nsub     rsp, 0B0h                                                      ; +0x6, 0x1400c28d6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1400c28dd\nxor     rax, rsp                                                       ; +0x14, 0x1400c28e4\nmov     [rsp+0B8h+var_18], rax                                         ; +0x17, 0x1400c28e7\nmov     rdi, rcx                                                       ; +0x1f, 0x1400c28ef\nxor     ebx, ebx                                                       ; +0x22, 0x1400c28f2\nmov     rdx, [rcx+3E8h]                                                ; +0x24, 0x1400c28f4\nadd     rdx, 140h                                                      ; +0x2b, 0x1400c28fb\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0x32, 0x1400c2902\ncall    sub_14003F4F0                                                  ; +0x3a, 0x1400c290a\nnop                                                                    ; +0x3f, 0x1400c290f\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0x40, 0x1400c2910\ncall    GameToolbox__stripNonBreakingSpaces                            ; +0x48, 0x1400c2918\nlea     rdx, [rsp+0B8h+var_38]                                         ; +0x4d, 0x1400c291d\nlea     rcx, [rsp+0B8h+var_60]                                         ; +0x55, 0x1400c2925\ncall    sub_14003F4F0                                                  ; +0x5a, 0x1400c292a\nmov     rcx, rax                                                       ; +0x5f, 0x1400c292f\ncall    PlatformToolbox__copyToClipboard                               ; +0x62, 0x1400c2932\nlea     rax, [rsp+0B8h+var_60]                                         ; +0x67, 0x1400c2937\nmov     [rsp+0B8h+var_88], rax                                         ; +0x6c, 0x1400c293c\nxorps   xmm0, xmm0                                                     ; +0x71, 0x1400c2941\nmovups  [rsp+0B8h+var_60], xmm0                                        ; +0x74, 0x1400c2944\nmov     [rsp+0B8h+var_50], rbx                                         ; +0x79, 0x1400c2949\nmov     [rsp+0B8h+var_48], 0Fh                                         ; +0x7e, 0x1400c294e\nmov     byte ptr [rsp+0B8h+var_60], bl                                 ; +0x87, 0x1400c2957\nmovups  [rsp+0B8h+var_80], xmm0                                        ; +0x8b, 0x1400c295b\nmov     [rsp+0B8h+var_70], rbx                                         ; +0x90, 0x1400c2960\nmov     [rsp+0B8h+var_68], rbx                                         ; +0x95, 0x1400c2965\nmov     ecx, 20h ; ' '                                                 ; +0x9a, 0x1400c296a\ncall    sub_14003D460                                                  ; +0x9f, 0x1400c296f\nmov     qword ptr [rsp+0B8h+var_80], rax                               ; +0xa4, 0x1400c2974\nmov     [rsp+0B8h+var_70], 13h                                         ; +0xa9, 0x1400c2979\nmov     [rsp+0B8h+var_68], 1Fh                                         ; +0xb2, 0x1400c2982\nmovups  xmm0, cs:xmmword_140720B20                                     ; +0xbb, 0x1400c298b\nmovups  xmmword ptr [rax], xmm0                                        ; +0xc2, 0x1400c2992\nmovzx   ecx, cs:word_140720B30                                         ; +0xc5, 0x1400c2995\nmov     [rax+10h], cx                                                  ; +0xcc, 0x1400c299c\nmovzx   ecx, cs:byte_140720B32                                         ; +0xd0, 0x1400c29a0\nmov     [rax+12h], cl                                                  ; +0xd7, 0x1400c29a7\nmov     [rax+13h], bl                                                  ; +0xda, 0x1400c29aa\nmov     rbx, [rdi]                                                     ; +0xdd, 0x1400c29ad\nlea     rax, [rsp+0B8h+var_60]                                         ; +0xe0, 0x1400c29b0\nmov     [rsp+0B8h+var_98], rax                                         ; +0xe5, 0x1400c29b5\nmov     r9d, 96h                                                       ; +0xea, 0x1400c29ba\nmovss   xmm2, cs:dword_140834F64                                       ; +0xf0, 0x1400c29c0\nmovss   xmm1, cs:dword_140834F20                                       ; +0xf8, 0x1400c29c8\nlea     rcx, [rsp+0B8h+var_80]                                         ; +0x100, 0x1400c29d0\ncall    TextAlertPopup__create                                         ; +0x105, 0x1400c29d5\nmov     rdx, rax                                                       ; +0x10a, 0x1400c29da\nmov     r8d, 64h ; 'd'                                                 ; +0x10d, 0x1400c29dd\nmov     rcx, rdi                                                       ; +0x113, 0x1400c29e3\ncall    qword ptr [rbx+1C8h]                                           ; +0x116, 0x1400c29e6\nnop                                                                    ; +0x11c, 0x1400c29ec\nlea     rcx, [rsp+0B8h+var_38]                                         ; +0x11d, 0x1400c29ed\ncall    sub_14003D310                                                  ; +0x125, 0x1400c29f5\nmov     rcx, [rsp+0B8h+var_18]                                         ; +0x12a, 0x1400c29fa\nxor     rcx, rsp; StackCookie                                          ; +0x132, 0x1400c2a02\ncall    __security_check_cookie                                        ; +0x135, 0x1400c2a05\nmov     rbx, [rsp+0B8h+arg_8]                                          ; +0x13a, 0x1400c2a0a\nadd     rsp, 0B0h                                                      ; +0x142, 0x1400c2a12\npop     rdi                                                            ; +0x149, 0x1400c2a19\nretn                                                                   ; +0x14a, 0x1400c2a1a", "xrefs": ["CommentOptionsPopup::init @ 0x1400c250b", "<???> @ 0x140913b98"], "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"}