{"type": "func", "start": 5370366016, "end": 5370366229, "name": "EditorSoundConfigInfoLayer::startDownload", "pseudocode": "// \n// EditorSoundConfigInfoLayer::startDownload from 0x140194840 to 0x140194915 (213 bytes)\n// \n// 4 xrefs:\n// > EditorSoundConfigInfoLayer::init @ 0x140194460\n// > EditorSoundConfigInfoLayer::onUpdate @ 0x1401950b0\n// > EditorSoundConfigInfoLayer::onFavorite @ 0x140195222\n// > <???> @ 0x1409193a0\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:44 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall EditorSoundConfigInfoLayer::startDownload(__int64 a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCLayerColor *v3; // rax\n  __int64 v4; // rcx\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 1104) )\n  {\n    v2 = *(_QWORD *)(a1 + 1072);\n    if ( v2 )\n    {\n      if ( *(int *)(v2 + 320) > 0 )\n      {\n        *(_BYTE *)(a1 + 1104) = 1;\n        v3 = LoadingCircle::create();\n        *(_QWORD *)(a1 + 1096) = v3;\n        *((_QWORD *)v3 + 69) = *(_QWORD *)(a1 + 584);\n        LoadingCircle::show(*(_QWORD *)(a1 + 1096));\n        EditorSoundConfigInfoLayer::refreshActionButtons(a1);\n        v4 = *(_QWORD *)&qword_14090BFB0;\n        if ( !*(_QWORD *)&qword_14090BFB0 )\n        {\n          v5 = operator new(0x690u);\n          *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v5);\n          (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n          v4 = *(_QWORD *)&qword_14090BFB0;\n        }\n        *(_QWORD *)(v4 + 1464) = a1 + 1000;\n        GameLevelManager::downloadEditorSoundConfig(v4, *(unsigned int *)(*(_QWORD *)(a1 + 1072) + 320LL));\n      }\n    }\n  }\n}", "assembly": "; \n; EditorSoundConfigInfoLayer::startDownload from 0x140194840 to 0x140194915 (213 bytes)\n; \n; 4 xrefs:\n; > EditorSoundConfigInfoLayer::init @ 0x140194460\n; > EditorSoundConfigInfoLayer::onUpdate @ 0x1401950b0\n; > EditorSoundConfigInfoLayer::onFavorite @ 0x140195222\n; > <???> @ 0x1409193a0\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:44 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140194840\npush    rdi                                                            ; +0x5, 0x140194845\nsub     rsp, 20h                                                       ; +0x6, 0x140194846\nmov     rbx, rcx                                                       ; +0xa, 0x14019484a\ncmp     byte ptr [rcx+450h], 0                                         ; +0xd, 0x14019484d\njnz     loc_14019490A                                                  ; +0x14, 0x140194854\nmov     rax, [rcx+430h]                                                ; +0x1a, 0x14019485a\ntest    rax, rax                                                       ; +0x21, 0x140194861\njz      loc_14019490A                                                  ; +0x24, 0x140194864\ncmp     dword ptr [rax+140h], 0                                        ; +0x2a, 0x14019486a\njle     loc_14019490A                                                  ; +0x31, 0x140194871\nmov     byte ptr [rcx+450h], 1                                         ; +0x37, 0x140194877\ncall    LoadingCircle__create                                          ; +0x3e, 0x14019487e\nmov     [rbx+448h], rax                                                ; +0x43, 0x140194883\nmov     rcx, [rbx+248h]                                                ; +0x4a, 0x14019488a\nmov     [rax+228h], rcx                                                ; +0x51, 0x140194891\nmov     rcx, [rbx+448h]                                                ; +0x58, 0x140194898\ncall    LoadingCircle__show                                            ; +0x5f, 0x14019489f\nmov     rcx, rbx                                                       ; +0x64, 0x1401948a4\ncall    EditorSoundConfigInfoLayer__refreshActionButtons               ; +0x67, 0x1401948a7\nlea     rdi, [rbx+3E8h]                                                ; +0x6c, 0x1401948ac\nmov     rcx, cs:qword_14090BFB0                                        ; +0x73, 0x1401948b3\ntest    rcx, rcx                                                       ; +0x7a, 0x1401948ba\njnz     short loc_1401948F1                                            ; +0x7d, 0x1401948bd\nmov     ecx, 690h; Size                                                ; +0x7f, 0x1401948bf\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x84, 0x1401948c4\nmov     [rsp+28h+arg_0], rax                                           ; +0x89, 0x1401948c9\nmov     rcx, rax                                                       ; +0x8e, 0x1401948ce\ncall    GameLevelManager__GameLevelManager                             ; +0x91, 0x1401948d1\nnop                                                                    ; +0x96, 0x1401948d6\nmov     cs:qword_14090BFB0, rax                                        ; +0x97, 0x1401948d7\nmov     rcx, [rax]                                                     ; +0x9e, 0x1401948de\nmov     rdx, [rcx+48h]                                                 ; +0xa1, 0x1401948e1\nmov     rcx, rax                                                       ; +0xa5, 0x1401948e5\ncall    rdx                                                            ; +0xa8, 0x1401948e8\nmov     rcx, cs:qword_14090BFB0                                        ; +0xaa, 0x1401948ea\nmov     [rcx+5B8h], rdi                                                ; +0xb1, 0x1401948f1\nmov     rdx, [rbx+430h]                                                ; +0xb8, 0x1401948f8\nmov     edx, [rdx+140h]                                                ; +0xbf, 0x1401948ff\ncall    GameLevelManager__downloadEditorSoundConfig                    ; +0xc5, 0x140194905\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xca, 0x14019490a\nadd     rsp, 20h                                                       ; +0xcf, 0x14019490f\npop     rdi                                                            ; +0xd3, 0x140194913\nretn                                                                   ; +0xd4, 0x140194914", "xrefs": ["EditorSoundConfigInfoLayer::init @ 0x140194460", "EditorSoundConfigInfoLayer::onUpdate @ 0x1401950b0", "EditorSoundConfigInfoLayer::onFavorite @ 0x140195222", "<???> @ 0x1409193a0"], "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"}