{"type": "func", "start": 5370165232, "end": 5370165358, "name": "CustomSFXWidget::downloadSFXFinished", "pseudocode": "// \n// CustomSFXWidget::downloadSFXFinished from 0x1401637f0 to 0x14016386e (126 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1407425c8\n// > <???> @ 0x140917dd4\n// > <???> @ 0x140917de0\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:26 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall CustomSFXWidget::downloadSFXFinished(__int64 a1, int a2)\n{\n  __int64 v2; // rbx\n  int v3; // eax\n  __int64 v4; // rcx\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  v2 = a1 - 320;\n  v3 = *(_DWORD *)(a1 - 320 + 496);\n  if ( v3 == a2 && v3 )\n  {\n    v4 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v5 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    if ( !(unsigned __int8)GameManager::getGameVariable(v4, \"0143\") )\n      CustomSFXWidget::onPlayback(v2);\n  }\n}", "assembly": "; \n; CustomSFXWidget::downloadSFXFinished from 0x1401637f0 to 0x14016386e (126 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1407425c8\n; > <???> @ 0x140917dd4\n; > <???> @ 0x140917de0\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:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401637f0\nsub     rsp, 20h                                                       ; +0x2, 0x1401637f2\nlea     rbx, [rcx-140h]                                                ; +0x6, 0x1401637f6\nmov     eax, [rbx+1F0h]                                                ; +0xd, 0x1401637fd\ncmp     eax, edx                                                       ; +0x13, 0x140163803\njnz     short loc_140163868                                            ; +0x15, 0x140163805\ntest    eax, eax                                                       ; +0x17, 0x140163807\njz      short loc_140163868                                            ; +0x19, 0x140163809\nmov     rcx, cs:qword_14090BFD0                                        ; +0x1b, 0x14016380b\ntest    rcx, rcx                                                       ; +0x22, 0x140163812\njnz     short loc_140163849                                            ; +0x25, 0x140163815\nmov     ecx, 6E8h; Size                                                ; +0x27, 0x140163817\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2c, 0x14016381c\nmov     [rsp+28h+arg_0], rax                                           ; +0x31, 0x140163821\nmov     rcx, rax                                                       ; +0x36, 0x140163826\ncall    GameManager__GameManager                                       ; +0x39, 0x140163829\nnop                                                                    ; +0x3e, 0x14016382e\nmov     cs:qword_14090BFD0, rax                                        ; +0x3f, 0x14016382f\nmov     rcx, [rax]                                                     ; +0x46, 0x140163836\nmov     rdx, [rcx+48h]                                                 ; +0x49, 0x140163839\nmov     rcx, rax                                                       ; +0x4d, 0x14016383d\ncall    rdx                                                            ; +0x50, 0x140163840\nmov     rcx, cs:qword_14090BFD0                                        ; +0x52, 0x140163842\nlea     rdx, a0143; \"0143\"                                             ; +0x59, 0x140163849\ncall    GameManager__getGameVariable                                   ; +0x60, 0x140163850\ntest    al, al                                                         ; +0x65, 0x140163855\njnz     short loc_140163868                                            ; +0x67, 0x140163857\nxor     edx, edx                                                       ; +0x69, 0x140163859\nmov     rcx, rbx                                                       ; +0x6b, 0x14016385b\nadd     rsp, 20h                                                       ; +0x6e, 0x14016385e\npop     rbx                                                            ; +0x72, 0x140163862\njmp     CustomSFXWidget__onPlayback                                    ; +0x73, 0x140163863\nadd     rsp, 20h                                                       ; +0x78, 0x140163868\npop     rbx                                                            ; +0x7c, 0x14016386c\nretn                                                                   ; +0x7d, 0x14016386d", "xrefs": ["<???> @ 0x1407425c8", "<???> @ 0x140917dd4", "<???> @ 0x140917de0"], "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"}