{"type": "func", "start": 5373439024, "end": 5373439415, "name": "MusicDownloadManager::onGetSongInfoCompleted", "pseudocode": "// \n// MusicDownloadManager::onGetSongInfoCompleted from 0x140482c30 to 0x140482db7 (391 bytes)\n// \n// 2 xrefs:\n// > MusicDownloadManager::handleIt @ 0x140482307\n// > <???> @ 0x140928a00\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:32:45 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall MusicDownloadManager::onGetSongInfoCompleted(__int64 a1, const void **a2, const char *a3)\n{\n  const char *v6; // rcx\n  unsigned int v7; // r14d\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  const void *v10; // rcx\n  unsigned __int64 v11; // rbp\n  size_t v12; // r15\n  const void *v13; // rcx\n  __int64 v14; // rax\n  __int64 v15; // rax\n  __int128 Buf2; // [rsp+20h] [rbp-78h] BYREF\n  __int64 v17; // [rsp+30h] [rbp-68h]\n  __int64 v18; // [rsp+38h] [rbp-60h]\n  const void **v19; // [rsp+48h] [rbp-50h]\n  const char *v20; // [rsp+50h] [rbp-48h]\n\n  v19 = a2;\n  v20 = a3;\n  v6 = a3;\n  if ( *((_QWORD *)a3 + 3) > 0xFu )\n    v6 = *(const char **)a3;\n  v7 = atoi(v6);\n  v8 = cocos2d::CCString::createWithFormat(\"i_%i\", v7);\n  CString = cocos2d::CCString::getCString(v8);\n  MusicDownloadManager::removeDLFromActive(a1, CString);\n  Buf2 = 0;\n  v17 = 2;\n  v18 = 15;\n  strcpy((char *)&Buf2, \"-1\");\n  v10 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v10 = *a2;\n  v11 = (unsigned __int64)a2[2];\n  v12 = v11;\n  if ( v11 > 2 )\n    v12 = 2;\n  if ( !memcmp(v10, &Buf2, v12) && v11 == 2 )\n  {\nLABEL_15:\n    MusicDownloadManager::loadSongInfoFailed(a1, v7, 1);\n    goto LABEL_17;\n  }\n  Buf2 = 0;\n  v17 = 2;\n  v18 = 15;\n  strcpy((char *)&Buf2, \"-2\");\n  v13 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v13 = *a2;\n  if ( memcmp(v13, &Buf2, v12) || v11 != 2 )\n  {\n    v14 = sub_14003F4F0((__int64)&Buf2, (__int64)a2);\n    v15 = MusicDownloadManager::addSongObjectFromString(a1, v14);\n    if ( v15 )\n    {\n      MusicDownloadManager::loadSongInfoFinished(a1, v15);\n      goto LABEL_17;\n    }\n    goto LABEL_15;\n  }\n  MusicDownloadManager::loadSongInfoFailed(a1, v7, 2);\nLABEL_17:\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; MusicDownloadManager::onGetSongInfoCompleted from 0x140482c30 to 0x140482db7 (391 bytes)\n; \n; 2 xrefs:\n; > MusicDownloadManager::handleIt @ 0x140482307\n; > <???> @ 0x140928a00\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:32:45 +0000\n; \npush    rbx                                                            ; +0x0, 0x140482c30\npush    rbp                                                            ; +0x2, 0x140482c32\npush    rsi                                                            ; +0x3, 0x140482c33\npush    rdi                                                            ; +0x4, 0x140482c34\npush    r13                                                            ; +0x5, 0x140482c35\npush    r14                                                            ; +0x7, 0x140482c37\npush    r15                                                            ; +0x9, 0x140482c39\nsub     rsp, 60h                                                       ; +0xb, 0x140482c3b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x140482c3f\nxor     rax, rsp                                                       ; +0x16, 0x140482c46\nmov     [rsp+98h+var_40], rax                                          ; +0x19, 0x140482c49\nmov     rdi, r8                                                        ; +0x1e, 0x140482c4e\nmov     rbx, rdx                                                       ; +0x21, 0x140482c51\nmov     rsi, rcx                                                       ; +0x24, 0x140482c54\nmov     [rsp+98h+var_50], rdx                                          ; +0x27, 0x140482c57\nmov     [rsp+98h+var_48], r8                                           ; +0x2c, 0x140482c5c\nmov     rcx, r8                                                        ; +0x31, 0x140482c61\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x34, 0x140482c64\njbe     short loc_140482C6E                                            ; +0x39, 0x140482c69\nmov     rcx, [r8]; String                                              ; +0x3b, 0x140482c6b\ncall    cs:atoi                                                        ; +0x3e, 0x140482c6e\nmov     r14d, eax                                                      ; +0x44, 0x140482c74\nmov     edx, eax                                                       ; +0x47, 0x140482c77\nlea     rcx, aII_4; \"i_%i\"                                             ; +0x49, 0x140482c79\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x50, 0x140482c80\nmov     rcx, rax                                                       ; +0x56, 0x140482c86\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x59, 0x140482c89\nmov     rdx, rax                                                       ; +0x5f, 0x140482c8f\nmov     rcx, rsi                                                       ; +0x62, 0x140482c92\ncall    MusicDownloadManager__removeDLFromActive                       ; +0x65, 0x140482c95\nxorps   xmm0, xmm0                                                     ; +0x6a, 0x140482c9a\nmovups  [rsp+98h+Buf2], xmm0                                           ; +0x6d, 0x140482c9d\nmov     r13d, 2                                                        ; +0x72, 0x140482ca2\nmov     [rsp+98h+var_68], r13                                          ; +0x78, 0x140482ca8\nmov     [rsp+98h+var_60], 0Fh                                          ; +0x7d, 0x140482cad\nmov     eax, 312Dh                                                     ; +0x86, 0x140482cb6\nmov     word ptr [rsp+98h+Buf2], ax                                    ; +0x8b, 0x140482cbb\nmov     byte ptr [rsp+98h+Buf2+2], 0                                   ; +0x90, 0x140482cc0\nmov     rcx, rbx                                                       ; +0x95, 0x140482cc5\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x98, 0x140482cc8\njbe     short loc_140482CD2                                            ; +0x9d, 0x140482ccd\nmov     rcx, [rbx]; Buf1                                               ; +0x9f, 0x140482ccf\nmov     rbp, [rbx+10h]                                                 ; +0xa2, 0x140482cd2\nmov     r15, rbp                                                       ; +0xa6, 0x140482cd6\ncmp     rbp, r13                                                       ; +0xa9, 0x140482cd9\ncmova   r15, r13                                                       ; +0xac, 0x140482cdc\nmov     r8, r15; Size                                                  ; +0xb0, 0x140482ce0\nlea     rdx, [rsp+98h+Buf2]; Buf2                                      ; +0xb3, 0x140482ce3\ncall    memcmp                                                         ; +0xb8, 0x140482ce8\ntest    eax, eax                                                       ; +0xbd, 0x140482ced\njnz     short loc_140482CF6                                            ; +0xbf, 0x140482cef\ncmp     rbp, r13                                                       ; +0xc1, 0x140482cf1\njz      short loc_140482D6B                                            ; +0xc4, 0x140482cf4\nxorps   xmm0, xmm0                                                     ; +0xc6, 0x140482cf6\nmovups  [rsp+98h+Buf2], xmm0                                           ; +0xc9, 0x140482cf9\nmov     [rsp+98h+var_68], r13                                          ; +0xce, 0x140482cfe\nmov     [rsp+98h+var_60], 0Fh                                          ; +0xd3, 0x140482d03\nmov     eax, 322Dh                                                     ; +0xdc, 0x140482d0c\nmov     word ptr [rsp+98h+Buf2], ax                                    ; +0xe1, 0x140482d11\nmov     byte ptr [rsp+98h+Buf2+2], 0                                   ; +0xe6, 0x140482d16\nmov     rcx, rbx                                                       ; +0xeb, 0x140482d1b\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0xee, 0x140482d1e\njbe     short loc_140482D28                                            ; +0xf3, 0x140482d23\nmov     rcx, [rbx]; Buf1                                               ; +0xf5, 0x140482d25\nmov     r8, r15; Size                                                  ; +0xf8, 0x140482d28\nlea     rdx, [rsp+98h+Buf2]; Buf2                                      ; +0xfb, 0x140482d2b\ncall    memcmp                                                         ; +0x100, 0x140482d30\ntest    eax, eax                                                       ; +0x105, 0x140482d35\njnz     short loc_140482D4E                                            ; +0x107, 0x140482d37\ncmp     rbp, r13                                                       ; +0x109, 0x140482d39\njnz     short loc_140482D4E                                            ; +0x10c, 0x140482d3c\nmov     r8d, r13d                                                      ; +0x10e, 0x140482d3e\nmov     edx, r14d                                                      ; +0x111, 0x140482d41\nmov     rcx, rsi                                                       ; +0x114, 0x140482d44\ncall    MusicDownloadManager__loadSongInfoFailed                       ; +0x117, 0x140482d47\njmp     short loc_140482D8A                                            ; +0x11c, 0x140482d4c\nmov     rdx, rbx                                                       ; +0x11e, 0x140482d4e\nlea     rcx, [rsp+98h+Buf2]                                            ; +0x121, 0x140482d51\ncall    sub_14003F4F0                                                  ; +0x126, 0x140482d56\nmov     rdx, rax                                                       ; +0x12b, 0x140482d5b\nmov     rcx, rsi                                                       ; +0x12e, 0x140482d5e\ncall    MusicDownloadManager__addSongObjectFromString                  ; +0x131, 0x140482d61\ntest    rax, rax                                                       ; +0x136, 0x140482d66\njnz     short loc_140482D7E                                            ; +0x139, 0x140482d69\nmov     r8d, 1                                                         ; +0x13b, 0x140482d6b\nmov     edx, r14d                                                      ; +0x141, 0x140482d71\nmov     rcx, rsi                                                       ; +0x144, 0x140482d74\ncall    MusicDownloadManager__loadSongInfoFailed                       ; +0x147, 0x140482d77\njmp     short loc_140482D8A                                            ; +0x14c, 0x140482d7c\nmov     rdx, rax                                                       ; +0x14e, 0x140482d7e\nmov     rcx, rsi                                                       ; +0x151, 0x140482d81\ncall    MusicDownloadManager__loadSongInfoFinished                     ; +0x154, 0x140482d84\nnop                                                                    ; +0x159, 0x140482d89\nmov     rcx, rbx                                                       ; +0x15a, 0x140482d8a\ncall    sub_14003D310                                                  ; +0x15d, 0x140482d8d\nnop                                                                    ; +0x162, 0x140482d92\nmov     rcx, rdi                                                       ; +0x163, 0x140482d93\ncall    sub_14003D310                                                  ; +0x166, 0x140482d96\nmov     rcx, [rsp+98h+var_40]                                          ; +0x16b, 0x140482d9b\nxor     rcx, rsp; StackCookie                                          ; +0x170, 0x140482da0\ncall    __security_check_cookie                                        ; +0x173, 0x140482da3\nadd     rsp, 60h                                                       ; +0x178, 0x140482da8\npop     r15                                                            ; +0x17c, 0x140482dac\npop     r14                                                            ; +0x17e, 0x140482dae\npop     r13                                                            ; +0x180, 0x140482db0\npop     rdi                                                            ; +0x182, 0x140482db2\npop     rsi                                                            ; +0x183, 0x140482db3\npop     rbp                                                            ; +0x184, 0x140482db4\npop     rbx                                                            ; +0x185, 0x140482db5\nretn                                                                   ; +0x186, 0x140482db6", "xrefs": ["MusicDownloadManager::handleIt @ 0x140482307", "<???> @ 0x140928a00"], "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"}