{"type": "func", "start": 5370945520, "end": 5370945718, "name": "GameLevelManager::keyHasTimer", "pseudocode": "// \n// GameLevelManager::keyHasTimer from 0x140221ff0 to 0x1402220b6 (198 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::resetCommentTimersForLevelID @ 0x14023ffef\n// > GameLevelManager::resetCommentTimersForAccountID @ 0x1402401ac\n// > <???> @ 0x14091bc20\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:28:25 +0000\n// \n\n_BOOL8 __fastcall GameLevelManager::keyHasTimer(__int64 a1, _BYTE *a2)\n{\n  size_t v3; // r8\n  bool v4; // bl\n  void *v5; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+40h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003D230(Block, a2, v3);\n  v4 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1056), Block) != 0;\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n  {\n    v5 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v5);\n  }\n  return v4;\n}", "assembly": "; \n; GameLevelManager::keyHasTimer from 0x140221ff0 to 0x1402220b6 (198 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::resetCommentTimersForLevelID @ 0x14023ffef\n; > GameLevelManager::resetCommentTimersForAccountID @ 0x1402401ac\n; > <???> @ 0x14091bc20\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:28:25 +0000\n; \npush    rbx                                                            ; +0x0, 0x140221ff0\nsub     rsp, 60h                                                       ; +0x2, 0x140221ff2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140221ff6\nxor     rax, rsp                                                       ; +0xd, 0x140221ffd\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x140222000\nmov     rbx, rcx                                                       ; +0x15, 0x140222005\nxorps   xmm0, xmm0                                                     ; +0x18, 0x140222008\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x1b, 0x14022200b\nxorps   xmm1, xmm1                                                     ; +0x20, 0x140222010\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x23, 0x140222013\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x140222019\ninc     r8                                                             ; +0x30, 0x140222020\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x140222023\njnz     short loc_140222020                                            ; +0x38, 0x140222028\nlea     rcx, [rsp+68h+Block]                                           ; +0x3a, 0x14022202a\ncall    sub_14003D230                                                  ; +0x3f, 0x14022202f\nnop                                                                    ; +0x44, 0x140222034\nlea     rdx, [rsp+68h+Block]                                           ; +0x45, 0x140222035\nmov     rcx, [rbx+420h]                                                ; +0x4a, 0x14022203a\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x51, 0x140222041\ntest    rax, rax                                                       ; +0x57, 0x140222047\nsetnz   bl                                                             ; +0x5a, 0x14022204a\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x5d, 0x14022204d\ncmp     rdx, 0Fh                                                       ; +0x62, 0x140222052\njbe     short loc_1402220A0                                            ; +0x66, 0x140222056\ninc     rdx                                                            ; +0x68, 0x140222058\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x6b, 0x14022205b\nmov     rax, rcx                                                       ; +0x70, 0x140222060\ncmp     rdx, 1000h                                                     ; +0x73, 0x140222063\njb      short loc_14022209B                                            ; +0x7a, 0x14022206a\nadd     rdx, 27h ; '''                                                 ; +0x7c, 0x14022206c\nmov     rcx, [rcx-8]                                                   ; +0x80, 0x140222070\nsub     rax, rcx                                                       ; +0x84, 0x140222074\nsub     rax, 8                                                         ; +0x87, 0x140222077\ncmp     rax, 1Fh                                                       ; +0x8b, 0x14022207b\njbe     short loc_14022209B                                            ; +0x8f, 0x14022207f\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x91, 0x140222081\nxor     r9d, r9d; LineNo                                               ; +0x9a, 0x14022208a\nxor     r8d, r8d; FileName                                             ; +0x9d, 0x14022208d\nxor     edx, edx; FunctionName                                         ; +0xa0, 0x140222090\nxor     ecx, ecx; Expression                                           ; +0xa2, 0x140222092\ncall    cs:_invoke_watson                                              ; +0xa4, 0x140222094\ndb 0CCh                                                                ; +0xaa, 0x14022209a\ncall    j_j_free                                                       ; +0xab, 0x14022209b\nmovzx   eax, bl                                                        ; +0xb0, 0x1402220a0\nmov     rcx, [rsp+68h+var_18]                                          ; +0xb3, 0x1402220a3\nxor     rcx, rsp; StackCookie                                          ; +0xb8, 0x1402220a8\ncall    __security_check_cookie                                        ; +0xbb, 0x1402220ab\nadd     rsp, 60h                                                       ; +0xc0, 0x1402220b0\npop     rbx                                                            ; +0xc4, 0x1402220b4\nretn                                                                   ; +0xc5, 0x1402220b5", "xrefs": ["GameLevelManager::resetCommentTimersForLevelID @ 0x14023ffef", "GameLevelManager::resetCommentTimersForAccountID @ 0x1402401ac", "<???> @ 0x14091bc20"], "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"}