{"type": "func", "start": 5370208400, "end": 5370208618, "name": "CustomSongWidget::loadSongInfoFailed", "pseudocode": "// \n// CustomSongWidget::loadSongInfoFailed from 0x14016e090 to 0x14016e16a (218 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407448b0\n// > <???> @ 0x1409181ac\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\n__int64 __fastcall CustomSongWidget::loadSongInfoFailed(unsigned int *a1, int a2, unsigned int a3)\n{\n  _QWORD *v5; // rcx\n  __int64 *v7; // rdx\n  __int64 *i; // rax\n  __int64 result; // rax\n  __int64 v10; // rdi\n  int v11; // [rsp+38h] [rbp+10h] BYREF\n\n  v11 = a2;\n  v5 = a1 + 74;\n  v7 = (__int64 *)*v5;\n  for ( i = *(__int64 **)(*v5 + 8LL); !*((_BYTE *)i + 25); i = (__int64 *)*i )\n  {\n    if ( *((_DWORD *)i + 7) >= a2 )\n      v7 = i;\n    else\n      i += 2;\n  }\n  if ( *((_BYTE *)v7 + 25) || a2 < *((_DWORD *)v7 + 7) )\n  {\n    result = a1[46];\n    v10 = (__int64)(a1 - 80);\n    if ( (_DWORD)result == a2 )\n    {\n      if ( (_DWORD)result )\n      {\n        CustomSongWidget::updateError(v10, a3);\n        (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v10 + 456) + 336LL))(*(_QWORD *)(v10 + 456), 0);\n        cocos2d::CCNode::unschedule(v10, CustomSongWidget::updateDownloadProgress);\n        *(_BYTE *)(v10 + 499) = 0;\n        return CustomSongWidget::updateSongInfo(v10);\n      }\n    }\n  }\n  else\n  {\n    sub_1400BD2C0(v5, &v11);\n    return (*(__int64 (__fastcall **)(unsigned int *, _QWORD, _QWORD))(*(_QWORD *)a1 + 32LL))(a1, (unsigned int)a2, a3);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::loadSongInfoFailed from 0x14016e090 to 0x14016e16a (218 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407448b0\n; > <???> @ 0x1409181ac\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, 0x14016e090\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14016e095\nmov     [rsp+arg_8], edx                                               ; +0xa, 0x14016e09a\npush    rdi                                                            ; +0xe, 0x14016e09e\nsub     rsp, 20h                                                       ; +0xf, 0x14016e09f\nmov     rdi, rcx                                                       ; +0x13, 0x14016e0a3\nmov     ebx, edx                                                       ; +0x16, 0x14016e0a6\nadd     rcx, 128h                                                      ; +0x18, 0x14016e0a8\nmov     esi, r8d                                                       ; +0x1f, 0x14016e0af\nmov     rdx, [rcx]                                                     ; +0x22, 0x14016e0b2\nmov     rax, [rdx+8]                                                   ; +0x25, 0x14016e0b5\ncmp     byte ptr [rax+19h], 0                                          ; +0x29, 0x14016e0b9\njnz     short loc_14016E0D7                                            ; +0x2d, 0x14016e0bd\nnop                                                                    ; +0x2f, 0x14016e0bf\ncmp     [rax+1Ch], ebx                                                 ; +0x30, 0x14016e0c0\njge     short loc_14016E0CB                                            ; +0x33, 0x14016e0c3\nadd     rax, 10h                                                       ; +0x35, 0x14016e0c5\njmp     short loc_14016E0CE                                            ; +0x39, 0x14016e0c9\nmov     rdx, rax                                                       ; +0x3b, 0x14016e0cb\nmov     rax, [rax]                                                     ; +0x3e, 0x14016e0ce\ncmp     byte ptr [rax+19h], 0                                          ; +0x41, 0x14016e0d1\njz      short loc_14016E0C0                                            ; +0x45, 0x14016e0d5\ncmp     byte ptr [rdx+19h], 0                                          ; +0x47, 0x14016e0d7\njnz     short loc_14016E10A                                            ; +0x4b, 0x14016e0db\ncmp     ebx, [rdx+1Ch]                                                 ; +0x4d, 0x14016e0dd\njl      short loc_14016E10A                                            ; +0x50, 0x14016e0e0\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x52, 0x14016e0e2\ncall    sub_1400BD2C0                                                  ; +0x57, 0x14016e0e7\nmov     rax, [rdi]                                                     ; +0x5c, 0x14016e0ec\nmov     r8d, esi                                                       ; +0x5f, 0x14016e0ef\nmov     edx, ebx                                                       ; +0x62, 0x14016e0f2\nmov     rcx, rdi                                                       ; +0x64, 0x14016e0f4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x67, 0x14016e0f7\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6c, 0x14016e0fc\nadd     rsp, 20h                                                       ; +0x71, 0x14016e101\npop     rdi                                                            ; +0x75, 0x14016e105\njmp     qword ptr [rax+20h]                                            ; +0x76, 0x14016e106\nmov     eax, [rdi+0B8h]                                                ; +0x7a, 0x14016e10a\nadd     rdi, 0FFFFFFFFFFFFFEC0h                                        ; +0x80, 0x14016e110\ncmp     eax, ebx                                                       ; +0x87, 0x14016e117\njnz     short loc_14016E15A                                            ; +0x89, 0x14016e119\ntest    eax, eax                                                       ; +0x8b, 0x14016e11b\njz      short loc_14016E15A                                            ; +0x8d, 0x14016e11d\nmov     edx, esi                                                       ; +0x8f, 0x14016e11f\nmov     rcx, rdi                                                       ; +0x91, 0x14016e121\ncall    CustomSongWidget__updateError                                  ; +0x94, 0x14016e124\nmov     rcx, [rdi+1C8h]                                                ; +0x99, 0x14016e129\nxor     edx, edx                                                       ; +0xa0, 0x14016e130\nmov     rax, [rcx]                                                     ; +0xa2, 0x14016e132\ncall    qword ptr [rax+150h]                                           ; +0xa5, 0x14016e135\nlea     rdx, CustomSongWidget__updateDownloadProgress                  ; +0xab, 0x14016e13b\nmov     rcx, rdi                                                       ; +0xb2, 0x14016e142\ncall    cs:?unschedule@CCNode@cocos2d@@QEAAXP8CCObject@2@EAAXM@Z@Z; cocos2d::CCNode::unschedule(void (cocos2d::CCObject::*)(float)) ; +0xb5, 0x14016e145\nmov     rcx, rdi                                                       ; +0xbb, 0x14016e14b\nmov     byte ptr [rdi+1F3h], 0                                         ; +0xbe, 0x14016e14e\ncall    CustomSongWidget__updateSongInfo                               ; +0xc5, 0x14016e155\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xca, 0x14016e15a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xcf, 0x14016e15f\nadd     rsp, 20h                                                       ; +0xd4, 0x14016e164\npop     rdi                                                            ; +0xd8, 0x14016e168\nretn                                                                   ; +0xd9, 0x14016e169", "xrefs": ["<???> @ 0x1407448b0", "<???> @ 0x1409181ac"], "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"}