{"type": "func", "start": 5371783040, "end": 5371783297, "name": "GameStatsManager::isSpecialChestUnlocked", "pseudocode": "// \n// GameStatsManager::isSpecialChestUnlocked from 0x1402ee780 to 0x1402ee881 (257 bytes)\n// \n// 40 xrefs:\n// > GJNotificationCell::loadFromNotification @ 0x14015bde2\n// > GJNotificationCell::refreshChest @ 0x14015c604\n// > FollowRewardPage::init @ 0x14020b552\n// > FollowRewardPage::init @ 0x14020b89f\n// > FollowRewardPage::init @ 0x14020bbe7\n// > FollowRewardPage::init @ 0x14020bf1d\n// > FollowRewardPage::init @ 0x14020c264\n// > FollowRewardPage::init @ 0x14020c5b2\n// > FollowRewardPage::init @ 0x14020c8f5\n// > FollowRewardPage::updateRate @ 0x14020d195\n// > FollowRewardPage::updateRate @ 0x14020d25c\n// > FollowRewardPage::updateRate @ 0x14020d323\n// > FollowRewardPage::updateRate @ 0x14020d3ea\n// > FollowRewardPage::updateRate @ 0x14020d4b1\n// > FollowRewardPage::updateRate @ 0x14020d578\n// > FollowRewardPage::updateRate @ 0x14020d63f\n// > GameStatsManager::recountSpecialStats @ 0x1402e8d2d\n// > GameStatsManager::isItemUnlocked @ 0x1402e96fa\n// > GameStatsManager::unlockSpecialChest @ 0x1402ee8c6\n// > GauntletSelectLayer::onPlay @ 0x1402ffc55\n// > GauntletNode::generateNode @ 0x140302652\n// > GJPathsLayer::onPath @ 0x140392fed\n// > GJShopLayer::showReactMessage @ 0x1403b3462\n// > GJShopLayer::ccTouchBegan @ 0x1403b4ec9\n// > NotificationsPage::notificationRewardFinished @ 0x140478cf6\n// > RewardsPage::init @ 0x140562105\n// > RewardsPage::init @ 0x14056217f\n// > RewardsPage::init @ 0x1405621f9\n// > RewardsPage::init @ 0x140562273\n// > RewardsPage::init @ 0x1405622ed\n// > RewardsPage::init @ 0x140562367\n// > RewardsPage::init @ 0x1405623dd\n// > SecretRewardsLayer::init @ 0x140568f1f\n// > SecretLayer3::init @ 0x1405809da\n// > SecretLayer3::init @ 0x140580cda\n// > SecretLayer4::init @ 0x14058623a\n// > SecretLayer5::claimOnlineReward @ 0x14058c0e4\n// > SecretLayer5::onlineRewardStatusFinished @ 0x14058c39f\n// > SupportLayer::customSetup @ 0x14066a364\n// > <???> @ 0x14091e0ec\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:56 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_BOOL8 __fastcall GameStatsManager::isSpecialChestUnlocked(__int64 a1, _QWORD *a2)\n{\n  __int64 v2; // rbx\n  size_t v4; // r8\n  bool v5; // di\n  void *v6; // rcx\n  void *Block[2]; // [rsp+38h] [rbp-30h] BYREF\n  __m128i si128; // [rsp+48h] [rbp-20h]\n\n  v2 = (__int64)a2;\n  if ( a2[3] > 0xFu )\n    a2 = (_QWORD *)*a2;\n  *(_OWORD *)Block = 0;\n  si128 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( *((_BYTE *)a2 + v4) );\n  sub_14003D230(Block, a2, v4);\n  v5 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 888), Block) != 0;\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  sub_14003D310(v2);\n  return v5;\n}", "assembly": "; \n; GameStatsManager::isSpecialChestUnlocked from 0x1402ee780 to 0x1402ee881 (257 bytes)\n; \n; 40 xrefs:\n; > GJNotificationCell::loadFromNotification @ 0x14015bde2\n; > GJNotificationCell::refreshChest @ 0x14015c604\n; > FollowRewardPage::init @ 0x14020b552\n; > FollowRewardPage::init @ 0x14020b89f\n; > FollowRewardPage::init @ 0x14020bbe7\n; > FollowRewardPage::init @ 0x14020bf1d\n; > FollowRewardPage::init @ 0x14020c264\n; > FollowRewardPage::init @ 0x14020c5b2\n; > FollowRewardPage::init @ 0x14020c8f5\n; > FollowRewardPage::updateRate @ 0x14020d195\n; > FollowRewardPage::updateRate @ 0x14020d25c\n; > FollowRewardPage::updateRate @ 0x14020d323\n; > FollowRewardPage::updateRate @ 0x14020d3ea\n; > FollowRewardPage::updateRate @ 0x14020d4b1\n; > FollowRewardPage::updateRate @ 0x14020d578\n; > FollowRewardPage::updateRate @ 0x14020d63f\n; > GameStatsManager::recountSpecialStats @ 0x1402e8d2d\n; > GameStatsManager::isItemUnlocked @ 0x1402e96fa\n; > GameStatsManager::unlockSpecialChest @ 0x1402ee8c6\n; > GauntletSelectLayer::onPlay @ 0x1402ffc55\n; > GauntletNode::generateNode @ 0x140302652\n; > GJPathsLayer::onPath @ 0x140392fed\n; > GJShopLayer::showReactMessage @ 0x1403b3462\n; > GJShopLayer::ccTouchBegan @ 0x1403b4ec9\n; > NotificationsPage::notificationRewardFinished @ 0x140478cf6\n; > RewardsPage::init @ 0x140562105\n; > RewardsPage::init @ 0x14056217f\n; > RewardsPage::init @ 0x1405621f9\n; > RewardsPage::init @ 0x140562273\n; > RewardsPage::init @ 0x1405622ed\n; > RewardsPage::init @ 0x140562367\n; > RewardsPage::init @ 0x1405623dd\n; > SecretRewardsLayer::init @ 0x140568f1f\n; > SecretLayer3::init @ 0x1405809da\n; > SecretLayer3::init @ 0x140580cda\n; > SecretLayer4::init @ 0x14058623a\n; > SecretLayer5::claimOnlineReward @ 0x14058c0e4\n; > SecretLayer5::onlineRewardStatusFinished @ 0x14058c39f\n; > SupportLayer::customSetup @ 0x14066a364\n; > <???> @ 0x14091e0ec\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:56 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402ee780\npush    rdi                                                            ; +0x5, 0x1402ee785\nsub     rsp, 60h                                                       ; +0x6, 0x1402ee786\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402ee78a\nxor     rax, rsp                                                       ; +0x11, 0x1402ee791\nmov     [rsp+68h+var_10], rax                                          ; +0x14, 0x1402ee794\nmov     rbx, rdx                                                       ; +0x19, 0x1402ee799\nmov     rdi, rcx                                                       ; +0x1c, 0x1402ee79c\nmov     [rsp+68h+var_38], rdx                                          ; +0x1f, 0x1402ee79f\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x24, 0x1402ee7a4\njbe     short loc_1402EE7AE                                            ; +0x29, 0x1402ee7a9\nmov     rdx, [rdx]                                                     ; +0x2b, 0x1402ee7ab\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x1402ee7ae\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x31, 0x1402ee7b1\nxorps   xmm1, xmm1                                                     ; +0x36, 0x1402ee7b6\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x39, 0x1402ee7b9\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x3f, 0x1402ee7bf\ninc     r8                                                             ; +0x46, 0x1402ee7c6\ncmp     byte ptr [rdx+r8], 0                                           ; +0x49, 0x1402ee7c9\njnz     short loc_1402EE7C6                                            ; +0x4e, 0x1402ee7ce\nlea     rcx, [rsp+68h+Block]                                           ; +0x50, 0x1402ee7d0\ncall    sub_14003D230                                                  ; +0x55, 0x1402ee7d5\nnop                                                                    ; +0x5a, 0x1402ee7da\nlea     rdx, [rsp+68h+Block]                                           ; +0x5b, 0x1402ee7db\nmov     rcx, [rdi+378h]                                                ; +0x60, 0x1402ee7e0\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 &) ; +0x67, 0x1402ee7e7\ntest    rax, rax                                                       ; +0x6d, 0x1402ee7ed\nsetnz   dil                                                            ; +0x70, 0x1402ee7f0\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0x74, 0x1402ee7f4\ncmp     rdx, 0Fh                                                       ; +0x79, 0x1402ee7f9\njbe     short loc_1402EE847                                            ; +0x7d, 0x1402ee7fd\ninc     rdx                                                            ; +0x7f, 0x1402ee7ff\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x82, 0x1402ee802\nmov     rax, rcx                                                       ; +0x87, 0x1402ee807\ncmp     rdx, 1000h                                                     ; +0x8a, 0x1402ee80a\njb      short loc_1402EE842                                            ; +0x91, 0x1402ee811\nadd     rdx, 27h ; '''                                                 ; +0x93, 0x1402ee813\nmov     rcx, [rcx-8]                                                   ; +0x97, 0x1402ee817\nsub     rax, rcx                                                       ; +0x9b, 0x1402ee81b\nsub     rax, 8                                                         ; +0x9e, 0x1402ee81e\ncmp     rax, 1Fh                                                       ; +0xa2, 0x1402ee822\njbe     short loc_1402EE842                                            ; +0xa6, 0x1402ee826\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xa8, 0x1402ee828\nxor     r9d, r9d; LineNo                                               ; +0xb1, 0x1402ee831\nxor     r8d, r8d; FileName                                             ; +0xb4, 0x1402ee834\nxor     edx, edx; FunctionName                                         ; +0xb7, 0x1402ee837\nxor     ecx, ecx; Expression                                           ; +0xb9, 0x1402ee839\ncall    cs:_invoke_watson                                              ; +0xbb, 0x1402ee83b\nalign 2                                                                ; +0xc1, 0x1402ee841\ncall    j_j_free                                                       ; +0xc2, 0x1402ee842\nmovdqa  xmm0, cs:Size                                                  ; +0xc7, 0x1402ee847\nmovdqu  [rsp+68h+var_20], xmm0                                         ; +0xcf, 0x1402ee84f\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0xd5, 0x1402ee855\nmov     rcx, rbx                                                       ; +0xda, 0x1402ee85a\ncall    sub_14003D310                                                  ; +0xdd, 0x1402ee85d\nmovzx   eax, dil                                                       ; +0xe2, 0x1402ee862\nmov     rcx, [rsp+68h+var_10]                                          ; +0xe6, 0x1402ee866\nxor     rcx, rsp; StackCookie                                          ; +0xeb, 0x1402ee86b\ncall    __security_check_cookie                                        ; +0xee, 0x1402ee86e\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xf3, 0x1402ee873\nadd     rsp, 60h                                                       ; +0xfb, 0x1402ee87b\npop     rdi                                                            ; +0xff, 0x1402ee87f\nretn                                                                   ; +0x100, 0x1402ee880", "xrefs": ["GJNotificationCell::loadFromNotification @ 0x14015bde2", "GJNotificationCell::refreshChest @ 0x14015c604", "FollowRewardPage::init @ 0x14020b552", "FollowRewardPage::init @ 0x14020b89f", "FollowRewardPage::init @ 0x14020bbe7", "FollowRewardPage::init @ 0x14020bf1d", "FollowRewardPage::init @ 0x14020c264", "FollowRewardPage::init @ 0x14020c5b2", "FollowRewardPage::init @ 0x14020c8f5", "FollowRewardPage::updateRate @ 0x14020d195", "FollowRewardPage::updateRate @ 0x14020d25c", "FollowRewardPage::updateRate @ 0x14020d323", "FollowRewardPage::updateRate @ 0x14020d3ea", "FollowRewardPage::updateRate @ 0x14020d4b1", "FollowRewardPage::updateRate @ 0x14020d578", "FollowRewardPage::updateRate @ 0x14020d63f", "GameStatsManager::recountSpecialStats @ 0x1402e8d2d", "GameStatsManager::isItemUnlocked @ 0x1402e96fa", "GameStatsManager::unlockSpecialChest @ 0x1402ee8c6", "GauntletSelectLayer::onPlay @ 0x1402ffc55", "GauntletNode::generateNode @ 0x140302652", "GJPathsLayer::onPath @ 0x140392fed", "GJShopLayer::showReactMessage @ 0x1403b3462", "GJShopLayer::ccTouchBegan @ 0x1403b4ec9", "NotificationsPage::notificationRewardFinished @ 0x140478cf6", "RewardsPage::init @ 0x140562105", "RewardsPage::init @ 0x14056217f", "RewardsPage::init @ 0x1405621f9", "RewardsPage::init @ 0x140562273", "RewardsPage::init @ 0x1405622ed", "RewardsPage::init @ 0x140562367", "RewardsPage::init @ 0x1405623dd", "SecretRewardsLayer::init @ 0x140568f1f", "SecretLayer3::init @ 0x1405809da", "SecretLayer3::init @ 0x140580cda", "SecretLayer4::init @ 0x14058623a", "SecretLayer5::claimOnlineReward @ 0x14058c0e4", "SecretLayer5::onlineRewardStatusFinished @ 0x14058c39f", "SupportLayer::customSetup @ 0x14066a364", "<???> @ 0x14091e0ec"], "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"}