{"type": "func", "start": 4295223408, "end": 4295223541, "name": "GameStatsManager::isPathChestUnlocked", "pseudocode": "// \n// GameStatsManager::isPathChestUnlocked from 0x10003e870 to 0x10003e8f5 (133 bytes)\n// \n// 1 xrefs:\n// > GJPathsLayer::onPath @ 0x1002e95f7\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:35 +0000\n// \n\n__int64 __fastcall GameStatsManager::isPathChestUnlocked(__int64 a1, __int64 a2)\n{\n  char v2; // r15\n  unsigned int v3; // eax\n  unsigned int v4; // ebx\n  __int128 v6; // [rsp+8h] [rbp-48h] BYREF\n  void *v7; // [rsp+18h] [rbp-38h]\n  __int128 v8; // [rsp+20h] [rbp-30h] BYREF\n  void *__p; // [rsp+30h] [rbp-20h]\n\n  GameStatsManager::getPathRewardKey((size_t *)&v6, a2, a2);\n  v2 = v6;\n  if ( (v6 & 1) != 0 )\n  {\n    sub_10001AD30(&v8, v7, *((unsigned __int64 *)&v6 + 1));\n  }\n  else\n  {\n    __p = v7;\n    v8 = v6;\n  }\n  LOBYTE(v3) = GameStatsManager::isSpecialChestUnlocked(a1, (__int64)&v8);\n  v4 = v3;\n  if ( (v8 & 1) != 0 )\n    operator delete(__p);\n  if ( (v2 & 1) != 0 )\n    operator delete(v7);\n  return v4;\n}", "assembly": "; \n; GameStatsManager::isPathChestUnlocked from 0x10003e870 to 0x10003e8f5 (133 bytes)\n; \n; 1 xrefs:\n; > GJPathsLayer::onPath @ 0x1002e95f7\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:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x10003e870\nmov     rbp, rsp                                                       ; +0x1, 0x10003e871\npush    r15                                                            ; +0x4, 0x10003e874\npush    r14                                                            ; +0x6, 0x10003e876\npush    rbx                                                            ; +0x8, 0x10003e878\nsub     rsp, 38h                                                       ; +0x9, 0x10003e879\nmov     edx, esi                                                       ; +0xd, 0x10003e87d\nmov     rbx, rdi                                                       ; +0xf, 0x10003e87f\nlea     rdi, [rbp+var_48]                                              ; +0x12, 0x10003e882\ncall    GameStatsManager__getPathRewardKey                             ; +0x16, 0x10003e886\nmovzx   r15d, byte ptr [rbp+var_48]                                    ; +0x1b, 0x10003e88b\ntest    r15b, 1                                                        ; +0x20, 0x10003e890\njnz     short loc_10003E8A8                                            ; +0x24, 0x10003e894\nmov     rax, [rbp+var_38]                                              ; +0x26, 0x10003e896\nmov     [rbp+__p], rax                                                 ; +0x2a, 0x10003e89a\nmovups  xmm0, [rbp+var_48]                                             ; +0x2e, 0x10003e89e\nmovaps  [rbp+var_30], xmm0                                             ; +0x32, 0x10003e8a2\njmp     short loc_10003E8BC                                            ; +0x36, 0x10003e8a6\nmov     rdx, qword ptr [rbp+var_48+8]                                  ; +0x38, 0x10003e8a8\nmov     r14, [rbp+var_38]                                              ; +0x3c, 0x10003e8ac\nlea     rdi, [rbp+var_30]                                              ; +0x40, 0x10003e8b0\nmov     rsi, r14                                                       ; +0x44, 0x10003e8b4\ncall    sub_10001AD30                                                  ; +0x47, 0x10003e8b7\nlea     rsi, [rbp+var_30]                                              ; +0x4c, 0x10003e8bc\nmov     rdi, rbx                                                       ; +0x50, 0x10003e8c0\ncall    GameStatsManager__isSpecialChestUnlocked                       ; +0x53, 0x10003e8c3\nmov     ebx, eax                                                       ; +0x58, 0x10003e8c8\ntest    byte ptr [rbp+var_30], 1                                       ; +0x5a, 0x10003e8ca\njz      short loc_10003E8D9                                            ; +0x5e, 0x10003e8ce\nmov     rdi, [rbp+__p]; __p                                            ; +0x60, 0x10003e8d0\ncall    __ZdlPv; operator delete(void *)                               ; +0x64, 0x10003e8d4\ntest    r15b, 1                                                        ; +0x69, 0x10003e8d9\njz      short loc_10003E8E8                                            ; +0x6d, 0x10003e8dd\nmov     rdi, [rbp+var_38]; __p                                         ; +0x6f, 0x10003e8df\ncall    __ZdlPv; operator delete(void *)                               ; +0x73, 0x10003e8e3\nmov     eax, ebx                                                       ; +0x78, 0x10003e8e8\nadd     rsp, 38h                                                       ; +0x7a, 0x10003e8ea\npop     rbx                                                            ; +0x7e, 0x10003e8ee\npop     r14                                                            ; +0x7f, 0x10003e8ef\npop     r15                                                            ; +0x81, 0x10003e8f1\npop     rbp                                                            ; +0x83, 0x10003e8f3\nretn                                                                   ; +0x84, 0x10003e8f4", "xrefs": ["GJPathsLayer::onPath @ 0x1002e95f7"], "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"}