{"type": "func", "start": 4302014448, "end": 4302014639, "name": "CustomSFXWidget::downloadSFXFailed", "pseudocode": "// \n// CustomSFXWidget::downloadSFXFailed from 0x1006b87f0 to 0x1006b88af (191 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b89ce8\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 12:35:28 +0000\n// \n\nchar __fastcall CustomSFXWidget::downloadSFXFailed(__int64 a1, int a2, int a3)\n{\n  char result; // al\n  __int64 v6; // rdi\n  unsigned int v7; // r14d\n  const char *v8; // rsi\n  __int16 v9; // [rsp-1Ch] [rbp-1Ch] BYREF\n  char v10; // [rsp-1Ah] [rbp-1Ah]\n\n  result = *(_DWORD *)(a1 + 496) != a2 || *(_DWORD *)(a1 + 496) == 0;\n  if ( !result )\n  {\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 1);\n    v6 = *(_QWORD *)(a1 + 368);\n    v10 = 25;\n    v9 = 13055;\n    (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 1072LL))(v6, &v9);\n    v7 = a3 - 1;\n    if ( v7 > 2 )\n      v8 = \"Download failed. Please try again later.\";\n    else\n      v8 = off_100B8A478[v7];\n    (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(*(_QWORD *)(a1 + 368), v8);\n    cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 368), 230.0, (__m128)0x3ECCCCCDu, (__m128)0LL);\n    return CustomSFXWidget::downloadFailed(a1);\n  }\n  return result;\n}", "assembly": "; \n; CustomSFXWidget::downloadSFXFailed from 0x1006b87f0 to 0x1006b88af (191 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b89ce8\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 12:35:28 +0000\n; \nmov     eax, [rdi+1F0h]                                                ; +0x0, 0x1006b87f0\ncmp     eax, esi                                                       ; +0x6, 0x1006b87f6\nsetnz   cl                                                             ; +0x8, 0x1006b87f8\ntest    eax, eax                                                       ; +0xb, 0x1006b87fb\nsetz    al                                                             ; +0xd, 0x1006b87fd\nor      al, cl                                                         ; +0x10, 0x1006b8800\njnz     locret_1006B88AE                                               ; +0x12, 0x1006b8802\npush    rbp                                                            ; +0x18, 0x1006b8808\nmov     rbp, rsp                                                       ; +0x19, 0x1006b8809\npush    r14                                                            ; +0x1c, 0x1006b880c\npush    rbx                                                            ; +0x1e, 0x1006b880e\nsub     rsp, 10h                                                       ; +0x1f, 0x1006b880f\nmov     r14d, edx                                                      ; +0x23, 0x1006b8813\nmov     rbx, rdi                                                       ; +0x26, 0x1006b8816\nmov     rdi, [rdi+170h]                                                ; +0x29, 0x1006b8819\nmov     rax, [rdi]                                                     ; +0x30, 0x1006b8820\nmov     esi, 1                                                         ; +0x33, 0x1006b8823\ncall    qword ptr [rax+158h]                                           ; +0x38, 0x1006b8828\nmov     rdi, [rbx+170h]                                                ; +0x3e, 0x1006b882e\nmov     byte ptr [rbp-12h], 19h                                        ; +0x45, 0x1006b8835\nmov     word ptr [rbp-14h], 32FFh                                      ; +0x49, 0x1006b8839\nmov     rax, [rdi]                                                     ; +0x4f, 0x1006b883f\nlea     rsi, [rbp-14h]                                                 ; +0x52, 0x1006b8842\ncall    qword ptr [rax+430h]                                           ; +0x56, 0x1006b8846\nmov     rdi, [rbx+170h]                                                ; +0x5c, 0x1006b884c\nmov     rax, [rdi]                                                     ; +0x63, 0x1006b8853\nmov     rax, [rax+3A0h]                                                ; +0x66, 0x1006b8856\ndec     r14d                                                           ; +0x6d, 0x1006b885d\ncmp     r14d, 2                                                        ; +0x70, 0x1006b8860\nja      short loc_1006B8876                                            ; +0x74, 0x1006b8864\nmov     ecx, r14d                                                      ; +0x76, 0x1006b8866\nlea     rdx, off_100B8A478; \"Failed to fetch SFX info.\"                ; +0x79, 0x1006b8869\nmov     rsi, [rdx+rcx*8]                                               ; +0x80, 0x1006b8870\njmp     short loc_1006B887D                                            ; +0x84, 0x1006b8874\nlea     rsi, aDownloadFailed; \"Download failed. Please try again later\"... ; +0x86, 0x1006b8876\ncall    rax                                                            ; +0x8d, 0x1006b887d\nmov     rdi, [rbx+170h]                                                ; +0x8f, 0x1006b887f\nmovss   xmm0, cs:dword_100A06340                                       ; +0x96, 0x1006b8886\nmovss   xmm1, cs:dword_100A040AC                                       ; +0x9e, 0x1006b888e\nxorps   xmm2, xmm2                                                     ; +0xa6, 0x1006b8896\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0xa9, 0x1006b8899\nmov     rdi, rbx                                                       ; +0xae, 0x1006b889e\ncall    CustomSFXWidget__downloadFailed                                ; +0xb1, 0x1006b88a1\nadd     rsp, 10h                                                       ; +0xb6, 0x1006b88a6\npop     rbx                                                            ; +0xba, 0x1006b88aa\npop     r14                                                            ; +0xbb, 0x1006b88ab\npop     rbp                                                            ; +0xbd, 0x1006b88ad\nretn                                                                   ; +0xbe, 0x1006b88ae", "xrefs": ["<???> @ 0x100b89ce8"], "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"}