{"type": "func", "start": 5370686464, "end": 5370686678, "name": "GameStatsManager::hasClaimedListReward", "pseudocode": "// \n// GameStatsManager::hasClaimedListReward from 0x1401e2c00 to 0x1401e2cd6 (214 bytes)\n// \n// 4 xrefs:\n// > LevelListCell::loadFromList @ 0x1400bef3f\n// > LevelListLayer::updateStatsArt @ 0x1403053e0\n// > LevelListLayer::onClaimReward @ 0x140306172\n// > <???> @ 0x1406cc5a0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nbool GameStatsManager::hasClaimedListReward(GameStatsManager *a1, GJLevelList *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+28h] [rbp-30h] BYREF\n  __int128 v10; // [rsp+38h] [rbp-20h]\n\n  v3 = cocos2d::CCString::createWithFormat(\"lr_%i\", a2->m_listID);\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_14003A930(Block, CString, v5);\n  v6 = cocos2d::CCDictionary::objectForKey(a1->m_completedLists, 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        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v7);\n  }\n  return v6;\n}", "assembly": "; \n; GameStatsManager::hasClaimedListReward from 0x1401e2c00 to 0x1401e2cd6 (214 bytes)\n; \n; 4 xrefs:\n; > LevelListCell::loadFromList @ 0x1400bef3f\n; > LevelListLayer::updateStatsArt @ 0x1403053e0\n; > LevelListLayer::onClaimReward @ 0x140306172\n; > <???> @ 0x1406cc5a0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1401e2c00\nsub     rsp, 50h                                                       ; +0x2, 0x1401e2c02\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1401e2c06\nxor     rax, rsp                                                       ; +0xd, 0x1401e2c0d\nmov     [rsp+58h+var_10], rax                                          ; +0x10, 0x1401e2c10\nmov     rbx, rcx                                                       ; +0x15, 0x1401e2c15\nmov     edx, [rdx+158h]                                                ; +0x18, 0x1401e2c18\nlea     rcx, aLrI; \"lr_%i\"                                             ; +0x1e, 0x1401e2c1e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x25, 0x1401e2c25\nmov     rcx, rax                                                       ; +0x2b, 0x1401e2c2b\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x2e, 0x1401e2c2e\nxorps   xmm0, xmm0                                                     ; +0x34, 0x1401e2c34\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x37, 0x1401e2c37\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x1401e2c3c\nmovdqu  [rsp+58h+var_20], xmm1                                         ; +0x3f, 0x1401e2c3f\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x45, 0x1401e2c45\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x1401e2c4c\ninc     r8                                                             ; +0x50, 0x1401e2c50\ncmp     byte ptr [rax+r8], 0                                           ; +0x53, 0x1401e2c53\njnz     short loc_1401E2C50                                            ; +0x58, 0x1401e2c58\nmov     rdx, rax                                                       ; +0x5a, 0x1401e2c5a\nlea     rcx, [rsp+58h+Block]                                           ; +0x5d, 0x1401e2c5d\ncall    sub_14003A930                                                  ; +0x62, 0x1401e2c62\nnop                                                                    ; +0x67, 0x1401e2c67\nlea     rdx, [rsp+58h+Block]                                           ; +0x68, 0x1401e2c68\nmov     rcx, [rbx+340h]                                                ; +0x6d, 0x1401e2c6d\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, 0x1401e2c74\ntest    rax, rax                                                       ; +0x7a, 0x1401e2c7a\nsetnz   bl                                                             ; +0x7d, 0x1401e2c7d\nmov     rdx, qword ptr [rsp+58h+var_20+8]                              ; +0x80, 0x1401e2c80\ncmp     rdx, 0Fh                                                       ; +0x85, 0x1401e2c85\njbe     short loc_1401E2CC0                                            ; +0x89, 0x1401e2c89\ninc     rdx                                                            ; +0x8b, 0x1401e2c8b\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x8e, 0x1401e2c8e\nmov     rax, rcx                                                       ; +0x93, 0x1401e2c93\ncmp     rdx, 1000h                                                     ; +0x96, 0x1401e2c96\njb      short loc_1401E2CBB                                            ; +0x9d, 0x1401e2c9d\nadd     rdx, 27h ; '''                                                 ; +0x9f, 0x1401e2c9f\nmov     rcx, [rcx-8]                                                   ; +0xa3, 0x1401e2ca3\nsub     rax, rcx                                                       ; +0xa7, 0x1401e2ca7\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xaa, 0x1401e2caa\ncmp     rax, 1Fh                                                       ; +0xae, 0x1401e2cae\njbe     short loc_1401E2CBB                                            ; +0xb2, 0x1401e2cb2\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb4, 0x1401e2cb4\ndb 0CCh                                                                ; +0xba, 0x1401e2cba\ncall    j_j_free                                                       ; +0xbb, 0x1401e2cbb\nmovzx   eax, bl                                                        ; +0xc0, 0x1401e2cc0\nmov     rcx, [rsp+58h+var_10]                                          ; +0xc3, 0x1401e2cc3\nxor     rcx, rsp; StackCookie                                          ; +0xc8, 0x1401e2cc8\ncall    __security_check_cookie                                        ; +0xcb, 0x1401e2ccb\nadd     rsp, 50h                                                       ; +0xd0, 0x1401e2cd0\npop     rbx                                                            ; +0xd4, 0x1401e2cd4\nretn                                                                   ; +0xd5, 0x1401e2cd5", "xrefs": ["LevelListCell::loadFromList @ 0x1400bef3f", "LevelListLayer::updateStatsArt @ 0x1403053e0", "LevelListLayer::onClaimReward @ 0x140306172", "<???> @ 0x1406cc5a0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}