{"type": "func", "start": 5371838320, "end": 5371838556, "name": "LevelInfoLayer::showUpdateAlert", "pseudocode": "// \n// LevelInfoLayer::showUpdateAlert from 0x1402fbf70 to 0x1402fc05c (236 bytes)\n// \n// 3 xrefs:\n// > LevelInfoLayer::levelUpdateFinished @ 0x1402fbf44\n// > LevelInfoLayer::onUpdate @ 0x1402feda1\n// > <???> @ 0x1406d41a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid LevelInfoLayer::showUpdateAlert(LevelInfoLayer *a1, UpdateResponse a2)\n{\n  __int32 v2; // edx\n  __int32 v3; // edx\n  const char *v4; // rdx\n  size_t v5; // r8\n  __int64 v6; // rax\n  FLAlertLayer *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_14003A930(&v8, v4, v5);\n  v6 = sub_14003BDB0((__int64)v11, (__int64)&v8);\n  v7 = FLAlertLayer::create(0, (int)\"Update\", v6, (__int64)\"OK\", 0, 1133903872, 0, 0, 1065353216);\n  sub_14003A830((__int64)&v8);\n  v7->show(v7);\n}", "assembly": "; \n; LevelInfoLayer::showUpdateAlert from 0x1402fbf70 to 0x1402fc05c (236 bytes)\n; \n; 3 xrefs:\n; > LevelInfoLayer::levelUpdateFinished @ 0x1402fbf44\n; > LevelInfoLayer::onUpdate @ 0x1402feda1\n; > <???> @ 0x1406d41a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x1402fbf70\npush    rbx                                                            ; +0x5, 0x1402fbf75\nsub     rsp, 90h                                                       ; +0x6, 0x1402fbf76\nsub     edx, 1                                                         ; +0xd, 0x1402fbf7d\njz      short loc_1402FBFA2                                            ; +0x10, 0x1402fbf80\nsub     edx, 1                                                         ; +0x12, 0x1402fbf82\njz      short loc_1402FBF99                                            ; +0x15, 0x1402fbf85\ncmp     edx, 1                                                         ; +0x17, 0x1402fbf87\njnz     loc_1402FC053                                                  ; +0x1a, 0x1402fbf8a\nlea     rdx, aLevelHasBeenUp; \"Level has been updated to the latest ve\"... ; +0x20, 0x1402fbf90\njmp     short loc_1402FBFA9                                            ; +0x27, 0x1402fbf97\nlea     rdx, aUpdateYourAppl; \"Update your application to update this \"... ; +0x29, 0x1402fbf99\njmp     short loc_1402FBFA9                                            ; +0x30, 0x1402fbfa0\nlea     rdx, aLevelIsUpToDat; \"Level is up to date.\"                   ; +0x32, 0x1402fbfa2\nxorps   xmm0, xmm0                                                     ; +0x39, 0x1402fbfa9\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x3c, 0x1402fbfac\nxor     ebx, ebx                                                       ; +0x41, 0x1402fbfb1\nmov     [rsp+98h+var_38], rbx                                          ; +0x43, 0x1402fbfb3\nmov     [rsp+98h+var_30], rbx                                          ; +0x48, 0x1402fbfb8\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4d, 0x1402fbfbd\ninc     r8                                                             ; +0x54, 0x1402fbfc4\ncmp     [rdx+r8], bl                                                   ; +0x57, 0x1402fbfc7\njnz     short loc_1402FBFC4                                            ; +0x5b, 0x1402fbfcb\nlea     rcx, [rsp+98h+var_48]                                          ; +0x5d, 0x1402fbfcd\ncall    sub_14003A930                                                  ; +0x62, 0x1402fbfd2\nlea     rax, [rsp+98h+var_48]                                          ; +0x67, 0x1402fbfd7\nmov     [rsp+98h+arg_0], rax                                           ; +0x6c, 0x1402fbfdc\nlea     rdx, [rsp+98h+var_48]                                          ; +0x74, 0x1402fbfe4\nlea     rcx, [rsp+98h+var_28]                                          ; +0x79, 0x1402fbfe9\ncall    sub_14003BDB0                                                  ; +0x7e, 0x1402fbfee\nmovss   xmm0, cs:flt_140622C24                                         ; +0x83, 0x1402fbff3\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x8b, 0x1402fbffb\nxorps   xmm1, xmm1                                                     ; +0x91, 0x1402fc001\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x94, 0x1402fc004\nmov     [rsp+98h+var_68], 0                                            ; +0x9a, 0x1402fc00a\nmovss   xmm0, cs:dword_14062343C                                       ; +0x9f, 0x1402fc00f\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xa7, 0x1402fc017\nmov     [rsp+98h+var_78], rbx                                          ; +0xad, 0x1402fc01d\nlea     r9, aOk; \"OK\"                                                  ; +0xb2, 0x1402fc022\nmov     r8, rax                                                        ; +0xb9, 0x1402fc029\nlea     rdx, aUpdate; \"Update\"                                         ; +0xbc, 0x1402fc02c\nxor     ecx, ecx                                                       ; +0xc3, 0x1402fc033\ncall    FLAlertLayer__create                                           ; +0xc5, 0x1402fc035\nmov     rbx, rax                                                       ; +0xca, 0x1402fc03a\nlea     rcx, [rsp+98h+var_48]                                          ; +0xcd, 0x1402fc03d\ncall    sub_14003A830                                                  ; +0xd2, 0x1402fc042\nmov     rdx, [rbx]                                                     ; +0xd7, 0x1402fc047\nmov     rcx, rbx                                                       ; +0xda, 0x1402fc04a\ncall    qword ptr [rdx+410h]                                           ; +0xdd, 0x1402fc04d\nadd     rsp, 90h                                                       ; +0xe3, 0x1402fc053\npop     rbx                                                            ; +0xea, 0x1402fc05a\nretn                                                                   ; +0xeb, 0x1402fc05b", "xrefs": ["LevelInfoLayer::levelUpdateFinished @ 0x1402fbf44", "LevelInfoLayer::onUpdate @ 0x1402feda1", "<???> @ 0x1406d41a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}