{"type": "func", "start": 5373194720, "end": 5373194966, "name": "LevelPage::playStep3", "pseudocode": "// \n// LevelPage::playStep3 from 0x1404471e0 to 0x1404472d6 (246 bytes)\n// \n// 2 xrefs:\n// > LevelPage::playStep2 @ 0x140447198\n// > <???> @ 0x14092723c\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:32:23 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nbool __fastcall LevelPage::playStep3(__int64 a1)\n{\n  __int64 v2; // rax\n  unsigned int v3; // ebx\n  __int64 v4; // rax\n  __int64 MainLevelString; // rax\n  __int64 v6; // rbx\n  void **v7; // rcx\n  void *v8; // rdx\n  struct cocos2d::CCScene *v9; // rax\n  struct cocos2d::CCScene *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  _BYTE v14[40]; // [rsp+20h] [rbp-28h] BYREF\n  void *v15; // [rsp+50h] [rbp+8h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v15 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  *(_DWORD *)(v2 + 740) = 9;\n  v3 = *(_DWORD *)(*(_QWORD *)(a1 + 424) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 424) + 332LL);\n  v4 = LocalLevelManager::sharedState(a1);\n  MainLevelString = LocalLevelManager::getMainLevelString(v4, v14, v3);\n  v6 = MainLevelString;\n  v7 = (void **)(*(_QWORD *)(a1 + 424) + 408LL);\n  if ( v7 != (void **)MainLevelString )\n  {\n    v8 = (void *)MainLevelString;\n    if ( *(_QWORD *)(MainLevelString + 24) > 0xFu )\n      v8 = *(void **)MainLevelString;\n    sub_1400405A0(v7, v8, *(_QWORD *)(MainLevelString + 16));\n  }\n  sub_14003D310(v6);\n  v9 = (struct cocos2d::CCScene *)PlayLayer::scene(*(_QWORD *)(a1 + 424), 0);\n  v10 = cocos2d::CCTransitionFade::create(0.5, v9);\n  v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n  return cocos2d::CCDirector::replaceScene(v12, v10);\n}", "assembly": "; \n; LevelPage::playStep3 from 0x1404471e0 to 0x1404472d6 (246 bytes)\n; \n; 2 xrefs:\n; > LevelPage::playStep2 @ 0x140447198\n; > <???> @ 0x14092723c\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:32:23 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1404471e0\npush    rdi                                                            ; +0x5, 0x1404471e5\nsub     rsp, 40h                                                       ; +0x6, 0x1404471e6\nmov     rdi, rcx                                                       ; +0xa, 0x1404471ea\nmov     rax, cs:qword_14090BFD0                                        ; +0xd, 0x1404471ed\ntest    rax, rax                                                       ; +0x14, 0x1404471f4\njnz     short loc_14044722B                                            ; +0x17, 0x1404471f7\nmov     ecx, 6E8h; Size                                                ; +0x19, 0x1404471f9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x1404471fe\nmov     [rsp+48h+arg_0], rax                                           ; +0x23, 0x140447203\nmov     rcx, rax                                                       ; +0x28, 0x140447208\ncall    GameManager__GameManager                                       ; +0x2b, 0x14044720b\nnop                                                                    ; +0x30, 0x140447210\nmov     cs:qword_14090BFD0, rax                                        ; +0x31, 0x140447211\nmov     rcx, [rax]                                                     ; +0x38, 0x140447218\nmov     rdx, [rcx+48h]                                                 ; +0x3b, 0x14044721b\nmov     rcx, rax                                                       ; +0x3f, 0x14044721f\ncall    rdx                                                            ; +0x42, 0x140447222\nmov     rax, cs:qword_14090BFD0                                        ; +0x44, 0x140447224\nmov     dword ptr [rax+2E4h], 9                                        ; +0x4b, 0x14044722b\nmov     rax, [rdi+1A8h]                                                ; +0x55, 0x140447235\nmov     ebx, [rax+148h]                                                ; +0x5c, 0x14044723c\nsub     ebx, [rax+14Ch]                                                ; +0x62, 0x140447242\ncall    LocalLevelManager__sharedState                                 ; +0x68, 0x140447248\nmov     rcx, rax                                                       ; +0x6d, 0x14044724d\nmov     r8d, ebx                                                       ; +0x70, 0x140447250\nlea     rdx, [rsp+48h+var_28]                                          ; +0x73, 0x140447253\ncall    LocalLevelManager__getMainLevelString                          ; +0x78, 0x140447258\nmov     rbx, rax                                                       ; +0x7d, 0x14044725d\nmov     [rsp+48h+arg_0], rax                                           ; +0x80, 0x140447260\nmov     rcx, [rdi+1A8h]                                                ; +0x85, 0x140447265\nadd     rcx, 198h; void *                                              ; +0x8c, 0x14044726c\ncmp     rcx, rax                                                       ; +0x93, 0x140447273\njz      short loc_14044728F                                            ; +0x96, 0x140447276\nmov     rdx, rax                                                       ; +0x98, 0x140447278\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x9b, 0x14044727b\njbe     short loc_140447285                                            ; +0xa0, 0x140447280\nmov     rdx, [rax]; Src                                                ; +0xa2, 0x140447282\nmov     r8, [rax+10h]; Size                                            ; +0xa5, 0x140447285\ncall    sub_1400405A0                                                  ; +0xa9, 0x140447289\nnop                                                                    ; +0xae, 0x14044728e\nmov     rcx, rbx                                                       ; +0xaf, 0x14044728f\ncall    sub_14003D310                                                  ; +0xb2, 0x140447292\nxor     edx, edx                                                       ; +0xb7, 0x140447297\nmov     rcx, [rdi+1A8h]                                                ; +0xb9, 0x140447299\ncall    PlayLayer__scene                                               ; +0xc0, 0x1404472a0\nmov     rdx, rax                                                       ; +0xc5, 0x1404472a5\nmovss   xmm0, cs:dword_140834F20                                       ; +0xc8, 0x1404472a8\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xd0, 0x1404472b0\nmov     rbx, rax                                                       ; +0xd6, 0x1404472b6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd9, 0x1404472b9\nmov     rcx, rax                                                       ; +0xdf, 0x1404472bf\nmov     rdx, rbx                                                       ; +0xe2, 0x1404472c2\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xe5, 0x1404472c5\nadd     rsp, 40h                                                       ; +0xea, 0x1404472ca\npop     rdi                                                            ; +0xee, 0x1404472ce\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xef, 0x1404472cf", "xrefs": ["LevelPage::playStep2 @ 0x140447198", "<???> @ 0x14092723c"], "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"}