{"type": "func", "start": 5369006752, "end": 5369007018, "name": "CCMenuItemSpriteExtra::activate", "pseudocode": "// \n// CCMenuItemSpriteExtra::activate from 0x140048aa0 to 0x140048baa (266 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140709890\n// > <???> @ 0x1407419b0\n// > <???> @ 0x1407500b0\n// > <???> @ 0x14090fb84\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:25:32 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall CCMenuItemSpriteExtra::activate(__int64 a1)\n{\n  _QWORD *v2; // rdx\n  size_t v3; // r8\n  int v4; // r8d\n  int v5; // r9d\n  int v6; // ecx\n  __int128 v7; // [rsp+30h] [rbp-28h] BYREF\n  __int64 v8; // [rsp+40h] [rbp-18h]\n  __int64 v9; // [rsp+48h] [rbp-10h]\n  void *v10; // [rsp+68h] [rbp+10h]\n\n  if ( *(_BYTE *)(a1 + 345) )\n  {\n    cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)a1);\n    if ( !*(_DWORD *)(a1 + 500) )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 160LL))(a1);\n    if ( *(_QWORD *)(a1 + 432) )\n    {\n      v2 = (_QWORD *)(a1 + 416);\n      if ( *(_QWORD *)(a1 + 440) > 0xFu )\n        v2 = (_QWORD *)*v2;\n      v7 = 0;\n      v8 = 0;\n      v9 = 0;\n      v3 = -1;\n      do\n        ++v3;\n      while ( *((_BYTE *)v2 + v3) );\n      sub_14003D230(&v7, v2, v3);\n      v6 = qword_14090BF60;\n      if ( !qword_14090BF60 )\n      {\n        v10 = operator new(0x8A8u);\n        qword_14090BF60 = FMODAudioEngine::FMODAudioEngine(v10);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n        v6 = qword_14090BF60;\n      }\n      FMODAudioEngine::playEffect(v6, (unsigned int)&v7, v4, v5, *(_DWORD *)(a1 + 412));\n    }\n    cocos2d::CCMenuItem::activate((cocos2d::CCMenuItem *)a1);\n  }\n}", "assembly": "; \n; CCMenuItemSpriteExtra::activate from 0x140048aa0 to 0x140048baa (266 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140709890\n; > <???> @ 0x1407419b0\n; > <???> @ 0x1407500b0\n; > <???> @ 0x14090fb84\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:25:32 +0000\n; \npush    rbx                                                            ; +0x0, 0x140048aa0\nsub     rsp, 50h                                                       ; +0x2, 0x140048aa2\nmov     rbx, rcx                                                       ; +0x6, 0x140048aa6\ncmp     byte ptr [rcx+159h], 0                                         ; +0x9, 0x140048aa9\njz      loc_140048BA4                                                  ; +0x10, 0x140048ab0\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x16, 0x140048ab6\ncmp     dword ptr [rbx+1F4h], 0                                        ; +0x1c, 0x140048abc\njnz     short loc_140048AD9                                            ; +0x23, 0x140048ac3\nmov     rax, [rbx]                                                     ; +0x25, 0x140048ac5\nmovss   xmm1, dword ptr [rbx+194h]                                     ; +0x28, 0x140048ac8\nmov     rcx, rbx                                                       ; +0x30, 0x140048ad0\ncall    qword ptr [rax+0A0h]                                           ; +0x33, 0x140048ad3\ncmp     qword ptr [rbx+1B0h], 0                                        ; +0x39, 0x140048ad9\njz      loc_140048B95                                                  ; +0x41, 0x140048ae1\nlea     rax, [rsp+58h+var_28]                                          ; +0x47, 0x140048ae7\nmov     [rsp+58h+arg_0], rax                                           ; +0x4c, 0x140048aec\nlea     rdx, [rbx+1A0h]                                                ; +0x51, 0x140048af1\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x58, 0x140048af8\njbe     short loc_140048B02                                            ; +0x5d, 0x140048afd\nmov     rdx, [rdx]                                                     ; +0x5f, 0x140048aff\nxorps   xmm0, xmm0                                                     ; +0x62, 0x140048b02\nmovups  [rsp+58h+var_28], xmm0                                         ; +0x65, 0x140048b05\nxor     eax, eax                                                       ; +0x6a, 0x140048b0a\nmov     [rsp+58h+var_18], rax                                          ; +0x6c, 0x140048b0c\nmov     [rsp+58h+var_10], rax                                          ; +0x71, 0x140048b11\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x76, 0x140048b16\nnop     dword ptr [rax]                                                ; +0x7d, 0x140048b1d\ninc     r8                                                             ; +0x80, 0x140048b20\ncmp     [rdx+r8], al                                                   ; +0x83, 0x140048b23\njnz     short loc_140048B20                                            ; +0x87, 0x140048b27\nlea     rcx, [rsp+58h+var_28]                                          ; +0x89, 0x140048b29\ncall    sub_14003D230                                                  ; +0x8e, 0x140048b2e\nnop                                                                    ; +0x93, 0x140048b33\nmov     rcx, cs:qword_14090BF60                                        ; +0x94, 0x140048b34\ntest    rcx, rcx                                                       ; +0x9b, 0x140048b3b\njnz     short loc_140048B72                                            ; +0x9e, 0x140048b3e\nmov     ecx, 8A8h; Size                                                ; +0xa0, 0x140048b40\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa5, 0x140048b45\nmov     [rsp+58h+arg_8], rax                                           ; +0xaa, 0x140048b4a\nmov     rcx, rax                                                       ; +0xaf, 0x140048b4f\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xb2, 0x140048b52\nnop                                                                    ; +0xb7, 0x140048b57\nmov     cs:qword_14090BF60, rax                                        ; +0xb8, 0x140048b58\nmov     rcx, [rax]                                                     ; +0xbf, 0x140048b5f\nmov     rdx, [rcx+48h]                                                 ; +0xc2, 0x140048b62\nmov     rcx, rax                                                       ; +0xc6, 0x140048b66\ncall    rdx                                                            ; +0xc9, 0x140048b69\nmov     rcx, cs:qword_14090BF60                                        ; +0xcb, 0x140048b6b\nmovss   xmm0, dword ptr [rbx+19Ch]                                     ; +0xd2, 0x140048b72\nmovss   [rsp+58h+var_38], xmm0                                         ; +0xda, 0x140048b7a\nxorps   xmm3, xmm3                                                     ; +0xe0, 0x140048b80\nmovss   xmm2, cs:flt_140835080                                         ; +0xe3, 0x140048b83\nlea     rdx, [rsp+58h+var_28]                                          ; +0xeb, 0x140048b8b\ncall    FMODAudioEngine__playEffect                                    ; +0xf0, 0x140048b90\nmov     rcx, rbx                                                       ; +0xf5, 0x140048b95\nadd     rsp, 50h                                                       ; +0xf8, 0x140048b98\npop     rbx                                                            ; +0xfc, 0x140048b9c\njmp     cs:__imp_?activate@CCMenuItem@cocos2d@@UEAAXXZ; cocos2d::CCMenuItem::activate(void) ; +0xfd, 0x140048b9d\nadd     rsp, 50h                                                       ; +0x104, 0x140048ba4\npop     rbx                                                            ; +0x108, 0x140048ba8\nretn                                                                   ; +0x109, 0x140048ba9", "xrefs": ["<???> @ 0x140709890", "<???> @ 0x1407419b0", "<???> @ 0x1407500b0", "<???> @ 0x14090fb84"], "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"}