{"type": "func", "start": 5369527776, "end": 5369527957, "name": "SongSelectNode::getSongFileName", "pseudocode": "// \n// SongSelectNode::getSongFileName from 0x1400c7de0 to 0x1400c7e95 (181 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14054e8c8\n// > <???> @ 0x1406c825c\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=1\n_QWORD *__fastcall SongSelectNode::getSongFileName(__int64 a1, _QWORD *a2)\n{\n  unsigned int v3; // edi\n  MusicDownloadManager *v4; // rax\n  _QWORD *v5; // rax\n  size_t v6; // r8\n  _BYTE v8[32]; // [rsp+30h] [rbp-38h] BYREF\n\n  v3 = *(_DWORD *)(a1 + 8);\n  if ( v3 )\n  {\n    v4 = MusicDownloadManager::sharedState();\n    v5 = (_QWORD *)MusicDownloadManager::pathForSong(v4, v8, v3);\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_14003A930(a2, v5, v6);\n    sub_14003A830((__int64)v8);\n  }\n  else\n  {\n    GJGameLevel::getAudioFileName(*(_QWORD *)(*(_QWORD *)(a1 + 88) + 384LL));\n  }\n  return a2;\n}", "assembly": "; \n; SongSelectNode::getSongFileName from 0x1400c7de0 to 0x1400c7e95 (181 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14054e8c8\n; > <???> @ 0x1406c825c\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_10], rbx                                              ; +0x0, 0x1400c7de0\npush    rdi                                                            ; +0x5, 0x1400c7de5\nsub     rsp, 60h                                                       ; +0x6, 0x1400c7de6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1400c7dea\nxor     rax, rsp                                                       ; +0x11, 0x1400c7df1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x1400c7df4\nmov     rbx, rdx                                                       ; +0x19, 0x1400c7df9\nmov     [rsp+68h+var_40], rdx                                          ; +0x1c, 0x1400c7dfc\nmov     edi, [rcx+8]                                                   ; +0x21, 0x1400c7e01\ntest    edi, edi                                                       ; +0x24, 0x1400c7e04\njz      short loc_1400C7E67                                            ; +0x26, 0x1400c7e06\ncall    MusicDownloadManager__sharedState                              ; +0x28, 0x1400c7e08\nmov     rcx, rax                                                       ; +0x2d, 0x1400c7e0d\nmov     r8d, edi                                                       ; +0x30, 0x1400c7e10\nlea     rdx, [rsp+68h+var_38]                                          ; +0x33, 0x1400c7e13\ncall    MusicDownloadManager__pathForSong                              ; +0x38, 0x1400c7e18\nnop                                                                    ; +0x3d, 0x1400c7e1d\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x3e, 0x1400c7e1e\njbe     short loc_1400C7E28                                            ; +0x43, 0x1400c7e23\nmov     rax, [rax]                                                     ; +0x45, 0x1400c7e25\nxorps   xmm0, xmm0                                                     ; +0x48, 0x1400c7e28\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x4b, 0x1400c7e2b\nmov     qword ptr [rbx+10h], 0                                         ; +0x4e, 0x1400c7e2e\nmov     qword ptr [rbx+18h], 0                                         ; +0x56, 0x1400c7e36\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5e, 0x1400c7e3e\ninc     r8                                                             ; +0x65, 0x1400c7e45\ncmp     byte ptr [rax+r8], 0                                           ; +0x68, 0x1400c7e48\njnz     short loc_1400C7E45                                            ; +0x6d, 0x1400c7e4d\nmov     rdx, rax                                                       ; +0x6f, 0x1400c7e4f\nmov     rcx, rbx                                                       ; +0x72, 0x1400c7e52\ncall    sub_14003A930                                                  ; +0x75, 0x1400c7e55\nnop                                                                    ; +0x7a, 0x1400c7e5a\nlea     rcx, [rsp+68h+var_38]                                          ; +0x7b, 0x1400c7e5b\ncall    sub_14003A830                                                  ; +0x80, 0x1400c7e60\njmp     short loc_1400C7E77                                            ; +0x85, 0x1400c7e65\nmov     rcx, [rcx+58h]                                                 ; +0x87, 0x1400c7e67\nmov     rcx, [rcx+180h]                                                ; +0x8b, 0x1400c7e6b\ncall    GJGameLevel__getAudioFileName                                  ; +0x92, 0x1400c7e72\nmov     rax, rbx                                                       ; +0x97, 0x1400c7e77\nmov     rcx, [rsp+68h+var_18]                                          ; +0x9a, 0x1400c7e7a\nxor     rcx, rsp; StackCookie                                          ; +0x9f, 0x1400c7e7f\ncall    __security_check_cookie                                        ; +0xa2, 0x1400c7e82\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xa7, 0x1400c7e87\nadd     rsp, 60h                                                       ; +0xaf, 0x1400c7e8f\npop     rdi                                                            ; +0xb3, 0x1400c7e93\nretn                                                                   ; +0xb4, 0x1400c7e94", "xrefs": ["<???> @ 0x14054e8c8", "<???> @ 0x1406c825c"], "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"}