{"type": "func", "start": 5373506480, "end": 5373506607, "name": "MusicDownloadManager::pathForNewsFolder", "pseudocode": "// \n// MusicDownloadManager::pathForNewsFolder from 0x1404933b0 to 0x14049342f (127 bytes)\n// \n// 3 xrefs:\n// > MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x140491e60\n// > MusicDownloadManager::parseNewsFeed @ 0x1404921c9\n// > <???> @ 0x140928ed4\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:51 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nCHAR *__fastcall MusicDownloadManager::pathForNewsFolder(__int64 a1, CHAR *a2)\n{\n  __int64 v3; // rax\n  const CHAR *v4; // rcx\n\n  v3 = cocos2d::CCFileUtils::sharedFileUtils(a1);\n  (*(void (__fastcall **)(__int64, CHAR *))(*(_QWORD *)v3 + 136LL))(v3, a2);\n  sub_140044D80(a2, \"news\", 4u);\n  v4 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v4 = *(const CHAR **)a2;\n  CreateDirectoryA(v4, nullptr);\n  sub_140044D80(a2, \"/\", 1u);\n  return a2;\n}", "assembly": "; \n; MusicDownloadManager::pathForNewsFolder from 0x1404933b0 to 0x14049342f (127 bytes)\n; \n; 3 xrefs:\n; > MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x140491e60\n; > MusicDownloadManager::parseNewsFeed @ 0x1404921c9\n; > <???> @ 0x140928ed4\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:51 +0000\n; \nmov     [rsp+arg_8], rdx                                               ; +0x0, 0x1404933b0\npush    rbx                                                            ; +0x5, 0x1404933b5\nsub     rsp, 30h                                                       ; +0x6, 0x1404933b6\nmov     rbx, rdx                                                       ; +0xa, 0x1404933ba\nmov     [rsp+38h+var_18], 0                                            ; +0xd, 0x1404933bd\ncall    cs:?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x15, 0x1404933c5\nmov     rcx, [rax]                                                     ; +0x1b, 0x1404933cb\nmov     r8, [rcx+88h]                                                  ; +0x1e, 0x1404933ce\nmov     rdx, rbx                                                       ; +0x25, 0x1404933d5\nmov     rcx, rax                                                       ; +0x28, 0x1404933d8\ncall    r8                                                             ; +0x2b, 0x1404933db\nmov     [rsp+38h+var_18], 1                                            ; +0x2e, 0x1404933de\nmov     r8d, 4; Size                                                   ; +0x36, 0x1404933e6\nlea     rdx, aNews; \"news\"                                             ; +0x3c, 0x1404933ec\nmov     rcx, rbx; Src                                                  ; +0x43, 0x1404933f3\ncall    sub_140044D80                                                  ; +0x46, 0x1404933f6\nmov     rcx, rbx                                                       ; +0x4b, 0x1404933fb\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x4e, 0x1404933fe\njbe     short loc_140493408                                            ; +0x53, 0x140493403\nmov     rcx, [rbx]; lpPathName                                         ; +0x55, 0x140493405\nxor     edx, edx; lpSecurityAttributes                                 ; +0x58, 0x140493408\ncall    cs:CreateDirectoryA                                            ; +0x5a, 0x14049340a\nmov     r8d, 1; Size                                                   ; +0x60, 0x140493410\nlea     rdx, asc_140725510; \"/\"                                        ; +0x66, 0x140493416\nmov     rcx, rbx; Src                                                  ; +0x6d, 0x14049341d\ncall    sub_140044D80                                                  ; +0x70, 0x140493420\nmov     rax, rbx                                                       ; +0x75, 0x140493425\nadd     rsp, 30h                                                       ; +0x78, 0x140493428\npop     rbx                                                            ; +0x7c, 0x14049342c\nretn                                                                   ; +0x7d, 0x14049342d\ndb 0CCh                                                                ; +0x7e, 0x14049342e", "xrefs": ["MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x140491e60", "MusicDownloadManager::parseNewsFeed @ 0x1404921c9", "<???> @ 0x140928ed4"], "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"}