{"type": "func", "start": 5369246656, "end": 5369246966, "name": "AppDelegate::musicTest", "pseudocode": "// \n// AppDelegate::musicTest from 0x1400833c0 to 0x1400834f6 (310 bytes)\n// \n// 2 xrefs:\n// > AppDelegate::resumeSound @ 0x1400832c9\n// > <???> @ 0x1406c6aa4\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// Hidden C++ exception states: #wind=3\nbool AppDelegate::musicTest(AppDelegate *a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rdx\n  __int64 v3; // rcx\n  __int64 v4; // rbx\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // rax\n  void *v9; // [rsp+30h] [rbp+8h]\n  void *v10; // [rsp+30h] [rbp+8h]\n  void *v11; // [rsp+30h] [rbp+8h]\n\n  v1 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v9 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v1 = qword_1406C2ED8;\n  }\n  if ( *(_BYTE *)(v1 + 1076) )\n    return 1;\n  v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(a1) + 264);\n  if ( !v4 )\n    return 0;\n  v5 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v10 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v5 = qword_1406C2ED8;\n  }\n  if ( *(_QWORD *)(v5 + 520) )\n  {\n    if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v3, v2) + 217) )\n      return 1;\n    v6 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v11 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v6 = qword_1406C2ED8;\n    }\n    v7 = *(_QWORD *)(v6 + 520);\n    if ( *(_BYTE *)(v7 + 14717) || !*(_BYTE *)(v7 + 12888) || *(_BYTE *)(*(_QWORD *)(v7 + 3488) + 2496LL) )\n      return 1;\n  }\n  return *(_DWORD *)(v4 + 28) == 6;\n}", "assembly": "; \n; AppDelegate::musicTest from 0x1400833c0 to 0x1400834f6 (310 bytes)\n; \n; 2 xrefs:\n; > AppDelegate::resumeSound @ 0x1400832c9\n; > <???> @ 0x1406c6aa4\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_0], rcx                                               ; +0x0, 0x1400833c0\npush    rbx                                                            ; +0x5, 0x1400833c5\nsub     rsp, 20h                                                       ; +0x6, 0x1400833c6\nmov     rax, cs:qword_1406C2ED8                                        ; +0xa, 0x1400833ca\ntest    rax, rax                                                       ; +0x11, 0x1400833d1\njnz     short loc_140083405                                            ; +0x14, 0x1400833d4\nmov     ecx, 668h; Size                                                ; +0x16, 0x1400833d6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1b, 0x1400833db\nmov     [rsp+28h+arg_0], rax                                           ; +0x20, 0x1400833e0\nmov     rcx, rax                                                       ; +0x25, 0x1400833e5\ncall    sub_14017AB00                                                  ; +0x28, 0x1400833e8\nnop                                                                    ; +0x2d, 0x1400833ed\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2e, 0x1400833ee\nmov     rdx, [rax]                                                     ; +0x35, 0x1400833f5\nmov     rcx, rax                                                       ; +0x38, 0x1400833f8\ncall    qword ptr [rdx+48h]                                            ; +0x3b, 0x1400833fb\nmov     rax, cs:qword_1406C2ED8                                        ; +0x3e, 0x1400833fe\ncmp     byte ptr [rax+434h], 0                                         ; +0x45, 0x140083405\njnz     loc_1400834E6                                                  ; +0x4c, 0x14008340c\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x52, 0x140083412\nmov     rbx, [rax+108h]                                                ; +0x58, 0x140083418\ntest    rbx, rbx                                                       ; +0x5f, 0x14008341f\njz      loc_1400834EE                                                  ; +0x62, 0x140083422\nmov     rax, cs:qword_1406C2ED8                                        ; +0x68, 0x140083428\ntest    rax, rax                                                       ; +0x6f, 0x14008342f\njnz     short loc_140083463                                            ; +0x72, 0x140083432\nmov     ecx, 668h; Size                                                ; +0x74, 0x140083434\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x79, 0x140083439\nmov     [rsp+28h+arg_0], rax                                           ; +0x7e, 0x14008343e\nmov     rcx, rax                                                       ; +0x83, 0x140083443\ncall    sub_14017AB00                                                  ; +0x86, 0x140083446\nnop                                                                    ; +0x8b, 0x14008344b\nmov     cs:qword_1406C2ED8, rax                                        ; +0x8c, 0x14008344c\nmov     rdx, [rax]                                                     ; +0x93, 0x140083453\nmov     rcx, rax                                                       ; +0x96, 0x140083456\ncall    qword ptr [rdx+48h]                                            ; +0x99, 0x140083459\nmov     rax, cs:qword_1406C2ED8                                        ; +0x9c, 0x14008345c\ncmp     qword ptr [rax+208h], 0                                        ; +0xa3, 0x140083463\njz      short loc_1400834E0                                            ; +0xab, 0x14008346b\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0xad, 0x14008346d\ncmp     byte ptr [rax+0D9h], 0                                         ; +0xb3, 0x140083473\njnz     short loc_1400834E6                                            ; +0xba, 0x14008347a\nmov     rax, cs:qword_1406C2ED8                                        ; +0xbc, 0x14008347c\ntest    rax, rax                                                       ; +0xc3, 0x140083483\njnz     short loc_1400834B7                                            ; +0xc6, 0x140083486\nmov     ecx, 668h; Size                                                ; +0xc8, 0x140083488\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xcd, 0x14008348d\nmov     [rsp+28h+arg_0], rax                                           ; +0xd2, 0x140083492\nmov     rcx, rax                                                       ; +0xd7, 0x140083497\ncall    sub_14017AB00                                                  ; +0xda, 0x14008349a\nnop                                                                    ; +0xdf, 0x14008349f\nmov     cs:qword_1406C2ED8, rax                                        ; +0xe0, 0x1400834a0\nmov     rdx, [rax]                                                     ; +0xe7, 0x1400834a7\nmov     rcx, rax                                                       ; +0xea, 0x1400834aa\ncall    qword ptr [rdx+48h]                                            ; +0xed, 0x1400834ad\nmov     rax, cs:qword_1406C2ED8                                        ; +0xf0, 0x1400834b0\nmov     rax, [rax+208h]                                                ; +0xf7, 0x1400834b7\ncmp     byte ptr [rax+397Dh], 0                                        ; +0xfe, 0x1400834be\njnz     short loc_1400834E6                                            ; +0x105, 0x1400834c5\ncmp     byte ptr [rax+3258h], 0                                        ; +0x107, 0x1400834c7\njz      short loc_1400834E6                                            ; +0x10e, 0x1400834ce\nmov     rax, [rax+0DA0h]                                               ; +0x110, 0x1400834d0\ncmp     byte ptr [rax+9C0h], 0                                         ; +0x117, 0x1400834d7\njnz     short loc_1400834E6                                            ; +0x11e, 0x1400834de\ncmp     dword ptr [rbx+1Ch], 6                                         ; +0x120, 0x1400834e0\njnz     short loc_1400834EE                                            ; +0x124, 0x1400834e4\nmov     al, 1                                                          ; +0x126, 0x1400834e6\nadd     rsp, 20h                                                       ; +0x128, 0x1400834e8\npop     rbx                                                            ; +0x12c, 0x1400834ec\nretn                                                                   ; +0x12d, 0x1400834ed\nxor     al, al                                                         ; +0x12e, 0x1400834ee\nadd     rsp, 20h                                                       ; +0x130, 0x1400834f0\npop     rbx                                                            ; +0x134, 0x1400834f4\nretn                                                                   ; +0x135, 0x1400834f5", "xrefs": ["AppDelegate::resumeSound @ 0x1400832c9", "<???> @ 0x1406c6aa4"], "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"}