{"type": "func", "start": 5371217808, "end": 5371218050, "name": "GJGameLevel::getAudioFileName", "pseudocode": "// \n// GJGameLevel::getAudioFileName from 0x140264790 to 0x140264882 (242 bytes)\n// \n// 11 xrefs:\n// > SongSelectNode::getSongFileName @ 0x140168f0d\n// > EditLevelLayer::playStep2 @ 0x14017b462\n// > EditLevelLayer::onEdit @ 0x14017b8b6\n// > EditorPauseLayer::playStep2 @ 0x1401826a3\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x14034e019\n// > LevelInfoLayer::playStep2 @ 0x140422332\n// > LevelInfoLayer::onEdit @ 0x140422ae1\n// > LevelPage::playStep2 @ 0x140447122\n// > PlayLayer::setupHasCompleted @ 0x140504e79\n// > PlayLayer::prepareMusic @ 0x14051ada1\n// > <???> @ 0x14091c88c\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:28:49 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_QWORD *__fastcall GJGameLevel::getAudioFileName(__int64 a1, _QWORD *a2)\n{\n  __int64 v4; // rcx\n  _QWORD *v5; // rax\n  size_t v6; // r8\n  void *v8; // [rsp+28h] [rbp-40h]\n  _BYTE v9[32]; // [rsp+30h] [rbp-38h] BYREF\n\n  if ( *(_DWORD *)(a1 + 680) )\n  {\n    v4 = qword_14090C070;\n    if ( !qword_14090C070 )\n    {\n      v8 = operator new(0x3D0u);\n      qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n      v4 = qword_14090C070;\n    }\n    v5 = (_QWORD *)MusicDownloadManager::pathForSong(v4, v9, *(unsigned int *)(a1 + 680));\n    if ( v5[3] > 0xFu )\n      v5 = (_QWORD *)*v5;\n    *(_OWORD *)a2 = 0;\n    a2[2] = 0;\n    a2[3] = 0;\n    v6 = -1;\n    do\n      ++v6;\n    while ( *((_BYTE *)v5 + v6) );\n    sub_14003D230(a2, v5, v6);\n    sub_14003D310((__int64)v9);\n  }\n  else\n  {\n    LevelTools::getAudioFileName(a2, *(unsigned int *)(a1 + 676));\n  }\n  return a2;\n}", "assembly": "; \n; GJGameLevel::getAudioFileName from 0x140264790 to 0x140264882 (242 bytes)\n; \n; 11 xrefs:\n; > SongSelectNode::getSongFileName @ 0x140168f0d\n; > EditLevelLayer::playStep2 @ 0x14017b462\n; > EditLevelLayer::onEdit @ 0x14017b8b6\n; > EditorPauseLayer::playStep2 @ 0x1401826a3\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x14034e019\n; > LevelInfoLayer::playStep2 @ 0x140422332\n; > LevelInfoLayer::onEdit @ 0x140422ae1\n; > LevelPage::playStep2 @ 0x140447122\n; > PlayLayer::setupHasCompleted @ 0x140504e79\n; > PlayLayer::prepareMusic @ 0x14051ada1\n; > <???> @ 0x14091c88c\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:28:49 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140264790\npush    rdi                                                            ; +0x5, 0x140264795\nsub     rsp, 60h                                                       ; +0x6, 0x140264796\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14026479a\nxor     rax, rsp                                                       ; +0x11, 0x1402647a1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1402647a4\nmov     rbx, rdx                                                       ; +0x19, 0x1402647a9\nmov     rdi, rcx                                                       ; +0x1c, 0x1402647ac\nmov     [rsp+68h+var_40], rdx                                          ; +0x1f, 0x1402647af\ncmp     dword ptr [rcx+2A8h], 0                                        ; +0x24, 0x1402647b4\njz      loc_140264856                                                  ; +0x2b, 0x1402647bb\nmov     rcx, cs:qword_14090C070                                        ; +0x31, 0x1402647c1\ntest    rcx, rcx                                                       ; +0x38, 0x1402647c8\njnz     short loc_1402647FB                                            ; +0x3b, 0x1402647cb\nmov     ecx, 3D0h; Size                                                ; +0x3d, 0x1402647cd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x42, 0x1402647d2\nmov     [rsp+68h+var_40], rax                                          ; +0x47, 0x1402647d7\nmov     rcx, rax                                                       ; +0x4c, 0x1402647dc\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x4f, 0x1402647df\nmov     rcx, rax                                                       ; +0x54, 0x1402647e4\nmov     cs:qword_14090C070, rax                                        ; +0x57, 0x1402647e7\nmov     rax, [rax]                                                     ; +0x5e, 0x1402647ee\ncall    qword ptr [rax+48h]                                            ; +0x61, 0x1402647f1\nmov     rcx, cs:qword_14090C070                                        ; +0x64, 0x1402647f4\nmov     r8d, [rdi+2A8h]                                                ; +0x6b, 0x1402647fb\nlea     rdx, [rsp+68h+var_38]                                          ; +0x72, 0x140264802\ncall    MusicDownloadManager__pathForSong                              ; +0x77, 0x140264807\nnop                                                                    ; +0x7c, 0x14026480c\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x7d, 0x14026480d\njbe     short loc_140264817                                            ; +0x82, 0x140264812\nmov     rax, [rax]                                                     ; +0x84, 0x140264814\nxorps   xmm0, xmm0                                                     ; +0x87, 0x140264817\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x8a, 0x14026481a\nmov     qword ptr [rbx+10h], 0                                         ; +0x8d, 0x14026481d\nmov     qword ptr [rbx+18h], 0                                         ; +0x95, 0x140264825\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x9d, 0x14026482d\ninc     r8                                                             ; +0xa4, 0x140264834\ncmp     byte ptr [rax+r8], 0                                           ; +0xa7, 0x140264837\njnz     short loc_140264834                                            ; +0xac, 0x14026483c\nmov     rdx, rax                                                       ; +0xae, 0x14026483e\nmov     rcx, rbx                                                       ; +0xb1, 0x140264841\ncall    sub_14003D230                                                  ; +0xb4, 0x140264844\nnop                                                                    ; +0xb9, 0x140264849\nlea     rcx, [rsp+68h+var_38]                                          ; +0xba, 0x14026484a\ncall    sub_14003D310                                                  ; +0xbf, 0x14026484f\njmp     short loc_140264864                                            ; +0xc4, 0x140264854\nmov     edx, [rcx+2A4h]                                                ; +0xc6, 0x140264856\nmov     rcx, rbx                                                       ; +0xcc, 0x14026485c\ncall    LevelTools__getAudioFileName                                   ; +0xcf, 0x14026485f\nmov     rax, rbx                                                       ; +0xd4, 0x140264864\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd7, 0x140264867\nxor     rcx, rsp; StackCookie                                          ; +0xdc, 0x14026486c\ncall    __security_check_cookie                                        ; +0xdf, 0x14026486f\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xe4, 0x140264874\nadd     rsp, 60h                                                       ; +0xec, 0x14026487c\npop     rdi                                                            ; +0xf0, 0x140264880\nretn                                                                   ; +0xf1, 0x140264881", "xrefs": ["SongSelectNode::getSongFileName @ 0x140168f0d", "EditLevelLayer::playStep2 @ 0x14017b462", "EditLevelLayer::onEdit @ 0x14017b8b6", "EditorPauseLayer::playStep2 @ 0x1401826a3", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x14034e019", "LevelInfoLayer::playStep2 @ 0x140422332", "LevelInfoLayer::onEdit @ 0x140422ae1", "LevelPage::playStep2 @ 0x140447122", "PlayLayer::setupHasCompleted @ 0x140504e79", "PlayLayer::prepareMusic @ 0x14051ada1", "<???> @ 0x14091c88c"], "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"}