{"type": "func", "start": 5369488624, "end": 5369488763, "name": "AudioAssetsPopup::onClose", "pseudocode": "// \n// AudioAssetsPopup::onClose from 0x1400be4f0 to 0x1400be57b (139 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140723028\n// > <???> @ 0x140913a54\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:26:18 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall AudioAssetsPopup::onClose(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rcx\n  __int64 v4; // rdx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  v2 = a1 + 1000;\n  if ( !a1 )\n    v2 = 0;\n  v3 = qword_14090C070;\n  if ( !qword_14090C070 )\n  {\n    v6 = operator new(0x3D0u);\n    qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n    v3 = qword_14090C070;\n  }\n  MusicDownloadManager::removeMusicDownloadDelegate(v3, v2);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  LOBYTE(v4) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v4);\n}", "assembly": "; \n; AudioAssetsPopup::onClose from 0x1400be4f0 to 0x1400be57b (139 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140723028\n; > <???> @ 0x140913a54\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:26:18 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400be4f0\npush    rdi                                                            ; +0x5, 0x1400be4f5\nsub     rsp, 20h                                                       ; +0x6, 0x1400be4f6\nmov     rbx, rcx                                                       ; +0xa, 0x1400be4fa\nlea     rdi, [rcx+3E8h]                                                ; +0xd, 0x1400be4fd\nxor     eax, eax                                                       ; +0x14, 0x1400be504\ntest    rcx, rcx                                                       ; +0x16, 0x1400be506\ncmovz   rdi, rax                                                       ; +0x19, 0x1400be509\nmov     rcx, cs:qword_14090C070                                        ; +0x1d, 0x1400be50d\ntest    rcx, rcx                                                       ; +0x24, 0x1400be514\njnz     short loc_1400BE54C                                            ; +0x27, 0x1400be517\nmov     ecx, 3D0h; Size                                                ; +0x29, 0x1400be519\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2e, 0x1400be51e\nmov     [rsp+28h+arg_0], rax                                           ; +0x33, 0x1400be523\nmov     rcx, rax                                                       ; +0x38, 0x1400be528\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x3b, 0x1400be52b\nnop                                                                    ; +0x40, 0x1400be530\nmov     cs:qword_14090C070, rax                                        ; +0x41, 0x1400be531\nmov     rcx, [rax]                                                     ; +0x48, 0x1400be538\nmov     r8, [rcx+48h]                                                  ; +0x4b, 0x1400be53b\nmov     rcx, rax                                                       ; +0x4f, 0x1400be53f\ncall    r8                                                             ; +0x52, 0x1400be542\nmov     rcx, cs:qword_14090C070                                        ; +0x55, 0x1400be545\nmov     rdx, rdi                                                       ; +0x5c, 0x1400be54c\ncall    MusicDownloadManager__removeMusicDownloadDelegate              ; +0x5f, 0x1400be54f\nmov     rax, [rbx]                                                     ; +0x64, 0x1400be554\nxor     edx, edx                                                       ; +0x67, 0x1400be557\nmov     rcx, rbx                                                       ; +0x69, 0x1400be559\ncall    qword ptr [rax+3E0h]                                           ; +0x6c, 0x1400be55c\nmov     rax, [rbx]                                                     ; +0x72, 0x1400be562\nmov     dl, 1                                                          ; +0x75, 0x1400be565\nmov     rcx, rbx                                                       ; +0x77, 0x1400be567\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7a, 0x1400be56a\nadd     rsp, 20h                                                       ; +0x7f, 0x1400be56f\npop     rdi                                                            ; +0x83, 0x1400be573\njmp     qword ptr [rax+208h]                                           ; +0x84, 0x1400be574", "xrefs": ["<???> @ 0x140723028", "<???> @ 0x140913a54"], "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"}