{"type": "func", "start": 5370944832, "end": 5370945160, "name": "GameLevelManager::isTimeValid", "pseudocode": "// \n// GameLevelManager::isTimeValid from 0x140221d40 to 0x140221e88 (328 bytes)\n// \n// 5 xrefs:\n// > GameLevelManager::getStoredOnlineLevels @ 0x1402217f7\n// > GameLevelManager::getEditorSoundConfigs @ 0x14022eafb\n// > GameLevelManager::getStoredLevelComments @ 0x14023e277\n// > LevelInfoLayer::onUpdate @ 0x140424477\n// > <???> @ 0x14091bc08\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// Hidden C++ exception states: #wind=1\nbool __fastcall GameLevelManager::isTimeValid(__int64 a1, _BYTE *a2, float a3)\n{\n  size_t v4; // r8\n  cocos2d::CCString *v5; // rbx\n  void *v6; // r8\n  double v7; // xmm0_8\n  void *Block[2]; // [rsp+30h] [rbp-58h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-48h]\n\n  *(_OWORD *)Block = 0;\n  si128 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( a2[v4] );\n  sub_14003D230(Block, a2, v4);\n  v5 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1056), Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n  si128 = _mm_load_si128((const __m128i *)&Size);\n  LOBYTE(Block[0]) = 0;\n  if ( !v5 )\n    return 0;\n  v7 = cocos2d::CCString::doubleValue(v5);\n  ftime64((struct __timeb64 *)Block);\n  return a3 >= (double)LOWORD(Block[1]) / 1000.0 + (double)SLODWORD(Block[0]) - v7;\n}", "assembly": "; \n; GameLevelManager::isTimeValid from 0x140221d40 to 0x140221e88 (328 bytes)\n; \n; 5 xrefs:\n; > GameLevelManager::getStoredOnlineLevels @ 0x1402217f7\n; > GameLevelManager::getEditorSoundConfigs @ 0x14022eafb\n; > GameLevelManager::getStoredLevelComments @ 0x14023e277\n; > LevelInfoLayer::onUpdate @ 0x140424477\n; > <???> @ 0x14091bc08\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, 0x140221d40\nsub     rsp, 80h                                                       ; +0x2, 0x140221d42\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x9, 0x140221d49\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0xe, 0x140221d4e\nmov     rax, cs:__security_cookie                                      ; +0x13, 0x140221d53\nxor     rax, rsp                                                       ; +0x1a, 0x140221d5a\nmov     [rsp+88h+var_38], rax                                          ; +0x1d, 0x140221d5d\nmovaps  xmm7, xmm2                                                     ; +0x22, 0x140221d62\nmov     rbx, rcx                                                       ; +0x25, 0x140221d65\nxorps   xmm0, xmm0                                                     ; +0x28, 0x140221d68\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x2b, 0x140221d6b\nxorps   xmm1, xmm1                                                     ; +0x30, 0x140221d70\nmovdqu  [rsp+88h+var_48], xmm1                                         ; +0x33, 0x140221d73\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x39, 0x140221d79\ninc     r8                                                             ; +0x40, 0x140221d80\ncmp     byte ptr [rdx+r8], 0                                           ; +0x43, 0x140221d83\njnz     short loc_140221D80                                            ; +0x48, 0x140221d88\nlea     rcx, [rsp+88h+Block]                                           ; +0x4a, 0x140221d8a\ncall    sub_14003D230                                                  ; +0x4f, 0x140221d8f\nnop                                                                    ; +0x54, 0x140221d94\nlea     rdx, [rsp+88h+Block]                                           ; +0x55, 0x140221d95\nmov     rcx, [rbx+420h]                                                ; +0x5a, 0x140221d9a\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 &) ; +0x61, 0x140221da1\nmov     rbx, rax                                                       ; +0x67, 0x140221da7\nmov     rdx, qword ptr [rsp+88h+var_48+8]                              ; +0x6a, 0x140221daa\ncmp     rdx, 0Fh                                                       ; +0x6f, 0x140221daf\njbe     short loc_140221E00                                            ; +0x73, 0x140221db3\ninc     rdx                                                            ; +0x75, 0x140221db5\nmov     r8, [rsp+88h+Block]                                            ; +0x78, 0x140221db8\nmov     rcx, r8                                                        ; +0x7d, 0x140221dbd\ncmp     rdx, 1000h                                                     ; +0x80, 0x140221dc0\njb      short loc_140221DF8                                            ; +0x87, 0x140221dc7\nadd     rdx, 27h ; '''                                                 ; +0x89, 0x140221dc9\nmov     r8, [r8-8]                                                     ; +0x8d, 0x140221dcd\nsub     rcx, r8                                                        ; +0x91, 0x140221dd1\nsub     rcx, 8                                                         ; +0x94, 0x140221dd4\ncmp     rcx, 1Fh                                                       ; +0x98, 0x140221dd8\njbe     short loc_140221DF8                                            ; +0x9c, 0x140221ddc\nmov     [rsp+88h+Reserved], 0; Reserved                                ; +0x9e, 0x140221dde\nxor     r9d, r9d; LineNo                                               ; +0xa7, 0x140221de7\nxor     r8d, r8d; FileName                                             ; +0xaa, 0x140221dea\nxor     edx, edx; FunctionName                                         ; +0xad, 0x140221ded\nxor     ecx, ecx; Expression                                           ; +0xaf, 0x140221def\ncall    cs:_invoke_watson                                              ; +0xb1, 0x140221df1\nalign 8                                                                ; +0xb7, 0x140221df7\nmov     rcx, r8; Block                                                 ; +0xb8, 0x140221df8\ncall    j_j_free                                                       ; +0xbb, 0x140221dfb\nmovdqa  xmm0, cs:Size                                                  ; +0xc0, 0x140221e00\nmovdqu  [rsp+88h+var_48], xmm0                                         ; +0xc8, 0x140221e08\nmov     byte ptr [rsp+88h+Block], 0                                    ; +0xce, 0x140221e0e\ntest    rbx, rbx                                                       ; +0xd3, 0x140221e13\njz      short loc_140221E66                                            ; +0xd6, 0x140221e16\nmov     rcx, rbx                                                       ; +0xd8, 0x140221e18\ncall    cs:?doubleValue@CCString@cocos2d@@QEBANXZ; cocos2d::CCString::doubleValue(void) ; +0xdb, 0x140221e1b\nmovaps  xmm6, xmm0                                                     ; +0xe1, 0x140221e21\nlea     rcx, [rsp+88h+Block]; Time                                     ; +0xe4, 0x140221e24\ncall    cs:_ftime64                                                    ; +0xe9, 0x140221e29\nmovzx   eax, word ptr [rsp+88h+Block+8]                                ; +0xef, 0x140221e2f\nmovd    xmm2, eax                                                      ; +0xf4, 0x140221e34\ncvtdq2pd xmm2, xmm2                                                    ; +0xf8, 0x140221e38\ndivsd   xmm2, cs:qword_140835460                                       ; +0xfc, 0x140221e3c\nxorps   xmm1, xmm1                                                     ; +0x104, 0x140221e44\ncvtsi2sd xmm1, [rsp+88h+Block]                                         ; +0x107, 0x140221e47\naddsd   xmm2, xmm1                                                     ; +0x10e, 0x140221e4e\nsubsd   xmm2, xmm6                                                     ; +0x112, 0x140221e52\nxorps   xmm0, xmm0                                                     ; +0x116, 0x140221e56\ncvtss2sd xmm0, xmm7                                                    ; +0x119, 0x140221e59\ncomisd  xmm0, xmm2                                                     ; +0x11d, 0x140221e5d\nsetnb   al                                                             ; +0x121, 0x140221e61\njmp     short loc_140221E68                                            ; +0x124, 0x140221e64\nxor     al, al                                                         ; +0x126, 0x140221e66\nmov     rcx, [rsp+88h+var_38]                                          ; +0x128, 0x140221e68\nxor     rcx, rsp; StackCookie                                          ; +0x12d, 0x140221e6d\ncall    __security_check_cookie                                        ; +0x130, 0x140221e70\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x135, 0x140221e75\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x13a, 0x140221e7a\nadd     rsp, 80h                                                       ; +0x13f, 0x140221e7f\npop     rbx                                                            ; +0x146, 0x140221e86\nretn                                                                   ; +0x147, 0x140221e87", "xrefs": ["GameLevelManager::getStoredOnlineLevels @ 0x1402217f7", "GameLevelManager::getEditorSoundConfigs @ 0x14022eafb", "GameLevelManager::getStoredLevelComments @ 0x14023e277", "LevelInfoLayer::onUpdate @ 0x140424477", "<???> @ 0x14091bc08"], "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"}