{"type": "func", "start": 5372708128, "end": 5372708372, "name": "InfoLayer::onCopyLevelID", "pseudocode": "// \n// InfoLayer::onCopyLevelID from 0x1403d0520 to 0x1403d0614 (244 bytes)\n// \n// 2 xrefs:\n// > InfoLayer::setupLevelInfo @ 0x1403d02b6\n// > <???> @ 0x1409246a4\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:31:35 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall InfoLayer::onCopyLevelID(__int64 *a1)\n{\n  int ID; // eax\n  unsigned int v3; // edx\n  const CHAR *v4; // rax\n  __int64 v5; // rbx\n  __int64 v6; // rdx\n  __int64 v7; // r8\n  cocos2d::CCNode *v8; // rax\n  __int128 v10; // [rsp+30h] [rbp-48h] BYREF\n  __int64 v11; // [rsp+40h] [rbp-38h]\n  __int64 v12; // [rsp+48h] [rbp-30h]\n  __int128 v13; // [rsp+50h] [rbp-28h] BYREF\n  __int64 v14; // [rsp+60h] [rbp-18h]\n  __int64 v15; // [rsp+68h] [rbp-10h]\n\n  ID = InfoLayer::getID(a1);\n  v3 = -ID;\n  if ( ID > 0 )\n    v3 = ID;\n  v4 = (const CHAR *)GameToolbox::intToString(&v13, v3);\n  PlatformToolbox::copyToClipboard(v4);\n  v13 = 0;\n  v14 = 0;\n  v15 = 15;\n  LOBYTE(v13) = 0;\n  v10 = 0;\n  *(_QWORD *)&v10 = sub_14003D460(0x20u);\n  v11 = 19;\n  v12 = 31;\n  strcpy((char *)v10, \"Copied to clipboard\");\n  v5 = *a1;\n  v8 = TextAlertPopup::create((__int64)&v10, v6, v7, 150, (__int64)&v13);\n  return (*(__int64 (__fastcall **)(__int64 *, cocos2d::CCNode *, __int64))(v5 + 456))(a1, v8, 100);\n}", "assembly": "; \n; InfoLayer::onCopyLevelID from 0x1403d0520 to 0x1403d0614 (244 bytes)\n; \n; 2 xrefs:\n; > InfoLayer::setupLevelInfo @ 0x1403d02b6\n; > <???> @ 0x1409246a4\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:31:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403d0520\npush    rdi                                                            ; +0x5, 0x1403d0525\nsub     rsp, 70h                                                       ; +0x6, 0x1403d0526\nmov     rdi, rcx                                                       ; +0xa, 0x1403d052a\ncall    InfoLayer__getID                                               ; +0xd, 0x1403d052d\nmov     edx, eax                                                       ; +0x12, 0x1403d0532\nneg     edx                                                            ; +0x14, 0x1403d0534\ncmovs   edx, eax                                                       ; +0x16, 0x1403d0536\nlea     rcx, [rsp+78h+var_28]                                          ; +0x19, 0x1403d0539\ncall    GameToolbox__intToString                                       ; +0x1e, 0x1403d053e\nmov     rcx, rax                                                       ; +0x23, 0x1403d0543\ncall    PlatformToolbox__copyToClipboard                               ; +0x26, 0x1403d0546\nlea     rax, [rsp+78h+var_28]                                          ; +0x2b, 0x1403d054b\nmov     [rsp+78h+arg_10], rax                                          ; +0x30, 0x1403d0550\nxorps   xmm0, xmm0                                                     ; +0x38, 0x1403d0558\nmovups  [rsp+78h+var_28], xmm0                                         ; +0x3b, 0x1403d055b\nxor     eax, eax                                                       ; +0x40, 0x1403d0560\nmov     [rsp+78h+var_18], rax                                          ; +0x42, 0x1403d0562\nmov     [rsp+78h+var_10], 0Fh                                          ; +0x47, 0x1403d0567\nmov     byte ptr [rsp+78h+var_28], al                                  ; +0x50, 0x1403d0570\nmovups  [rsp+78h+var_48], xmm0                                         ; +0x54, 0x1403d0574\nmov     [rsp+78h+var_38], rax                                          ; +0x59, 0x1403d0579\nmov     [rsp+78h+var_30], rax                                          ; +0x5e, 0x1403d057e\nmov     ecx, 20h ; ' '                                                 ; +0x63, 0x1403d0583\ncall    sub_14003D460                                                  ; +0x68, 0x1403d0588\nmov     qword ptr [rsp+78h+var_48], rax                                ; +0x6d, 0x1403d058d\nmov     [rsp+78h+var_38], 13h                                          ; +0x72, 0x1403d0592\nmov     [rsp+78h+var_30], 1Fh                                          ; +0x7b, 0x1403d059b\nmovups  xmm0, cs:xmmword_140720B20                                     ; +0x84, 0x1403d05a4\nmovups  xmmword ptr [rax], xmm0                                        ; +0x8b, 0x1403d05ab\nmovzx   ecx, cs:word_140720B30                                         ; +0x8e, 0x1403d05ae\nmov     [rax+10h], cx                                                  ; +0x95, 0x1403d05b5\nmovzx   ecx, cs:byte_140720B32                                         ; +0x99, 0x1403d05b9\nmov     [rax+12h], cl                                                  ; +0xa0, 0x1403d05c0\nmov     byte ptr [rax+13h], 0                                          ; +0xa3, 0x1403d05c3\nmov     rbx, [rdi]                                                     ; +0xa7, 0x1403d05c7\nlea     rax, [rsp+78h+var_28]                                          ; +0xaa, 0x1403d05ca\nmov     [rsp+78h+var_58], rax                                          ; +0xaf, 0x1403d05cf\nmov     r9d, 96h                                                       ; +0xb4, 0x1403d05d4\nmovss   xmm2, cs:dword_140834F64                                       ; +0xba, 0x1403d05da\nmovss   xmm1, cs:dword_140834F20                                       ; +0xc2, 0x1403d05e2\nlea     rcx, [rsp+78h+var_48]                                          ; +0xca, 0x1403d05ea\ncall    TextAlertPopup__create                                         ; +0xcf, 0x1403d05ef\nmov     rdx, rax                                                       ; +0xd4, 0x1403d05f4\nmov     r8d, 64h ; 'd'                                                 ; +0xd7, 0x1403d05f7\nmov     rcx, rdi                                                       ; +0xdd, 0x1403d05fd\ncall    qword ptr [rbx+1C8h]                                           ; +0xe0, 0x1403d0600\nmov     rbx, [rsp+78h+arg_0]                                           ; +0xe6, 0x1403d0606\nadd     rsp, 70h                                                       ; +0xee, 0x1403d060e\npop     rdi                                                            ; +0xf2, 0x1403d0612\nretn                                                                   ; +0xf3, 0x1403d0613", "xrefs": ["InfoLayer::setupLevelInfo @ 0x1403d02b6", "<???> @ 0x1409246a4"], "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"}