{"type": "func", "start": 5373038256, "end": 5373038495, "name": "LevelInfoLayer::showUpdateAlert", "pseudocode": "// \n// LevelInfoLayer::showUpdateAlert from 0x140420eb0 to 0x140420f9f (239 bytes)\n// \n// 3 xrefs:\n// > LevelInfoLayer::levelUpdateFinished @ 0x140420e84\n// > LevelInfoLayer::onUpdate @ 0x140424494\n// > <???> @ 0x140926804\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=1\nvoid __fastcall LevelInfoLayer::showUpdateAlert(__int64 a1, int a2)\n{\n  int v2; // edx\n  int v3; // edx\n  const char *v4; // rdx\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[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  v2 = a2 - 1;\n  if ( v2 )\n  {\n    v3 = v2 - 1;\n    if ( v3 )\n    {\n      if ( v3 != 1 )\n        return;\n      v4 = \"Level has been updated to the latest version.\";\n    }\n    else\n    {\n      v4 = \"Update your application to update this level.\";\n    }\n  }\n  else\n  {\n    v4 = \"Level is up to date.\";\n  }\n  v8 = 0;\n  v9 = 0;\n  v10 = 0;\n  v5 = -1;\n  do\n    ++v5;\n  while ( v4[v5] );\n  sub_14003D230(&v8, v4, v5);\n  v6 = sub_14003F4F0((__int64)v11, (__int64)&v8);\n  v7 = FLAlertLayer::create(0, (int)\"Update\", v6, (__int64)\"OK\", 0, 1133903872, 0, 0, 1065353216);\n  sub_14003D310((__int64)&v8);\n  (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL))(v7);\n}", "assembly": "; \n; LevelInfoLayer::showUpdateAlert from 0x140420eb0 to 0x140420f9f (239 bytes)\n; \n; 3 xrefs:\n; > LevelInfoLayer::levelUpdateFinished @ 0x140420e84\n; > LevelInfoLayer::onUpdate @ 0x140424494\n; > <???> @ 0x140926804\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_0], rcx                                               ; +0x0, 0x140420eb0\npush    rbx                                                            ; +0x5, 0x140420eb5\nsub     rsp, 90h                                                       ; +0x6, 0x140420eb6\nsub     edx, 1                                                         ; +0xd, 0x140420ebd\njz      short loc_140420EE2                                            ; +0x10, 0x140420ec0\nsub     edx, 1                                                         ; +0x12, 0x140420ec2\njz      short loc_140420ED9                                            ; +0x15, 0x140420ec5\ncmp     edx, 1                                                         ; +0x17, 0x140420ec7\njnz     loc_140420F96                                                  ; +0x1a, 0x140420eca\nlea     rdx, aLevelHasBeenUp; \"Level has been updated to the latest ve\"... ; +0x20, 0x140420ed0\njmp     short loc_140420EE9                                            ; +0x27, 0x140420ed7\nlea     rdx, aUpdateYourAppl; \"Update your application to update this \"... ; +0x29, 0x140420ed9\njmp     short loc_140420EE9                                            ; +0x30, 0x140420ee0\nlea     rdx, aLevelIsUpToDat; \"Level is up to date.\"                   ; +0x32, 0x140420ee2\nxorps   xmm0, xmm0                                                     ; +0x39, 0x140420ee9\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x3c, 0x140420eec\nxor     ebx, ebx                                                       ; +0x41, 0x140420ef1\nmov     [rsp+98h+var_38], rbx                                          ; +0x43, 0x140420ef3\nmov     [rsp+98h+var_30], rbx                                          ; +0x48, 0x140420ef8\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4d, 0x140420efd\ninc     r8                                                             ; +0x54, 0x140420f04\ncmp     [rdx+r8], bl                                                   ; +0x57, 0x140420f07\njnz     short loc_140420F04                                            ; +0x5b, 0x140420f0b\nlea     rcx, [rsp+98h+var_48]                                          ; +0x5d, 0x140420f0d\ncall    sub_14003D230                                                  ; +0x62, 0x140420f12\nlea     rax, [rsp+98h+var_48]                                          ; +0x67, 0x140420f17\nmov     [rsp+98h+arg_0], rax                                           ; +0x6c, 0x140420f1c\nlea     rdx, [rsp+98h+var_48]                                          ; +0x74, 0x140420f24\nlea     rcx, [rsp+98h+var_28]                                          ; +0x79, 0x140420f29\ncall    sub_14003F4F0                                                  ; +0x7e, 0x140420f2e\nmovss   xmm0, cs:flt_140835080                                         ; +0x83, 0x140420f33\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x8b, 0x140420f3b\nxorps   xmm1, xmm1                                                     ; +0x91, 0x140420f41\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x94, 0x140420f44\nmov     [rsp+98h+var_68], 0                                            ; +0x9a, 0x140420f4a\nmovss   xmm0, cs:dword_1408359A4                                       ; +0x9f, 0x140420f4f\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xa7, 0x140420f57\nmov     [rsp+98h+var_78], rbx                                          ; +0xad, 0x140420f5d\nlea     r9, aOk; \"OK\"                                                  ; +0xb2, 0x140420f62\nmov     r8, rax                                                        ; +0xb9, 0x140420f69\nlea     rdx, aUpdate; \"Update\"                                         ; +0xbc, 0x140420f6c\nxor     ecx, ecx                                                       ; +0xc3, 0x140420f73\ncall    FLAlertLayer__create                                           ; +0xc5, 0x140420f75\nmov     rbx, rax                                                       ; +0xca, 0x140420f7a\nlea     rcx, [rsp+98h+var_48]                                          ; +0xcd, 0x140420f7d\ncall    sub_14003D310                                                  ; +0xd2, 0x140420f82\nmov     rcx, [rbx]                                                     ; +0xd7, 0x140420f87\nmov     rdx, [rcx+428h]                                                ; +0xda, 0x140420f8a\nmov     rcx, rbx                                                       ; +0xe1, 0x140420f91\ncall    rdx                                                            ; +0xe4, 0x140420f94\nadd     rsp, 90h                                                       ; +0xe6, 0x140420f96\npop     rbx                                                            ; +0xed, 0x140420f9d\nretn                                                                   ; +0xee, 0x140420f9e", "xrefs": ["LevelInfoLayer::levelUpdateFinished @ 0x140420e84", "LevelInfoLayer::onUpdate @ 0x140424494", "<???> @ 0x140926804"], "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"}