{"type": "func", "start": 4298669520, "end": 4298669650, "name": "ChallengesPage::challengeStatusFailed", "pseudocode": "// \n// ChallengesPage::challengeStatusFailed from 0x100387dd0 to 0x100387e52 (130 bytes)\n// \n// 2 xrefs:\n// > sub_100387EA0 @ 0x100387eac\n// > <???> @ 0x100b2c590\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:29:10 +0000\n// \n\nchar __fastcall ChallengesPage::challengeStatusFailed(__int64 a1)\n{\n  __int64 v2; // rax\n  char result; // al\n  int v4; // r14d\n  int v5; // eax\n  int v6; // ecx\n  int v7; // r8d\n  int v8; // r9d\n  __int64 v9; // rax\n  __int64 v10; // rdi\n\n  v2 = GameStatsManager::sharedState();\n  result = GameStatsManager::areChallengesLoaded(v2);\n  if ( !result )\n  {\n    v4 = cocos2d::CCDelayTime::create(5.0);\n    v5 = cocos2d::CCCallFunc::create(a1, ChallengesPage::tryGetChallenges, 0);\n    v9 = sub_10039EB60(v4, v5, 0, v6, v7, v8);\n    result = cocos2d::CCNode::runAction(a1, v9);\n  }\n  v10 = *(_QWORD *)(a1 + 704);\n  if ( v10 )\n  {\n    if ( *(_BYTE *)(a1 + 712) == 1 )\n      return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, 0);\n  }\n  return result;\n}", "assembly": "; \n; ChallengesPage::challengeStatusFailed from 0x100387dd0 to 0x100387e52 (130 bytes)\n; \n; 2 xrefs:\n; > sub_100387EA0 @ 0x100387eac\n; > <???> @ 0x100b2c590\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:29:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x100387dd0\nmov     rbp, rsp                                                       ; +0x1, 0x100387dd1\npush    r14                                                            ; +0x4, 0x100387dd4\npush    rbx                                                            ; +0x6, 0x100387dd6\nmov     rbx, rdi                                                       ; +0x7, 0x100387dd7\ncall    GameStatsManager__sharedState                                  ; +0xa, 0x100387dda\nmov     rdi, rax                                                       ; +0xf, 0x100387ddf\ncall    GameStatsManager__areChallengesLoaded                          ; +0x12, 0x100387de2\ntest    al, al                                                         ; +0x17, 0x100387de7\njnz     short loc_100387E26                                            ; +0x19, 0x100387de9\nmovss   xmm0, cs:flt_100A035C0                                         ; +0x1b, 0x100387deb\ncall    cocos2d__CCDelayTime__create                                   ; +0x23, 0x100387df3\nmov     r14, rax                                                       ; +0x28, 0x100387df8\nlea     rsi, ChallengesPage__tryGetChallenges                          ; +0x2b, 0x100387dfb\nmov     rdi, rbx                                                       ; +0x32, 0x100387e02\nxor     edx, edx                                                       ; +0x35, 0x100387e05\ncall    cocos2d__CCCallFunc__create                                    ; +0x37, 0x100387e07\nmov     rdi, r14                                                       ; +0x3c, 0x100387e0c\nmov     rsi, rax                                                       ; +0x3f, 0x100387e0f\nxor     edx, edx                                                       ; +0x42, 0x100387e12\nxor     eax, eax                                                       ; +0x44, 0x100387e14\ncall    sub_10039EB60                                                  ; +0x46, 0x100387e16\nmov     rdi, rbx                                                       ; +0x4b, 0x100387e1b\nmov     rsi, rax                                                       ; +0x4e, 0x100387e1e\ncall    cocos2d__CCNode__runAction                                     ; +0x51, 0x100387e21\nmov     rdi, [rbx+2C0h]                                                ; +0x56, 0x100387e26\ntest    rdi, rdi                                                       ; +0x5d, 0x100387e2d\njz      short loc_100387E4D                                            ; +0x60, 0x100387e30\ncmp     byte ptr [rbx+2C8h], 1                                         ; +0x62, 0x100387e32\njnz     short loc_100387E4D                                            ; +0x69, 0x100387e39\nmov     rax, [rdi]                                                     ; +0x6b, 0x100387e3b\nmov     rax, [rax+158h]                                                ; +0x6e, 0x100387e3e\nxor     esi, esi                                                       ; +0x75, 0x100387e45\npop     rbx                                                            ; +0x77, 0x100387e47\npop     r14                                                            ; +0x78, 0x100387e48\npop     rbp                                                            ; +0x7a, 0x100387e4a\njmp     rax                                                            ; +0x7b, 0x100387e4b\npop     rbx                                                            ; +0x7d, 0x100387e4d\npop     r14                                                            ; +0x7e, 0x100387e4e\npop     rbp                                                            ; +0x80, 0x100387e50\nretn                                                                   ; +0x81, 0x100387e51", "xrefs": ["sub_100387EA0 @ 0x100387eac", "<???> @ 0x100b2c590"], "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"}