{"type": "func", "start": 4295036144, "end": 4295036432, "name": "EditorUI::showMaxCoinError", "pseudocode": "// \n// EditorUI::showMaxCoinError from 0x100010cf0 to 0x100010e10 (288 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreate @ 0x10000cef8\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 12:18:52 +0000\n// \n\nvoid __fastcall EditorUI::showMaxCoinError(__int64 a1)\n{\n  __int64 v1; // rax\n  const char *CString; // r15\n  size_t v3; // rax\n  size_t v4; // r14\n  char *v5; // r12\n  size_t v6; // r13\n  __int64 v7; // rbx\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  if ( *(_BYTE *)(a1 + 632) )\n    return;\n  *(_BYTE *)(a1 + 632) = 1;\n  v1 = sub_10088E820(\"You cannot add more than <cy>3</c> <cg>coins</c> in a single level.\", __dst[0]);\n  CString = (const char *)cocos2d::CCString::getCString(v1);\n  v3 = strlen(CString);\n  if ( v3 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v4 = v3;\n  if ( v3 >= 0x17 )\n  {\n    v6 = 26;\n    if ( (v3 | 7) != 0x17 )\n      v6 = (v3 | 7) + 1;\n    v5 = (char *)operator new(v6);\n    __p = v5;\n    __dst[0] = v6 + 1;\n    __dst[1] = v4;\n  }\n  else\n  {\n    LOBYTE(__dst[0]) = 2 * v3;\n    v5 = (char *)__dst + 1;\n    if ( !v3 )\n      goto LABEL_10;\n  }\n  memmove(v5, CString, v4);\nLABEL_10:\n  v5[v4] = 0;\n  v7 = FLAlertLayer::create_1(a1 + 408, \"Max Coins\", __dst, \"OK\", 0, 300.0);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 72LL))(v7, 122);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);\n}", "assembly": "; \n; EditorUI::showMaxCoinError from 0x100010cf0 to 0x100010e10 (288 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreate @ 0x10000cef8\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 12:18:52 +0000\n; \npush    rbp                                                            ; +0x0, 0x100010cf0\nmov     rbp, rsp                                                       ; +0x1, 0x100010cf1\npush    r15                                                            ; +0x4, 0x100010cf4\npush    r14                                                            ; +0x6, 0x100010cf6\npush    r13                                                            ; +0x8, 0x100010cf8\npush    r12                                                            ; +0xa, 0x100010cfa\npush    rbx                                                            ; +0xc, 0x100010cfc\nsub     rsp, 18h                                                       ; +0xd, 0x100010cfd\ncmp     byte ptr [rdi+278h], 0                                         ; +0x11, 0x100010d01\njnz     loc_100010DFC                                                  ; +0x18, 0x100010d08\nmov     rbx, rdi                                                       ; +0x1e, 0x100010d0e\nmov     byte ptr [rdi+278h], 1                                         ; +0x21, 0x100010d11\nlea     rdi, aYouCannotAddMo; \"You cannot add more than <cy>3</c> <cg>\"... ; +0x28, 0x100010d18\nxor     eax, eax                                                       ; +0x2f, 0x100010d1f\ncall    sub_10088E820                                                  ; +0x31, 0x100010d21\nmov     rdi, rax                                                       ; +0x36, 0x100010d26\ncall    cocos2d__CCString__getCString                                  ; +0x39, 0x100010d29\nmov     r15, rax                                                       ; +0x3e, 0x100010d2e\nmov     rdi, rax; __s                                                  ; +0x41, 0x100010d31\ncall    _strlen                                                        ; +0x44, 0x100010d34\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x49, 0x100010d39\njnb     loc_100010E0B                                                  ; +0x4d, 0x100010d3d\nmov     r14, rax                                                       ; +0x53, 0x100010d43\nadd     rbx, 198h                                                      ; +0x56, 0x100010d46\ncmp     rax, 17h                                                       ; +0x5d, 0x100010d4d\njnb     short loc_100010D65                                            ; +0x61, 0x100010d51\nlea     eax, [r14+r14]                                                 ; +0x63, 0x100010d53\nmov     byte ptr [rbp+__dst], al                                       ; +0x67, 0x100010d57\nlea     r12, [rbp+__dst+1]                                             ; +0x6a, 0x100010d5a\ntest    r14, r14                                                       ; +0x6e, 0x100010d5e\njnz     short loc_100010D98                                            ; +0x71, 0x100010d61\njmp     short loc_100010DA6                                            ; +0x73, 0x100010d63\nmov     rax, r14                                                       ; +0x75, 0x100010d65\nor      rax, 7                                                         ; +0x78, 0x100010d68\nlea     rcx, [rax+1]                                                   ; +0x7c, 0x100010d6c\ncmp     rax, 17h                                                       ; +0x80, 0x100010d70\nmov     r13d, 1Ah                                                      ; +0x84, 0x100010d74\ncmovnz  r13, rcx                                                       ; +0x8a, 0x100010d7a\nmov     rdi, r13; __sz                                                 ; +0x8e, 0x100010d7e\ncall    __Znwm; operator new(ulong)                                    ; +0x91, 0x100010d81\nmov     r12, rax                                                       ; +0x96, 0x100010d86\nmov     [rbp+__p], rax                                                 ; +0x99, 0x100010d89\ninc     r13                                                            ; +0x9d, 0x100010d8d\nmov     [rbp+__dst], r13                                               ; +0xa0, 0x100010d90\nmov     [rbp+var_38], r14                                              ; +0xa4, 0x100010d94\nmov     rdi, r12; __dst                                                ; +0xa8, 0x100010d98\nmov     rsi, r15; __src                                                ; +0xab, 0x100010d9b\nmov     rdx, r14; __len                                                ; +0xae, 0x100010d9e\ncall    _memmove                                                       ; +0xb1, 0x100010da1\nmov     byte ptr [r12+r14], 0                                          ; +0xb6, 0x100010da6\nlea     rsi, aMaxCoins; \"Max Coins\"                                    ; +0xbb, 0x100010dab\nlea     rcx, aOk; \"OK\"                                                 ; +0xc2, 0x100010db2\nlea     rdx, [rbp+__dst]                                               ; +0xc9, 0x100010db9\nmovss   xmm0, cs:dword_100A03734                                       ; +0xcd, 0x100010dbd\nmov     rdi, rbx                                                       ; +0xd5, 0x100010dc5\nxor     r8d, r8d                                                       ; +0xd8, 0x100010dc8\ncall    FLAlertLayer__create_1                                         ; +0xdb, 0x100010dcb\nmov     rbx, rax                                                       ; +0xe0, 0x100010dd0\ntest    byte ptr [rbp+__dst], 1                                        ; +0xe3, 0x100010dd3\njz      short loc_100010DE2                                            ; +0xe7, 0x100010dd7\nmov     rdi, [rbp+__p]; __p                                            ; +0xe9, 0x100010dd9\ncall    __ZdlPv; operator delete(void *)                               ; +0xed, 0x100010ddd\nmov     rax, [rbx]                                                     ; +0xf2, 0x100010de2\nmov     rdi, rbx                                                       ; +0xf5, 0x100010de5\nmov     esi, 7Ah ; 'z'                                                 ; +0xf8, 0x100010de8\ncall    qword ptr [rax+48h]                                            ; +0xfd, 0x100010ded\nmov     rax, [rbx]                                                     ; +0x100, 0x100010df0\nmov     rdi, rbx                                                       ; +0x103, 0x100010df3\ncall    qword ptr [rax+520h]                                           ; +0x106, 0x100010df6\nadd     rsp, 18h                                                       ; +0x10c, 0x100010dfc\npop     rbx                                                            ; +0x110, 0x100010e00\npop     r12                                                            ; +0x111, 0x100010e01\npop     r13                                                            ; +0x113, 0x100010e03\npop     r14                                                            ; +0x115, 0x100010e05\npop     r15                                                            ; +0x117, 0x100010e07\npop     rbp                                                            ; +0x119, 0x100010e09\nretn                                                                   ; +0x11a, 0x100010e0a\ncall    sub_100003630                                                  ; +0x11b, 0x100010e0b", "xrefs": ["EditorUI::onCreate @ 0x10000cef8"], "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"}