{"type": "func", "start": 5373447216, "end": 5373447566, "name": "MusicDownloadManager::showTOS", "pseudocode": "// \n// MusicDownloadManager::showTOS from 0x140484c30 to 0x140484d8e (350 bytes)\n// \n// 4 xrefs:\n// > CustomSFXWidget::onDownload @ 0x140161f09\n// > SongSelectNode::onOpenCustomSong @ 0x140168bdd\n// > CustomSongWidget::onDownload @ 0x14016b952\n// > <???> @ 0x140928b08\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__int64 __fastcall MusicDownloadManager::showTOS(__int64 a1, __int64 a2)\n{\n  cocos2d::CCObject *v3; // rbx\n  __int64 v4; // rax\n  __int128 v6; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v7; // [rsp+60h] [rbp-38h]\n  __int64 v8; // [rsp+68h] [rbp-30h]\n  _BYTE v9[40]; // [rsp+70h] [rbp-28h] BYREF\n  void *v10; // [rsp+B0h] [rbp+18h]\n\n  v6 = 0;\n  *(_QWORD *)&v6 = sub_14003D460(0x6A0u);\n  v7 = 1686;\n  v8 = 1695;\n  strcpy(\n    (char *)v6,\n    \"Important notification - Terms of use. RobTop Games provides a library of music and sound effects for creative use w\"\n    \"ithin Geometry Dash. You are free to use these assets for creating and sharing levels within the game. However, redi\"\n    \"stributing, selling, manipulating, or using these assets outside the game is prohibited. If you share game-related c\"\n    \"ontent on social media or upload videos featuring custom music, please give credit to the respective artist. Regardi\"\n    \"ng music from Newgrounds.com: Some custom songs are available via a third party website, Newgrounds.com. These songs\"\n    \", created by artists using Newgrounds.com, are under Creative Commons licensing terms accessible on Newgrounds.com. \"\n    \"By downloading a song from Newgrounds, you accept these terms and any others designated by Newgrounds. RobTop Games \"\n    \"is not the provider of songs from Newgrounds.com, nor a party to the licensing agreements, and does not store any au\"\n    \"dio files downloaded from Newgrounds.com. You are responsible for the content you create using all music and sound e\"\n    \"ffects provided. Ensure your creations adhere to the game's community guidelines and do not infringe on any rights. \"\n    \"The availability of music and sound effects in Geometry Dash is subject to change. RobTop Games may add or remove co\"\n    \"ntent from both the custom library and the Newgrounds.com selection without prior notice. We do not guarantee the co\"\n    \"ntinuous availability or suitability of any music or sound effects in the game. We may update these terms at any tim\"\n    \"e, with your continued use of Geometry Dash signifying acceptance of any changes. By clicking the 'I Accept' button,\"\n    \" you acknowledge and approve of the above-stated terms of use.\");\n  v10 = operator new(0x298u);\n  v3 = (cocos2d::CCObject *)FLAlertLayer::FLAlertLayer((__int64)v10);\n  if ( v3 )\n  {\n    v4 = sub_14003F4F0((__int64)v9, (__int64)&v6);\n    if ( FLAlertLayer::init(\n           v3,\n           a2,\n           \"Terms of Use\",\n           v4,\n           (__int64)\"Cancel\",\n           (__int64)\"I Accept\",\n           400.0,\n           1,\n           1133248512,\n           1.0) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\n      v3 = nullptr;\n    }\n  }\n  sub_14003D310((__int64)&v6);\n  (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 1);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; MusicDownloadManager::showTOS from 0x140484c30 to 0x140484d8e (350 bytes)\n; \n; 4 xrefs:\n; > CustomSFXWidget::onDownload @ 0x140161f09\n; > SongSelectNode::onOpenCustomSong @ 0x140168bdd\n; > CustomSongWidget::onDownload @ 0x14016b952\n; > <???> @ 0x140928b08\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_8], rbx                                               ; +0x0, 0x140484c30\nmov     [rsp+arg_0], rcx                                               ; +0x5, 0x140484c35\npush    rdi                                                            ; +0xa, 0x140484c3a\nsub     rsp, 90h                                                       ; +0xb, 0x140484c3b\nmov     rdi, rdx                                                       ; +0x12, 0x140484c42\nxorps   xmm0, xmm0                                                     ; +0x15, 0x140484c45\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x18, 0x140484c48\nmov     [rsp+98h+var_38], 0                                            ; +0x1d, 0x140484c4d\nmov     [rsp+98h+var_30], 0                                            ; +0x26, 0x140484c56\nmov     ecx, 6A0h                                                      ; +0x2f, 0x140484c5f\ncall    sub_14003D460                                                  ; +0x34, 0x140484c64\nmov     rbx, rax                                                       ; +0x39, 0x140484c69\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x3c, 0x140484c6c\nmov     [rsp+98h+var_38], 696h                                         ; +0x41, 0x140484c71\nmov     [rsp+98h+var_30], 69Fh                                         ; +0x4a, 0x140484c7a\nmov     rcx, rax; void *                                               ; +0x53, 0x140484c83\nlea     rdx, aImportantNotif; \"Important notification - Terms of use. \"... ; +0x56, 0x140484c86\nmov     r8d, 696h; Size                                                ; +0x5d, 0x140484c8d\ncall    memcpy                                                         ; +0x63, 0x140484c93\nmov     byte ptr [rbx+696h], 0                                         ; +0x68, 0x140484c98\nlea     rax, [rsp+98h+var_48]                                          ; +0x6f, 0x140484c9f\nmov     [rsp+98h+arg_0], rax                                           ; +0x74, 0x140484ca4\nmov     ecx, 298h; Size                                                ; +0x7c, 0x140484cac\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x81, 0x140484cb1\nmov     [rsp+98h+arg_10], rax                                          ; +0x86, 0x140484cb6\nmov     rcx, rax                                                       ; +0x8e, 0x140484cbe\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x91, 0x140484cc1\nmov     rbx, rax                                                       ; +0x96, 0x140484cc6\ntest    rax, rax                                                       ; +0x99, 0x140484cc9\njz      loc_140484D59                                                  ; +0x9c, 0x140484ccc\nlea     rdx, [rsp+98h+var_48]                                          ; +0xa2, 0x140484cd2\nlea     rcx, [rsp+98h+var_28]                                          ; +0xa7, 0x140484cd7\ncall    sub_14003F4F0                                                  ; +0xac, 0x140484cdc\nmovss   xmm0, cs:flt_140835080                                         ; +0xb1, 0x140484ce1\nmovss   [rsp+98h+var_50], xmm0                                         ; +0xb9, 0x140484ce9\nmovss   xmm1, cs:dword_140835988                                       ; +0xbf, 0x140484cef\nmovss   [rsp+98h+var_58], xmm1                                         ; +0xc7, 0x140484cf7\nmov     [rsp+98h+var_60], 1                                            ; +0xcd, 0x140484cfd\nmovss   xmm0, cs:dword_140835A18                                       ; +0xd2, 0x140484d02\nmovss   [rsp+98h+var_68], xmm0                                         ; +0xda, 0x140484d0a\nlea     rcx, aIAccept; \"I Accept\"                                      ; +0xe0, 0x140484d10\nmov     [rsp+98h+var_70], rcx                                          ; +0xe7, 0x140484d17\nlea     rcx, aCancel; \"Cancel\"                                         ; +0xec, 0x140484d1c\nmov     [rsp+98h+var_78], rcx                                          ; +0xf3, 0x140484d23\nmov     r9, rax                                                        ; +0xf8, 0x140484d28\nlea     r8, aTermsOfUse; \"Terms of Use\"                                ; +0xfb, 0x140484d2b\nmov     rdx, rdi                                                       ; +0x102, 0x140484d32\nmov     rcx, rbx                                                       ; +0x105, 0x140484d35\ncall    FLAlertLayer__init                                             ; +0x108, 0x140484d38\nmov     rcx, rbx                                                       ; +0x10d, 0x140484d3d\ntest    al, al                                                         ; +0x110, 0x140484d40\njz      short loc_140484D4C                                            ; +0x112, 0x140484d42\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x114, 0x140484d44\njmp     short loc_140484D59                                            ; +0x11a, 0x140484d4a\nmov     rax, [rbx]                                                     ; +0x11c, 0x140484d4c\nmov     edx, 1                                                         ; +0x11f, 0x140484d4f\ncall    qword ptr [rax+8]                                              ; +0x124, 0x140484d54\nxor     ebx, ebx                                                       ; +0x127, 0x140484d57\nlea     rcx, [rsp+98h+var_48]                                          ; +0x129, 0x140484d59\ncall    sub_14003D310                                                  ; +0x12e, 0x140484d5e\nmov     rax, [rbx]                                                     ; +0x133, 0x140484d63\nmov     edx, 1                                                         ; +0x136, 0x140484d66\nmov     rcx, rbx                                                       ; +0x13b, 0x140484d6b\ncall    qword ptr [rax+40h]                                            ; +0x13e, 0x140484d6e\nmov     rax, [rbx]                                                     ; +0x141, 0x140484d71\nmov     rcx, rbx                                                       ; +0x144, 0x140484d74\ncall    qword ptr [rax+428h]                                           ; +0x147, 0x140484d77\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x14d, 0x140484d7d\nadd     rsp, 90h                                                       ; +0x155, 0x140484d85\npop     rdi                                                            ; +0x15c, 0x140484d8c\nretn                                                                   ; +0x15d, 0x140484d8d", "xrefs": ["CustomSFXWidget::onDownload @ 0x140161f09", "SongSelectNode::onOpenCustomSong @ 0x140168bdd", "CustomSongWidget::onDownload @ 0x14016b952", "<???> @ 0x140928b08"], "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"}