{"type": "func", "start": 5373051840, "end": 5373052197, "name": "LevelInfoLayer::onUpdate", "pseudocode": "// \n// LevelInfoLayer::onUpdate from 0x1404243c0 to 0x140424525 (357 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041d0c6\n// > <???> @ 0x14092693c\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:10 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall LevelInfoLayer::onUpdate(__int64 a1)\n{\n  unsigned int v2; // edi\n  __int64 v3; // rsi\n  cocos2d::CCString *v4; // rax\n  char *CString; // rax\n  __int64 v6; // rcx\n  __int64 v7; // rdx\n  __int64 v8; // rcx\n  void *v9; // [rsp+30h] [rbp+8h]\n  void *v10; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    if ( (unsigned __int8)LevelInfoLayer::shouldDownloadLevel(a1) )\n    {\n      LevelInfoLayer::downloadLevel(a1);\n    }\n    else\n    {\n      v2 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL);\n      v3 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v9 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v9);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v3 = *(_QWORD *)&qword_14090BFB0;\n      }\n      v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v2);\n      CString = (char *)cocos2d::CCString::getCString(v4);\n      if ( GameLevelManager::isTimeValid(v3, CString, 600.0) )\n      {\n        LevelInfoLayer::showUpdateAlert(v6, 1);\n      }\n      else\n      {\n        (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 496) + 336LL))(*(_QWORD *)(a1 + 496), 0);\n        LOBYTE(v7) = 1;\n        (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 648) + 336LL))(*(_QWORD *)(a1 + 648), v7);\n        v8 = *(_QWORD *)&qword_14090BFB0;\n        if ( !*(_QWORD *)&qword_14090BFB0 )\n        {\n          v10 = operator new(0x690u);\n          *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v10);\n          (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n          v8 = *(_QWORD *)&qword_14090BFB0;\n        }\n        *(_QWORD *)(v8 + 1416) = a1 + 416;\n        GameLevelManager::updateLevel((cocos2d::CCActionManager **)v8, *(_QWORD *)(a1 + 504));\n      }\n    }\n  }\n}", "assembly": "; \n; LevelInfoLayer::onUpdate from 0x1404243c0 to 0x140424525 (357 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041d0c6\n; > <???> @ 0x14092693c\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:10 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1404243c0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1404243c5\npush    rdi                                                            ; +0xa, 0x1404243ca\nsub     rsp, 20h                                                       ; +0xb, 0x1404243cb\nmov     rbx, rcx                                                       ; +0xf, 0x1404243cf\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x12, 0x1404243d2\njnz     loc_140424515                                                  ; +0x19, 0x1404243d9\ncall    LevelInfoLayer__shouldDownloadLevel                            ; +0x1f, 0x1404243df\ntest    al, al                                                         ; +0x24, 0x1404243e4\njz      short loc_1404243FF                                            ; +0x26, 0x1404243e6\nmov     rcx, rbx                                                       ; +0x28, 0x1404243e8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2b, 0x1404243eb\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x30, 0x1404243f0\nadd     rsp, 20h                                                       ; +0x35, 0x1404243f5\npop     rdi                                                            ; +0x39, 0x1404243f9\njmp     LevelInfoLayer__downloadLevel                                  ; +0x3a, 0x1404243fa\nmov     rax, [rbx+1F8h]                                                ; +0x3f, 0x1404243ff\nmov     edi, [rax+148h]                                                ; +0x46, 0x140424406\nsub     edi, [rax+14Ch]                                                ; +0x4c, 0x14042440c\nmov     rsi, cs:qword_14090BFB0                                        ; +0x52, 0x140424412\ntest    rsi, rsi                                                       ; +0x59, 0x140424419\njnz     short loc_140424451                                            ; +0x5c, 0x14042441c\nmov     ecx, 690h; Size                                                ; +0x5e, 0x14042441e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x63, 0x140424423\nmov     [rsp+28h+arg_0], rax                                           ; +0x68, 0x140424428\nmov     rcx, rax                                                       ; +0x6d, 0x14042442d\ncall    GameLevelManager__GameLevelManager                             ; +0x70, 0x140424430\nnop                                                                    ; +0x75, 0x140424435\nmov     cs:qword_14090BFB0, rax                                        ; +0x76, 0x140424436\nmov     rcx, [rax]                                                     ; +0x7d, 0x14042443d\nmov     r8, [rcx+48h]                                                  ; +0x80, 0x140424440\nmov     rcx, rax                                                       ; +0x84, 0x140424444\ncall    r8                                                             ; +0x87, 0x140424447\nmov     rsi, cs:qword_14090BFB0                                        ; +0x8a, 0x14042444a\nmov     edx, edi                                                       ; +0x91, 0x140424451\nlea     rcx, word_1406ED6F8                                            ; +0x93, 0x140424453\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x9a, 0x14042445a\nmov     rcx, rax                                                       ; +0xa0, 0x140424460\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xa3, 0x140424463\nmovss   xmm2, cs:dword_140835A68                                       ; +0xa9, 0x140424469\nmov     rdx, rax                                                       ; +0xb1, 0x140424471\nmov     rcx, rsi                                                       ; +0xb4, 0x140424474\ncall    GameLevelManager__isTimeValid                                  ; +0xb7, 0x140424477\ntest    al, al                                                         ; +0xbc, 0x14042447c\njz      short loc_140424499                                            ; +0xbe, 0x14042447e\nmov     edx, 1                                                         ; +0xc0, 0x140424480\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc5, 0x140424485\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xca, 0x14042448a\nadd     rsp, 20h                                                       ; +0xcf, 0x14042448f\npop     rdi                                                            ; +0xd3, 0x140424493\njmp     LevelInfoLayer__showUpdateAlert                                ; +0xd4, 0x140424494\nmov     rcx, [rbx+1F0h]                                                ; +0xd9, 0x140424499\nmov     rax, [rcx]                                                     ; +0xe0, 0x1404244a0\nxor     edx, edx                                                       ; +0xe3, 0x1404244a3\ncall    qword ptr [rax+150h]                                           ; +0xe5, 0x1404244a5\nmov     rcx, [rbx+288h]                                                ; +0xeb, 0x1404244ab\nmov     rax, [rcx]                                                     ; +0xf2, 0x1404244b2\nmov     dl, 1                                                          ; +0xf5, 0x1404244b5\ncall    qword ptr [rax+150h]                                           ; +0xf7, 0x1404244b7\nlea     rdi, [rbx+1A0h]                                                ; +0xfd, 0x1404244bd\nmov     rcx, cs:qword_14090BFB0                                        ; +0x104, 0x1404244c4\ntest    rcx, rcx                                                       ; +0x10b, 0x1404244cb\njnz     short loc_140424502                                            ; +0x10e, 0x1404244ce\nmov     ecx, 690h; Size                                                ; +0x110, 0x1404244d0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x115, 0x1404244d5\nmov     [rsp+28h+arg_0], rax                                           ; +0x11a, 0x1404244da\nmov     rcx, rax                                                       ; +0x11f, 0x1404244df\ncall    GameLevelManager__GameLevelManager                             ; +0x122, 0x1404244e2\nnop                                                                    ; +0x127, 0x1404244e7\nmov     cs:qword_14090BFB0, rax                                        ; +0x128, 0x1404244e8\nmov     rcx, [rax]                                                     ; +0x12f, 0x1404244ef\nmov     rdx, [rcx+48h]                                                 ; +0x132, 0x1404244f2\nmov     rcx, rax                                                       ; +0x136, 0x1404244f6\ncall    rdx                                                            ; +0x139, 0x1404244f9\nmov     rcx, cs:qword_14090BFB0                                        ; +0x13b, 0x1404244fb\nmov     [rcx+588h], rdi                                                ; +0x142, 0x140424502\nmov     rdx, [rbx+1F8h]                                                ; +0x149, 0x140424509\ncall    GameLevelManager__updateLevel                                  ; +0x150, 0x140424510\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x155, 0x140424515\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x15a, 0x14042451a\nadd     rsp, 20h                                                       ; +0x15f, 0x14042451f\npop     rdi                                                            ; +0x163, 0x140424523\nretn                                                                   ; +0x164, 0x140424524", "xrefs": ["LevelInfoLayer::init @ 0x14041d0c6", "<???> @ 0x14092693c"], "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"}