{"type": "func", "start": 5371750576, "end": 5371750851, "name": "GameStatsManager::hasCompletedDailyLevel", "pseudocode": "// \n// GameStatsManager::hasCompletedDailyLevel from 0x1402e68b0 to 0x1402e69c3 (275 bytes)\n// \n// 6 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x140149620\n// > DailyLevelPage::init @ 0x140170618\n// > DailyLevelPage::dailyStatusFinished @ 0x1401709a6\n// > GameStatsManager::completedDailyLevel @ 0x1402e6a37\n// > LevelBrowserLayer::claimRecallChest @ 0x1403eb321\n// > <???> @ 0x14091e020\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::hasCompletedDailyLevel(_QWORD *a1, int a2)\n{\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  __int64 v7; // rcx\n  bool v8; // bl\n  void *v9; // rcx\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int128 v12; // [rsp+48h] [rbp-20h]\n\n  v4 = cocos2d::CCString::createWithFormat(\"d%i\", a2);\n  CString = cocos2d::CCString::getCString(v4);\n  *(_OWORD *)Block = 0;\n  v12 = 0;\n  v6 = -1;\n  do\n    ++v6;\n  while ( CString[v6] );\n  sub_14003D230(Block, CString, v6);\n  if ( a2 >= 100000 )\n  {\n    if ( a2 >= 200000 )\n      v7 = a1[113];\n    else\n      v7 = a1[105];\n  }\n  else\n  {\n    v7 = a1[102];\n  }\n  v8 = cocos2d::CCDictionary::objectForKey(v7, Block) != 0;\n  if ( *((_QWORD *)&v12 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v12 + 1) + 1LL) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n  return v8;\n}", "assembly": "; \n; GameStatsManager::hasCompletedDailyLevel from 0x1402e68b0 to 0x1402e69c3 (275 bytes)\n; \n; 6 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x140149620\n; > DailyLevelPage::init @ 0x140170618\n; > DailyLevelPage::dailyStatusFinished @ 0x1401709a6\n; > GameStatsManager::completedDailyLevel @ 0x1402e6a37\n; > LevelBrowserLayer::claimRecallChest @ 0x1403eb321\n; > <???> @ 0x14091e020\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; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402e68b0\npush    rdi                                                            ; +0x5, 0x1402e68b5\nsub     rsp, 60h                                                       ; +0x6, 0x1402e68b6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402e68ba\nxor     rax, rsp                                                       ; +0x11, 0x1402e68c1\nmov     [rsp+68h+var_10], rax                                          ; +0x14, 0x1402e68c4\nmov     edi, edx                                                       ; +0x19, 0x1402e68c9\nmov     rbx, rcx                                                       ; +0x1b, 0x1402e68cb\nlea     rcx, aDI_0; \"d%i\"                                              ; +0x1e, 0x1402e68ce\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x25, 0x1402e68d5\nmov     rcx, rax                                                       ; +0x2b, 0x1402e68db\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x2e, 0x1402e68de\nxorps   xmm0, xmm0                                                     ; +0x34, 0x1402e68e4\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x37, 0x1402e68e7\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x1402e68ec\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x3f, 0x1402e68ef\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x45, 0x1402e68f5\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x1402e68fc\ninc     r8                                                             ; +0x50, 0x1402e6900\ncmp     byte ptr [rax+r8], 0                                           ; +0x53, 0x1402e6903\njnz     short loc_1402E6900                                            ; +0x58, 0x1402e6908\nmov     rdx, rax                                                       ; +0x5a, 0x1402e690a\nlea     rcx, [rsp+68h+Block]                                           ; +0x5d, 0x1402e690d\ncall    sub_14003D230                                                  ; +0x62, 0x1402e6912\nnop                                                                    ; +0x67, 0x1402e6917\ncmp     edi, 186A0h                                                    ; +0x68, 0x1402e6918\njge     short loc_1402E6929                                            ; +0x6e, 0x1402e691e\nmov     rcx, [rbx+330h]                                                ; +0x70, 0x1402e6920\njmp     short loc_1402E6941                                            ; +0x77, 0x1402e6927\ncmp     edi, 30D40h                                                    ; +0x79, 0x1402e6929\njge     short loc_1402E693A                                            ; +0x7f, 0x1402e692f\nmov     rcx, [rbx+348h]                                                ; +0x81, 0x1402e6931\njmp     short loc_1402E6941                                            ; +0x88, 0x1402e6938\nmov     rcx, [rbx+388h]                                                ; +0x8a, 0x1402e693a\nlea     rdx, [rsp+68h+Block]                                           ; +0x91, 0x1402e6941\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 &) ; +0x96, 0x1402e6946\ntest    rax, rax                                                       ; +0x9c, 0x1402e694c\nsetnz   bl                                                             ; +0x9f, 0x1402e694f\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0xa2, 0x1402e6952\ncmp     rdx, 0Fh                                                       ; +0xa7, 0x1402e6957\njbe     short loc_1402E69A5                                            ; +0xab, 0x1402e695b\ninc     rdx                                                            ; +0xad, 0x1402e695d\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0xb0, 0x1402e6960\nmov     rax, rcx                                                       ; +0xb5, 0x1402e6965\ncmp     rdx, 1000h                                                     ; +0xb8, 0x1402e6968\njb      short loc_1402E69A0                                            ; +0xbf, 0x1402e696f\nadd     rdx, 27h ; '''                                                 ; +0xc1, 0x1402e6971\nmov     rcx, [rcx-8]                                                   ; +0xc5, 0x1402e6975\nsub     rax, rcx                                                       ; +0xc9, 0x1402e6979\nsub     rax, 8                                                         ; +0xcc, 0x1402e697c\ncmp     rax, 1Fh                                                       ; +0xd0, 0x1402e6980\njbe     short loc_1402E69A0                                            ; +0xd4, 0x1402e6984\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xd6, 0x1402e6986\nxor     r9d, r9d; LineNo                                               ; +0xdf, 0x1402e698f\nxor     r8d, r8d; FileName                                             ; +0xe2, 0x1402e6992\nxor     edx, edx; FunctionName                                         ; +0xe5, 0x1402e6995\nxor     ecx, ecx; Expression                                           ; +0xe7, 0x1402e6997\ncall    cs:_invoke_watson                                              ; +0xe9, 0x1402e6999\nalign 20h                                                              ; +0xef, 0x1402e699f\ncall    j_j_free                                                       ; +0xf0, 0x1402e69a0\nmovzx   eax, bl                                                        ; +0xf5, 0x1402e69a5\nmov     rcx, [rsp+68h+var_10]                                          ; +0xf8, 0x1402e69a8\nxor     rcx, rsp; StackCookie                                          ; +0xfd, 0x1402e69ad\ncall    __security_check_cookie                                        ; +0x100, 0x1402e69b0\nmov     rbx, [rsp+68h+arg_10]                                          ; +0x105, 0x1402e69b5\nadd     rsp, 60h                                                       ; +0x10d, 0x1402e69bd\npop     rdi                                                            ; +0x111, 0x1402e69c1\nretn                                                                   ; +0x112, 0x1402e69c2", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x140149620", "DailyLevelPage::init @ 0x140170618", "DailyLevelPage::dailyStatusFinished @ 0x1401709a6", "GameStatsManager::completedDailyLevel @ 0x1402e6a37", "LevelBrowserLayer::claimRecallChest @ 0x1403eb321", "<???> @ 0x14091e020"], "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"}