{"type": "func", "start": 5373447024, "end": 5373447203, "name": "MusicDownloadManager::pathForSFX", "pseudocode": "// \n// MusicDownloadManager::pathForSFX from 0x140484b70 to 0x140484c23 (179 bytes)\n// \n// 20 xrefs:\n// > CustomSFXWidget::deleteSFX @ 0x1401619c7\n// > CustomSFXWidget::deleteSFX @ 0x140161a5b\n// > CustomSFXWidget::onPlayback @ 0x14016231b\n// > GameManager::playSFXTrigger @ 0x140276c02\n// > GJBaseGameLayer::processSFXObjects @ 0x14034bc17\n// > MusicDownloadManager::isSFXDownloaded @ 0x14048492a\n// > MusicDownloadManager::onDownloadSFXCompleted @ 0x14048f33c\n// > RewardUnlockLayer::playRewardEffect @ 0x1405648cd\n// > SecretLayer5::animateHead @ 0x14058aafb\n// > SecretLayer5::showFailAnimation @ 0x14058b1ee\n// > SecretLayer5::showFailAnimation @ 0x14058b2a3\n// > SecretLayer5::showSuccessAnimation @ 0x14058baef\n// > SecretLayer5::showSuccessAnimation @ 0x14058bba0\n// > SecretLayer5::showSuccessAnimation @ 0x14058bc71\n// > SecretLayer5::showSuccessAnimation @ 0x14058bd34\n// > SecretLayer5::playWinSFX @ 0x14058bff9\n// > SecretLayer5::onSubmit @ 0x14058c698\n// > SetupSFXPopup::createSFXWidget @ 0x1405de223\n// > <???> @ 0x140928af0\n// > <???> @ 0x140928afc\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=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_140044D80(a2, byte_14070D03C, 1u);\n  v5 = (void **)GameToolbox::intToString(v8, a3);\n  v6 = v5;\n  if ( (unsigned __int64)v5[3] > 0xF )\n    v6 = *v5;\n  sub_140044D80(a2, v6, (size_t)v5[2]);\n  sub_14003D310((__int64)v8);\n  sub_140044D80(a2, \".ogg\", 4u);\n  return a2;\n}", "assembly": "; \n; MusicDownloadManager::pathForSFX from 0x140484b70 to 0x140484c23 (179 bytes)\n; \n; 20 xrefs:\n; > CustomSFXWidget::deleteSFX @ 0x1401619c7\n; > CustomSFXWidget::deleteSFX @ 0x140161a5b\n; > CustomSFXWidget::onPlayback @ 0x14016231b\n; > GameManager::playSFXTrigger @ 0x140276c02\n; > GJBaseGameLayer::processSFXObjects @ 0x14034bc17\n; > MusicDownloadManager::isSFXDownloaded @ 0x14048492a\n; > MusicDownloadManager::onDownloadSFXCompleted @ 0x14048f33c\n; > RewardUnlockLayer::playRewardEffect @ 0x1405648cd\n; > SecretLayer5::animateHead @ 0x14058aafb\n; > SecretLayer5::showFailAnimation @ 0x14058b1ee\n; > SecretLayer5::showFailAnimation @ 0x14058b2a3\n; > SecretLayer5::showSuccessAnimation @ 0x14058baef\n; > SecretLayer5::showSuccessAnimation @ 0x14058bba0\n; > SecretLayer5::showSuccessAnimation @ 0x14058bc71\n; > SecretLayer5::showSuccessAnimation @ 0x14058bd34\n; > SecretLayer5::playWinSFX @ 0x14058bff9\n; > SecretLayer5::onSubmit @ 0x14058c698\n; > SetupSFXPopup::createSFXWidget @ 0x1405de223\n; > <???> @ 0x140928af0\n; > <???> @ 0x140928afc\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_18], rbx                                              ; +0x0, 0x140484b70\npush    rdi                                                            ; +0x5, 0x140484b75\nsub     rsp, 60h                                                       ; +0x6, 0x140484b76\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x140484b7a\nxor     rax, rsp                                                       ; +0x11, 0x140484b81\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x140484b84\nmov     ebx, r8d                                                       ; +0x19, 0x140484b89\nmov     rdi, rdx                                                       ; +0x1c, 0x140484b8c\nmov     [rsp+68h+var_40], rdx                                          ; +0x1f, 0x140484b8f\nmov     [rsp+68h+var_48], 0                                            ; +0x24, 0x140484b94\ncall    MusicDownloadManager__pathForSFXFolder                         ; +0x2c, 0x140484b9c\nmov     [rsp+68h+var_48], 1                                            ; +0x31, 0x140484ba1\nmov     r8d, 1; Size                                                   ; +0x39, 0x140484ba9\nlea     rdx, byte_14070D03C; void *                                    ; +0x3f, 0x140484baf\nmov     rcx, rdi; Src                                                  ; +0x46, 0x140484bb6\ncall    sub_140044D80                                                  ; +0x49, 0x140484bb9\nmov     edx, ebx                                                       ; +0x4e, 0x140484bbe\nlea     rcx, [rsp+68h+var_38]                                          ; +0x50, 0x140484bc0\ncall    GameToolbox__intToString                                       ; +0x55, 0x140484bc5\nnop                                                                    ; +0x5a, 0x140484bca\nmov     rdx, rax                                                       ; +0x5b, 0x140484bcb\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x5e, 0x140484bce\njbe     short loc_140484BD8                                            ; +0x63, 0x140484bd3\nmov     rdx, [rax]; void *                                             ; +0x65, 0x140484bd5\nmov     r8, [rax+10h]; Size                                            ; +0x68, 0x140484bd8\nmov     rcx, rdi; Src                                                  ; +0x6c, 0x140484bdc\ncall    sub_140044D80                                                  ; +0x6f, 0x140484bdf\nnop                                                                    ; +0x74, 0x140484be4\nlea     rcx, [rsp+68h+var_38]                                          ; +0x75, 0x140484be5\ncall    sub_14003D310                                                  ; +0x7a, 0x140484bea\nmov     r8d, 4; Size                                                   ; +0x7f, 0x140484bef\nlea     rdx, aOgg; \".ogg\"                                              ; +0x85, 0x140484bf5\nmov     rcx, rdi; Src                                                  ; +0x8c, 0x140484bfc\ncall    sub_140044D80                                                  ; +0x8f, 0x140484bff\nmov     rax, rdi                                                       ; +0x94, 0x140484c04\nmov     rcx, [rsp+68h+var_18]                                          ; +0x97, 0x140484c07\nxor     rcx, rsp; StackCookie                                          ; +0x9c, 0x140484c0c\ncall    __security_check_cookie                                        ; +0x9f, 0x140484c0f\nmov     rbx, [rsp+68h+arg_18]                                          ; +0xa4, 0x140484c14\nadd     rsp, 60h                                                       ; +0xac, 0x140484c1c\npop     rdi                                                            ; +0xb0, 0x140484c20\nretn                                                                   ; +0xb1, 0x140484c21\ndb 0CCh                                                                ; +0xb2, 0x140484c22", "xrefs": ["CustomSFXWidget::deleteSFX @ 0x1401619c7", "CustomSFXWidget::deleteSFX @ 0x140161a5b", "CustomSFXWidget::onPlayback @ 0x14016231b", "GameManager::playSFXTrigger @ 0x140276c02", "GJBaseGameLayer::processSFXObjects @ 0x14034bc17", "MusicDownloadManager::isSFXDownloaded @ 0x14048492a", "MusicDownloadManager::onDownloadSFXCompleted @ 0x14048f33c", "RewardUnlockLayer::playRewardEffect @ 0x1405648cd", "SecretLayer5::animateHead @ 0x14058aafb", "SecretLayer5::showFailAnimation @ 0x14058b1ee", "SecretLayer5::showFailAnimation @ 0x14058b2a3", "SecretLayer5::showSuccessAnimation @ 0x14058baef", "SecretLayer5::showSuccessAnimation @ 0x14058bba0", "SecretLayer5::showSuccessAnimation @ 0x14058bc71", "SecretLayer5::showSuccessAnimation @ 0x14058bd34", "SecretLayer5::playWinSFX @ 0x14058bff9", "SecretLayer5::onSubmit @ 0x14058c698", "SetupSFXPopup::createSFXWidget @ 0x1405de223", "<???> @ 0x140928af0", "<???> @ 0x140928afc"], "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"}