{"type": "func", "start": 5371784176, "end": 5371784275, "name": "GameStatsManager::getSecretChestForItem", "pseudocode": "// \n// GameStatsManager::getSecretChestForItem from 0x1402eebf0 to 0x1402eec53 (99 bytes)\n// \n// 2 xrefs:\n// > GameStatsManager::isItemUnlocked @ 0x1402e959d\n// > <???> @ 0x14091e128\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=1\n__int64 __fastcall GameStatsManager::getSecretChestForItem(__int64 a1, unsigned int a2, unsigned int a3)\n{\n  __int64 v3; // rbx\n  _QWORD *ItemKey; // rax\n  cocos2d::CCString *v5; // rax\n  _QWORD v7[4]; // [rsp+20h] [rbp-38h] BYREF\n\n  v3 = a1;\n  ItemKey = GameStatsManager::getItemKey(a1, v7, a2, a3);\n  v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v3 + 360), ItemKey);\n  LODWORD(v3) = cocos2d::CCString::intValue(v5);\n  sub_14003D310((__int64)v7);\n  return (unsigned int)v3;\n}", "assembly": "; \n; GameStatsManager::getSecretChestForItem from 0x1402eebf0 to 0x1402eec53 (99 bytes)\n; \n; 2 xrefs:\n; > GameStatsManager::isItemUnlocked @ 0x1402e959d\n; > <???> @ 0x14091e128\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; \npush    rbx                                                            ; +0x0, 0x1402eebf0\nsub     rsp, 50h                                                       ; +0x2, 0x1402eebf2\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1402eebf6\nxor     rax, rsp                                                       ; +0xd, 0x1402eebfd\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x1402eec00\nmov     rbx, rcx                                                       ; +0x15, 0x1402eec05\nmov     r9d, r8d                                                       ; +0x18, 0x1402eec08\nmov     r8d, edx                                                       ; +0x1b, 0x1402eec0b\nlea     rdx, [rsp+58h+var_38]                                          ; +0x1e, 0x1402eec0e\ncall    GameStatsManager__getItemKey                                   ; +0x23, 0x1402eec13\nnop                                                                    ; +0x28, 0x1402eec18\nmov     rdx, rax                                                       ; +0x29, 0x1402eec19\nmov     rcx, [rbx+168h]                                                ; +0x2c, 0x1402eec1c\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x33, 0x1402eec23\nmov     rcx, rax                                                       ; +0x39, 0x1402eec29\ncall    cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x3c, 0x1402eec2c\nmov     ebx, eax                                                       ; +0x42, 0x1402eec32\nlea     rcx, [rsp+58h+var_38]                                          ; +0x44, 0x1402eec34\ncall    sub_14003D310                                                  ; +0x49, 0x1402eec39\nmov     eax, ebx                                                       ; +0x4e, 0x1402eec3e\nmov     rcx, [rsp+58h+var_18]                                          ; +0x50, 0x1402eec40\nxor     rcx, rsp; StackCookie                                          ; +0x55, 0x1402eec45\ncall    __security_check_cookie                                        ; +0x58, 0x1402eec48\nadd     rsp, 50h                                                       ; +0x5d, 0x1402eec4d\npop     rbx                                                            ; +0x61, 0x1402eec51\nretn                                                                   ; +0x62, 0x1402eec52", "xrefs": ["GameStatsManager::isItemUnlocked @ 0x1402e959d", "<???> @ 0x14091e128"], "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"}