{"type": "func", "start": 5372075600, "end": 5372075892, "name": "MenuLayer::onNewgrounds", "pseudocode": "// \n// MenuLayer::onNewgrounds from 0x140335e50 to 0x140335f74 (292 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x14033415c\n// > <???> @ 0x1406d51ec\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\nvoid MenuLayer::onNewgrounds(MenuLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // ebx\n  __int64 v3; // rax\n  FLAlertLayer *v4; // 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  v2 = (_DWORD)a1 + 408;\n  if ( !a1 )\n    v2 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003AA10(0x30u);\n  v6 = 39;\n  v7 = 47;\n  strcpy((char *)v5, \"Visit Newgrounds to find awesome music?\");\n  v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n  v4 = FLAlertLayer::create(v2, (int)\"Newgrounds\", v3, (__int64)\"Cancel\", (__int64)\"Open\", 1133903872, 0, 0, 1065353216);\n  sub_14003A830((__int64)&v5);\n  v4->setTag(v4, 3);\n  v4->show(v4);\n}", "assembly": "; \n; MenuLayer::onNewgrounds from 0x140335e50 to 0x140335f74 (292 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x14033415c\n; > <???> @ 0x1406d51ec\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\npush    rbx                                                            ; +0x0, 0x140335e50\nsub     rsp, 90h                                                       ; +0x2, 0x140335e52\nlea     rbx, [rcx+198h]                                                ; +0x9, 0x140335e59\nxor     eax, eax                                                       ; +0x10, 0x140335e60\ntest    rcx, rcx                                                       ; +0x12, 0x140335e62\ncmovz   rbx, rax                                                       ; +0x15, 0x140335e65\nxorps   xmm0, xmm0                                                     ; +0x19, 0x140335e69\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x140335e6c\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x140335e71\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x26, 0x140335e76\nlea     ecx, [rax+30h]                                                 ; +0x2f, 0x140335e7f\ncall    sub_14003AA10                                                  ; +0x32, 0x140335e82\nmov     rdx, rax                                                       ; +0x37, 0x140335e87\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x3a, 0x140335e8a\nmov     [rsp+98h+var_38], 27h ; '''                                    ; +0x3f, 0x140335e8f\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x48, 0x140335e98\nmovups  xmm0, cs:xmmword_1405AAD60                                     ; +0x51, 0x140335ea1\nmovups  xmmword ptr [rax], xmm0                                        ; +0x58, 0x140335ea8\nmovups  xmm1, cs:xmmword_1405AAD70                                     ; +0x5b, 0x140335eab\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x62, 0x140335eb2\nmov     ecx, cs:dword_1405AAD80                                        ; +0x66, 0x140335eb6\nmov     [rax+20h], ecx                                                 ; +0x6c, 0x140335ebc\nmovzx   eax, cs:word_1405AAD84                                         ; +0x6f, 0x140335ebf\nmov     [rdx+24h], ax                                                  ; +0x76, 0x140335ec6\nmovzx   eax, cs:byte_1405AAD86                                         ; +0x7a, 0x140335eca\nmov     [rdx+26h], al                                                  ; +0x81, 0x140335ed1\nmov     byte ptr [rdx+27h], 0                                          ; +0x84, 0x140335ed4\nlea     rax, [rsp+98h+var_48]                                          ; +0x88, 0x140335ed8\nmov     [rsp+98h+arg_0], rax                                           ; +0x8d, 0x140335edd\nlea     rdx, [rsp+98h+var_48]                                          ; +0x95, 0x140335ee5\nlea     rcx, [rsp+98h+var_28]                                          ; +0x9a, 0x140335eea\ncall    sub_14003BDB0                                                  ; +0x9f, 0x140335eef\nmovss   xmm0, cs:flt_140622C24                                         ; +0xa4, 0x140335ef4\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xac, 0x140335efc\nxorps   xmm1, xmm1                                                     ; +0xb2, 0x140335f02\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb5, 0x140335f05\nmov     [rsp+98h+var_68], 0                                            ; +0xbb, 0x140335f0b\nmovss   xmm0, cs:dword_14062343C                                       ; +0xc0, 0x140335f10\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc8, 0x140335f18\nlea     rcx, aOpen; \"Open\"                                             ; +0xce, 0x140335f1e\nmov     [rsp+98h+var_78], rcx                                          ; +0xd5, 0x140335f25\nlea     r9, aCancel; \"Cancel\"                                          ; +0xda, 0x140335f2a\nmov     r8, rax                                                        ; +0xe1, 0x140335f31\nlea     rdx, aNewgrounds; \"Newgrounds\"                                 ; +0xe4, 0x140335f34\nmov     rcx, rbx                                                       ; +0xeb, 0x140335f3b\ncall    FLAlertLayer__create                                           ; +0xee, 0x140335f3e\nmov     rbx, rax                                                       ; +0xf3, 0x140335f43\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf6, 0x140335f46\ncall    sub_14003A830                                                  ; +0xfb, 0x140335f4b\nmov     r8, [rbx]                                                      ; +0x100, 0x140335f50\nmov     edx, 3                                                         ; +0x103, 0x140335f53\nmov     rcx, rbx                                                       ; +0x108, 0x140335f58\ncall    qword ptr [r8+40h]                                             ; +0x10b, 0x140335f5b\nmov     rdx, [rbx]                                                     ; +0x10f, 0x140335f5f\nmov     rcx, rbx                                                       ; +0x112, 0x140335f62\ncall    qword ptr [rdx+410h]                                           ; +0x115, 0x140335f65\nadd     rsp, 90h                                                       ; +0x11b, 0x140335f6b\npop     rbx                                                            ; +0x122, 0x140335f72\nretn                                                                   ; +0x123, 0x140335f73", "xrefs": ["MenuLayer::init @ 0x14033415c", "<???> @ 0x1406d51ec"], "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"}