{"type": "func", "start": 4295386176, "end": 4295386257, "name": "GameStatsManager::getSecretChestForItem", "pseudocode": "// \n// GameStatsManager::getSecretChestForItem from 0x100066440 to 0x100066491 (81 bytes)\n// \n// 0 xrefs:\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\nint __fastcall GameStatsManager::getSecretChestForItem(GameStatsManager *a1, int a2, UnlockType a3)\n{\n  cocos2d::CCDictionary *m_allTreasureRoomChestItems; // rbx\n  cocos2d::CCString *v4; // rax\n  int result; // eax\n  int v6; // ebx\n  _BYTE v7[16]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\n\n  m_allTreasureRoomChestItems = a1->m_allTreasureRoomChestItems;\n  GameStatsManager::getItemKey(v7, a2, (unsigned int)a2, (unsigned int)a3);\n  v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_allTreasureRoomChestItems, v7);\n  result = cocos2d::CCString::intValue(v4);\n  if ( (v7[0] & 1) != 0 )\n  {\n    v6 = result;\n    operator delete(__p);\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; GameStatsManager::getSecretChestForItem from 0x100066440 to 0x100066491 (81 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x100066440\nmov     rbp, rsp                                                       ; +0x1, 0x100066441\npush    r14                                                            ; +0x4, 0x100066444\npush    rbx                                                            ; +0x6, 0x100066446\nsub     rsp, 20h                                                       ; +0x7, 0x100066447\nmov     ecx, edx                                                       ; +0xb, 0x10006644b\nmov     edx, esi                                                       ; +0xd, 0x10006644d\nmov     rbx, [rdi+160h]                                                ; +0xf, 0x10006644f\nlea     r14, [rbp+var_28]                                              ; +0x16, 0x100066456\nmov     rdi, r14                                                       ; +0x1a, 0x10006645a\ncall    GameStatsManager__getItemKey                                   ; +0x1d, 0x10006645d\nmov     rdi, rbx                                                       ; +0x22, 0x100066462\nmov     rsi, r14                                                       ; +0x25, 0x100066465\ncall    cocos2d__CCDictionary__valueForKey_1                           ; +0x28, 0x100066468\nmov     rdi, rax                                                       ; +0x2d, 0x10006646d\ncall    cocos2d__CCString__intValue                                    ; +0x30, 0x100066470\ntest    [rbp+var_28], 1                                                ; +0x35, 0x100066475\njz      short loc_100066488                                            ; +0x39, 0x100066479\nmov     rdi, [rbp+__p]; __p                                            ; +0x3b, 0x10006647b\nmov     ebx, eax                                                       ; +0x3f, 0x10006647f\ncall    __ZdlPv; operator delete(void *)                               ; +0x41, 0x100066481\nmov     eax, ebx                                                       ; +0x46, 0x100066486\nadd     rsp, 20h                                                       ; +0x48, 0x100066488\npop     rbx                                                            ; +0x4c, 0x10006648c\npop     r14                                                            ; +0x4d, 0x10006648d\npop     rbp                                                            ; +0x4f, 0x10006648f\nretn                                                                   ; +0x50, 0x100066490", "xrefs": [], "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"}