{"type": "func", "start": 5370499600, "end": 5370499911, "name": "EditorUI::showMaxBasicError", "pseudocode": "// \n// EditorUI::showMaxBasicError from 0x1401b5210 to 0x1401b5347 (311 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onCreate @ 0x1401b253c\n// > EditorUI::onDuplicate @ 0x1401c55e6\n// > EditorUI::doPasteObjects @ 0x1401c5f79\n// > <???> @ 0x14091a180\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:57 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EditorUI::showMaxBasicError(__int64 a1)\n{\n  cocos2d::CCString *v2; // rax\n  int v3; // edi\n  const char *CString; // rax\n  size_t v5; // r8\n  __int64 v6; // rax\n  cocos2d::CCObject *v7; // rbx\n  __int128 v8; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v9; // [rsp+60h] [rbp-38h]\n  __int64 v10; // [rsp+68h] [rbp-30h]\n  _BYTE v11[32]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 680) )\n  {\n    *(_BYTE *)(a1 + 680) = 1;\n    v2 = cocos2d::CCString::createWithFormat(\n           \"You have reached the max limit of <cg>%i</c> objects. You can increase it to <cy>%i</c>, but your level may b\"\n           \"ecome unstable on some devices, so it is recommended to stay below this limit. Levels with object count above\"\n           \" this limit will display a <co>warning</c> when played online.\",\n           40000,\n           80000);\n    v3 = a1 + 408;\n    if ( !a1 )\n      v3 = 0;\n    CString = cocos2d::CCString::getCString(v2);\n    v8 = 0;\n    v9 = 0;\n    v10 = 0;\n    v5 = -1;\n    do\n      ++v5;\n    while ( CString[v5] );\n    sub_14003D230(&v8, CString, v5);\n    v6 = sub_14003F4F0((__int64)v11, (__int64)&v8);\n    v7 = FLAlertLayer::create(\n           v3,\n           (int)\"Max Objects\",\n           v6,\n           (__int64)\"Cancel\",\n           (__int64)\"Increase\",\n           1136525312,\n           0,\n           0,\n           1065353216);\n    sub_14003D310((__int64)&v8);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 64LL))(v7, 125);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL))(v7);\n  }\n}", "assembly": "; \n; EditorUI::showMaxBasicError from 0x1401b5210 to 0x1401b5347 (311 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onCreate @ 0x1401b253c\n; > EditorUI::onDuplicate @ 0x1401c55e6\n; > EditorUI::doPasteObjects @ 0x1401c5f79\n; > <???> @ 0x14091a180\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:57 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401b5210\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1401b5215\npush    rdi                                                            ; +0xa, 0x1401b521a\nsub     rsp, 90h                                                       ; +0xb, 0x1401b521b\nmov     rbx, rcx                                                       ; +0x12, 0x1401b5222\ncmp     byte ptr [rcx+2A8h], 0                                         ; +0x15, 0x1401b5225\njnz     loc_1401B5332                                                  ; +0x1c, 0x1401b522c\nmov     byte ptr [rcx+2A8h], 1                                         ; +0x22, 0x1401b5232\nmov     edx, 9C40h                                                     ; +0x29, 0x1401b5239\nmov     r8d, 13880h                                                    ; +0x2e, 0x1401b523e\nlea     rcx, aYouHaveReached_0; \"You have reached the max limit of <cg>%\"... ; +0x34, 0x1401b5244\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3b, 0x1401b524b\nlea     rdi, [rbx+198h]                                                ; +0x41, 0x1401b5251\nxor     esi, esi                                                       ; +0x48, 0x1401b5258\ntest    rbx, rbx                                                       ; +0x4a, 0x1401b525a\ncmovz   rdi, rsi                                                       ; +0x4d, 0x1401b525d\nmov     rcx, rax                                                       ; +0x51, 0x1401b5261\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x54, 0x1401b5264\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x1401b526a\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x5d, 0x1401b526d\nmov     [rsp+98h+var_38], rsi                                          ; +0x62, 0x1401b5272\nmov     [rsp+98h+var_30], rsi                                          ; +0x67, 0x1401b5277\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x6c, 0x1401b527c\ninc     r8                                                             ; +0x73, 0x1401b5283\ncmp     [rax+r8], sil                                                  ; +0x76, 0x1401b5286\njnz     short loc_1401B5283                                            ; +0x7a, 0x1401b528a\nmov     rdx, rax                                                       ; +0x7c, 0x1401b528c\nlea     rcx, [rsp+98h+var_48]                                          ; +0x7f, 0x1401b528f\ncall    sub_14003D230                                                  ; +0x84, 0x1401b5294\nlea     rax, [rsp+98h+var_48]                                          ; +0x89, 0x1401b5299\nmov     [rsp+98h+arg_0], rax                                           ; +0x8e, 0x1401b529e\nlea     rdx, [rsp+98h+var_48]                                          ; +0x96, 0x1401b52a6\nlea     rcx, [rsp+98h+var_28]                                          ; +0x9b, 0x1401b52ab\ncall    sub_14003F4F0                                                  ; +0xa0, 0x1401b52b0\nmovss   xmm0, cs:flt_140835080                                         ; +0xa5, 0x1401b52b5\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xad, 0x1401b52bd\nxorps   xmm1, xmm1                                                     ; +0xb3, 0x1401b52c3\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb6, 0x1401b52c6\nmov     [rsp+98h+var_68], 0                                            ; +0xbc, 0x1401b52cc\nmovss   xmm0, cs:dword_140835A04                                       ; +0xc1, 0x1401b52d1\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc9, 0x1401b52d9\nlea     rcx, aIncrease; \"Increase\"                                     ; +0xcf, 0x1401b52df\nmov     [rsp+98h+var_78], rcx                                          ; +0xd6, 0x1401b52e6\nlea     r9, aCancel; \"Cancel\"                                          ; +0xdb, 0x1401b52eb\nmov     r8, rax                                                        ; +0xe2, 0x1401b52f2\nlea     rdx, aMaxObjects; \"Max Objects\"                                ; +0xe5, 0x1401b52f5\nmov     rcx, rdi                                                       ; +0xec, 0x1401b52fc\ncall    FLAlertLayer__create                                           ; +0xef, 0x1401b52ff\nmov     rbx, rax                                                       ; +0xf4, 0x1401b5304\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf7, 0x1401b5307\ncall    sub_14003D310                                                  ; +0xfc, 0x1401b530c\nmov     rcx, [rbx]                                                     ; +0x101, 0x1401b5311\nmov     r8, [rcx+40h]                                                  ; +0x104, 0x1401b5314\nmov     edx, 7Dh ; '}'                                                 ; +0x108, 0x1401b5318\nmov     rcx, rbx                                                       ; +0x10d, 0x1401b531d\ncall    r8                                                             ; +0x110, 0x1401b5320\nmov     rcx, [rbx]                                                     ; +0x113, 0x1401b5323\nmov     rdx, [rcx+428h]                                                ; +0x116, 0x1401b5326\nmov     rcx, rbx                                                       ; +0x11d, 0x1401b532d\ncall    rdx                                                            ; +0x120, 0x1401b5330\nlea     r11, [rsp+98h+var_8]                                           ; +0x122, 0x1401b5332\nmov     rbx, [r11+20h]                                                 ; +0x12a, 0x1401b533a\nmov     rsi, [r11+28h]                                                 ; +0x12e, 0x1401b533e\nmov     rsp, r11                                                       ; +0x132, 0x1401b5342\npop     rdi                                                            ; +0x135, 0x1401b5345\nretn                                                                   ; +0x136, 0x1401b5346", "xrefs": ["EditorUI::onCreate @ 0x1401b253c", "EditorUI::onDuplicate @ 0x1401c55e6", "EditorUI::doPasteObjects @ 0x1401c5f79", "<???> @ 0x14091a180"], "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"}