{"type": "func", "start": 4303036192, "end": 4303036462, "name": "InfoLayer::onCopyLevelID", "pseudocode": "// \n// InfoLayer::onCopyLevelID from 0x1007b1f20 to 0x1007b202e (270 bytes)\n// \n// 1 xrefs:\n// > InfoLayer::setupLevelInfo @ 0x1007b059c\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\nvoid __fastcall InfoLayer::onCopyLevelID(InfoLayer *a1, cocos2d::CCObject *a2)\n{\n  double v2; // xmm0_8\n  GJUserScore *m_score; // rax\n  int m_userID; // eax\n  GJLevelList *m_levelList; // rcx\n  GJGameLevel *m_level; // rcx\n  __int64 v7; // rsi\n  __int64 v8; // rdx\n  __int64 v9; // rcx\n  __int64 v10; // r8\n  __int64 v11; // r9\n  cocos2d::CCObject *v12; // rax\n  size_t v13[3]; // [rsp+0h] [rbp-60h] BYREF\n  __int128 v14; // [rsp+18h] [rbp-48h] BYREF\n  void *v15; // [rsp+28h] [rbp-38h]\n  void *v16[6]; // [rsp+30h] [rbp-30h] BYREF\n\n  m_score = a1->m_score;\n  if ( m_score )\n  {\n    m_userID = m_score->m_userID;\n  }\n  else\n  {\n    m_levelList = a1->m_levelList;\n    if ( m_levelList )\n    {\n      m_userID = -m_levelList->m_listID;\n    }\n    else\n    {\n      m_level = a1->m_level;\n      if ( !m_level )\n      {\n        v7 = 0;\n        goto LABEL_9;\n      }\n      m_userID = m_level->m_levelID.random - m_level->m_levelID.seed;\n    }\n  }\n  v7 = (unsigned int)-m_userID;\n  if ( m_userID > 0 )\n    v7 = (unsigned int)m_userID;\nLABEL_9:\n  GameToolbox::intToString(v13, v7, v2);\n  PlatformToolbox::copyToClipboard((__int64)v13, v7, v8, v9, v10, v11);\n  if ( (v13[0] & 1) != 0 )\n    operator delete((void *)v13[2]);\n  strcpy((char *)v16, \"&Copied to clipboard\");\n  LOWORD(v14) = 0;\n  v12 = TextAlertPopup::create((__int64)v16, 0x96u, &v14, (__m128)0x3F000000u, 0.60000002);\n  ((void (__fastcall *)(InfoLayer *, cocos2d::CCObject *, __int64))a1->addChild_0)(a1, v12, 100);\n  if ( (v14 & 1) != 0 )\n    operator delete(v15);\n  if ( ((__int64)v16[0] & 1) != 0 )\n    operator delete(v16[2]);\n}", "assembly": "; \n; InfoLayer::onCopyLevelID from 0x1007b1f20 to 0x1007b202e (270 bytes)\n; \n; 1 xrefs:\n; > InfoLayer::setupLevelInfo @ 0x1007b059c\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\npush    rbp                                                            ; +0x0, 0x1007b1f20\nmov     rbp, rsp                                                       ; +0x1, 0x1007b1f21\npush    r15                                                            ; +0x4, 0x1007b1f24\npush    r14                                                            ; +0x6, 0x1007b1f26\npush    rbx                                                            ; +0x8, 0x1007b1f28\nsub     rsp, 48h                                                       ; +0x9, 0x1007b1f29\nmov     rbx, rdi                                                       ; +0xd, 0x1007b1f2d\nmov     rax, [rdi+298h]                                                ; +0x10, 0x1007b1f30\ntest    rax, rax                                                       ; +0x17, 0x1007b1f37\njz      short loc_1007B1F44                                            ; +0x1a, 0x1007b1f3a\nmov     eax, [rax+174h]                                                ; +0x1c, 0x1007b1f3c\njmp     short loc_1007B1F76                                            ; +0x22, 0x1007b1f42\nmov     rcx, [rbx+2A0h]                                                ; +0x24, 0x1007b1f44\ntest    rcx, rcx                                                       ; +0x2b, 0x1007b1f4b\njz      short loc_1007B1F5A                                            ; +0x2e, 0x1007b1f4e\nxor     eax, eax                                                       ; +0x30, 0x1007b1f50\nsub     eax, [rcx+158h]                                                ; +0x32, 0x1007b1f52\njmp     short loc_1007B1F76                                            ; +0x38, 0x1007b1f58\nmov     rcx, [rbx+290h]                                                ; +0x3a, 0x1007b1f5a\ntest    rcx, rcx                                                       ; +0x41, 0x1007b1f61\njz      loc_1007B2027                                                  ; +0x44, 0x1007b1f64\nmov     eax, [rcx+148h]                                                ; +0x4a, 0x1007b1f6a\nsub     eax, [rcx+14Ch]                                                ; +0x50, 0x1007b1f70\nmov     esi, eax                                                       ; +0x56, 0x1007b1f76\nneg     esi                                                            ; +0x58, 0x1007b1f78\ncmovs   esi, eax                                                       ; +0x5a, 0x1007b1f7a\nlea     r15, [rbp+__p]                                                 ; +0x5d, 0x1007b1f7d\nlea     r14, [rbp+var_60]                                              ; +0x61, 0x1007b1f81\nmov     rdi, r14                                                       ; +0x65, 0x1007b1f85\ncall    GameToolbox__intToString                                       ; +0x68, 0x1007b1f88\nmov     rdi, r14                                                       ; +0x6d, 0x1007b1f8d\ncall    PlatformToolbox__copyToClipboard                               ; +0x70, 0x1007b1f90\ntest    [rbp+var_60], 1                                                ; +0x75, 0x1007b1f95\njz      short loc_1007B1FA4                                            ; +0x79, 0x1007b1f99\nmov     rdi, [rbp+__p]; __p                                            ; +0x7b, 0x1007b1f9b\ncall    __ZdlPv; operator delete(void *)                               ; +0x7f, 0x1007b1f9f\nlea     r15, [rbp+var_30+10h]                                          ; +0x84, 0x1007b1fa4\nmov     [rbp+var_30], 26h ; '&'                                        ; +0x88, 0x1007b1fa8\nmovups  xmm0, xmmword ptr cs:aCopiedToClipbo; \"Copied to clipboard\"    ; +0x8c, 0x1007b1fac\nmovups  xmmword ptr [rbp-2Fh], xmm0                                    ; +0x93, 0x1007b1fb3\nmov     dword ptr [rbp+var_30+10h], 6472616Fh                          ; +0x97, 0x1007b1fb7\nmov     [rbp+var_30+14h], 0                                            ; +0x9e, 0x1007b1fbe\nmov     word ptr [rbp+var_48], 0                                       ; +0xa2, 0x1007b1fc2\nlea     rdi, [rbp+var_30]                                              ; +0xa8, 0x1007b1fc8\nmovss   xmm0, cs:dword_100814FA8                                       ; +0xac, 0x1007b1fcc\nmovss   xmm1, cs:dword_100814FB0                                       ; +0xb4, 0x1007b1fd4\nlea     rdx, [rbp+var_48]                                              ; +0xbc, 0x1007b1fdc\nmov     esi, 96h                                                       ; +0xc0, 0x1007b1fe0\ncall    TextAlertPopup__create                                         ; +0xc5, 0x1007b1fe5\nmov     rcx, [rbx]                                                     ; +0xca, 0x1007b1fea\nmov     rdi, rbx                                                       ; +0xcd, 0x1007b1fed\nmov     rsi, rax                                                       ; +0xd0, 0x1007b1ff0\nmov     edx, 64h ; 'd'                                                 ; +0xd3, 0x1007b1ff3\ncall    qword ptr [rcx+1C0h]                                           ; +0xd8, 0x1007b1ff8\ntest    byte ptr [rbp+var_48], 1                                       ; +0xde, 0x1007b1ffe\njz      short loc_1007B200D                                            ; +0xe2, 0x1007b2002\nmov     rdi, [rbp+var_38]; __p                                         ; +0xe4, 0x1007b2004\ncall    __ZdlPv; operator delete(void *)                               ; +0xe8, 0x1007b2008\ntest    [rbp+var_30], 1                                                ; +0xed, 0x1007b200d\njz      short loc_1007B201C                                            ; +0xf1, 0x1007b2011\nmov     rdi, qword ptr [rbp+var_30+10h]; __p                           ; +0xf3, 0x1007b2013\ncall    __ZdlPv; operator delete(void *)                               ; +0xf7, 0x1007b2017\nadd     rsp, 48h                                                       ; +0xfc, 0x1007b201c\npop     rbx                                                            ; +0x100, 0x1007b2020\npop     r14                                                            ; +0x101, 0x1007b2021\npop     r15                                                            ; +0x103, 0x1007b2023\npop     rbp                                                            ; +0x105, 0x1007b2025\nretn                                                                   ; +0x106, 0x1007b2026\nxor     esi, esi                                                       ; +0x107, 0x1007b2027\njmp     loc_1007B1F7D                                                  ; +0x109, 0x1007b2029", "xrefs": ["InfoLayer::setupLevelInfo @ 0x1007b059c"], "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"}