{"type": "func", "start": 5369357184, "end": 5369357299, "name": "ChallengesPage::canCollectQuests", "pseudocode": "// \n// ChallengesPage::canCollectQuests from 0x14009e380 to 0x14009e3f3 (115 bytes)\n// \n// 4 xrefs:\n// > CreatorLayer::init @ 0x140135f9d\n// > CreatorLayer::sceneWillResume @ 0x140139927\n// > PauseLayer::customSetup @ 0x1404d7c00\n// > <???> @ 0x140912fb0\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:26:05 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar ChallengesPage::canCollectQuests()\n{\n  unsigned int v0; // ebx\n  __int64 v1; // rcx\n  __int64 Challenge; // rax\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  v0 = 1;\n  while ( 1 )\n  {\n    v1 = qword_14090BFE0;\n    if ( !qword_14090BFE0 )\n    {\n      v4 = operator new(0x3E8u);\n      qword_14090BFE0 = sub_1402D6480(v4);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n      v1 = qword_14090BFE0;\n    }\n    Challenge = GameStatsManager::getChallenge(v1, v0);\n    if ( Challenge )\n    {\n      if ( *(_BYTE *)(Challenge + 100) )\n        break;\n    }\n    if ( (int)++v0 > 3 )\n      return 0;\n  }\n  return 1;\n}", "assembly": "; \n; ChallengesPage::canCollectQuests from 0x14009e380 to 0x14009e3f3 (115 bytes)\n; \n; 4 xrefs:\n; > CreatorLayer::init @ 0x140135f9d\n; > CreatorLayer::sceneWillResume @ 0x140139927\n; > PauseLayer::customSetup @ 0x1404d7c00\n; > <???> @ 0x140912fb0\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:26:05 +0000\n; \npush    rbx                                                            ; +0x0, 0x14009e380\nsub     rsp, 20h                                                       ; +0x2, 0x14009e382\nmov     ebx, 1                                                         ; +0x6, 0x14009e386\nnop     dword ptr [rax+rax+00h]                                        ; +0xb, 0x14009e38b\nmov     rcx, cs:qword_14090BFE0                                        ; +0x10, 0x14009e390\ntest    rcx, rcx                                                       ; +0x17, 0x14009e397\njnz     short loc_14009E3CA                                            ; +0x1a, 0x14009e39a\nmov     ecx, 3E8h; Size                                                ; +0x1c, 0x14009e39c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x14009e3a1\nmov     [rsp+28h+arg_0], rax                                           ; +0x26, 0x14009e3a6\nmov     rcx, rax                                                       ; +0x2b, 0x14009e3ab\ncall    sub_1402D6480                                                  ; +0x2e, 0x14009e3ae\nmov     rcx, rax                                                       ; +0x33, 0x14009e3b3\nmov     cs:qword_14090BFE0, rax                                        ; +0x36, 0x14009e3b6\nmov     rax, [rax]                                                     ; +0x3d, 0x14009e3bd\ncall    qword ptr [rax+48h]                                            ; +0x40, 0x14009e3c0\nmov     rcx, cs:qword_14090BFE0                                        ; +0x43, 0x14009e3c3\nmov     edx, ebx                                                       ; +0x4a, 0x14009e3ca\ncall    GameStatsManager__getChallenge                                 ; +0x4c, 0x14009e3cc\ntest    rax, rax                                                       ; +0x51, 0x14009e3d1\njz      short loc_14009E3DC                                            ; +0x54, 0x14009e3d4\ncmp     byte ptr [rax+64h], 0                                          ; +0x56, 0x14009e3d6\njnz     short loc_14009E3EB                                            ; +0x5a, 0x14009e3da\ninc     ebx                                                            ; +0x5c, 0x14009e3dc\ncmp     ebx, 3                                                         ; +0x5e, 0x14009e3de\njle     short loc_14009E390                                            ; +0x61, 0x14009e3e1\nxor     al, al                                                         ; +0x63, 0x14009e3e3\nadd     rsp, 20h                                                       ; +0x65, 0x14009e3e5\npop     rbx                                                            ; +0x69, 0x14009e3e9\nretn                                                                   ; +0x6a, 0x14009e3ea\nmov     al, 1                                                          ; +0x6b, 0x14009e3eb\nadd     rsp, 20h                                                       ; +0x6d, 0x14009e3ed\npop     rbx                                                            ; +0x71, 0x14009e3f1\nretn                                                                   ; +0x72, 0x14009e3f2", "xrefs": ["CreatorLayer::init @ 0x140135f9d", "CreatorLayer::sceneWillResume @ 0x140139927", "PauseLayer::customSetup @ 0x1404d7c00", "<???> @ 0x140912fb0"], "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"}