{"type": "func", "start": 5370294800, "end": 5370295266, "name": "EditorPauseLayer::onDownloadAudio", "pseudocode": "// \n// EditorPauseLayer::onDownloadAudio from 0x140183210 to 0x1401833e2 (466 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x140181b58\n// > <???> @ 0x140918cd4\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:27:37 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall EditorPauseLayer::onDownloadAudio(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rdi\n  unsigned int v4; // ebx\n  unsigned int v5; // edi\n  cocos2d::CCObject *v6; // rsi\n  void (__fastcall *v7)(cocos2d::CCObject *); // rdx\n  _BYTE v8[8]; // [rsp+30h] [rbp-68h] BYREF\n  cocos2d::CCObject *v9; // [rsp+38h] [rbp-60h]\n  _BYTE v10[32]; // [rsp+40h] [rbp-58h] BYREF\n  _BYTE v11[32]; // [rsp+60h] [rbp-38h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 576);\n  v3 = *(_QWORD *)(v2 + 2168);\n  if ( v3 )\n  {\n    v8[0] = 0;\n    LevelEditorLayer::getSongIDs(v2, v11, v8);\n    LevelEditorLayer::getSFXIDs(*(_QWORD *)(a1 + 576), v10);\n    v4 = *(_DWORD *)(v3 + 676);\n    v5 = *(_DWORD *)(v3 + 680);\n    v6 = (cocos2d::CCObject *)operator new(0x3F8u);\n    v9 = v6;\n    SetupTriggerPopup::SetupTriggerPopup((__int64)v6);\n    *(_QWORD *)v6 = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 40) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 41) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 42) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 43) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 44) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 51) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 54) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 68) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 83) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 84) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 125) = &AudioAssetsPopup::`vftable';\n    *((_QWORD *)v6 + 126) = 0;\n    if ( AudioAssetsPopup::init((__int64)v6, v5, v4, (__int64)v11, (__int64)v10) )\n    {\n      cocos2d::CCObject::autorelease(v6);\n      if ( v6 )\n      {\n        v7 = *(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 1064LL);\n        if ( (char *)v7 == (char *)SetupTriggerPopup::show )\n          SetupTriggerPopup::show(v6);\n        else\n          v7(v6);\n      }\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n    }\n    sub_14003D310((__int64)v10);\n    sub_14003D310((__int64)v11);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onDownloadAudio from 0x140183210 to 0x1401833e2 (466 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x140181b58\n; > <???> @ 0x140918cd4\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:27:37 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140183210\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140183215\npush    rdi                                                            ; +0xa, 0x14018321a\nsub     rsp, 90h                                                       ; +0xb, 0x14018321b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140183222\nxor     rax, rsp                                                       ; +0x19, 0x140183229\nmov     [rsp+98h+var_18], rax                                          ; +0x1c, 0x14018322c\nmov     rbx, rcx                                                       ; +0x24, 0x140183234\nmov     rcx, [rcx+240h]                                                ; +0x27, 0x140183237\nmov     rdi, [rcx+878h]                                                ; +0x2e, 0x14018323e\ntest    rdi, rdi                                                       ; +0x35, 0x140183245\njz      loc_1401833BD                                                  ; +0x38, 0x140183248\nmov     [rsp+98h+var_68], 0                                            ; +0x3e, 0x14018324e\nlea     r8, [rsp+98h+var_68]                                           ; +0x43, 0x140183253\nlea     rdx, [rsp+98h+var_38]                                          ; +0x48, 0x140183258\ncall    LevelEditorLayer__getSongIDs                                   ; +0x4d, 0x14018325d\nnop                                                                    ; +0x52, 0x140183262\nlea     rdx, [rsp+98h+var_58]                                          ; +0x53, 0x140183263\nmov     rcx, [rbx+240h]                                                ; +0x58, 0x140183268\ncall    LevelEditorLayer__getSFXIDs                                    ; +0x5f, 0x14018326f\nnop                                                                    ; +0x64, 0x140183274\nmov     ebx, [rdi+2A4h]                                                ; +0x65, 0x140183275\nmov     edi, [rdi+2A8h]                                                ; +0x6b, 0x14018327b\nmov     ecx, 3F8h; Size                                                ; +0x71, 0x140183281\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x76, 0x140183286\nmov     rsi, rax                                                       ; +0x7b, 0x14018328b\nmov     [rsp+98h+var_60], rax                                          ; +0x7e, 0x14018328e\nmov     rcx, rax                                                       ; +0x83, 0x140183293\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x86, 0x140183296\nlea     rax, ??_7AudioAssetsPopup@@6B@; const AudioAssetsPopup::`vftable' ; +0x8b, 0x14018329b\nmov     [rsi], rax                                                     ; +0x92, 0x1401832a2\nlea     rax, ??_7AudioAssetsPopup@@6B@_0; const AudioAssetsPopup::`vftable' ; +0x95, 0x1401832a5\nmov     [rsi+140h], rax                                                ; +0x9c, 0x1401832ac\nlea     rax, ??_7AudioAssetsPopup@@6B@_1; const AudioAssetsPopup::`vftable' ; +0xa3, 0x1401832b3\nmov     [rsi+148h], rax                                                ; +0xaa, 0x1401832ba\nlea     rax, ??_7AudioAssetsPopup@@6B@_2; const AudioAssetsPopup::`vftable' ; +0xb1, 0x1401832c1\nmov     [rsi+150h], rax                                                ; +0xb8, 0x1401832c8\nlea     rax, ??_7AudioAssetsPopup@@6B@_3; const AudioAssetsPopup::`vftable' ; +0xbf, 0x1401832cf\nmov     [rsi+158h], rax                                                ; +0xc6, 0x1401832d6\nlea     rax, ??_7AudioAssetsPopup@@6B@_4; const AudioAssetsPopup::`vftable' ; +0xcd, 0x1401832dd\nmov     [rsi+160h], rax                                                ; +0xd4, 0x1401832e4\nlea     rax, ??_7AudioAssetsPopup@@6B@_5; const AudioAssetsPopup::`vftable' ; +0xdb, 0x1401832eb\nmov     [rsi+198h], rax                                                ; +0xe2, 0x1401832f2\nlea     rax, ??_7AudioAssetsPopup@@6B@_6; const AudioAssetsPopup::`vftable' ; +0xe9, 0x1401832f9\nmov     [rsi+1B0h], rax                                                ; +0xf0, 0x140183300\nlea     rax, ??_7AudioAssetsPopup@@6B@_7; const AudioAssetsPopup::`vftable' ; +0xf7, 0x140183307\nmov     [rsi+220h], rax                                                ; +0xfe, 0x14018330e\nlea     rax, ??_7AudioAssetsPopup@@6B@_8; const AudioAssetsPopup::`vftable' ; +0x105, 0x140183315\nmov     [rsi+298h], rax                                                ; +0x10c, 0x14018331c\nlea     rax, ??_7AudioAssetsPopup@@6B@_9; const AudioAssetsPopup::`vftable' ; +0x113, 0x140183323\nmov     [rsi+2A0h], rax                                                ; +0x11a, 0x14018332a\nlea     rax, ??_7AudioAssetsPopup@@6B@_10; const AudioAssetsPopup::`vftable' ; +0x121, 0x140183331\nmov     [rsi+3E8h], rax                                                ; +0x128, 0x140183338\nmov     qword ptr [rsi+3F0h], 0                                        ; +0x12f, 0x14018333f\nlea     rax, [rsp+98h+var_58]                                          ; +0x13a, 0x14018334a\nmov     [rsp+98h+var_78], rax                                          ; +0x13f, 0x14018334f\nlea     r9, [rsp+98h+var_38]                                           ; +0x144, 0x140183354\nmov     r8d, ebx                                                       ; +0x149, 0x140183359\nmov     edx, edi                                                       ; +0x14c, 0x14018335c\nmov     rcx, rsi                                                       ; +0x14e, 0x14018335e\ncall    AudioAssetsPopup__init                                         ; +0x151, 0x140183361\nmov     rcx, rsi                                                       ; +0x156, 0x140183366\ntest    al, al                                                         ; +0x159, 0x140183369\njz      short loc_14018339C                                            ; +0x15b, 0x14018336b\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x15d, 0x14018336d\ntest    rsi, rsi                                                       ; +0x163, 0x140183373\njz      short loc_1401833A8                                            ; +0x166, 0x140183376\nmov     rax, [rsi]                                                     ; +0x168, 0x140183378\nmov     rdx, [rax+428h]                                                ; +0x16b, 0x14018337b\nlea     rax, SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x172, 0x140183382\nmov     rcx, rsi                                                       ; +0x179, 0x140183389\ncmp     rdx, rax                                                       ; +0x17c, 0x14018338c\njnz     short loc_140183398                                            ; +0x17f, 0x14018338f\ncall    SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x181, 0x140183391\njmp     short loc_1401833A8                                            ; +0x186, 0x140183396\ncall    rdx                                                            ; +0x188, 0x140183398\njmp     short loc_1401833A8                                            ; +0x18a, 0x14018339a\nmov     rax, [rsi]                                                     ; +0x18c, 0x14018339c\nmov     edx, 1                                                         ; +0x18f, 0x14018339f\ncall    qword ptr [rax+8]                                              ; +0x194, 0x1401833a4\nnop                                                                    ; +0x197, 0x1401833a7\nlea     rcx, [rsp+98h+var_58]                                          ; +0x198, 0x1401833a8\ncall    sub_14003D310                                                  ; +0x19d, 0x1401833ad\nnop                                                                    ; +0x1a2, 0x1401833b2\nlea     rcx, [rsp+98h+var_38]                                          ; +0x1a3, 0x1401833b3\ncall    sub_14003D310                                                  ; +0x1a8, 0x1401833b8\nmov     rcx, [rsp+98h+var_18]                                          ; +0x1ad, 0x1401833bd\nxor     rcx, rsp; StackCookie                                          ; +0x1b5, 0x1401833c5\ncall    __security_check_cookie                                        ; +0x1b8, 0x1401833c8\nlea     r11, [rsp+98h+var_8]                                           ; +0x1bd, 0x1401833cd\nmov     rbx, [r11+18h]                                                 ; +0x1c5, 0x1401833d5\nmov     rsi, [r11+20h]                                                 ; +0x1c9, 0x1401833d9\nmov     rsp, r11                                                       ; +0x1cd, 0x1401833dd\npop     rdi                                                            ; +0x1d0, 0x1401833e0\nretn                                                                   ; +0x1d1, 0x1401833e1", "xrefs": ["EditorPauseLayer::customSetup @ 0x140181b58", "<???> @ 0x140918cd4"], "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"}