{"type": "func", "start": 5370211616, "end": 5370211784, "name": "CustomSongWidget::FLAlert_Clicked", "pseudocode": "// \n// CustomSongWidget::FLAlert_Clicked from 0x14016ed20 to 0x14016edc8 (168 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140744f40\n// > <???> @ 0x140918248\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:30 +0000\n// \n\nvoid __fastcall CustomSongWidget::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)\n{\n  int v5; // eax\n  __int64 v6; // r8\n  __int64 v7; // rcx\n  void *v8; // [rsp+38h] [rbp+10h]\n\n  v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) - 1;\n  if ( v5 )\n  {\n    if ( v5 == 1 )\n    {\n      if ( a3 )\n        CustomSongWidget::deleteSong(a1 - 328);\n    }\n  }\n  else if ( a3 )\n  {\n    v7 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v8 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v7 = qword_14090BFD0;\n    }\n    LOBYTE(v6) = 1;\n    GameManager::setGameVariable(v7, \"0016\", v6);\n    CustomSongWidget::onDownload(a1 - 328);\n  }\n}", "assembly": "; \n; CustomSongWidget::FLAlert_Clicked from 0x14016ed20 to 0x14016edc8 (168 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140744f40\n; > <???> @ 0x140918248\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:30 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14016ed20\npush    rdi                                                            ; +0x5, 0x14016ed25\nsub     rsp, 20h                                                       ; +0x6, 0x14016ed26\nmovzx   ebx, r8b                                                       ; +0xa, 0x14016ed2a\nmov     rdi, rcx                                                       ; +0xe, 0x14016ed2e\nmov     rax, [rdx]                                                     ; +0x11, 0x14016ed31\nmov     rcx, rdx                                                       ; +0x14, 0x14016ed34\ncall    qword ptr [rax+38h]                                            ; +0x17, 0x14016ed37\nsub     eax, 1                                                         ; +0x1a, 0x14016ed3a\njz      short loc_14016ED5E                                            ; +0x1d, 0x14016ed3d\ncmp     eax, 1                                                         ; +0x1f, 0x14016ed3f\njnz     short loc_14016EDBD                                            ; +0x22, 0x14016ed42\ntest    bl, bl                                                         ; +0x24, 0x14016ed44\njz      short loc_14016EDBD                                            ; +0x26, 0x14016ed46\nlea     rcx, [rdi-148h]                                                ; +0x28, 0x14016ed48\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2f, 0x14016ed4f\nadd     rsp, 20h                                                       ; +0x34, 0x14016ed54\npop     rdi                                                            ; +0x38, 0x14016ed58\njmp     CustomSongWidget__deleteSong                                   ; +0x39, 0x14016ed59\ntest    bl, bl                                                         ; +0x3e, 0x14016ed5e\njz      short loc_14016EDBD                                            ; +0x40, 0x14016ed60\nmov     rcx, cs:qword_14090BFD0                                        ; +0x42, 0x14016ed62\ntest    rcx, rcx                                                       ; +0x49, 0x14016ed69\njnz     short loc_14016EDA0                                            ; +0x4c, 0x14016ed6c\nmov     ecx, 6E8h; Size                                                ; +0x4e, 0x14016ed6e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x53, 0x14016ed73\nmov     [rsp+28h+arg_8], rax                                           ; +0x58, 0x14016ed78\nmov     rcx, rax                                                       ; +0x5d, 0x14016ed7d\ncall    GameManager__GameManager                                       ; +0x60, 0x14016ed80\nnop                                                                    ; +0x65, 0x14016ed85\nmov     cs:qword_14090BFD0, rax                                        ; +0x66, 0x14016ed86\nmov     rcx, [rax]                                                     ; +0x6d, 0x14016ed8d\nmov     rdx, [rcx+48h]                                                 ; +0x70, 0x14016ed90\nmov     rcx, rax                                                       ; +0x74, 0x14016ed94\ncall    rdx                                                            ; +0x77, 0x14016ed97\nmov     rcx, cs:qword_14090BFD0                                        ; +0x79, 0x14016ed99\nmov     r8b, 1                                                         ; +0x80, 0x14016eda0\nlea     rdx, a0016; \"0016\"                                             ; +0x83, 0x14016eda3\ncall    GameManager__setGameVariable                                   ; +0x8a, 0x14016edaa\nlea     rcx, [rdi-148h]                                                ; +0x8f, 0x14016edaf\nxor     edx, edx                                                       ; +0x96, 0x14016edb6\ncall    CustomSongWidget__onDownload                                   ; +0x98, 0x14016edb8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9d, 0x14016edbd\nadd     rsp, 20h                                                       ; +0xa2, 0x14016edc2\npop     rdi                                                            ; +0xa6, 0x14016edc6\nretn                                                                   ; +0xa7, 0x14016edc7", "xrefs": ["<???> @ 0x140744f40", "<???> @ 0x140918248"], "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"}