{"type": "func", "start": 5373044800, "end": 5373045259, "name": "LevelInfoLayer::numberInputClosed", "pseudocode": "// \n// LevelInfoLayer::numberInputClosed from 0x140422840 to 0x140422a0b (459 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14078c650\n// > <???> @ 0x140926888\n// > <???> @ 0x140926894\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:32:09 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall LevelInfoLayer::numberInputClosed(__int64 a1, __int64 a2)\n{\n  const char *v3; // rcx\n  int v4; // ebx\n  const char *v5; // rcx\n  int v6; // eax\n  int v7; // edx\n  __int64 v8; // rax\n  cocos2d::CCObject *v9; // rbx\n  __int128 v10; // [rsp+58h] [rbp-80h] BYREF\n  __int64 v11; // [rsp+68h] [rbp-70h]\n  __int64 v12; // [rsp+70h] [rbp-68h]\n  _BYTE v13[32]; // [rsp+80h] [rbp-58h] BYREF\n  char *String[3]; // [rsp+A0h] [rbp-38h] BYREF\n  unsigned __int64 v15; // [rsp+B8h] [rbp-20h]\n\n  sub_14003F4F0((__int64)String, a2 + 728);\n  v3 = (const char *)String;\n  if ( v15 > 0xF )\n    v3 = String[0];\n  v4 = atoi(v3) + 1000000;\n  v5 = (const char *)String;\n  if ( v15 > 0xF )\n    v5 = String[0];\n  v6 = atoi(v5) + 10000;\n  v7 = *(_DWORD *)(*(_QWORD *)(a1 + 48) + 1052LL) - *(_DWORD *)(*(_QWORD *)(a1 + 48) + 1056LL);\n  if ( v4 == v7 || v6 == v7 )\n  {\n    LevelInfoLayer::confirmClone(a1 - 456, 0);\n  }\n  else\n  {\n    v10 = 0;\n    *(_QWORD *)&v10 = sub_14003D460(0x20u);\n    v11 = 19;\n    v12 = 31;\n    strcpy((char *)v10, \"Incorrect password!\");\n    v8 = sub_14003F4F0((__int64)v13, (__int64)&v10);\n    v9 = FLAlertLayer::create(0, (int)\"Error\", v8, (__int64)\"OK\", 0, 1133903872, 0, 0, 1065353216);\n    sub_14003D310((__int64)&v10);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 1064LL))(v9);\n    ++*(_DWORD *)(*(_QWORD *)(a1 + 48) + 1076LL);\n  }\n  sub_14003D310((__int64)String);\n}", "assembly": "; \n; LevelInfoLayer::numberInputClosed from 0x140422840 to 0x140422a0b (459 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14078c650\n; > <???> @ 0x140926888\n; > <???> @ 0x140926894\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:32:09 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140422840\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140422845\npush    rdi                                                            ; +0xa, 0x14042284a\nsub     rsp, 0D0h                                                      ; +0xb, 0x14042284b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140422852\nxor     rax, rsp                                                       ; +0x19, 0x140422859\nmov     [rsp+0D8h+var_18], rax                                         ; +0x1c, 0x14042285c\nmov     rdi, rcx                                                       ; +0x24, 0x140422864\nxor     esi, esi                                                       ; +0x27, 0x140422867\nadd     rdx, 2D8h                                                      ; +0x29, 0x140422869\nlea     rcx, [rsp+0D8h+String]                                         ; +0x30, 0x140422870\ncall    sub_14003F4F0                                                  ; +0x38, 0x140422878\nnop                                                                    ; +0x3d, 0x14042287d\nlea     rcx, [rsp+0D8h+String]                                         ; +0x3e, 0x14042287e\ncmp     [rsp+0D8h+var_20], 0Fh                                         ; +0x46, 0x140422886\ncmova   rcx, [rsp+0D8h+String]; String                                 ; +0x4f, 0x14042288f\ncall    cs:atoi                                                        ; +0x58, 0x140422898\nlea     ebx, [rax+0F4240h]                                             ; +0x5e, 0x14042289e\nlea     rcx, [rsp+0D8h+String]                                         ; +0x64, 0x1404228a4\ncmp     [rsp+0D8h+var_20], 0Fh                                         ; +0x6c, 0x1404228ac\ncmova   rcx, [rsp+0D8h+String]; String                                 ; +0x75, 0x1404228b5\ncall    cs:atoi                                                        ; +0x7e, 0x1404228be\nadd     eax, 2710h                                                     ; +0x84, 0x1404228c4\nmov     rcx, [rdi+30h]                                                 ; +0x89, 0x1404228c9\nmov     edx, [rcx+41Ch]                                                ; +0x8d, 0x1404228cd\nsub     edx, [rcx+420h]                                                ; +0x93, 0x1404228d3\ncmp     ebx, edx                                                       ; +0x99, 0x1404228d9\njz      loc_1404229CA                                                  ; +0x9b, 0x1404228db\ncmp     eax, edx                                                       ; +0xa1, 0x1404228e1\njz      loc_1404229CA                                                  ; +0xa3, 0x1404228e3\nxorps   xmm0, xmm0                                                     ; +0xa9, 0x1404228e9\nmovups  [rsp+0D8h+var_80], xmm0                                        ; +0xac, 0x1404228ec\nmov     [rsp+0D8h+var_70], rsi                                         ; +0xb1, 0x1404228f1\nmov     [rsp+0D8h+var_68], rsi                                         ; +0xb6, 0x1404228f6\nmov     ecx, 20h ; ' '                                                 ; +0xbb, 0x1404228fb\ncall    sub_14003D460                                                  ; +0xc0, 0x140422900\nmov     qword ptr [rsp+0D8h+var_80], rax                               ; +0xc5, 0x140422905\nmov     [rsp+0D8h+var_70], 13h                                         ; +0xca, 0x14042290a\nmov     [rsp+0D8h+var_68], 1Fh                                         ; +0xd3, 0x140422913\nmovups  xmm0, cs:xmmword_14078BCD0                                     ; +0xdc, 0x14042291c\nmovups  xmmword ptr [rax], xmm0                                        ; +0xe3, 0x140422923\nmovzx   ecx, cs:word_14078BCE0                                         ; +0xe6, 0x140422926\nmov     [rax+10h], cx                                                  ; +0xed, 0x14042292d\nmovzx   ecx, cs:byte_14078BCE2                                         ; +0xf1, 0x140422931\nmov     [rax+12h], cl                                                  ; +0xf8, 0x140422938\nmov     [rax+13h], sil                                                 ; +0xfb, 0x14042293b\nlea     rax, [rsp+0D8h+var_80]                                         ; +0xff, 0x14042293f\nmov     [rsp+0D8h+var_88], rax                                         ; +0x104, 0x140422944\nlea     rdx, [rsp+0D8h+var_80]                                         ; +0x109, 0x140422949\nlea     rcx, [rsp+0D8h+var_58]                                         ; +0x10e, 0x14042294e\ncall    sub_14003F4F0                                                  ; +0x116, 0x140422956\nmovss   xmm0, cs:flt_140835080                                         ; +0x11b, 0x14042295b\nmovss   [rsp+0D8h+var_98], xmm0                                        ; +0x123, 0x140422963\nxorps   xmm1, xmm1                                                     ; +0x129, 0x140422969\nmovss   [rsp+0D8h+var_A0], xmm1                                        ; +0x12c, 0x14042296c\nmov     [rsp+0D8h+var_A8], sil                                         ; +0x132, 0x140422972\nmovss   xmm0, cs:dword_1408359A4                                       ; +0x137, 0x140422977\nmovss   [rsp+0D8h+var_B0], xmm0                                        ; +0x13f, 0x14042297f\nmov     [rsp+0D8h+var_B8], rsi                                         ; +0x145, 0x140422985\nlea     r9, aOk; \"OK\"                                                  ; +0x14a, 0x14042298a\nmov     r8, rax                                                        ; +0x151, 0x140422991\nlea     rdx, aError; \"Error\"                                           ; +0x154, 0x140422994\nxor     ecx, ecx                                                       ; +0x15b, 0x14042299b\ncall    FLAlertLayer__create                                           ; +0x15d, 0x14042299d\nmov     rbx, rax                                                       ; +0x162, 0x1404229a2\nlea     rcx, [rsp+0D8h+var_80]                                         ; +0x165, 0x1404229a5\ncall    sub_14003D310                                                  ; +0x16a, 0x1404229aa\nmov     rcx, [rbx]                                                     ; +0x16f, 0x1404229af\nmov     rdx, [rcx+428h]                                                ; +0x172, 0x1404229b2\nmov     rcx, rbx                                                       ; +0x179, 0x1404229b9\ncall    rdx                                                            ; +0x17c, 0x1404229bc\nmov     rax, [rdi+30h]                                                 ; +0x17e, 0x1404229be\ninc     dword ptr [rax+434h]                                           ; +0x182, 0x1404229c2\njmp     short loc_1404229D9                                            ; +0x188, 0x1404229c8\nxor     edx, edx                                                       ; +0x18a, 0x1404229ca\nlea     rcx, [rdi-1C8h]                                                ; +0x18c, 0x1404229cc\ncall    LevelInfoLayer__confirmClone                                   ; +0x193, 0x1404229d3\nnop                                                                    ; +0x198, 0x1404229d8\nlea     rcx, [rsp+0D8h+String]                                         ; +0x199, 0x1404229d9\ncall    sub_14003D310                                                  ; +0x1a1, 0x1404229e1\nmov     rcx, [rsp+0D8h+var_18]                                         ; +0x1a6, 0x1404229e6\nxor     rcx, rsp; StackCookie                                          ; +0x1ae, 0x1404229ee\ncall    __security_check_cookie                                        ; +0x1b1, 0x1404229f1\nlea     r11, [rsp+0D8h+var_8]                                          ; +0x1b6, 0x1404229f6\nmov     rbx, [r11+20h]                                                 ; +0x1be, 0x1404229fe\nmov     rsi, [r11+28h]                                                 ; +0x1c2, 0x140422a02\nmov     rsp, r11                                                       ; +0x1c6, 0x140422a06\npop     rdi                                                            ; +0x1c9, 0x140422a09\nretn                                                                   ; +0x1ca, 0x140422a0a", "xrefs": ["<???> @ 0x14078c650", "<???> @ 0x140926888", "<???> @ 0x140926894"], "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"}