{"type": "func", "start": 5373530976, "end": 5373531223, "name": "MusicDownloadManager::linkRowString", "pseudocode": "// \n// MusicDownloadManager::linkRowString from 0x140499360 to 0x140499457 (247 bytes)\n// \n// 3 xrefs:\n// > SongInfoObject::createWithCoder @ 0x140495e55\n// > SongInfoObject::addSongLink @ 0x140496a72\n// > <???> @ 0x1409290cc\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:53 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_QWORD *__fastcall MusicDownloadManager::linkRowString(_QWORD *a1, _DWORD *a2)\n{\n  __int64 v4; // rdi\n  __int64 v5; // rax\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  size_t v8; // r8\n  _BYTE v10[32]; // [rsp+40h] [rbp-58h] BYREF\n  _BYTE Src[32]; // [rsp+60h] [rbp-38h] BYREF\n\n  v4 = MusicDownloadManager::urlEncode(Src);\n  v5 = MusicDownloadManager::urlEncode(v10);\n  if ( *(_QWORD *)(v4 + 24) > 0xFu )\n    v4 = *(_QWORD *)v4;\n  if ( *(_QWORD *)(v5 + 24) > 0xFu )\n    v5 = *(_QWORD *)v5;\n  v6 = cocos2d::CCString::createWithFormat(\"%i,%i,%s,%s\", *a2, a2[1], (const char *)v5, (const char *)v4);\n  CString = cocos2d::CCString::getCString(v6);\n  *(_OWORD *)a1 = 0;\n  a1[2] = 0;\n  a1[3] = 0;\n  v8 = -1;\n  do\n    ++v8;\n  while ( CString[v8] );\n  sub_14003D230(a1, CString, v8);\n  sub_14003D310((__int64)v10);\n  sub_14003D310((__int64)Src);\n  return a1;\n}", "assembly": "; \n; MusicDownloadManager::linkRowString from 0x140499360 to 0x140499457 (247 bytes)\n; \n; 3 xrefs:\n; > SongInfoObject::createWithCoder @ 0x140495e55\n; > SongInfoObject::addSongLink @ 0x140496a72\n; > <???> @ 0x1409290cc\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:53 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140499360\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140499365\npush    rdi                                                            ; +0xa, 0x14049936a\nsub     rsp, 90h                                                       ; +0xb, 0x14049936b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140499372\nxor     rax, rsp                                                       ; +0x19, 0x140499379\nmov     [rsp+98h+var_18], rax                                          ; +0x1c, 0x14049937c\nmov     rsi, rdx                                                       ; +0x24, 0x140499384\nmov     rbx, rcx                                                       ; +0x27, 0x140499387\nmov     [rsp+98h+var_60], rcx                                          ; +0x2a, 0x14049938a\nadd     rdx, 28h ; '('                                                 ; +0x2f, 0x14049938f\nlea     rcx, [rsp+98h+Src]; Src                                        ; +0x33, 0x140499393\ncall    MusicDownloadManager__urlEncode                                ; +0x38, 0x140499398\nmov     rdi, rax                                                       ; +0x3d, 0x14049939d\nlea     rdx, [rsi+8]                                                   ; +0x40, 0x1404993a0\nlea     rcx, [rsp+98h+var_58]; Src                                     ; +0x44, 0x1404993a4\ncall    MusicDownloadManager__urlEncode                                ; +0x49, 0x1404993a9\nnop                                                                    ; +0x4e, 0x1404993ae\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x4f, 0x1404993af\njbe     short loc_1404993B9                                            ; +0x54, 0x1404993b4\nmov     rdi, [rdi]                                                     ; +0x56, 0x1404993b6\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x59, 0x1404993b9\njbe     short loc_1404993C3                                            ; +0x5e, 0x1404993be\nmov     rax, [rax]                                                     ; +0x60, 0x1404993c0\nmov     [rsp+98h+var_78], rdi                                          ; +0x63, 0x1404993c3\nmov     r9, rax                                                        ; +0x68, 0x1404993c8\nmov     r8d, [rsi+4]                                                   ; +0x6b, 0x1404993cb\nmov     edx, [rsi]                                                     ; +0x6f, 0x1404993cf\nlea     rcx, aIISS; \"%i,%i,%s,%s\"                                      ; +0x71, 0x1404993d1\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x78, 0x1404993d8\nmov     rcx, rax                                                       ; +0x7e, 0x1404993de\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x81, 0x1404993e1\nxorps   xmm0, xmm0                                                     ; +0x87, 0x1404993e7\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x8a, 0x1404993ea\nmov     qword ptr [rbx+10h], 0                                         ; +0x8d, 0x1404993ed\nmov     qword ptr [rbx+18h], 0                                         ; +0x95, 0x1404993f5\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x9d, 0x1404993fd\ninc     r8                                                             ; +0xa4, 0x140499404\ncmp     byte ptr [rax+r8], 0                                           ; +0xa7, 0x140499407\njnz     short loc_140499404                                            ; +0xac, 0x14049940c\nmov     rdx, rax                                                       ; +0xae, 0x14049940e\nmov     rcx, rbx                                                       ; +0xb1, 0x140499411\ncall    sub_14003D230                                                  ; +0xb4, 0x140499414\nnop                                                                    ; +0xb9, 0x140499419\nlea     rcx, [rsp+98h+var_58]                                          ; +0xba, 0x14049941a\ncall    sub_14003D310                                                  ; +0xbf, 0x14049941f\nnop                                                                    ; +0xc4, 0x140499424\nlea     rcx, [rsp+98h+Src]                                             ; +0xc5, 0x140499425\ncall    sub_14003D310                                                  ; +0xca, 0x14049942a\nmov     rax, rbx                                                       ; +0xcf, 0x14049942f\nmov     rcx, [rsp+98h+var_18]                                          ; +0xd2, 0x140499432\nxor     rcx, rsp; StackCookie                                          ; +0xda, 0x14049943a\ncall    __security_check_cookie                                        ; +0xdd, 0x14049943d\nlea     r11, [rsp+98h+var_8]                                           ; +0xe2, 0x140499442\nmov     rbx, [r11+20h]                                                 ; +0xea, 0x14049944a\nmov     rsi, [r11+28h]                                                 ; +0xee, 0x14049944e\nmov     rsp, r11                                                       ; +0xf2, 0x140499452\npop     rdi                                                            ; +0xf5, 0x140499455\nretn                                                                   ; +0xf6, 0x140499456", "xrefs": ["SongInfoObject::createWithCoder @ 0x140495e55", "SongInfoObject::addSongLink @ 0x140496a72", "<???> @ 0x1409290cc"], "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"}