{"type": "func", "start": 5373382688, "end": 5373382984, "name": "MenuLayer::onNewgrounds", "pseudocode": "// \n// MenuLayer::onNewgrounds from 0x140475020 to 0x140475148 (296 bytes)\n// \n// 3 xrefs:\n// > MenuLayer::init @ 0x140472839\n// > <???> @ 0x140928304\n// > <???> @ 0x140928310\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:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall MenuLayer::onNewgrounds(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\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\n  v1 = a1 + 408;\n  if ( !a1 )\n    v1 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003D460(0x30u);\n  v6 = 39;\n  v7 = 47;\n  strcpy((char *)v5, \"Visit Newgrounds to find awesome music?\");\n  v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n  v3 = FLAlertLayer::create(v1, (int)\"Newgrounds\", v2, (__int64)\"Cancel\", (__int64)\"Open\", 1133903872, 0, 0, 1065353216);\n  sub_14003D310((__int64)&v5);\n  (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 3);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; MenuLayer::onNewgrounds from 0x140475020 to 0x140475148 (296 bytes)\n; \n; 3 xrefs:\n; > MenuLayer::init @ 0x140472839\n; > <???> @ 0x140928304\n; > <???> @ 0x140928310\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:40 +0000\n; \npush    rbx                                                            ; +0x0, 0x140475020\nsub     rsp, 90h                                                       ; +0x2, 0x140475022\nlea     rbx, [rcx+198h]                                                ; +0x9, 0x140475029\nxor     eax, eax                                                       ; +0x10, 0x140475030\ntest    rcx, rcx                                                       ; +0x12, 0x140475032\ncmovz   rbx, rax                                                       ; +0x15, 0x140475035\nxorps   xmm0, xmm0                                                     ; +0x19, 0x140475039\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x14047503c\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x140475041\nmov     [rsp+98h+var_30], rax                                          ; +0x26, 0x140475046\nmov     ecx, 30h ; '0'                                                 ; +0x2b, 0x14047504b\ncall    sub_14003D460                                                  ; +0x30, 0x140475050\nmov     rdx, rax                                                       ; +0x35, 0x140475055\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x38, 0x140475058\nmov     [rsp+98h+var_38], 27h ; '''                                    ; +0x3d, 0x14047505d\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x46, 0x140475066\nmovups  xmm0, cs:xmmword_1407B4140                                     ; +0x4f, 0x14047506f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x56, 0x140475076\nmovups  xmm1, cs:xmmword_1407B4150                                     ; +0x59, 0x140475079\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x60, 0x140475080\nmov     ecx, cs:dword_1407B4160                                        ; +0x64, 0x140475084\nmov     [rax+20h], ecx                                                 ; +0x6a, 0x14047508a\nmovzx   ecx, cs:word_1407B4164                                         ; +0x6d, 0x14047508d\nmov     [rax+24h], cx                                                  ; +0x74, 0x140475094\nmovzx   eax, cs:byte_1407B4166                                         ; +0x78, 0x140475098\nmov     [rdx+26h], al                                                  ; +0x7f, 0x14047509f\nmov     byte ptr [rdx+27h], 0                                          ; +0x82, 0x1404750a2\nlea     rax, [rsp+98h+var_48]                                          ; +0x86, 0x1404750a6\nmov     [rsp+98h+arg_0], rax                                           ; +0x8b, 0x1404750ab\nlea     rdx, [rsp+98h+var_48]                                          ; +0x93, 0x1404750b3\nlea     rcx, [rsp+98h+var_28]                                          ; +0x98, 0x1404750b8\ncall    sub_14003F4F0                                                  ; +0x9d, 0x1404750bd\nmovss   xmm0, cs:flt_140835080                                         ; +0xa2, 0x1404750c2\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xaa, 0x1404750ca\nxorps   xmm1, xmm1                                                     ; +0xb0, 0x1404750d0\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb3, 0x1404750d3\nmov     [rsp+98h+var_68], 0                                            ; +0xb9, 0x1404750d9\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xbe, 0x1404750de\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc6, 0x1404750e6\nlea     rcx, aOpen_0; \"Open\"                                           ; +0xcc, 0x1404750ec\nmov     [rsp+98h+var_78], rcx                                          ; +0xd3, 0x1404750f3\nlea     r9, aCancel; \"Cancel\"                                          ; +0xd8, 0x1404750f8\nmov     r8, rax                                                        ; +0xdf, 0x1404750ff\nlea     rdx, aNewgrounds; \"Newgrounds\"                                 ; +0xe2, 0x140475102\nmov     rcx, rbx                                                       ; +0xe9, 0x140475109\ncall    FLAlertLayer__create                                           ; +0xec, 0x14047510c\nmov     rbx, rax                                                       ; +0xf1, 0x140475111\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf4, 0x140475114\ncall    sub_14003D310                                                  ; +0xf9, 0x140475119\nmov     rcx, [rbx]                                                     ; +0xfe, 0x14047511e\nmov     r8, [rcx+40h]                                                  ; +0x101, 0x140475121\nmov     edx, 3                                                         ; +0x105, 0x140475125\nmov     rcx, rbx                                                       ; +0x10a, 0x14047512a\ncall    r8                                                             ; +0x10d, 0x14047512d\nmov     rcx, [rbx]                                                     ; +0x110, 0x140475130\nmov     rdx, [rcx+428h]                                                ; +0x113, 0x140475133\nmov     rcx, rbx                                                       ; +0x11a, 0x14047513a\ncall    rdx                                                            ; +0x11d, 0x14047513d\nadd     rsp, 90h                                                       ; +0x11f, 0x14047513f\npop     rbx                                                            ; +0x126, 0x140475146\nretn                                                                   ; +0x127, 0x140475147", "xrefs": ["MenuLayer::init @ 0x140472839", "<???> @ 0x140928304", "<???> @ 0x140928310"], "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"}