{"type": "func", "start": 5370060832, "end": 5370061011, "name": "GameLevelManager::keyHasTimer", "pseudocode": "// \n// GameLevelManager::keyHasTimer from 0x14014a020 to 0x14014a0d3 (179 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::resetCommentTimersForLevelID @ 0x14015ede4\n// > GameLevelManager::resetCommentTimersForAccountID @ 0x14015ef92\n// > <???> @ 0x1406ca710\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\nbool GameLevelManager::keyHasTimer(GameLevelManager *a1, const char *a2)\n{\n  size_t v3; // r8\n  bool v4; // bl\n  void *v5; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v8; // [rsp+30h] [rbp-28h]\n\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v3 = -1;\n  do\n    ++v3;\n  while ( a2[v3] );\n  sub_14003A930(Block, a2, v3);\n  v4 = cocos2d::CCDictionary::objectForKey(a1->m_timerDict, 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        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v5);\n  }\n  return v4;\n}", "assembly": "; \n; GameLevelManager::keyHasTimer from 0x14014a020 to 0x14014a0d3 (179 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::resetCommentTimersForLevelID @ 0x14015ede4\n; > GameLevelManager::resetCommentTimersForAccountID @ 0x14015ef92\n; > <???> @ 0x1406ca710\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\npush    rbx                                                            ; +0x0, 0x14014a020\nsub     rsp, 50h                                                       ; +0x2, 0x14014a022\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14014a026\nxor     rax, rsp                                                       ; +0xd, 0x14014a02d\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x14014a030\nmov     rbx, rcx                                                       ; +0x15, 0x14014a035\nxorps   xmm0, xmm0                                                     ; +0x18, 0x14014a038\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x1b, 0x14014a03b\nxorps   xmm1, xmm1                                                     ; +0x20, 0x14014a040\nmovdqu  [rsp+58h+var_28], xmm1                                         ; +0x23, 0x14014a043\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x29, 0x14014a049\ninc     r8                                                             ; +0x30, 0x14014a050\ncmp     byte ptr [rdx+r8], 0                                           ; +0x33, 0x14014a053\njnz     short loc_14014A050                                            ; +0x38, 0x14014a058\nlea     rcx, [rsp+58h+Block]                                           ; +0x3a, 0x14014a05a\ncall    sub_14003A930                                                  ; +0x3f, 0x14014a05f\nnop                                                                    ; +0x44, 0x14014a064\nlea     rdx, [rsp+58h+Block]                                           ; +0x45, 0x14014a065\nmov     rcx, [rbx+200h]                                                ; +0x4a, 0x14014a06a\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, 0x14014a071\ntest    rax, rax                                                       ; +0x57, 0x14014a077\nsetnz   bl                                                             ; +0x5a, 0x14014a07a\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0x5d, 0x14014a07d\ncmp     rdx, 0Fh                                                       ; +0x62, 0x14014a082\njbe     short loc_14014A0BD                                            ; +0x66, 0x14014a086\ninc     rdx                                                            ; +0x68, 0x14014a088\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x6b, 0x14014a08b\nmov     rax, rcx                                                       ; +0x70, 0x14014a090\ncmp     rdx, 1000h                                                     ; +0x73, 0x14014a093\njb      short loc_14014A0B8                                            ; +0x7a, 0x14014a09a\nadd     rdx, 27h ; '''                                                 ; +0x7c, 0x14014a09c\nmov     rcx, [rcx-8]                                                   ; +0x80, 0x14014a0a0\nsub     rax, rcx                                                       ; +0x84, 0x14014a0a4\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x87, 0x14014a0a7\ncmp     rax, 1Fh                                                       ; +0x8b, 0x14014a0ab\njbe     short loc_14014A0B8                                            ; +0x8f, 0x14014a0af\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x91, 0x14014a0b1\nalign 8                                                                ; +0x97, 0x14014a0b7\ncall    j_j_free                                                       ; +0x98, 0x14014a0b8\nmovzx   eax, bl                                                        ; +0x9d, 0x14014a0bd\nmov     rcx, [rsp+58h+var_18]                                          ; +0xa0, 0x14014a0c0\nxor     rcx, rsp; StackCookie                                          ; +0xa5, 0x14014a0c5\ncall    __security_check_cookie                                        ; +0xa8, 0x14014a0c8\nadd     rsp, 50h                                                       ; +0xad, 0x14014a0cd\npop     rbx                                                            ; +0xb1, 0x14014a0d1\nretn                                                                   ; +0xb2, 0x14014a0d2", "xrefs": ["GameLevelManager::resetCommentTimersForLevelID @ 0x14015ede4", "GameLevelManager::resetCommentTimersForAccountID @ 0x14015ef92", "<???> @ 0x1406ca710"], "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"}