{"type": "func", "start": 4295146096, "end": 4295146177, "name": "GameStatsManager::getSecretChestForItem", "pseudocode": "// \n// GameStatsManager::getSecretChestForItem from 0x10002ba70 to 0x10002bac1 (81 bytes)\n// \n// 0 xrefs:\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 12:19:27 +0000\n// \n\n__int64 __fastcall GameStatsManager::getSecretChestForItem(__int64 a1, __int64 a2, unsigned int a3)\n{\n  __int64 v3; // rbx\n  __int64 v4; // rax\n  __int64 result; // rax\n  unsigned int v6; // ebx\n  _BYTE v7[16]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\n\n  v3 = *(_QWORD *)(a1 + 352);\n  GameStatsManager::getItemKey(v7, a2, (unsigned int)a2, a3);\n  v4 = cocos2d::CCDictionary::valueForKey(v3, 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 0x10002ba70 to 0x10002bac1 (81 bytes)\n; \n; 0 xrefs:\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 12:19:27 +0000\n; \npush    rbp                                                            ; +0x0, 0x10002ba70\nmov     rbp, rsp                                                       ; +0x1, 0x10002ba71\npush    r14                                                            ; +0x4, 0x10002ba74\npush    rbx                                                            ; +0x6, 0x10002ba76\nsub     rsp, 20h                                                       ; +0x7, 0x10002ba77\nmov     ecx, edx                                                       ; +0xb, 0x10002ba7b\nmov     edx, esi                                                       ; +0xd, 0x10002ba7d\nmov     rbx, [rdi+160h]                                                ; +0xf, 0x10002ba7f\nlea     r14, [rbp+var_28]                                              ; +0x16, 0x10002ba86\nmov     rdi, r14                                                       ; +0x1a, 0x10002ba8a\ncall    GameStatsManager__getItemKey                                   ; +0x1d, 0x10002ba8d\nmov     rdi, rbx                                                       ; +0x22, 0x10002ba92\nmov     rsi, r14                                                       ; +0x25, 0x10002ba95\ncall    cocos2d__CCDictionary__valueForKey                             ; +0x28, 0x10002ba98\nmov     rdi, rax                                                       ; +0x2d, 0x10002ba9d\ncall    cocos2d__CCString__intValue                                    ; +0x30, 0x10002baa0\ntest    [rbp+var_28], 1                                                ; +0x35, 0x10002baa5\njz      short loc_10002BAB8                                            ; +0x39, 0x10002baa9\nmov     rdi, [rbp+__p]; __p                                            ; +0x3b, 0x10002baab\nmov     ebx, eax                                                       ; +0x3f, 0x10002baaf\ncall    __ZdlPv; operator delete(void *)                               ; +0x41, 0x10002bab1\nmov     eax, ebx                                                       ; +0x46, 0x10002bab6\nadd     rsp, 20h                                                       ; +0x48, 0x10002bab8\npop     rbx                                                            ; +0x4c, 0x10002babc\npop     r14                                                            ; +0x4d, 0x10002babd\npop     rbp                                                            ; +0x4f, 0x10002babf\nretn                                                                   ; +0x50, 0x10002bac0", "xrefs": [], "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"}