{"type": "func", "start": 4298664160, "end": 4298664653, "name": "ChallengesPage::create", "pseudocode": "// \n// ChallengesPage::create from 0x1003868e0 to 0x100386acd (493 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::onChallenge @ 0x10028353c\n// > PauseLayer::onSideButtonPressed @ 0x1003c1715\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 *ChallengesPage::create()\n{\n  char *v0; // rbx\n\n  v0 = (char *)operator new(0x2E0u);\n  cocos2d::CCLayerColor::CCLayerColor(v0);\n  *(_QWORD *)v0 = off_100B4FB70;\n  *((_QWORD *)v0 + 40) = off_100B500C0;\n  *((_QWORD *)v0 + 41) = &off_100B50130;\n  *((_QWORD *)v0 + 42) = off_100B50148;\n  *((_QWORD *)v0 + 43) = off_100B50168;\n  *((_QWORD *)v0 + 44) = off_100B50190;\n  *((_QWORD *)v0 + 51) = off_100B501C0;\n  *((_QWORD *)v0 + 54) = off_100B50240;\n  *((_QWORD *)v0 + 68) = off_100B50260;\n  *(_OWORD *)(v0 + 552) = 0;\n  *(_OWORD *)(v0 + 561) = 0;\n  *(_OWORD *)(v0 + 584) = 0;\n  sub_1002782A0((_QWORD *)v0 + 75);\n  *((_OWORD *)v0 + 38) = 0;\n  *((_QWORD *)v0 + 78) = 0;\n  *((_DWORD *)v0 + 158) = -1;\n  *((_WORD *)v0 + 318) = 0;\n  *((_DWORD *)v0 + 160) = -1;\n  v0[644] = 0;\n  *((_QWORD *)v0 + 81) = 0;\n  v0[656] = 0;\n  *(_QWORD *)v0 = off_100B2C040;\n  *((_QWORD *)v0 + 40) = off_100B2C5B0;\n  *((_QWORD *)v0 + 41) = &off_100B2C620;\n  *((_QWORD *)v0 + 42) = off_100B2C638;\n  *((_QWORD *)v0 + 43) = off_100B2C658;\n  *((_QWORD *)v0 + 44) = off_100B2C680;\n  *((_QWORD *)v0 + 51) = off_100B2C6B0;\n  *((_QWORD *)v0 + 54) = off_100B2C730;\n  *((_QWORD *)v0 + 68) = off_100B2C750;\n  *((_QWORD *)v0 + 83) = &off_100B2C798;\n  *((_QWORD *)v0 + 84) = off_100B2C7B0;\n  *((_QWORD *)v0 + 85) = &off_100B2C7D0;\n  *(_OWORD *)(v0 + 698) = 0;\n  *((_OWORD *)v0 + 43) = 0;\n  *((_OWORD *)v0 + 45) = 0;\n  if ( (unsigned __int8)ChallengesPage::init(v0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; ChallengesPage::create from 0x1003868e0 to 0x100386acd (493 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::onChallenge @ 0x10028353c\n; > PauseLayer::onSideButtonPressed @ 0x1003c1715\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, 0x1003868e0\nmov     rbp, rsp                                                       ; +0x1, 0x1003868e1\npush    r14                                                            ; +0x4, 0x1003868e4\npush    rbx                                                            ; +0x6, 0x1003868e6\nmov     edi, 2E0h; __sz                                                ; +0x7, 0x1003868e7\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x1003868ec\nmov     rbx, rax                                                       ; +0x11, 0x1003868f1\nmov     rdi, rax                                                       ; +0x14, 0x1003868f4\ncall    cocos2d__CCLayerColor__CCLayerColor                            ; +0x17, 0x1003868f7\nlea     rax, _ZTV12FLAlertLayer; `vtable for'FLAlertLayer              ; +0x1c, 0x1003868fc\nlea     rcx, [rax+10h]                                                 ; +0x23, 0x100386903\nmov     [rbx], rcx                                                     ; +0x27, 0x100386907\nlea     rcx, [rax+560h]                                                ; +0x2a, 0x10038690a\nmov     [rbx+140h], rcx                                                ; +0x31, 0x100386911\nlea     rcx, [rax+5D0h]                                                ; +0x38, 0x100386918\nmov     [rbx+148h], rcx                                                ; +0x3f, 0x10038691f\nlea     rcx, [rax+5E8h]                                                ; +0x46, 0x100386926\nmov     [rbx+150h], rcx                                                ; +0x4d, 0x10038692d\nlea     rcx, [rax+608h]                                                ; +0x54, 0x100386934\nmov     [rbx+158h], rcx                                                ; +0x5b, 0x10038693b\nlea     rcx, [rax+630h]                                                ; +0x62, 0x100386942\nmov     [rbx+160h], rcx                                                ; +0x69, 0x100386949\nlea     rcx, [rax+660h]                                                ; +0x70, 0x100386950\nmov     [rbx+198h], rcx                                                ; +0x77, 0x100386957\nlea     rcx, [rax+6E0h]                                                ; +0x7e, 0x10038695e\nmov     [rbx+1B0h], rcx                                                ; +0x85, 0x100386965\nadd     rax, 700h                                                      ; +0x8c, 0x10038696c\nmov     [rbx+220h], rax                                                ; +0x92, 0x100386972\nmov     rdi, rbx                                                       ; +0x99, 0x100386979\nadd     rdi, 258h                                                      ; +0x9c, 0x10038697c\nxorps   xmm0, xmm0                                                     ; +0xa3, 0x100386983\nmovups  xmmword ptr [rbx+228h], xmm0                                   ; +0xa6, 0x100386986\nmovups  xmmword ptr [rbx+231h], xmm0                                   ; +0xad, 0x10038698d\nmovups  xmmword ptr [rbx+248h], xmm0                                   ; +0xb4, 0x100386994\ncall    sub_1002782A0                                                  ; +0xbb, 0x10038699b\nxorps   xmm0, xmm0                                                     ; +0xc0, 0x1003869a0\nmovups  xmmword ptr [rbx+260h], xmm0                                   ; +0xc3, 0x1003869a3\nmov     qword ptr [rbx+270h], 0                                        ; +0xca, 0x1003869aa\nmov     dword ptr [rbx+278h], 0FFFFFFFFh                               ; +0xd5, 0x1003869b5\nmov     word ptr [rbx+27Ch], 0                                         ; +0xdf, 0x1003869bf\nmov     dword ptr [rbx+280h], 0FFFFFFFFh                               ; +0xe8, 0x1003869c8\nmov     byte ptr [rbx+284h], 0                                         ; +0xf2, 0x1003869d2\nmov     qword ptr [rbx+288h], 0                                        ; +0xf9, 0x1003869d9\nmov     byte ptr [rbx+290h], 0                                         ; +0x104, 0x1003869e4\nlea     rax, off_100B2C040                                             ; +0x10b, 0x1003869eb\nmov     [rbx], rax                                                     ; +0x112, 0x1003869f2\nlea     rax, off_100B2C5B0                                             ; +0x115, 0x1003869f5\nmov     [rbx+140h], rax                                                ; +0x11c, 0x1003869fc\nlea     rax, off_100B2C620                                             ; +0x123, 0x100386a03\nmov     [rbx+148h], rax                                                ; +0x12a, 0x100386a0a\nlea     rax, off_100B2C638                                             ; +0x131, 0x100386a11\nmov     [rbx+150h], rax                                                ; +0x138, 0x100386a18\nlea     rax, off_100B2C658                                             ; +0x13f, 0x100386a1f\nmov     [rbx+158h], rax                                                ; +0x146, 0x100386a26\nlea     rax, off_100B2C680                                             ; +0x14d, 0x100386a2d\nmov     [rbx+160h], rax                                                ; +0x154, 0x100386a34\nlea     rax, off_100B2C6B0                                             ; +0x15b, 0x100386a3b\nmov     [rbx+198h], rax                                                ; +0x162, 0x100386a42\nlea     rax, off_100B2C730                                             ; +0x169, 0x100386a49\nmov     [rbx+1B0h], rax                                                ; +0x170, 0x100386a50\nlea     rax, off_100B2C750                                             ; +0x177, 0x100386a57\nmov     [rbx+220h], rax                                                ; +0x17e, 0x100386a5e\nlea     rax, off_100B2C798                                             ; +0x185, 0x100386a65\nmov     [rbx+298h], rax                                                ; +0x18c, 0x100386a6c\nlea     rax, off_100B2C7B0                                             ; +0x193, 0x100386a73\nmov     [rbx+2A0h], rax                                                ; +0x19a, 0x100386a7a\nlea     rax, off_100B2C7D0                                             ; +0x1a1, 0x100386a81\nmov     [rbx+2A8h], rax                                                ; +0x1a8, 0x100386a88\nmovups  xmmword ptr [rbx+2BAh], xmm0                                   ; +0x1af, 0x100386a8f\nmovups  xmmword ptr [rbx+2B0h], xmm0                                   ; +0x1b6, 0x100386a96\nmovups  xmmword ptr [rbx+2D0h], xmm0                                   ; +0x1bd, 0x100386a9d\nmov     rdi, rbx                                                       ; +0x1c4, 0x100386aa4\ncall    ChallengesPage__init                                           ; +0x1c7, 0x100386aa7\ntest    al, al                                                         ; +0x1cc, 0x100386aac\njz      short loc_100386ABA                                            ; +0x1ce, 0x100386aae\nmov     rdi, rbx                                                       ; +0x1d0, 0x100386ab0\ncall    cocos2d__CCObject__autorelease                                 ; +0x1d3, 0x100386ab3\njmp     short loc_100386AC5                                            ; +0x1d8, 0x100386ab8\nmov     rax, [rbx]                                                     ; +0x1da, 0x100386aba\nmov     rdi, rbx                                                       ; +0x1dd, 0x100386abd\ncall    qword ptr [rax+10h]                                            ; +0x1e0, 0x100386ac0\nxor     ebx, ebx                                                       ; +0x1e3, 0x100386ac3\nmov     rax, rbx                                                       ; +0x1e5, 0x100386ac5\npop     rbx                                                            ; +0x1e8, 0x100386ac8\npop     r14                                                            ; +0x1e9, 0x100386ac9\npop     rbp                                                            ; +0x1eb, 0x100386acb\nretn                                                                   ; +0x1ec, 0x100386acc", "xrefs": ["CreatorLayer::onChallenge @ 0x10028353c", "PauseLayer::onSideButtonPressed @ 0x1003c1715"], "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"}