{"type": "func", "start": 5372114944, "end": 5372115123, "name": "MusicDownloadManager::pathForSFX", "pseudocode": "// \n// MusicDownloadManager::pathForSFX from 0x14033f800 to 0x14033f8b3 (179 bytes)\n// \n// 19 xrefs:\n// > CustomSFXWidget::onPlayback @ 0x1400c1cbf\n// > CustomSFXWidget::FLAlert_Clicked @ 0x1400c27ee\n// > CustomSFXWidget::FLAlert_Clicked @ 0x1400c284e\n// > GameManager::playSFXTrigger @ 0x14017bd37\n// > GJBaseGameLayer::processSFXObjects @ 0x140241af2\n// > MusicDownloadManager::isSFXDownloaded @ 0x14033f5d4\n// > MusicDownloadManager::onDownloadSFXCompleted @ 0x14034252a\n// > RewardUnlockLayer::playRewardEffect @ 0x1403cef82\n// > SecretLayer5::animateHead @ 0x1403f5412\n// > SecretLayer5::showFailAnimation @ 0x1403f5ab2\n// > SecretLayer5::showFailAnimation @ 0x1403f5b2f\n// > SecretLayer5::showSuccessAnimation @ 0x1403f6336\n// > SecretLayer5::showSuccessAnimation @ 0x1403f63b1\n// > SecretLayer5::showSuccessAnimation @ 0x1403f644a\n// > SecretLayer5::showSuccessAnimation @ 0x1403f64d7\n// > SecretLayer5::playWinSFX @ 0x1403f6793\n// > SecretLayer5::onSubmit @ 0x1403f6da7\n// > SetupSFXPopup::createSFXWidget @ 0x140448a33\n// > <???> @ 0x1406d5708\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\n_QWORD *__fastcall MusicDownloadManager::pathForSFX(__int64 a1, _QWORD *a2, unsigned int a3)\n{\n  void **v5; // rax\n  void *v6; // rdx\n  _QWORD v8[4]; // [rsp+30h] [rbp-38h] BYREF\n\n  MusicDownloadManager::pathForSFXFolder(a1, a2, a3);\n  sub_140041270(a2, \"s\", 1u);\n  v5 = (void **)GameToolbox::intToString(v8, a3);\n  v6 = v5;\n  if ( (unsigned __int64)v5[3] > 0xF )\n    v6 = *v5;\n  sub_140041270(a2, v6, (size_t)v5[2]);\n  sub_14003A830((__int64)v8);\n  sub_140041270(a2, \".ogg\", 4u);\n  return a2;\n}", "assembly": "; \n; MusicDownloadManager::pathForSFX from 0x14033f800 to 0x14033f8b3 (179 bytes)\n; \n; 19 xrefs:\n; > CustomSFXWidget::onPlayback @ 0x1400c1cbf\n; > CustomSFXWidget::FLAlert_Clicked @ 0x1400c27ee\n; > CustomSFXWidget::FLAlert_Clicked @ 0x1400c284e\n; > GameManager::playSFXTrigger @ 0x14017bd37\n; > GJBaseGameLayer::processSFXObjects @ 0x140241af2\n; > MusicDownloadManager::isSFXDownloaded @ 0x14033f5d4\n; > MusicDownloadManager::onDownloadSFXCompleted @ 0x14034252a\n; > RewardUnlockLayer::playRewardEffect @ 0x1403cef82\n; > SecretLayer5::animateHead @ 0x1403f5412\n; > SecretLayer5::showFailAnimation @ 0x1403f5ab2\n; > SecretLayer5::showFailAnimation @ 0x1403f5b2f\n; > SecretLayer5::showSuccessAnimation @ 0x1403f6336\n; > SecretLayer5::showSuccessAnimation @ 0x1403f63b1\n; > SecretLayer5::showSuccessAnimation @ 0x1403f644a\n; > SecretLayer5::showSuccessAnimation @ 0x1403f64d7\n; > SecretLayer5::playWinSFX @ 0x1403f6793\n; > SecretLayer5::onSubmit @ 0x1403f6da7\n; > SetupSFXPopup::createSFXWidget @ 0x140448a33\n; > <???> @ 0x1406d5708\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x14033f800\npush    rdi                                                            ; +0x5, 0x14033f805\nsub     rsp, 60h                                                       ; +0x6, 0x14033f806\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14033f80a\nxor     rax, rsp                                                       ; +0x11, 0x14033f811\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x14033f814\nmov     ebx, r8d                                                       ; +0x19, 0x14033f819\nmov     rdi, rdx                                                       ; +0x1c, 0x14033f81c\nmov     [rsp+68h+var_40], rdx                                          ; +0x1f, 0x14033f81f\nmov     [rsp+68h+var_48], 0                                            ; +0x24, 0x14033f824\ncall    MusicDownloadManager__pathForSFXFolder                         ; +0x2c, 0x14033f82c\nmov     [rsp+68h+var_48], 1                                            ; +0x31, 0x14033f831\nmov     r8d, 1; Size                                                   ; +0x39, 0x14033f839\nlea     rdx, aS_1; \"s\"                                                 ; +0x3f, 0x14033f83f\nmov     rcx, rdi; Src                                                  ; +0x46, 0x14033f846\ncall    sub_140041270                                                  ; +0x49, 0x14033f849\nmov     edx, ebx                                                       ; +0x4e, 0x14033f84e\nlea     rcx, [rsp+68h+var_38]                                          ; +0x50, 0x14033f850\ncall    GameToolbox__intToString                                       ; +0x55, 0x14033f855\nnop                                                                    ; +0x5a, 0x14033f85a\nmov     rdx, rax                                                       ; +0x5b, 0x14033f85b\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x5e, 0x14033f85e\njbe     short loc_14033F868                                            ; +0x63, 0x14033f863\nmov     rdx, [rax]; void *                                             ; +0x65, 0x14033f865\nmov     r8, [rax+10h]; Size                                            ; +0x68, 0x14033f868\nmov     rcx, rdi; Src                                                  ; +0x6c, 0x14033f86c\ncall    sub_140041270                                                  ; +0x6f, 0x14033f86f\nnop                                                                    ; +0x74, 0x14033f874\nlea     rcx, [rsp+68h+var_38]                                          ; +0x75, 0x14033f875\ncall    sub_14003A830                                                  ; +0x7a, 0x14033f87a\nmov     r8d, 4; Size                                                   ; +0x7f, 0x14033f87f\nlea     rdx, aOgg; \".ogg\"                                              ; +0x85, 0x14033f885\nmov     rcx, rdi; Src                                                  ; +0x8c, 0x14033f88c\ncall    sub_140041270                                                  ; +0x8f, 0x14033f88f\nmov     rax, rdi                                                       ; +0x94, 0x14033f894\nmov     rcx, [rsp+68h+var_18]                                          ; +0x97, 0x14033f897\nxor     rcx, rsp; StackCookie                                          ; +0x9c, 0x14033f89c\ncall    __security_check_cookie                                        ; +0x9f, 0x14033f89f\nmov     rbx, [rsp+68h+arg_18]                                          ; +0xa4, 0x14033f8a4\nadd     rsp, 60h                                                       ; +0xac, 0x14033f8ac\npop     rdi                                                            ; +0xb0, 0x14033f8b0\nretn                                                                   ; +0xb1, 0x14033f8b1\ndb 0CCh                                                                ; +0xb2, 0x14033f8b2", "xrefs": ["CustomSFXWidget::onPlayback @ 0x1400c1cbf", "CustomSFXWidget::FLAlert_Clicked @ 0x1400c27ee", "CustomSFXWidget::FLAlert_Clicked @ 0x1400c284e", "GameManager::playSFXTrigger @ 0x14017bd37", "GJBaseGameLayer::processSFXObjects @ 0x140241af2", "MusicDownloadManager::isSFXDownloaded @ 0x14033f5d4", "MusicDownloadManager::onDownloadSFXCompleted @ 0x14034252a", "RewardUnlockLayer::playRewardEffect @ 0x1403cef82", "SecretLayer5::animateHead @ 0x1403f5412", "SecretLayer5::showFailAnimation @ 0x1403f5ab2", "SecretLayer5::showFailAnimation @ 0x1403f5b2f", "SecretLayer5::showSuccessAnimation @ 0x1403f6336", "SecretLayer5::showSuccessAnimation @ 0x1403f63b1", "SecretLayer5::showSuccessAnimation @ 0x1403f644a", "SecretLayer5::showSuccessAnimation @ 0x1403f64d7", "SecretLayer5::playWinSFX @ 0x1403f6793", "SecretLayer5::onSubmit @ 0x1403f6da7", "SetupSFXPopup::createSFXWidget @ 0x140448a33", "<???> @ 0x1406d5708"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}