{"type": "func", "start": 5369987392, "end": 5369987759, "name": "CreatorLayer::onAdventureMap", "pseudocode": "// \n// CreatorLayer::onAdventureMap from 0x140138140 to 0x1401382af (367 bytes)\n// \n// 3 xrefs:\n// > CreatorLayer::dialogClosed @ 0x1401396f6\n// > CreatorLayer::init @ 0x140135aab\n// > <???> @ 0x14091718c\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:27:05 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 CreatorLayer::onAdventureMap()\n{\n  char *v0; // rbx\n  __int64 v1; // rax\n  __int64 (__fastcall *v2)(__int64); // rdx\n  char v4[14]; // [rsp+20h] [rbp-48h] BYREF\n  __int16 v5; // [rsp+2Eh] [rbp-3Ah]\n  __int64 v6; // [rsp+30h] [rbp-38h]\n  __int64 v7; // [rsp+38h] [rbp-30h]\n  char v8[40]; // [rsp+40h] [rbp-28h] BYREF\n\n  v6 = 12;\n  v7 = 15;\n  strcpy(v4, \"mapPromo.png\");\n  v4[13] = 0;\n  v5 = 0;\n  v0 = (char *)operator new(0x2B8u);\n  FLAlertLayer::FLAlertLayer((__int64)v0);\n  *(_QWORD *)v0 = &GJPromoPopup::`vftable';\n  *((_QWORD *)v0 + 40) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v0 + 41) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v0 + 42) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v0 + 43) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v0 + 44) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v0 + 51) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v0 + 54) = &GJPromoPopup::`vftable';\n  *((_QWORD *)v0 + 68) = &GJPromoPopup::`vftable';\n  *(_OWORD *)(v0 + 664) = 0;\n  *((_QWORD *)v0 + 85) = 0;\n  *((_QWORD *)v0 + 86) = 15;\n  v0[664] = 0;\n  v1 = sub_14003F4F0((__int64)v8, (__int64)v4);\n  if ( (unsigned __int8)GJPromoPopup::init(v0, v1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);\n    v0 = nullptr;\n  }\n  sub_14003D310((__int64)v4);\n  v2 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v0 + 1064LL);\n  if ( v2 == ChallengesPage::show )\n    return ChallengesPage::show((__int64)v0);\n  else\n    return v2((__int64)v0);\n}", "assembly": "; \n; CreatorLayer::onAdventureMap from 0x140138140 to 0x1401382af (367 bytes)\n; \n; 3 xrefs:\n; > CreatorLayer::dialogClosed @ 0x1401396f6\n; > CreatorLayer::init @ 0x140135aab\n; > <???> @ 0x14091718c\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:27:05 +0000\n; \nmov     r11, rsp                                                       ; +0x0, 0x140138140\npush    rbx                                                            ; +0x3, 0x140138143\nsub     rsp, 60h                                                       ; +0x4, 0x140138144\nxorps   xmm0, xmm0                                                     ; +0x8, 0x140138148\nmovups  [rsp+68h+var_48], xmm0                                         ; +0xb, 0x14013814b\nmov     qword ptr [r11-38h], 0Ch                                       ; +0x10, 0x140138150\nmov     qword ptr [r11-30h], 0Fh                                       ; +0x18, 0x140138158\nmovsd   xmm0, cs:qword_140737448                                       ; +0x20, 0x140138160\nmovsd   qword ptr [rsp+68h+var_48], xmm0                               ; +0x28, 0x140138168\nmov     eax, cs:dword_140737450                                        ; +0x2e, 0x14013816e\nmov     dword ptr [rsp+68h+var_48+8], eax                              ; +0x34, 0x140138174\nmov     byte ptr [rsp+68h+var_48+0Ch], 0                               ; +0x38, 0x140138178\nlea     rax, [r11-48h]                                                 ; +0x3d, 0x14013817d\nmov     [r11+18h], rax                                                 ; +0x41, 0x140138181\nmov     ecx, 2B8h; Size                                                ; +0x45, 0x140138185\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4a, 0x14013818a\nmov     rbx, rax                                                       ; +0x4f, 0x14013818f\nmov     [rsp+68h+arg_18], rax                                          ; +0x52, 0x140138192\nmov     rcx, rax                                                       ; +0x5a, 0x14013819a\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x5d, 0x14013819d\nlea     rax, ??_7GJPromoPopup@@6B@; const GJPromoPopup::`vftable'      ; +0x62, 0x1401381a2\nmov     [rbx], rax                                                     ; +0x69, 0x1401381a9\nlea     rax, ??_7GJPromoPopup@@6B@_0; const GJPromoPopup::`vftable'    ; +0x6c, 0x1401381ac\nmov     [rbx+140h], rax                                                ; +0x73, 0x1401381b3\nlea     rax, ??_7GJPromoPopup@@6B@_1; const GJPromoPopup::`vftable'    ; +0x7a, 0x1401381ba\nmov     [rbx+148h], rax                                                ; +0x81, 0x1401381c1\nlea     rax, ??_7GJPromoPopup@@6B@_2; const GJPromoPopup::`vftable'    ; +0x88, 0x1401381c8\nmov     [rbx+150h], rax                                                ; +0x8f, 0x1401381cf\nlea     rax, ??_7GJPromoPopup@@6B@_3; const GJPromoPopup::`vftable'    ; +0x96, 0x1401381d6\nmov     [rbx+158h], rax                                                ; +0x9d, 0x1401381dd\nlea     rax, ??_7GJPromoPopup@@6B@_4; const GJPromoPopup::`vftable'    ; +0xa4, 0x1401381e4\nmov     [rbx+160h], rax                                                ; +0xab, 0x1401381eb\nlea     rax, ??_7GJPromoPopup@@6B@_5; const GJPromoPopup::`vftable'    ; +0xb2, 0x1401381f2\nmov     [rbx+198h], rax                                                ; +0xb9, 0x1401381f9\nlea     rax, ??_7GJPromoPopup@@6B@_6; const GJPromoPopup::`vftable'    ; +0xc0, 0x140138200\nmov     [rbx+1B0h], rax                                                ; +0xc7, 0x140138207\nlea     rax, ??_7GJPromoPopup@@6B@_7; const GJPromoPopup::`vftable'    ; +0xce, 0x14013820e\nmov     [rbx+220h], rax                                                ; +0xd5, 0x140138215\nxorps   xmm0, xmm0                                                     ; +0xdc, 0x14013821c\nmovups  xmmword ptr [rbx+298h], xmm0                                   ; +0xdf, 0x14013821f\nmov     qword ptr [rbx+2A8h], 0                                        ; +0xe6, 0x140138226\nmov     qword ptr [rbx+2B0h], 0Fh                                      ; +0xf1, 0x140138231\nmov     byte ptr [rbx+298h], 0                                         ; +0xfc, 0x14013823c\nlea     rdx, [rsp+68h+var_48]                                          ; +0x103, 0x140138243\nlea     rcx, [rsp+68h+var_28]                                          ; +0x108, 0x140138248\ncall    sub_14003F4F0                                                  ; +0x10d, 0x14013824d\nmov     rdx, rax                                                       ; +0x112, 0x140138252\nmov     rcx, rbx                                                       ; +0x115, 0x140138255\ncall    GJPromoPopup__init                                             ; +0x118, 0x140138258\nmov     rcx, rbx                                                       ; +0x11d, 0x14013825d\ntest    al, al                                                         ; +0x120, 0x140138260\njz      short loc_14013826C                                            ; +0x122, 0x140138262\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x124, 0x140138264\njmp     short loc_140138279                                            ; +0x12a, 0x14013826a\nmov     rax, [rbx]                                                     ; +0x12c, 0x14013826c\nmov     edx, 1                                                         ; +0x12f, 0x14013826f\ncall    qword ptr [rax+8]                                              ; +0x134, 0x140138274\nxor     ebx, ebx                                                       ; +0x137, 0x140138277\nlea     rcx, [rsp+68h+var_48]                                          ; +0x139, 0x140138279\ncall    sub_14003D310                                                  ; +0x13e, 0x14013827e\nmov     rax, [rbx]                                                     ; +0x143, 0x140138283\nmov     rdx, [rax+428h]                                                ; +0x146, 0x140138286\nlea     rax, ChallengesPage__show; Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show ; +0x14d, 0x14013828d\nmov     rcx, rbx                                                       ; +0x154, 0x140138294\ncmp     rdx, rax                                                       ; +0x157, 0x140138297\njnz     short loc_1401382A7                                            ; +0x15a, 0x14013829a\ncall    ChallengesPage__show; Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show ; +0x15c, 0x14013829c\nadd     rsp, 60h                                                       ; +0x161, 0x1401382a1\npop     rbx                                                            ; +0x165, 0x1401382a5\nretn                                                                   ; +0x166, 0x1401382a6\ncall    rdx                                                            ; +0x167, 0x1401382a7\nadd     rsp, 60h                                                       ; +0x169, 0x1401382a9\npop     rbx                                                            ; +0x16d, 0x1401382ad\nretn                                                                   ; +0x16e, 0x1401382ae", "xrefs": ["CreatorLayer::dialogClosed @ 0x1401396f6", "CreatorLayer::init @ 0x140135aab", "<???> @ 0x14091718c"], "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"}