{"type": "func", "start": 5371752848, "end": 5371753081, "name": "GameStatsManager::hasCompletedDailyStars", "pseudocode": "// \n// GameStatsManager::hasCompletedDailyStars from 0x1402e7190 to 0x1402e7279 (233 bytes)\n// \n// 7 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x1401494d6\n// > LevelCell::loadCustomLevelCell @ 0x1401495d6\n// > LevelCell::loadCustomLevelCell @ 0x14014a288\n// > LevelCell::loadCustomLevelCell @ 0x14014b01d\n// > LevelCell::loadCustomLevelCell @ 0x14014becf\n// > GameStatsManager::completedDailyLevel @ 0x1402e6a5a\n// > <???> @ 0x14091e044\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:29:50 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_BOOL8 __fastcall GameStatsManager::hasCompletedDailyStars(__int64 a1, int a2)\n{\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  size_t v5; // r8\n  bool v6; // bl\n  void *v7; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v10; // [rsp+40h] [rbp-28h]\n\n  v3 = cocos2d::CCString::createWithFormat(\"%s%i\", \"dstar_\", a2);\n  CString = cocos2d::CCString::getCString(v3);\n  *(_OWORD *)Block = 0;\n  v10 = 0;\n  v5 = -1;\n  do\n    ++v5;\n  while ( CString[v5] );\n  sub_14003D230(Block, CString, v5);\n  v6 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 712), Block) != 0;\n  if ( *((_QWORD *)&v10 + 1) > 0xFu )\n  {\n    v7 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v10 + 1) + 1LL) >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n  }\n  return v6;\n}", "assembly": "; \n; GameStatsManager::hasCompletedDailyStars from 0x1402e7190 to 0x1402e7279 (233 bytes)\n; \n; 7 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x1401494d6\n; > LevelCell::loadCustomLevelCell @ 0x1401495d6\n; > LevelCell::loadCustomLevelCell @ 0x14014a288\n; > LevelCell::loadCustomLevelCell @ 0x14014b01d\n; > LevelCell::loadCustomLevelCell @ 0x14014becf\n; > GameStatsManager::completedDailyLevel @ 0x1402e6a5a\n; > <???> @ 0x14091e044\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:29:50 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402e7190\nsub     rsp, 60h                                                       ; +0x2, 0x1402e7192\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402e7196\nxor     rax, rsp                                                       ; +0xd, 0x1402e719d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x1402e71a0\nmov     rbx, rcx                                                       ; +0x15, 0x1402e71a5\nmov     r8d, edx                                                       ; +0x18, 0x1402e71a8\nlea     rdx, aDstar; \"dstar_\"                                          ; +0x1b, 0x1402e71ab\nlea     rcx, aSI_3; \"%s%i\"                                             ; +0x22, 0x1402e71b2\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x29, 0x1402e71b9\nmov     rcx, rax                                                       ; +0x2f, 0x1402e71bf\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x32, 0x1402e71c2\nxorps   xmm0, xmm0                                                     ; +0x38, 0x1402e71c8\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x3b, 0x1402e71cb\nxorps   xmm1, xmm1                                                     ; +0x40, 0x1402e71d0\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x43, 0x1402e71d3\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x49, 0x1402e71d9\ninc     r8                                                             ; +0x50, 0x1402e71e0\ncmp     byte ptr [rax+r8], 0                                           ; +0x53, 0x1402e71e3\njnz     short loc_1402E71E0                                            ; +0x58, 0x1402e71e8\nmov     rdx, rax                                                       ; +0x5a, 0x1402e71ea\nlea     rcx, [rsp+68h+Block]                                           ; +0x5d, 0x1402e71ed\ncall    sub_14003D230                                                  ; +0x62, 0x1402e71f2\nnop                                                                    ; +0x67, 0x1402e71f7\nlea     rdx, [rsp+68h+Block]                                           ; +0x68, 0x1402e71f8\nmov     rcx, [rbx+2C8h]                                                ; +0x6d, 0x1402e71fd\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 &) ; +0x74, 0x1402e7204\ntest    rax, rax                                                       ; +0x7a, 0x1402e720a\nsetnz   bl                                                             ; +0x7d, 0x1402e720d\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x80, 0x1402e7210\ncmp     rdx, 0Fh                                                       ; +0x85, 0x1402e7215\njbe     short loc_1402E7263                                            ; +0x89, 0x1402e7219\ninc     rdx                                                            ; +0x8b, 0x1402e721b\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x8e, 0x1402e721e\nmov     rax, rcx                                                       ; +0x93, 0x1402e7223\ncmp     rdx, 1000h                                                     ; +0x96, 0x1402e7226\njb      short loc_1402E725E                                            ; +0x9d, 0x1402e722d\nadd     rdx, 27h ; '''                                                 ; +0x9f, 0x1402e722f\nmov     rcx, [rcx-8]                                                   ; +0xa3, 0x1402e7233\nsub     rax, rcx                                                       ; +0xa7, 0x1402e7237\nsub     rax, 8                                                         ; +0xaa, 0x1402e723a\ncmp     rax, 1Fh                                                       ; +0xae, 0x1402e723e\njbe     short loc_1402E725E                                            ; +0xb2, 0x1402e7242\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xb4, 0x1402e7244\nxor     r9d, r9d; LineNo                                               ; +0xbd, 0x1402e724d\nxor     r8d, r8d; FileName                                             ; +0xc0, 0x1402e7250\nxor     edx, edx; FunctionName                                         ; +0xc3, 0x1402e7253\nxor     ecx, ecx; Expression                                           ; +0xc5, 0x1402e7255\ncall    cs:_invoke_watson                                              ; +0xc7, 0x1402e7257\nalign 2                                                                ; +0xcd, 0x1402e725d\ncall    j_j_free                                                       ; +0xce, 0x1402e725e\nmovzx   eax, bl                                                        ; +0xd3, 0x1402e7263\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd6, 0x1402e7266\nxor     rcx, rsp; StackCookie                                          ; +0xdb, 0x1402e726b\ncall    __security_check_cookie                                        ; +0xde, 0x1402e726e\nadd     rsp, 60h                                                       ; +0xe3, 0x1402e7273\npop     rbx                                                            ; +0xe7, 0x1402e7277\nretn                                                                   ; +0xe8, 0x1402e7278", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x1401494d6", "LevelCell::loadCustomLevelCell @ 0x1401495d6", "LevelCell::loadCustomLevelCell @ 0x14014a288", "LevelCell::loadCustomLevelCell @ 0x14014b01d", "LevelCell::loadCustomLevelCell @ 0x14014becf", "GameStatsManager::completedDailyLevel @ 0x1402e6a5a", "<???> @ 0x14091e044"], "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"}