{"type": "func", "start": 5370195376, "end": 5370195539, "name": "CustomSongWidget::onUsage", "pseudocode": "// \n// CustomSongWidget::onUsage from 0x14016adb0 to 0x14016ae53 (163 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::init @ 0x140169abe\n// > <???> @ 0x1409180b0\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:28 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall CustomSongWidget::onUsage(__int64 a1)\n{\n  __int64 v2; // rdx\n  _QWORD *v3; // rax\n  _BYTE v4[32]; // [rsp+28h] [rbp-50h] BYREF\n  _BYTE v5[32]; // [rsp+48h] [rbp-30h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 336);\n  if ( v2 )\n  {\n    sub_14003F4F0((__int64)v5, v2 + 360);\n    sub_14003F4F0((__int64)v4, *(_QWORD *)(a1 + 336) + 328LL);\n    v3 = SongUsagePopup::create(*(_DWORD *)(*(_QWORD *)(a1 + 336) + 320LL), (__int64)v4, (__int64)v5);\n    (*(void (__fastcall **)(_QWORD *))(*v3 + 1064LL))(v3);\n    sub_14003D310((__int64)v4);\n    sub_14003D310((__int64)v5);\n  }\n}", "assembly": "; \n; CustomSongWidget::onUsage from 0x14016adb0 to 0x14016ae53 (163 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::init @ 0x140169abe\n; > <???> @ 0x1409180b0\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:28 +0000\n; \npush    rbx                                                            ; +0x0, 0x14016adb0\nsub     rsp, 70h                                                       ; +0x2, 0x14016adb2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14016adb6\nxor     rax, rsp                                                       ; +0xd, 0x14016adbd\nmov     [rsp+78h+var_10], rax                                          ; +0x10, 0x14016adc0\nmov     rbx, rcx                                                       ; +0x15, 0x14016adc5\nmov     rdx, [rcx+150h]                                                ; +0x18, 0x14016adc8\ntest    rdx, rdx                                                       ; +0x1f, 0x14016adcf\njz      short loc_14016AE40                                            ; +0x22, 0x14016add2\nadd     rdx, 168h                                                      ; +0x24, 0x14016add4\nlea     rcx, [rsp+78h+var_30]                                          ; +0x2b, 0x14016addb\ncall    sub_14003F4F0                                                  ; +0x30, 0x14016ade0\nnop                                                                    ; +0x35, 0x14016ade5\nmov     rdx, [rbx+150h]                                                ; +0x36, 0x14016ade6\nadd     rdx, 148h                                                      ; +0x3d, 0x14016aded\nlea     rcx, [rsp+78h+var_50]                                          ; +0x44, 0x14016adf4\ncall    sub_14003F4F0                                                  ; +0x49, 0x14016adf9\nnop                                                                    ; +0x4e, 0x14016adfe\nmov     rcx, [rbx+150h]                                                ; +0x4f, 0x14016adff\nlea     r8, [rsp+78h+var_30]                                           ; +0x56, 0x14016ae06\nlea     rdx, [rsp+78h+var_50]                                          ; +0x5b, 0x14016ae0b\nmov     ecx, [rcx+140h]                                                ; +0x60, 0x14016ae10\ncall    SongUsagePopup__create                                         ; +0x66, 0x14016ae16\nmov     rcx, [rax]                                                     ; +0x6b, 0x14016ae1b\nmov     rdx, [rcx+428h]                                                ; +0x6e, 0x14016ae1e\nmov     rcx, rax                                                       ; +0x75, 0x14016ae25\ncall    rdx                                                            ; +0x78, 0x14016ae28\nnop                                                                    ; +0x7a, 0x14016ae2a\nlea     rcx, [rsp+78h+var_50]                                          ; +0x7b, 0x14016ae2b\ncall    sub_14003D310                                                  ; +0x80, 0x14016ae30\nnop                                                                    ; +0x85, 0x14016ae35\nlea     rcx, [rsp+78h+var_30]                                          ; +0x86, 0x14016ae36\ncall    sub_14003D310                                                  ; +0x8b, 0x14016ae3b\nmov     rcx, [rsp+78h+var_10]                                          ; +0x90, 0x14016ae40\nxor     rcx, rsp; StackCookie                                          ; +0x95, 0x14016ae45\ncall    __security_check_cookie                                        ; +0x98, 0x14016ae48\nadd     rsp, 70h                                                       ; +0x9d, 0x14016ae4d\npop     rbx                                                            ; +0xa1, 0x14016ae51\nretn                                                                   ; +0xa2, 0x14016ae52", "xrefs": ["CustomSongWidget::init @ 0x140169abe", "<???> @ 0x1409180b0"], "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"}