{"type": "func", "start": 5373445248, "end": 5373445535, "name": "MusicDownloadManager::getSongInfoObject", "pseudocode": "// \n// MusicDownloadManager::getSongInfoObject from 0x140484480 to 0x14048459f (287 bytes)\n// \n// 13 xrefs:\n// > AudioAssetsBrowser::setupList @ 0x1400996d3\n// > FindBPMLayer::create @ 0x140135001\n// > FindBPMLayer::recordingDidStop @ 0x14013516f\n// > LevelCell::loadCustomLevelCell @ 0x14014ab30\n// > SongSelectNode::init @ 0x1401685fd\n// > CustomSongWidget::onMore @ 0x14016b560\n// > MusicDownloadManager::getSongInfo @ 0x140482990\n// > MusicDownloadManager::downloadSong @ 0x140483dab\n// > MusicDownloadManager::onDownloadSongCompleted @ 0x140484127\n// > MusicDownloadManager::sumLocalAudioSizeBytes @ 0x14048bbb3\n// > SongInfoObject::create_1 @ 0x140494233\n// > PlayLayer::setupHasCompleted @ 0x14050500b\n// > <???> @ 0x140928ab4\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:46 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCObject *__fastcall MusicDownloadManager::getSongInfoObject(__int64 a1, unsigned int a2)\n{\n  __int64 v2; // rdi\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  __int64 v7; // rbx\n  void *v8; // r8\n  cocos2d::CCDictionary *v9; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v12; // [rsp+40h] [rbp-28h]\n\n  v2 = (int)a2;\n  v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, a2);\n  CString = cocos2d::CCString::getCString(v4);\n  *(_OWORD *)Block = 0;\n  v12 = 0;\n  v6 = -1;\n  do\n    ++v6;\n  while ( CString[v6] );\n  sub_14003D230(Block, CString, v6);\n  v7 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 344), Block);\n  if ( *((_QWORD *)&v12 + 1) > 0xFu )\n  {\n    v8 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v12 + 1) + 1LL) >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n  if ( v7 || (int)v2 <= 10000000 )\n    return (struct cocos2d::CCObject *)v7;\n  v9 = *(cocos2d::CCDictionary **)(a1 + 448);\n  if ( v9 )\n    return cocos2d::CCDictionary::objectForKey(v9, v2);\n  else\n    return nullptr;\n}", "assembly": "; \n; MusicDownloadManager::getSongInfoObject from 0x140484480 to 0x14048459f (287 bytes)\n; \n; 13 xrefs:\n; > AudioAssetsBrowser::setupList @ 0x1400996d3\n; > FindBPMLayer::create @ 0x140135001\n; > FindBPMLayer::recordingDidStop @ 0x14013516f\n; > LevelCell::loadCustomLevelCell @ 0x14014ab30\n; > SongSelectNode::init @ 0x1401685fd\n; > CustomSongWidget::onMore @ 0x14016b560\n; > MusicDownloadManager::getSongInfo @ 0x140482990\n; > MusicDownloadManager::downloadSong @ 0x140483dab\n; > MusicDownloadManager::onDownloadSongCompleted @ 0x140484127\n; > MusicDownloadManager::sumLocalAudioSizeBytes @ 0x14048bbb3\n; > SongInfoObject::create_1 @ 0x140494233\n; > PlayLayer::setupHasCompleted @ 0x14050500b\n; > <???> @ 0x140928ab4\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:46 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140484480\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140484485\npush    rdi                                                            ; +0xa, 0x14048448a\nsub     rsp, 60h                                                       ; +0xb, 0x14048448b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14048448f\nxor     rax, rsp                                                       ; +0x16, 0x140484496\nmov     [rsp+68h+var_18], rax                                          ; +0x19, 0x140484499\nmovsxd  rdi, edx                                                       ; +0x1e, 0x14048449e\nmov     rsi, rcx                                                       ; +0x21, 0x1404844a1\nmov     edx, edi                                                       ; +0x24, 0x1404844a4\nlea     rcx, word_1406ED6F8                                            ; +0x26, 0x1404844a6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2d, 0x1404844ad\nmov     rcx, rax                                                       ; +0x33, 0x1404844b3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x36, 0x1404844b6\nxorps   xmm0, xmm0                                                     ; +0x3c, 0x1404844bc\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x3f, 0x1404844bf\nxorps   xmm1, xmm1                                                     ; +0x44, 0x1404844c4\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x47, 0x1404844c7\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4d, 0x1404844cd\ninc     r8                                                             ; +0x54, 0x1404844d4\ncmp     byte ptr [rax+r8], 0                                           ; +0x57, 0x1404844d7\njnz     short loc_1404844D4                                            ; +0x5c, 0x1404844dc\nmov     rdx, rax                                                       ; +0x5e, 0x1404844de\nlea     rcx, [rsp+68h+Block]                                           ; +0x61, 0x1404844e1\ncall    sub_14003D230                                                  ; +0x66, 0x1404844e6\nnop                                                                    ; +0x6b, 0x1404844eb\nlea     rdx, [rsp+68h+Block]                                           ; +0x6c, 0x1404844ec\nmov     rcx, [rsi+158h]                                                ; +0x71, 0x1404844f1\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x78, 0x1404844f8\nmov     rbx, rax                                                       ; +0x7e, 0x1404844fe\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x81, 0x140484501\ncmp     rdx, 0Fh                                                       ; +0x86, 0x140484506\njbe     short loc_140484555                                            ; +0x8a, 0x14048450a\ninc     rdx                                                            ; +0x8c, 0x14048450c\nmov     r8, [rsp+68h+Block]                                            ; +0x8f, 0x14048450f\nmov     rcx, r8                                                        ; +0x94, 0x140484514\ncmp     rdx, 1000h                                                     ; +0x97, 0x140484517\njb      short loc_14048454D                                            ; +0x9e, 0x14048451e\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x140484520\nmov     r8, [r8-8]                                                     ; +0xa4, 0x140484524\nsub     rcx, r8                                                        ; +0xa8, 0x140484528\nsub     rcx, 8                                                         ; +0xab, 0x14048452b\ncmp     rcx, 1Fh                                                       ; +0xaf, 0x14048452f\njbe     short loc_14048454D                                            ; +0xb3, 0x140484533\nxor     eax, eax                                                       ; +0xb5, 0x140484535\nmov     [rsp+68h+Reserved], rax; Reserved                              ; +0xb7, 0x140484537\nxor     r9d, r9d; LineNo                                               ; +0xbc, 0x14048453c\nxor     r8d, r8d; FileName                                             ; +0xbf, 0x14048453f\nxor     edx, edx; FunctionName                                         ; +0xc2, 0x140484542\nxor     ecx, ecx; Expression                                           ; +0xc4, 0x140484544\ncall    cs:_invoke_watson                                              ; +0xc6, 0x140484546\ndb 0CCh                                                                ; +0xcc, 0x14048454c\nmov     rcx, r8; Block                                                 ; +0xcd, 0x14048454d\ncall    j_j_free                                                       ; +0xd0, 0x140484550\ntest    rbx, rbx                                                       ; +0xd5, 0x140484555\njnz     short loc_14048457D                                            ; +0xd8, 0x140484558\ncmp     edi, 989680h                                                   ; +0xda, 0x14048455a\njle     short loc_14048457D                                            ; +0xe0, 0x140484560\nmov     rcx, [rsi+1C0h]                                                ; +0xe2, 0x140484562\ntest    rcx, rcx                                                       ; +0xe9, 0x140484569\njz      short loc_140484579                                            ; +0xec, 0x14048456c\nmov     rdx, rdi                                                       ; +0xee, 0x14048456e\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xf1, 0x140484571\njmp     short loc_140484580                                            ; +0xf7, 0x140484577\nxor     eax, eax                                                       ; +0xf9, 0x140484579\njmp     short loc_140484580                                            ; +0xfb, 0x14048457b\nmov     rax, rbx                                                       ; +0xfd, 0x14048457d\nmov     rcx, [rsp+68h+var_18]                                          ; +0x100, 0x140484580\nxor     rcx, rsp; StackCookie                                          ; +0x105, 0x140484585\ncall    __security_check_cookie                                        ; +0x108, 0x140484588\nlea     r11, [rsp+68h+var_8]                                           ; +0x10d, 0x14048458d\nmov     rbx, [r11+20h]                                                 ; +0x112, 0x140484592\nmov     rsi, [r11+28h]                                                 ; +0x116, 0x140484596\nmov     rsp, r11                                                       ; +0x11a, 0x14048459a\npop     rdi                                                            ; +0x11d, 0x14048459d\nretn                                                                   ; +0x11e, 0x14048459e", "xrefs": ["AudioAssetsBrowser::setupList @ 0x1400996d3", "FindBPMLayer::create @ 0x140135001", "FindBPMLayer::recordingDidStop @ 0x14013516f", "LevelCell::loadCustomLevelCell @ 0x14014ab30", "SongSelectNode::init @ 0x1401685fd", "CustomSongWidget::onMore @ 0x14016b560", "MusicDownloadManager::getSongInfo @ 0x140482990", "MusicDownloadManager::downloadSong @ 0x140483dab", "MusicDownloadManager::onDownloadSongCompleted @ 0x140484127", "MusicDownloadManager::sumLocalAudioSizeBytes @ 0x14048bbb3", "SongInfoObject::create_1 @ 0x140494233", "PlayLayer::setupHasCompleted @ 0x14050500b", "<???> @ 0x140928ab4"], "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"}