{"type": "func", "start": 5370199104, "end": 5370199243, "name": "CustomSongWidget::onSelect", "pseudocode": "// \n// CustomSongWidget::onSelect from 0x14016bc40 to 0x14016bccb (139 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::init @ 0x14016980a\n// > <???> @ 0x140918140\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:29 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall CustomSongWidget::onSelect(__int64 a1)\n{\n  __int64 result; // rax\n  void (__fastcall ***v3)(_QWORD, _QWORD); // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  result = *(_QWORD *)(a1 + 336);\n  if ( result )\n  {\n    v3 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 488);\n    if ( v3 )\n      (**v3)(v3, *(unsigned int *)(result + 320));\n    result = CustomSongWidget::updateSongInfo(a1);\n    if ( *(_BYTE *)(a1 + 512) )\n    {\n      if ( !qword_14090C070 )\n      {\n        v4 = operator new(0x3D0u);\n        qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v4);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n      }\n      return MusicDownloadManager::songStateChanged();\n    }\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::onSelect from 0x14016bc40 to 0x14016bccb (139 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::init @ 0x14016980a\n; > <???> @ 0x140918140\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:29 +0000\n; \npush    rbx                                                            ; +0x0, 0x14016bc40\nsub     rsp, 20h                                                       ; +0x2, 0x14016bc42\nmov     rbx, rcx                                                       ; +0x6, 0x14016bc46\nmov     rax, [rcx+150h]                                                ; +0x9, 0x14016bc49\ntest    rax, rax                                                       ; +0x10, 0x14016bc50\njz      short loc_14016BCC5                                            ; +0x13, 0x14016bc53\nmov     edx, [rax+140h]                                                ; +0x15, 0x14016bc55\nmov     rcx, [rcx+1E8h]                                                ; +0x1b, 0x14016bc5b\ntest    rcx, rcx                                                       ; +0x22, 0x14016bc62\njz      short loc_14016BC6C                                            ; +0x25, 0x14016bc65\nmov     rax, [rcx]                                                     ; +0x27, 0x14016bc67\ncall    qword ptr [rax]                                                ; +0x2a, 0x14016bc6a\nmov     rcx, rbx                                                       ; +0x2c, 0x14016bc6c\ncall    CustomSongWidget__updateSongInfo                               ; +0x2f, 0x14016bc6f\ncmp     byte ptr [rbx+200h], 0                                         ; +0x34, 0x14016bc74\njz      short loc_14016BCC5                                            ; +0x3b, 0x14016bc7b\nmov     rcx, cs:qword_14090C070                                        ; +0x3d, 0x14016bc7d\ntest    rcx, rcx                                                       ; +0x44, 0x14016bc84\njnz     short loc_14016BCBB                                            ; +0x47, 0x14016bc87\nmov     ecx, 3D0h; Size                                                ; +0x49, 0x14016bc89\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4e, 0x14016bc8e\nmov     [rsp+28h+arg_0], rax                                           ; +0x53, 0x14016bc93\nmov     rcx, rax                                                       ; +0x58, 0x14016bc98\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x5b, 0x14016bc9b\nnop                                                                    ; +0x60, 0x14016bca0\nmov     cs:qword_14090C070, rax                                        ; +0x61, 0x14016bca1\nmov     rcx, [rax]                                                     ; +0x68, 0x14016bca8\nmov     rdx, [rcx+48h]                                                 ; +0x6b, 0x14016bcab\nmov     rcx, rax                                                       ; +0x6f, 0x14016bcaf\ncall    rdx                                                            ; +0x72, 0x14016bcb2\nmov     rcx, cs:qword_14090C070                                        ; +0x74, 0x14016bcb4\nadd     rsp, 20h                                                       ; +0x7b, 0x14016bcbb\npop     rbx                                                            ; +0x7f, 0x14016bcbf\njmp     MusicDownloadManager__songStateChanged                         ; +0x80, 0x14016bcc0\nadd     rsp, 20h                                                       ; +0x85, 0x14016bcc5\npop     rbx                                                            ; +0x89, 0x14016bcc9\nretn                                                                   ; +0x8a, 0x14016bcca", "xrefs": ["CustomSongWidget::init @ 0x14016980a", "<???> @ 0x140918140"], "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"}