{"type": "func", "start": 5373506608, "end": 5373506820, "name": "MusicDownloadManager::pathForNewsImage", "pseudocode": "// \n// MusicDownloadManager::pathForNewsImage from 0x140493430 to 0x140493504 (212 bytes)\n// \n// 5 xrefs:\n// > MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x14049208c\n// > MusicDownloadManager::isNewsImageDownloaded @ 0x14049354c\n// > MusicDownloadManager::onDownloadNewsImageCompleted @ 0x140493b52\n// > NewsPopup::rebuildPage @ 0x14049f467\n// > <???> @ 0x140928ee0\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=3\nCHAR *__fastcall MusicDownloadManager::pathForNewsImage(__int64 a1, CHAR *a2, void **a3)\n{\n  __int64 v5; // rax\n  const CHAR *v6; // rcx\n  void *v7; // rdx\n\n  v5 = cocos2d::CCFileUtils::sharedFileUtils(a1);\n  (*(void (__fastcall **)(__int64, CHAR *))(*(_QWORD *)v5 + 136LL))(v5, a2);\n  sub_140044D80(a2, \"news\", 4u);\n  v6 = a2;\n  if ( *((_QWORD *)a2 + 3) > 0xFu )\n    v6 = *(const CHAR **)a2;\n  CreateDirectoryA(v6, nullptr);\n  sub_140044D80(a2, \"/\", 1u);\n  v7 = a3;\n  if ( (unsigned __int64)a3[3] > 0xF )\n    v7 = *a3;\n  sub_140044D80(a2, v7, (size_t)a3[2]);\n  sub_14003D310((__int64)a3);\n  return a2;\n}", "assembly": "; \n; MusicDownloadManager::pathForNewsImage from 0x140493430 to 0x140493504 (212 bytes)\n; \n; 5 xrefs:\n; > MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x14049208c\n; > MusicDownloadManager::isNewsImageDownloaded @ 0x14049354c\n; > MusicDownloadManager::onDownloadNewsImageCompleted @ 0x140493b52\n; > NewsPopup::rebuildPage @ 0x14049f467\n; > <???> @ 0x140928ee0\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_0], rbx                                               ; +0x0, 0x140493430\npush    rdi                                                            ; +0x5, 0x140493435\nsub     rsp, 40h                                                       ; +0x6, 0x140493436\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14049343a\nxor     rax, rsp                                                       ; +0x11, 0x140493441\nmov     [rsp+48h+var_10], rax                                          ; +0x14, 0x140493444\nmov     rdi, r8                                                        ; +0x19, 0x140493449\nmov     rbx, rdx                                                       ; +0x1c, 0x14049344c\nmov     [rsp+48h+var_20], rdx                                          ; +0x1f, 0x14049344f\nmov     [rsp+48h+var_18], r8                                           ; +0x24, 0x140493454\nmov     [rsp+48h+var_28], 0                                            ; +0x29, 0x140493459\ncall    cs:?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x31, 0x140493461\nmov     rcx, rax                                                       ; +0x37, 0x140493467\nmov     rax, [rax]                                                     ; +0x3a, 0x14049346a\nmov     rdx, rbx                                                       ; +0x3d, 0x14049346d\ncall    qword ptr [rax+88h]                                            ; +0x40, 0x140493470\nmov     [rsp+48h+var_28], 2                                            ; +0x46, 0x140493476\nmov     r8d, 4; Size                                                   ; +0x4e, 0x14049347e\nlea     rdx, aNews; \"news\"                                             ; +0x54, 0x140493484\nmov     rcx, rbx; Src                                                  ; +0x5b, 0x14049348b\ncall    sub_140044D80                                                  ; +0x5e, 0x14049348e\nmov     rcx, rbx                                                       ; +0x63, 0x140493493\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x66, 0x140493496\njbe     short loc_1404934A0                                            ; +0x6b, 0x14049349b\nmov     rcx, [rbx]; lpPathName                                         ; +0x6d, 0x14049349d\nxor     edx, edx; lpSecurityAttributes                                 ; +0x70, 0x1404934a0\ncall    cs:CreateDirectoryA                                            ; +0x72, 0x1404934a2\nmov     r8d, 1; Size                                                   ; +0x78, 0x1404934a8\nlea     rdx, asc_140725510; \"/\"                                        ; +0x7e, 0x1404934ae\nmov     rcx, rbx; Src                                                  ; +0x85, 0x1404934b5\ncall    sub_140044D80                                                  ; +0x88, 0x1404934b8\nnop                                                                    ; +0x8d, 0x1404934bd\nmov     [rsp+48h+var_28], 1                                            ; +0x8e, 0x1404934be\nmov     rdx, rdi                                                       ; +0x96, 0x1404934c6\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x99, 0x1404934c9\njbe     short loc_1404934D3                                            ; +0x9e, 0x1404934ce\nmov     rdx, [rdi]; void *                                             ; +0xa0, 0x1404934d0\nmov     r8, [rdi+10h]; Size                                            ; +0xa3, 0x1404934d3\nmov     rcx, rbx; Src                                                  ; +0xa7, 0x1404934d7\ncall    sub_140044D80                                                  ; +0xaa, 0x1404934da\nnop                                                                    ; +0xaf, 0x1404934df\nmov     rcx, rdi                                                       ; +0xb0, 0x1404934e0\ncall    sub_14003D310                                                  ; +0xb3, 0x1404934e3\nmov     rax, rbx                                                       ; +0xb8, 0x1404934e8\nmov     rcx, [rsp+48h+var_10]                                          ; +0xbb, 0x1404934eb\nxor     rcx, rsp; StackCookie                                          ; +0xc0, 0x1404934f0\ncall    __security_check_cookie                                        ; +0xc3, 0x1404934f3\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xc8, 0x1404934f8\nadd     rsp, 40h                                                       ; +0xcd, 0x1404934fd\npop     rdi                                                            ; +0xd1, 0x140493501\nretn                                                                   ; +0xd2, 0x140493502\ndb 0CCh                                                                ; +0xd3, 0x140493503", "xrefs": ["MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x14049208c", "MusicDownloadManager::isNewsImageDownloaded @ 0x14049354c", "MusicDownloadManager::onDownloadNewsImageCompleted @ 0x140493b52", "NewsPopup::rebuildPage @ 0x14049f467", "<???> @ 0x140928ee0"], "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"}