{"type": "func", "start": 5371752576, "end": 5371752842, "name": "GameStatsManager::isDailyRecall", "pseudocode": "// \n// GameStatsManager::isDailyRecall from 0x1402e7080 to 0x1402e718a (266 bytes)\n// \n// 9 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x14014951f\n// > LevelCell::loadCustomLevelCell @ 0x140149589\n// > LevelCell::loadCustomLevelCell @ 0x14014be85\n// > GJGameLevel::levelHasDiamonds @ 0x14026af50\n// > GameStatsManager::awardCurrencyForLevel @ 0x1402e4446\n// > GameStatsManager::completedDailyLevel @ 0x1402e6a74\n// > LevelBrowserLayer::FLAlert_Clicked @ 0x1403ea37f\n// > LevelInfoLayer::updateLabelValues @ 0x140424c25\n// > <???> @ 0x14091e038\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__int64 __fastcall GameStatsManager::isDailyRecall(__int64 a1, int a2)\n{\n  char v3; // bl\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  unsigned __int8 v7; // di\n  void *v8; // rcx\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int128 v11; // [rsp+48h] [rbp-20h]\n\n  v3 = 0;\n  if ( a2 <= 0 )\n    goto LABEL_6;\n  v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);\n  CString = cocos2d::CCString::getCString(v4);\n  *(_OWORD *)Block = 0;\n  v11 = 0;\n  v6 = -1;\n  do\n    ++v6;\n  while ( CString[v6] );\n  sub_14003D230(Block, CString, v6);\n  v3 = 1;\n  if ( cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 856), Block) )\n    v7 = 1;\n  else\nLABEL_6:\n    v7 = 0;\n  if ( (v3 & 1) != 0 && *((_QWORD *)&v11 + 1) > 0xFu )\n  {\n    v8 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v11 + 1) + 1LL) >= 0x1000 )\n    {\n      v8 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v8);\n  }\n  return v7;\n}", "assembly": "; \n; GameStatsManager::isDailyRecall from 0x1402e7080 to 0x1402e718a (266 bytes)\n; \n; 9 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x14014951f\n; > LevelCell::loadCustomLevelCell @ 0x140149589\n; > LevelCell::loadCustomLevelCell @ 0x14014be85\n; > GJGameLevel::levelHasDiamonds @ 0x14026af50\n; > GameStatsManager::awardCurrencyForLevel @ 0x1402e4446\n; > GameStatsManager::completedDailyLevel @ 0x1402e6a74\n; > LevelBrowserLayer::FLAlert_Clicked @ 0x1403ea37f\n; > LevelInfoLayer::updateLabelValues @ 0x140424c25\n; > <???> @ 0x14091e038\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, 0x1402e7080\npush    rdi                                                            ; +0x5, 0x1402e7085\nsub     rsp, 60h                                                       ; +0x6, 0x1402e7086\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402e708a\nxor     rax, rsp                                                       ; +0x11, 0x1402e7091\nmov     [rsp+68h+var_10], rax                                          ; +0x14, 0x1402e7094\nmov     rdi, rcx                                                       ; +0x19, 0x1402e7099\nxor     ebx, ebx                                                       ; +0x1c, 0x1402e709c\nmov     [rsp+68h+var_38], ebx                                          ; +0x1e, 0x1402e709e\ntest    edx, edx                                                       ; +0x22, 0x1402e70a2\njle     short loc_1402E7110                                            ; +0x24, 0x1402e70a4\nlea     rcx, word_1406ED6F8                                            ; +0x26, 0x1402e70a6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2d, 0x1402e70ad\nmov     rcx, rax                                                       ; +0x33, 0x1402e70b3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x36, 0x1402e70b6\nxorps   xmm0, xmm0                                                     ; +0x3c, 0x1402e70bc\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x3f, 0x1402e70bf\nxorps   xmm1, xmm1                                                     ; +0x44, 0x1402e70c4\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x47, 0x1402e70c7\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4d, 0x1402e70cd\ninc     r8                                                             ; +0x54, 0x1402e70d4\ncmp     [rax+r8], bl                                                   ; +0x57, 0x1402e70d7\njnz     short loc_1402E70D4                                            ; +0x5b, 0x1402e70db\nmov     rdx, rax                                                       ; +0x5d, 0x1402e70dd\nlea     rcx, [rsp+68h+Block]                                           ; +0x60, 0x1402e70e0\ncall    sub_14003D230                                                  ; +0x65, 0x1402e70e5\nnop                                                                    ; +0x6a, 0x1402e70ea\nmov     ebx, 1                                                         ; +0x6b, 0x1402e70eb\nmov     [rsp+68h+var_38], ebx                                          ; +0x70, 0x1402e70f0\nlea     rdx, [rsp+68h+Block]                                           ; +0x74, 0x1402e70f4\nmov     rcx, [rdi+358h]                                                ; +0x79, 0x1402e70f9\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 &) ; +0x80, 0x1402e7100\ntest    rax, rax                                                       ; +0x86, 0x1402e7106\njz      short loc_1402E7110                                            ; +0x89, 0x1402e7109\nmovzx   edi, bl                                                        ; +0x8b, 0x1402e710b\njmp     short loc_1402E7113                                            ; +0x8e, 0x1402e710e\nxor     dil, dil                                                       ; +0x90, 0x1402e7110\ntest    bl, 1                                                          ; +0x93, 0x1402e7113\njz      short loc_1402E716B                                            ; +0x96, 0x1402e7116\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0x98, 0x1402e7118\ncmp     rdx, 0Fh                                                       ; +0x9d, 0x1402e711d\njbe     short loc_1402E716B                                            ; +0xa1, 0x1402e7121\ninc     rdx                                                            ; +0xa3, 0x1402e7123\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0xa6, 0x1402e7126\nmov     rax, rcx                                                       ; +0xab, 0x1402e712b\ncmp     rdx, 1000h                                                     ; +0xae, 0x1402e712e\njb      short loc_1402E7166                                            ; +0xb5, 0x1402e7135\nadd     rdx, 27h ; '''                                                 ; +0xb7, 0x1402e7137\nmov     rcx, [rcx-8]                                                   ; +0xbb, 0x1402e713b\nsub     rax, rcx                                                       ; +0xbf, 0x1402e713f\nsub     rax, 8                                                         ; +0xc2, 0x1402e7142\ncmp     rax, 1Fh                                                       ; +0xc6, 0x1402e7146\njbe     short loc_1402E7166                                            ; +0xca, 0x1402e714a\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xcc, 0x1402e714c\nxor     r9d, r9d; LineNo                                               ; +0xd5, 0x1402e7155\nxor     r8d, r8d; FileName                                             ; +0xd8, 0x1402e7158\nxor     edx, edx; FunctionName                                         ; +0xdb, 0x1402e715b\nxor     ecx, ecx; Expression                                           ; +0xdd, 0x1402e715d\ncall    cs:_invoke_watson                                              ; +0xdf, 0x1402e715f\nalign 2                                                                ; +0xe5, 0x1402e7165\ncall    j_j_free                                                       ; +0xe6, 0x1402e7166\nmovzx   eax, dil                                                       ; +0xeb, 0x1402e716b\nmov     rcx, [rsp+68h+var_10]                                          ; +0xef, 0x1402e716f\nxor     rcx, rsp; StackCookie                                          ; +0xf4, 0x1402e7174\ncall    __security_check_cookie                                        ; +0xf7, 0x1402e7177\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xfc, 0x1402e717c\nadd     rsp, 60h                                                       ; +0x104, 0x1402e7184\npop     rdi                                                            ; +0x108, 0x1402e7188\nretn                                                                   ; +0x109, 0x1402e7189", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x14014951f", "LevelCell::loadCustomLevelCell @ 0x140149589", "LevelCell::loadCustomLevelCell @ 0x14014be85", "GJGameLevel::levelHasDiamonds @ 0x14026af50", "GameStatsManager::awardCurrencyForLevel @ 0x1402e4446", "GameStatsManager::completedDailyLevel @ 0x1402e6a74", "LevelBrowserLayer::FLAlert_Clicked @ 0x1403ea37f", "LevelInfoLayer::updateLabelValues @ 0x140424c25", "<???> @ 0x14091e038"], "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"}