{"type": "func", "start": 4295147504, "end": 4295147724, "name": "GameStatsManager::isStoreItemUnlocked", "pseudocode": "// \n// GameStatsManager::isStoreItemUnlocked from 0x10002bff0 to 0x10002c0cc (220 bytes)\n// \n// 4 xrefs:\n// > GameStatsManager::purchaseItem @ 0x10002c10f\n// > GameStatsManager::isItemUnlocked @ 0x10003105b\n// > GJShopLayer::init @ 0x10030f65a\n// > GJShopLayer::onSelectItem @ 0x100310228\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\nbool __fastcall GameStatsManager::isStoreItemUnlocked(__int64 a1)\n{\n  __int64 v1; // rbx\n  __int64 v2; // rax\n  const char *CString; // r15\n  size_t v4; // rax\n  size_t v5; // r14\n  char *v6; // r12\n  size_t v7; // r13\n  __int64 v8; // rbx\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  v1 = *(_QWORD *)(a1 + 632);\n  v2 = sub_10088E820(\"%i\", __dst[0]);\n  CString = (const char *)cocos2d::CCString::getCString(v2);\n  v4 = strlen(CString);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v7 = (v4 | 7) + 1;\n    v6 = (char *)operator new(v7);\n    __p = v6;\n    __dst[0] = v7 + 1;\n    __dst[1] = v5;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst[0]) = 2 * v4;\n  v6 = (char *)__dst + 1;\n  if ( v4 )\nLABEL_8:\n    memmove(v6, CString, v5);\n  v6[v5] = 0;\n  v8 = cocos2d::CCDictionary::objectForKey(v1, __dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  return v8 != 0;\n}", "assembly": "; \n; GameStatsManager::isStoreItemUnlocked from 0x10002bff0 to 0x10002c0cc (220 bytes)\n; \n; 4 xrefs:\n; > GameStatsManager::purchaseItem @ 0x10002c10f\n; > GameStatsManager::isItemUnlocked @ 0x10003105b\n; > GJShopLayer::init @ 0x10030f65a\n; > GJShopLayer::onSelectItem @ 0x100310228\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, 0x10002bff0\nmov     rbp, rsp                                                       ; +0x1, 0x10002bff1\npush    r15                                                            ; +0x4, 0x10002bff4\npush    r14                                                            ; +0x6, 0x10002bff6\npush    r13                                                            ; +0x8, 0x10002bff8\npush    r12                                                            ; +0xa, 0x10002bffa\npush    rbx                                                            ; +0xc, 0x10002bffc\nsub     rsp, 18h                                                       ; +0xd, 0x10002bffd\nmov     rbx, [rdi+278h]                                                ; +0x11, 0x10002c001\nlea     rdi, aI_14; \"%i\"                                               ; +0x18, 0x10002c008\nxor     eax, eax                                                       ; +0x1f, 0x10002c00f\ncall    sub_10088E820                                                  ; +0x21, 0x10002c011\nmov     rdi, rax                                                       ; +0x26, 0x10002c016\ncall    cocos2d__CCString__getCString                                  ; +0x29, 0x10002c019\nmov     r15, rax                                                       ; +0x2e, 0x10002c01e\nmov     rdi, rax; __s                                                  ; +0x31, 0x10002c021\ncall    _strlen                                                        ; +0x34, 0x10002c024\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x39, 0x10002c029\njnb     loc_10002C0C7                                                  ; +0x3d, 0x10002c02d\nmov     r14, rax                                                       ; +0x43, 0x10002c033\ncmp     rax, 17h                                                       ; +0x46, 0x10002c036\njnb     short loc_10002C04E                                            ; +0x4a, 0x10002c03a\nlea     eax, [r14+r14]                                                 ; +0x4c, 0x10002c03c\nmov     byte ptr [rbp+__dst], al                                       ; +0x50, 0x10002c040\nlea     r12, [rbp+__dst+1]                                             ; +0x53, 0x10002c043\ntest    r14, r14                                                       ; +0x57, 0x10002c047\njnz     short loc_10002C081                                            ; +0x5a, 0x10002c04a\njmp     short loc_10002C08F                                            ; +0x5c, 0x10002c04c\nmov     rax, r14                                                       ; +0x5e, 0x10002c04e\nor      rax, 7                                                         ; +0x61, 0x10002c051\nlea     rcx, [rax+1]                                                   ; +0x65, 0x10002c055\ncmp     rax, 17h                                                       ; +0x69, 0x10002c059\nmov     r13d, 1Ah                                                      ; +0x6d, 0x10002c05d\ncmovnz  r13, rcx                                                       ; +0x73, 0x10002c063\nmov     rdi, r13; __sz                                                 ; +0x77, 0x10002c067\ncall    __Znwm; operator new(ulong)                                    ; +0x7a, 0x10002c06a\nmov     r12, rax                                                       ; +0x7f, 0x10002c06f\nmov     [rbp+__p], rax                                                 ; +0x82, 0x10002c072\ninc     r13                                                            ; +0x86, 0x10002c076\nmov     [rbp+__dst], r13                                               ; +0x89, 0x10002c079\nmov     [rbp+var_38], r14                                              ; +0x8d, 0x10002c07d\nmov     rdi, r12; __dst                                                ; +0x91, 0x10002c081\nmov     rsi, r15; __src                                                ; +0x94, 0x10002c084\nmov     rdx, r14; __len                                                ; +0x97, 0x10002c087\ncall    _memmove                                                       ; +0x9a, 0x10002c08a\nmov     byte ptr [r12+r14], 0                                          ; +0x9f, 0x10002c08f\nlea     rsi, [rbp+__dst]                                               ; +0xa4, 0x10002c094\nmov     rdi, rbx                                                       ; +0xa8, 0x10002c098\ncall    cocos2d__CCDictionary__objectForKey                            ; +0xab, 0x10002c09b\nmov     rbx, rax                                                       ; +0xb0, 0x10002c0a0\ntest    byte ptr [rbp+__dst], 1                                        ; +0xb3, 0x10002c0a3\njz      short loc_10002C0B2                                            ; +0xb7, 0x10002c0a7\nmov     rdi, [rbp+__p]; __p                                            ; +0xb9, 0x10002c0a9\ncall    __ZdlPv; operator delete(void *)                               ; +0xbd, 0x10002c0ad\ntest    rbx, rbx                                                       ; +0xc2, 0x10002c0b2\nsetnz   al                                                             ; +0xc5, 0x10002c0b5\nadd     rsp, 18h                                                       ; +0xc8, 0x10002c0b8\npop     rbx                                                            ; +0xcc, 0x10002c0bc\npop     r12                                                            ; +0xcd, 0x10002c0bd\npop     r13                                                            ; +0xcf, 0x10002c0bf\npop     r14                                                            ; +0xd1, 0x10002c0c1\npop     r15                                                            ; +0xd3, 0x10002c0c3\npop     rbp                                                            ; +0xd5, 0x10002c0c5\nretn                                                                   ; +0xd6, 0x10002c0c6\ncall    sub_100003630                                                  ; +0xd7, 0x10002c0c7", "xrefs": ["GameStatsManager::purchaseItem @ 0x10002c10f", "GameStatsManager::isItemUnlocked @ 0x10003105b", "GJShopLayer::init @ 0x10030f65a", "GJShopLayer::onSelectItem @ 0x100310228"], "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"}