{"type": "func", "start": 5372372304, "end": 5372372735, "name": "PauseLayer::onTryEdit", "pseudocode": "// \n// PauseLayer::onTryEdit from 0x14037e550 to 0x14037e6ff (431 bytes)\n// \n// 2 xrefs:\n// > PauseLayer::customSetup @ 0x14037cbf0\n// > <???> @ 0x1406d5db0\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 PauseLayer::onTryEdit(PauseLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  int v4; // ebx\n  __int64 v5; // rax\n  FLAlertLayer *v6; // rbx\n  __int128 v7; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v8; // [rsp+60h] [rbp-38h]\n  __int64 v9; // [rsp+68h] [rbp-30h]\n  _BYTE v10[40]; // [rsp+70h] [rbp-28h] BYREF\n  void *v11; // [rsp+B0h] [rbp+18h]\n\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v11 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 520) + 2168LL) + 1108LL) == 2 )\n  {\n    PauseLayer::onEdit(a1, a2);\n  }\n  else\n  {\n    v4 = (_DWORD)a1 + 552;\n    if ( !a1 )\n      v4 = 0;\n    v7 = 0;\n    *(_QWORD *)&v7 = sub_14003AA10(0x50u);\n    v8 = 69;\n    v9 = 79;\n    strcpy((char *)v7, \"Are you sure you want to <cg>open</c> the editor?\\n<cr>(Read-Only)</c>\");\n    v5 = sub_14003BDB0((__int64)v10, (__int64)&v7);\n    v6 = FLAlertLayer::create(\n           v4,\n           (int)\"Edit Level\",\n           v5,\n           (__int64)\"Cancel\",\n           (__int64)\"Open\",\n           1136525312,\n           0,\n           0,\n           1065353216);\n    sub_14003A830((__int64)&v7);\n    v6->setTag(v6, 1);\n    v6->show(v6);\n  }\n}", "assembly": "; \n; PauseLayer::onTryEdit from 0x14037e550 to 0x14037e6ff (431 bytes)\n; \n; 2 xrefs:\n; > PauseLayer::customSetup @ 0x14037cbf0\n; > <???> @ 0x1406d5db0\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_0], rbx                                               ; +0x0, 0x14037e550\npush    rdi                                                            ; +0x5, 0x14037e555\nsub     rsp, 90h                                                       ; +0x6, 0x14037e556\nmov     rdi, rcx                                                       ; +0xd, 0x14037e55d\nmov     rax, cs:qword_1406C2ED8                                        ; +0x10, 0x14037e560\ntest    rax, rax                                                       ; +0x17, 0x14037e567\njnz     short loc_14037E59E                                            ; +0x1a, 0x14037e56a\nmov     ecx, 668h; Size                                                ; +0x1c, 0x14037e56c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x14037e571\nmov     [rsp+98h+arg_10], rax                                          ; +0x26, 0x14037e576\nmov     rcx, rax                                                       ; +0x2e, 0x14037e57e\ncall    sub_14017AB00                                                  ; +0x31, 0x14037e581\nnop                                                                    ; +0x36, 0x14037e586\nmov     cs:qword_1406C2ED8, rax                                        ; +0x37, 0x14037e587\nmov     rdx, [rax]                                                     ; +0x3e, 0x14037e58e\nmov     rcx, rax                                                       ; +0x41, 0x14037e591\ncall    qword ptr [rdx+48h]                                            ; +0x44, 0x14037e594\nmov     rax, cs:qword_1406C2ED8                                        ; +0x47, 0x14037e597\nmov     rax, [rax+208h]                                                ; +0x4e, 0x14037e59e\nmov     rcx, [rax+878h]                                                ; +0x55, 0x14037e5a5\ncmp     dword ptr [rcx+454h], 2                                        ; +0x5c, 0x14037e5ac\njz      loc_14037E6E7                                                  ; +0x63, 0x14037e5b3\nlea     rbx, [rdi+228h]                                                ; +0x69, 0x14037e5b9\nxor     eax, eax                                                       ; +0x70, 0x14037e5c0\ntest    rdi, rdi                                                       ; +0x72, 0x14037e5c2\ncmovz   rbx, rax                                                       ; +0x75, 0x14037e5c5\nxorps   xmm0, xmm0                                                     ; +0x79, 0x14037e5c9\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x7c, 0x14037e5cc\nmov     [rsp+98h+var_38], rax                                          ; +0x81, 0x14037e5d1\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x86, 0x14037e5d6\nlea     ecx, [rax+50h]                                                 ; +0x8f, 0x14037e5df\ncall    sub_14003AA10                                                  ; +0x92, 0x14037e5e2\nmov     rcx, rax                                                       ; +0x97, 0x14037e5e7\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x9a, 0x14037e5ea\nmov     [rsp+98h+var_38], 45h ; 'E'                                    ; +0x9f, 0x14037e5ef\nmov     [rsp+98h+var_30], 4Fh ; 'O'                                    ; +0xa8, 0x14037e5f8\nmovaps  xmm0, cs:xmmword_1405C6540                                     ; +0xb1, 0x14037e601\nmovups  xmmword ptr [rax], xmm0                                        ; +0xb8, 0x14037e608\nmovaps  xmm1, cs:xmmword_1405C6550                                     ; +0xbb, 0x14037e60b\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0xc2, 0x14037e612\nmovaps  xmm0, cs:xmmword_1405C6560                                     ; +0xc6, 0x14037e616\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xcd, 0x14037e61d\nmovaps  xmm1, cs:xmmword_1405C6570                                     ; +0xd1, 0x14037e621\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xd8, 0x14037e628\nmov     eax, cs:dword_1405C6580                                        ; +0xdc, 0x14037e62c\nmov     [rcx+40h], eax                                                 ; +0xe2, 0x14037e632\nmovzx   eax, cs:byte_1405C6584                                         ; +0xe5, 0x14037e635\nmov     [rcx+44h], al                                                  ; +0xec, 0x14037e63c\nmov     byte ptr [rcx+45h], 0                                          ; +0xef, 0x14037e63f\nlea     rax, [rsp+98h+var_48]                                          ; +0xf3, 0x14037e643\nmov     [rsp+98h+arg_10], rax                                          ; +0xf8, 0x14037e648\nlea     rdx, [rsp+98h+var_48]                                          ; +0x100, 0x14037e650\nlea     rcx, [rsp+98h+var_28]                                          ; +0x105, 0x14037e655\ncall    sub_14003BDB0                                                  ; +0x10a, 0x14037e65a\nmovss   xmm0, cs:flt_140622C24                                         ; +0x10f, 0x14037e65f\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x117, 0x14037e667\nxorps   xmm1, xmm1                                                     ; +0x11d, 0x14037e66d\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x120, 0x14037e670\nmov     [rsp+98h+var_68], 0                                            ; +0x126, 0x14037e676\nmovss   xmm0, cs:dword_140623478                                       ; +0x12b, 0x14037e67b\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x133, 0x14037e683\nlea     rcx, aOpen; \"Open\"                                             ; +0x139, 0x14037e689\nmov     [rsp+98h+var_78], rcx                                          ; +0x140, 0x14037e690\nlea     r9, aCancel; \"Cancel\"                                          ; +0x145, 0x14037e695\nmov     r8, rax                                                        ; +0x14c, 0x14037e69c\nlea     rdx, aEditLevel; \"Edit Level\"                                  ; +0x14f, 0x14037e69f\nmov     rcx, rbx                                                       ; +0x156, 0x14037e6a6\ncall    FLAlertLayer__create                                           ; +0x159, 0x14037e6a9\nmov     rbx, rax                                                       ; +0x15e, 0x14037e6ae\nlea     rcx, [rsp+98h+var_48]                                          ; +0x161, 0x14037e6b1\ncall    sub_14003A830                                                  ; +0x166, 0x14037e6b6\nmov     r8, [rbx]                                                      ; +0x16b, 0x14037e6bb\nmov     edx, 1                                                         ; +0x16e, 0x14037e6be\nmov     rcx, rbx                                                       ; +0x173, 0x14037e6c3\ncall    qword ptr [r8+40h]                                             ; +0x176, 0x14037e6c6\nmov     rdx, [rbx]                                                     ; +0x17a, 0x14037e6ca\nmov     rcx, rbx                                                       ; +0x17d, 0x14037e6cd\ncall    qword ptr [rdx+410h]                                           ; +0x180, 0x14037e6d0\nmov     rbx, [rsp+98h+arg_0]                                           ; +0x186, 0x14037e6d6\nadd     rsp, 90h                                                       ; +0x18e, 0x14037e6de\npop     rdi                                                            ; +0x195, 0x14037e6e5\nretn                                                                   ; +0x196, 0x14037e6e6\nmov     rcx, rdi                                                       ; +0x197, 0x14037e6e7\nmov     rbx, [rsp+98h+arg_0]                                           ; +0x19a, 0x14037e6ea\nadd     rsp, 90h                                                       ; +0x1a2, 0x14037e6f2\npop     rdi                                                            ; +0x1a9, 0x14037e6f9\njmp     PauseLayer__onEdit                                             ; +0x1aa, 0x14037e6fa", "xrefs": ["PauseLayer::customSetup @ 0x14037cbf0", "<???> @ 0x1406d5db0"], "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"}