{"type": "func", "start": 5370479920, "end": 5370480622, "name": "EditorUI::shouldDeleteObject", "pseudocode": "// \n// EditorUI::shouldDeleteObject from 0x1401b0530 to 0x1401b07ee (702 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onDelete @ 0x1401b0031\n// > EditorUI::onDelete @ 0x1401b0112\n// > EditorUI::onDeleteSelected @ 0x1401b0a55\n// > EditorUI::onDeleteSelected @ 0x1401b0c55\n// > <???> @ 0x140919e98\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:27:55 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nchar __fastcall EditorUI::shouldDeleteObject(__int64 a1, _DWORD *a2)\n{\n  __int64 v3; // rdi\n  cocos2d::CCString *v4; // rax\n  int v5; // edi\n  void *v6; // rcx\n  int v7; // edi\n  int v8; // edi\n  __int64 v9; // rdi\n  cocos2d::CCString *v10; // rax\n  int v11; // edi\n  void *v12; // r8\n  void *v14; // [rsp+30h] [rbp-50h]\n  void *v15; // [rsp+30h] [rbp-50h]\n  void *Block[2]; // [rsp+38h] [rbp-48h] BYREF\n  __int64 v17; // [rsp+48h] [rbp-38h]\n  unsigned __int64 v18; // [rsp+50h] [rbp-30h]\n  void *Src[2]; // [rsp+58h] [rbp-28h] BYREF\n  __int64 v20; // [rsp+68h] [rbp-18h]\n  unsigned __int64 v21; // [rsp+70h] [rbp-10h]\n\n  if ( !a2 || a2[259] == 749 )\n    return 0;\n  v3 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v14 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v14);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v3 = qword_14090BFD0;\n  }\n  *(_OWORD *)Block = 0;\n  v17 = 3;\n  v18 = 15;\n  LODWORD(Block[0]) = 6256231;\n  sub_140044D80(Block, \"0005\", 4u);\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v3 + 432), Block);\n  v5 = cocos2d::CCString::intValue(v4);\n  if ( v18 > 0xF )\n  {\n    v6 = Block[0];\n    if ( v18 + 1 >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n  v17 = 0;\n  v18 = 15;\n  LOBYTE(Block[0]) = 0;\n  if ( !v5 )\n    return 1;\n  v7 = v5 - 1;\n  if ( !v7 )\n    return (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1648LL))(a2) == 7;\n  v8 = v7 - 1;\n  if ( !v8 )\n    return !(*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1648LL))(a2)\n        || (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1648LL))(a2) == 25;\n  if ( v8 != 1 )\n    return 0;\n  v9 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v15 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v9 = qword_14090BFD0;\n  }\n  *(_OWORD *)Src = 0;\n  v20 = 3;\n  v21 = 15;\n  LODWORD(Src[0]) = 6256231;\n  sub_140044D80(Src, \"0006\", 4u);\n  v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v9 + 432), Src);\n  v11 = cocos2d::CCString::intValue(v10);\n  if ( v21 > 0xF )\n  {\n    v12 = Src[0];\n    if ( v21 + 1 >= 0x1000 )\n    {\n      v12 = *((void **)Src[0] - 1);\n      if ( (unsigned __int64)((char *)Src[0] - (char *)v12 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v12);\n  }\n  return a2[259] == v11;\n}", "assembly": "; \n; EditorUI::shouldDeleteObject from 0x1401b0530 to 0x1401b07ee (702 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onDelete @ 0x1401b0031\n; > EditorUI::onDelete @ 0x1401b0112\n; > EditorUI::onDeleteSelected @ 0x1401b0a55\n; > EditorUI::onDeleteSelected @ 0x1401b0c55\n; > <???> @ 0x140919e98\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:27:55 +0000\n; \nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x1401b0530\nmov     [rsp-8+arg_10], rdi                                            ; +0x5, 0x1401b0535\npush    rbp                                                            ; +0xa, 0x1401b053a\nmov     rbp, rsp                                                       ; +0xb, 0x1401b053b\nsub     rsp, 80h                                                       ; +0xe, 0x1401b053e\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x1401b0545\nxor     rax, rsp                                                       ; +0x1c, 0x1401b054c\nmov     [rbp+var_8], rax                                               ; +0x1f, 0x1401b054f\nmov     rbx, rdx                                                       ; +0x23, 0x1401b0553\ntest    rdx, rdx                                                       ; +0x26, 0x1401b0556\njz      loc_1401B07B3                                                  ; +0x29, 0x1401b0559\ncmp     dword ptr [rdx+40Ch], 2EDh                                     ; +0x2f, 0x1401b055f\njz      loc_1401B07B3                                                  ; +0x39, 0x1401b0569\nmov     rdi, cs:qword_14090BFD0                                        ; +0x3f, 0x1401b056f\ntest    rdi, rdi                                                       ; +0x46, 0x1401b0576\njnz     short loc_1401B05AC                                            ; +0x49, 0x1401b0579\nmov     ecx, 6E8h; Size                                                ; +0x4b, 0x1401b057b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x50, 0x1401b0580\nmov     [rbp+var_50], rax                                              ; +0x55, 0x1401b0585\nmov     rcx, rax                                                       ; +0x59, 0x1401b0589\ncall    GameManager__GameManager                                       ; +0x5c, 0x1401b058c\nnop                                                                    ; +0x61, 0x1401b0591\nmov     cs:qword_14090BFD0, rax                                        ; +0x62, 0x1401b0592\nmov     rcx, [rax]                                                     ; +0x69, 0x1401b0599\nmov     rdx, [rcx+48h]                                                 ; +0x6c, 0x1401b059c\nmov     rcx, rax                                                       ; +0x70, 0x1401b05a0\ncall    rdx                                                            ; +0x73, 0x1401b05a3\nmov     rdi, cs:qword_14090BFD0                                        ; +0x75, 0x1401b05a5\nxorps   xmm0, xmm0                                                     ; +0x7c, 0x1401b05ac\nmovups  xmmword ptr [rbp+Block], xmm0                                  ; +0x7f, 0x1401b05af\nmov     [rbp+var_38], 3                                                ; +0x83, 0x1401b05b3\nmov     [rbp+var_30], 0Fh                                              ; +0x8b, 0x1401b05bb\nmov     eax, cs:dword_140757618                                        ; +0x93, 0x1401b05c3\nmov     word ptr [rbp+Block], ax                                       ; +0x99, 0x1401b05c9\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x9d, 0x1401b05cd\nmov     byte ptr [rbp+Block+2], al                                     ; +0xa4, 0x1401b05d4\nmov     byte ptr [rbp+Block+3], 0                                      ; +0xa7, 0x1401b05d7\nmov     r8d, 4; Size                                                   ; +0xab, 0x1401b05db\nlea     rdx, a0005; \"0005\"                                             ; +0xb1, 0x1401b05e1\nlea     rcx, [rbp+Block]; Src                                          ; +0xb8, 0x1401b05e8\ncall    sub_140044D80                                                  ; +0xbc, 0x1401b05ec\nlea     rdx, [rbp+Block]                                               ; +0xc1, 0x1401b05f1\nmov     rcx, [rdi+1B0h]                                                ; +0xc5, 0x1401b05f5\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xcc, 0x1401b05fc\nmov     rcx, rax                                                       ; +0xd2, 0x1401b0602\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xd5, 0x1401b0605\nmov     edi, eax                                                       ; +0xdb, 0x1401b060b\nmov     rdx, [rbp+var_30]                                              ; +0xdd, 0x1401b060d\ncmp     rdx, 0Fh                                                       ; +0xe1, 0x1401b0611\njbe     short loc_1401B065E                                            ; +0xe5, 0x1401b0615\ninc     rdx                                                            ; +0xe7, 0x1401b0617\nmov     rcx, [rbp+Block]; Block                                        ; +0xea, 0x1401b061a\nmov     rax, rcx                                                       ; +0xee, 0x1401b061e\ncmp     rdx, 1000h                                                     ; +0xf1, 0x1401b0621\njb      short loc_1401B0659                                            ; +0xf8, 0x1401b0628\nadd     rdx, 27h ; '''                                                 ; +0xfa, 0x1401b062a\nmov     rcx, [rcx-8]                                                   ; +0xfe, 0x1401b062e\nsub     rax, rcx                                                       ; +0x102, 0x1401b0632\nsub     rax, 8                                                         ; +0x105, 0x1401b0635\ncmp     rax, 1Fh                                                       ; +0x109, 0x1401b0639\njbe     short loc_1401B0659                                            ; +0x10d, 0x1401b063d\nmov     [rsp+80h+Reserved], 0; Reserved                                ; +0x10f, 0x1401b063f\nxor     r9d, r9d; LineNo                                               ; +0x118, 0x1401b0648\nxor     r8d, r8d; FileName                                             ; +0x11b, 0x1401b064b\nxor     edx, edx; FunctionName                                         ; +0x11e, 0x1401b064e\nxor     ecx, ecx; Expression                                           ; +0x120, 0x1401b0650\ncall    cs:_invoke_watson                                              ; +0x122, 0x1401b0652\ndb 0CCh                                                                ; +0x128, 0x1401b0658\ncall    j_j_free                                                       ; +0x129, 0x1401b0659\nmov     [rbp+var_38], 0                                                ; +0x12e, 0x1401b065e\nmov     [rbp+var_30], 0Fh                                              ; +0x136, 0x1401b0666\nmov     byte ptr [rbp+Block], 0                                        ; +0x13e, 0x1401b066e\ntest    edi, edi                                                       ; +0x142, 0x1401b0672\njz      loc_1401B07EA                                                  ; +0x144, 0x1401b0674\nsub     edi, 1                                                         ; +0x14a, 0x1401b067a\njz      loc_1401B07D6                                                  ; +0x14d, 0x1401b067d\nsub     edi, 1                                                         ; +0x153, 0x1401b0683\njz      loc_1401B0792                                                  ; +0x156, 0x1401b0686\ncmp     edi, 1                                                         ; +0x15c, 0x1401b068c\njnz     loc_1401B07B3                                                  ; +0x15f, 0x1401b068f\nmov     rdi, cs:qword_14090BFD0                                        ; +0x165, 0x1401b0695\ntest    rdi, rdi                                                       ; +0x16c, 0x1401b069c\njnz     short loc_1401B06D2                                            ; +0x16f, 0x1401b069f\nmov     ecx, 6E8h; Size                                                ; +0x171, 0x1401b06a1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x176, 0x1401b06a6\nmov     [rbp+var_50], rax                                              ; +0x17b, 0x1401b06ab\nmov     rcx, rax                                                       ; +0x17f, 0x1401b06af\ncall    GameManager__GameManager                                       ; +0x182, 0x1401b06b2\nnop                                                                    ; +0x187, 0x1401b06b7\nmov     cs:qword_14090BFD0, rax                                        ; +0x188, 0x1401b06b8\nmov     rcx, [rax]                                                     ; +0x18f, 0x1401b06bf\nmov     rdx, [rcx+48h]                                                 ; +0x192, 0x1401b06c2\nmov     rcx, rax                                                       ; +0x196, 0x1401b06c6\ncall    rdx                                                            ; +0x199, 0x1401b06c9\nmov     rdi, cs:qword_14090BFD0                                        ; +0x19b, 0x1401b06cb\nxorps   xmm0, xmm0                                                     ; +0x1a2, 0x1401b06d2\nmovups  xmmword ptr [rbp+Src], xmm0                                    ; +0x1a5, 0x1401b06d5\nmov     [rbp+var_18], 3                                                ; +0x1a9, 0x1401b06d9\nmov     [rbp+var_10], 0Fh                                              ; +0x1b1, 0x1401b06e1\nmov     eax, cs:dword_140757618                                        ; +0x1b9, 0x1401b06e9\nmov     word ptr [rbp+Src], ax                                         ; +0x1bf, 0x1401b06ef\nmovzx   eax, byte ptr cs:dword_140757618+2                             ; +0x1c3, 0x1401b06f3\nmov     byte ptr [rbp+Src+2], al                                       ; +0x1ca, 0x1401b06fa\nmov     byte ptr [rbp+Src+3], 0                                        ; +0x1cd, 0x1401b06fd\nmov     r8d, 4; Size                                                   ; +0x1d1, 0x1401b0701\nlea     rdx, a0006; \"0006\"                                             ; +0x1d7, 0x1401b0707\nlea     rcx, [rbp+Src]; Src                                            ; +0x1de, 0x1401b070e\ncall    sub_140044D80                                                  ; +0x1e2, 0x1401b0712\nlea     rdx, [rbp+Src]                                                 ; +0x1e7, 0x1401b0717\nmov     rcx, [rdi+1B0h]                                                ; +0x1eb, 0x1401b071b\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x1f2, 0x1401b0722\nmov     rcx, rax                                                       ; +0x1f8, 0x1401b0728\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x1fb, 0x1401b072b\nmov     edi, eax                                                       ; +0x201, 0x1401b0731\nmov     rdx, [rbp+var_10]                                              ; +0x203, 0x1401b0733\ncmp     rdx, 0Fh                                                       ; +0x207, 0x1401b0737\njbe     short loc_1401B0787                                            ; +0x20b, 0x1401b073b\ninc     rdx                                                            ; +0x20d, 0x1401b073d\nmov     r8, [rbp+Src]                                                  ; +0x210, 0x1401b0740\nmov     rcx, r8                                                        ; +0x214, 0x1401b0744\ncmp     rdx, 1000h                                                     ; +0x217, 0x1401b0747\njb      short loc_1401B077F                                            ; +0x21e, 0x1401b074e\nadd     rdx, 27h ; '''                                                 ; +0x220, 0x1401b0750\nmov     r8, [r8-8]                                                     ; +0x224, 0x1401b0754\nsub     rcx, r8                                                        ; +0x228, 0x1401b0758\nsub     rcx, 8                                                         ; +0x22b, 0x1401b075b\ncmp     rcx, 1Fh                                                       ; +0x22f, 0x1401b075f\njbe     short loc_1401B077F                                            ; +0x233, 0x1401b0763\nmov     [rsp+80h+Reserved], 0; Reserved                                ; +0x235, 0x1401b0765\nxor     r9d, r9d; LineNo                                               ; +0x23e, 0x1401b076e\nxor     r8d, r8d; FileName                                             ; +0x241, 0x1401b0771\nxor     edx, edx; FunctionName                                         ; +0x244, 0x1401b0774\nxor     ecx, ecx; Expression                                           ; +0x246, 0x1401b0776\ncall    cs:_invoke_watson                                              ; +0x248, 0x1401b0778\ndb 0CCh                                                                ; +0x24e, 0x1401b077e\nmov     rcx, r8; Block                                                 ; +0x24f, 0x1401b077f\ncall    j_j_free                                                       ; +0x252, 0x1401b0782\ncmp     [rbx+40Ch], edi                                                ; +0x257, 0x1401b0787\nsetz    al                                                             ; +0x25d, 0x1401b078d\njmp     short loc_1401B07B5                                            ; +0x260, 0x1401b0790\nmov     rax, [rbx]                                                     ; +0x262, 0x1401b0792\nmov     rcx, rbx                                                       ; +0x265, 0x1401b0795\ncall    qword ptr [rax+670h]                                           ; +0x268, 0x1401b0798\ntest    eax, eax                                                       ; +0x26e, 0x1401b079e\njz      short loc_1401B07EA                                            ; +0x270, 0x1401b07a0\nmov     rax, [rbx]                                                     ; +0x272, 0x1401b07a2\nmov     rcx, rbx                                                       ; +0x275, 0x1401b07a5\ncall    qword ptr [rax+670h]                                           ; +0x278, 0x1401b07a8\ncmp     eax, 19h                                                       ; +0x27e, 0x1401b07ae\njz      short loc_1401B07EA                                            ; +0x281, 0x1401b07b1\nxor     al, al                                                         ; +0x283, 0x1401b07b3\nmov     rcx, [rbp+var_8]                                               ; +0x285, 0x1401b07b5\nxor     rcx, rsp; StackCookie                                          ; +0x289, 0x1401b07b9\ncall    __security_check_cookie                                        ; +0x28c, 0x1401b07bc\nlea     r11, [rsp+80h+var_s0]                                          ; +0x291, 0x1401b07c1\nmov     rbx, [r11+10h]                                                 ; +0x299, 0x1401b07c9\nmov     rdi, [r11+20h]                                                 ; +0x29d, 0x1401b07cd\nmov     rsp, r11                                                       ; +0x2a1, 0x1401b07d1\npop     rbp                                                            ; +0x2a4, 0x1401b07d4\nretn                                                                   ; +0x2a5, 0x1401b07d5\nmov     rax, [rbx]                                                     ; +0x2a6, 0x1401b07d6\nmov     rcx, rbx                                                       ; +0x2a9, 0x1401b07d9\ncall    qword ptr [rax+670h]                                           ; +0x2ac, 0x1401b07dc\ncmp     eax, 7                                                         ; +0x2b2, 0x1401b07e2\nsetz    al                                                             ; +0x2b5, 0x1401b07e5\njmp     short loc_1401B07B5                                            ; +0x2b8, 0x1401b07e8\nmov     al, 1                                                          ; +0x2ba, 0x1401b07ea\njmp     short loc_1401B07B5                                            ; +0x2bc, 0x1401b07ec", "xrefs": ["EditorUI::onDelete @ 0x1401b0031", "EditorUI::onDelete @ 0x1401b0112", "EditorUI::onDeleteSelected @ 0x1401b0a55", "EditorUI::onDeleteSelected @ 0x1401b0c55", "<???> @ 0x140919e98"], "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"}