{"type": "func", "start": 4302014640, "end": 4302014799, "name": "CustomSFXWidget::updateError", "pseudocode": "// \n// CustomSFXWidget::updateError from 0x1006b88b0 to 0x1006b894f (159 bytes)\n// \n// 0 xrefs:\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\n__int64 __fastcall CustomSFXWidget::updateError(__int64 a1, int a2)\n{\n  __int64 v3; // rdi\n  const char *v4; // rsi\n  __int16 v6; // [rsp+Ch] [rbp-14h] BYREF\n  char v7; // [rsp+Eh] [rbp-12h]\n\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 368) + 344LL))(*(_QWORD *)(a1 + 368), 1);\n  v3 = *(_QWORD *)(a1 + 368);\n  v7 = 25;\n  v6 = 13055;\n  (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1072LL))(v3, &v6);\n  if ( (unsigned int)(a2 - 1) > 2 )\n    v4 = \"Download failed. Please try again later.\";\n  else\n    v4 = off_100B8A478[a2 - 1];\n  (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 368) + 928LL))(*(_QWORD *)(a1 + 368), v4);\n  return cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 368), 230.0, (__m128)0x3ECCCCCDu, (__m128)0LL);\n}", "assembly": "; \n; CustomSFXWidget::updateError from 0x1006b88b0 to 0x1006b894f (159 bytes)\n; \n; 0 xrefs:\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; \npush    rbp                                                            ; +0x0, 0x1006b88b0\nmov     rbp, rsp                                                       ; +0x1, 0x1006b88b1\npush    r14                                                            ; +0x4, 0x1006b88b4\npush    rbx                                                            ; +0x6, 0x1006b88b6\nsub     rsp, 10h                                                       ; +0x7, 0x1006b88b7\nmov     r14d, esi                                                      ; +0xb, 0x1006b88bb\nmov     rbx, rdi                                                       ; +0xe, 0x1006b88be\nmov     rdi, [rdi+170h]                                                ; +0x11, 0x1006b88c1\nmov     rax, [rdi]                                                     ; +0x18, 0x1006b88c8\nmov     esi, 1                                                         ; +0x1b, 0x1006b88cb\ncall    qword ptr [rax+158h]                                           ; +0x20, 0x1006b88d0\nmov     rdi, [rbx+170h]                                                ; +0x26, 0x1006b88d6\nmov     [rbp+var_12], 19h                                              ; +0x2d, 0x1006b88dd\nmov     [rbp+var_14], 32FFh                                            ; +0x31, 0x1006b88e1\nmov     rax, [rdi]                                                     ; +0x37, 0x1006b88e7\nlea     rsi, [rbp+var_14]                                              ; +0x3a, 0x1006b88ea\ncall    qword ptr [rax+430h]                                           ; +0x3e, 0x1006b88ee\nmov     rdi, [rbx+170h]                                                ; +0x44, 0x1006b88f4\nmov     rax, [rdi]                                                     ; +0x4b, 0x1006b88fb\nmov     rax, [rax+3A0h]                                                ; +0x4e, 0x1006b88fe\ndec     r14d                                                           ; +0x55, 0x1006b8905\ncmp     r14d, 2                                                        ; +0x58, 0x1006b8908\nja      short loc_1006B891E                                            ; +0x5c, 0x1006b890c\nmov     ecx, r14d                                                      ; +0x5e, 0x1006b890e\nlea     rdx, off_100B8A478; \"Failed to fetch SFX info.\"                ; +0x61, 0x1006b8911\nmov     rsi, [rdx+rcx*8]                                               ; +0x68, 0x1006b8918\njmp     short loc_1006B8925                                            ; +0x6c, 0x1006b891c\nlea     rsi, aDownloadFailed; \"Download failed. Please try again later\"... ; +0x6e, 0x1006b891e\ncall    rax                                                            ; +0x75, 0x1006b8925\nmov     rdi, [rbx+170h]                                                ; +0x77, 0x1006b8927\nmovss   xmm0, cs:dword_100A06340                                       ; +0x7e, 0x1006b892e\nmovss   xmm1, cs:dword_100A040AC                                       ; +0x86, 0x1006b8936\nxorps   xmm2, xmm2                                                     ; +0x8e, 0x1006b893e\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0x91, 0x1006b8941\nadd     rsp, 10h                                                       ; +0x96, 0x1006b8946\npop     rbx                                                            ; +0x9a, 0x1006b894a\npop     r14                                                            ; +0x9b, 0x1006b894b\npop     rbp                                                            ; +0x9d, 0x1006b894d\nretn                                                                   ; +0x9e, 0x1006b894e", "xrefs": [], "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"}