{"type": "func", "start": 5372115136, "end": 5372115486, "name": "MusicDownloadManager::showTOS", "pseudocode": "// \n// MusicDownloadManager::showTOS from 0x14033f8c0 to 0x14033fa1e (350 bytes)\n// \n// 4 xrefs:\n// > CustomSFXWidget::onDownload @ 0x1400c1ab5\n// > SongSelectNode::onOpenCustomSong @ 0x1400c7b8e\n// > CustomSongWidget::onDownload @ 0x1400cac57\n// > <???> @ 0x1406d5714\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\nvoid MusicDownloadManager::showTOS(MusicDownloadManager *a1, FLAlertLayerProtocol *a2)\n{\n  FLAlertLayer *v3; // rbx\n  __int64 v4; // rax\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n  FLAlertLayer *v9; // [rsp+B0h] [rbp+18h]\n\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003AA10(0x6A0u);\n  v6 = 1686;\n  v7 = 1695;\n  strcpy(\n    (char *)v5,\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  v9 = (FLAlertLayer *)operator new(0x278u);\n  v3 = FLAlertLayer::FLAlertLayer(v9);\n  if ( v3 )\n  {\n    v4 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n    if ( FLAlertLayer::init(\n           (__int64)v3,\n           (__int64)a2,\n           \"Terms of Use\",\n           v4,\n           \"Cancel\",\n           \"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 *)(FLAlertLayer *, __int64))v3->~FLAlertLayer)(v3, 1);\n      v3 = nullptr;\n    }\n  }\n  sub_14003A830((__int64)&v5);\n  v3->setTag(v3, 1);\n  v3->show(v3);\n}", "assembly": "; \n; MusicDownloadManager::showTOS from 0x14033f8c0 to 0x14033fa1e (350 bytes)\n; \n; 4 xrefs:\n; > CustomSFXWidget::onDownload @ 0x1400c1ab5\n; > SongSelectNode::onOpenCustomSong @ 0x1400c7b8e\n; > CustomSongWidget::onDownload @ 0x1400cac57\n; > <???> @ 0x1406d5714\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_8], rbx                                               ; +0x0, 0x14033f8c0\nmov     [rsp+arg_0], rcx                                               ; +0x5, 0x14033f8c5\npush    rdi                                                            ; +0xa, 0x14033f8ca\nsub     rsp, 90h                                                       ; +0xb, 0x14033f8cb\nmov     rdi, rdx                                                       ; +0x12, 0x14033f8d2\nxorps   xmm0, xmm0                                                     ; +0x15, 0x14033f8d5\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x18, 0x14033f8d8\nmov     [rsp+98h+var_38], 0                                            ; +0x1d, 0x14033f8dd\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x26, 0x14033f8e6\nmov     ecx, 6A0h                                                      ; +0x2f, 0x14033f8ef\ncall    sub_14003AA10                                                  ; +0x34, 0x14033f8f4\nmov     rbx, rax                                                       ; +0x39, 0x14033f8f9\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x3c, 0x14033f8fc\nmov     [rsp+98h+var_38], 696h                                         ; +0x41, 0x14033f901\nmov     [rsp+98h+var_30], 69Fh                                         ; +0x4a, 0x14033f90a\nmov     rcx, rax; void *                                               ; +0x53, 0x14033f913\nlea     rdx, aImportantNotif; \"Important notification - Terms of use. \"... ; +0x56, 0x14033f916\nmov     r8d, 696h; Size                                                ; +0x5d, 0x14033f91d\ncall    memcpy                                                         ; +0x63, 0x14033f923\nmov     byte ptr [rbx+696h], 0                                         ; +0x68, 0x14033f928\nlea     rax, [rsp+98h+var_48]                                          ; +0x6f, 0x14033f92f\nmov     [rsp+98h+arg_0], rax                                           ; +0x74, 0x14033f934\nmov     ecx, 278h; Size                                                ; +0x7c, 0x14033f93c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x81, 0x14033f941\nmov     [rsp+98h+arg_10], rax                                          ; +0x86, 0x14033f946\nmov     rcx, rax                                                       ; +0x8e, 0x14033f94e\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x91, 0x14033f951\nmov     rbx, rax                                                       ; +0x96, 0x14033f956\ntest    rax, rax                                                       ; +0x99, 0x14033f959\njz      loc_14033F9E9                                                  ; +0x9c, 0x14033f95c\nlea     rdx, [rsp+98h+var_48]                                          ; +0xa2, 0x14033f962\nlea     rcx, [rsp+98h+var_28]                                          ; +0xa7, 0x14033f967\ncall    sub_14003BDB0                                                  ; +0xac, 0x14033f96c\nmovss   xmm0, cs:flt_140622C24                                         ; +0xb1, 0x14033f971\nmovss   [rsp+98h+var_50], xmm0                                         ; +0xb9, 0x14033f979\nmovss   xmm1, cs:dword_140623428                                       ; +0xbf, 0x14033f97f\nmovss   [rsp+98h+var_58], xmm1                                         ; +0xc7, 0x14033f987\nmov     [rsp+98h+var_60], 1                                            ; +0xcd, 0x14033f98d\nmovss   xmm0, cs:dword_140623488                                       ; +0xd2, 0x14033f992\nmovss   [rsp+98h+var_68], xmm0                                         ; +0xda, 0x14033f99a\nlea     rcx, aIAccept; \"I Accept\"                                      ; +0xe0, 0x14033f9a0\nmov     [rsp+98h+var_70], rcx                                          ; +0xe7, 0x14033f9a7\nlea     rcx, aCancel; \"Cancel\"                                         ; +0xec, 0x14033f9ac\nmov     [rsp+98h+var_78], rcx                                          ; +0xf3, 0x14033f9b3\nmov     r9, rax                                                        ; +0xf8, 0x14033f9b8\nlea     r8, aTermsOfUse; \"Terms of Use\"                                ; +0xfb, 0x14033f9bb\nmov     rdx, rdi                                                       ; +0x102, 0x14033f9c2\nmov     rcx, rbx                                                       ; +0x105, 0x14033f9c5\ncall    FLAlertLayer__init                                             ; +0x108, 0x14033f9c8\nmov     rcx, rbx                                                       ; +0x10d, 0x14033f9cd\ntest    al, al                                                         ; +0x110, 0x14033f9d0\njz      short loc_14033F9DC                                            ; +0x112, 0x14033f9d2\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x114, 0x14033f9d4\njmp     short loc_14033F9E9                                            ; +0x11a, 0x14033f9da\nmov     rax, [rbx]                                                     ; +0x11c, 0x14033f9dc\nmov     edx, 1                                                         ; +0x11f, 0x14033f9df\ncall    qword ptr [rax+8]                                              ; +0x124, 0x14033f9e4\nxor     ebx, ebx                                                       ; +0x127, 0x14033f9e7\nlea     rcx, [rsp+98h+var_48]                                          ; +0x129, 0x14033f9e9\ncall    sub_14003A830                                                  ; +0x12e, 0x14033f9ee\nmov     rax, [rbx]                                                     ; +0x133, 0x14033f9f3\nmov     edx, 1                                                         ; +0x136, 0x14033f9f6\nmov     rcx, rbx                                                       ; +0x13b, 0x14033f9fb\ncall    qword ptr [rax+40h]                                            ; +0x13e, 0x14033f9fe\nmov     rax, [rbx]                                                     ; +0x141, 0x14033fa01\nmov     rcx, rbx                                                       ; +0x144, 0x14033fa04\ncall    qword ptr [rax+410h]                                           ; +0x147, 0x14033fa07\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x14d, 0x14033fa0d\nadd     rsp, 90h                                                       ; +0x155, 0x14033fa15\npop     rdi                                                            ; +0x15c, 0x14033fa1c\nretn                                                                   ; +0x15d, 0x14033fa1d", "xrefs": ["CustomSFXWidget::onDownload @ 0x1400c1ab5", "SongSelectNode::onOpenCustomSong @ 0x1400c7b8e", "CustomSongWidget::onDownload @ 0x1400cac57", "<???> @ 0x1406d5714"], "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"}