{"type": "func", "start": 5371750080, "end": 5371750313, "name": "GameStatsManager::hasClaimedListReward", "pseudocode": "// \n// GameStatsManager::hasClaimedListReward from 0x1402e66c0 to 0x1402e67a9 (233 bytes)\n// \n// 4 xrefs:\n// > LevelListCell::loadFromList @ 0x14015e5dc\n// > LevelListLayer::updateStatsArt @ 0x14042d1f0\n// > LevelListLayer::onClaimReward @ 0x14042dfdc\n// > <???> @ 0x14091e008\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::hasClaimedListReward(__int64 a1, __int64 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+38h] [rbp-30h] BYREF\n  __int128 v10; // [rsp+48h] [rbp-20h]\n\n  v3 = cocos2d::CCString::createWithFormat(\"lr_%i\", *(_DWORD *)(a2 + 344));\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 + 832), 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::hasClaimedListReward from 0x1402e66c0 to 0x1402e67a9 (233 bytes)\n; \n; 4 xrefs:\n; > LevelListCell::loadFromList @ 0x14015e5dc\n; > LevelListLayer::updateStatsArt @ 0x14042d1f0\n; > LevelListLayer::onClaimReward @ 0x14042dfdc\n; > <???> @ 0x14091e008\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, 0x1402e66c0\nsub     rsp, 60h                                                       ; +0x2, 0x1402e66c2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402e66c6\nxor     rax, rsp                                                       ; +0xd, 0x1402e66cd\nmov     [rsp+68h+var_10], rax                                          ; +0x10, 0x1402e66d0\nmov     rbx, rcx                                                       ; +0x15, 0x1402e66d5\nmov     edx, [rdx+158h]                                                ; +0x18, 0x1402e66d8\nlea     rcx, aLrI; \"lr_%i\"                                             ; +0x1e, 0x1402e66de\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x25, 0x1402e66e5\nmov     rcx, rax                                                       ; +0x2b, 0x1402e66eb\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x2e, 0x1402e66ee\nxorps   xmm0, xmm0                                                     ; +0x34, 0x1402e66f4\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x37, 0x1402e66f7\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x1402e66fc\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x3f, 0x1402e66ff\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x45, 0x1402e6705\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x1402e670c\ninc     r8                                                             ; +0x50, 0x1402e6710\ncmp     byte ptr [rax+r8], 0                                           ; +0x53, 0x1402e6713\njnz     short loc_1402E6710                                            ; +0x58, 0x1402e6718\nmov     rdx, rax                                                       ; +0x5a, 0x1402e671a\nlea     rcx, [rsp+68h+Block]                                           ; +0x5d, 0x1402e671d\ncall    sub_14003D230                                                  ; +0x62, 0x1402e6722\nnop                                                                    ; +0x67, 0x1402e6727\nlea     rdx, [rsp+68h+Block]                                           ; +0x68, 0x1402e6728\nmov     rcx, [rbx+340h]                                                ; +0x6d, 0x1402e672d\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, 0x1402e6734\ntest    rax, rax                                                       ; +0x7a, 0x1402e673a\nsetnz   bl                                                             ; +0x7d, 0x1402e673d\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0x80, 0x1402e6740\ncmp     rdx, 0Fh                                                       ; +0x85, 0x1402e6745\njbe     short loc_1402E6793                                            ; +0x89, 0x1402e6749\ninc     rdx                                                            ; +0x8b, 0x1402e674b\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x8e, 0x1402e674e\nmov     rax, rcx                                                       ; +0x93, 0x1402e6753\ncmp     rdx, 1000h                                                     ; +0x96, 0x1402e6756\njb      short loc_1402E678E                                            ; +0x9d, 0x1402e675d\nadd     rdx, 27h ; '''                                                 ; +0x9f, 0x1402e675f\nmov     rcx, [rcx-8]                                                   ; +0xa3, 0x1402e6763\nsub     rax, rcx                                                       ; +0xa7, 0x1402e6767\nsub     rax, 8                                                         ; +0xaa, 0x1402e676a\ncmp     rax, 1Fh                                                       ; +0xae, 0x1402e676e\njbe     short loc_1402E678E                                            ; +0xb2, 0x1402e6772\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xb4, 0x1402e6774\nxor     r9d, r9d; LineNo                                               ; +0xbd, 0x1402e677d\nxor     r8d, r8d; FileName                                             ; +0xc0, 0x1402e6780\nxor     edx, edx; FunctionName                                         ; +0xc3, 0x1402e6783\nxor     ecx, ecx; Expression                                           ; +0xc5, 0x1402e6785\ncall    cs:_invoke_watson                                              ; +0xc7, 0x1402e6787\nalign 2                                                                ; +0xcd, 0x1402e678d\ncall    j_j_free                                                       ; +0xce, 0x1402e678e\nmovzx   eax, bl                                                        ; +0xd3, 0x1402e6793\nmov     rcx, [rsp+68h+var_10]                                          ; +0xd6, 0x1402e6796\nxor     rcx, rsp; StackCookie                                          ; +0xdb, 0x1402e679b\ncall    __security_check_cookie                                        ; +0xde, 0x1402e679e\nadd     rsp, 60h                                                       ; +0xe3, 0x1402e67a3\npop     rbx                                                            ; +0xe7, 0x1402e67a7\nretn                                                                   ; +0xe8, 0x1402e67a8", "xrefs": ["LevelListCell::loadFromList @ 0x14015e5dc", "LevelListLayer::updateStatsArt @ 0x14042d1f0", "LevelListLayer::onClaimReward @ 0x14042dfdc", "<???> @ 0x14091e008"], "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"}