{"type": "func", "start": 5371976944, "end": 5371977190, "name": "LevelPage::playStep3", "pseudocode": "// \n// LevelPage::playStep3 from 0x14031dcf0 to 0x14031dde6 (246 bytes)\n// \n// 2 xrefs:\n// > LevelPage::playStep2 @ 0x14031dca5\n// > <???> @ 0x1406d4b5c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid LevelPage::playStep3(LevelPage *a1)\n{\n  __int64 v2; // rax\n  unsigned int v3; // ebx\n  LocalLevelManager *v4; // rax\n  __int64 MainLevelString; // rax\n  __int64 v6; // rbx\n  std::string *p_m_levelString; // rcx\n  void *v8; // rdx\n  struct cocos2d::CCScene *v9; // rax\n  struct cocos2d::CCTransitionFade *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  _BYTE v13[40]; // [rsp+20h] [rbp-28h] BYREF\n  void *v14; // [rsp+50h] [rbp+8h]\n\n  v2 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v14 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v14);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = qword_1406C2ED8;\n  }\n  *(_DWORD *)(v2 + 700) = 9;\n  v3 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed;\n  v4 = LocalLevelManager::sharedState();\n  MainLevelString = LocalLevelManager::getMainLevelString(v4, v13, v3);\n  v6 = MainLevelString;\n  p_m_levelString = &a1->m_level->m_levelString;\n  if ( p_m_levelString != (std::string *)MainLevelString )\n  {\n    v8 = (void *)MainLevelString;\n    if ( *(_QWORD *)(MainLevelString + 24) > 0xFu )\n      v8 = *(void **)MainLevelString;\n    sub_14003CCE0((void **)p_m_levelString, v8, *(_QWORD *)(MainLevelString + 16));\n  }\n  sub_14003A830(v6);\n  v9 = PlayLayer::scene(a1->m_level, 0, 0);\n  v10 = cocos2d::CCTransitionFade::create(0.5, v9);\n  v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n  cocos2d::CCDirector::replaceScene(v12, v10);\n}", "assembly": "; \n; LevelPage::playStep3 from 0x14031dcf0 to 0x14031dde6 (246 bytes)\n; \n; 2 xrefs:\n; > LevelPage::playStep2 @ 0x14031dca5\n; > <???> @ 0x1406d4b5c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14031dcf0\npush    rdi                                                            ; +0x5, 0x14031dcf5\nsub     rsp, 40h                                                       ; +0x6, 0x14031dcf6\nmov     rdi, rcx                                                       ; +0xa, 0x14031dcfa\nmov     rax, cs:qword_1406C2ED8                                        ; +0xd, 0x14031dcfd\ntest    rax, rax                                                       ; +0x14, 0x14031dd04\njnz     short loc_14031DD38                                            ; +0x17, 0x14031dd07\nmov     ecx, 668h; Size                                                ; +0x19, 0x14031dd09\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x14031dd0e\nmov     [rsp+48h+arg_0], rax                                           ; +0x23, 0x14031dd13\nmov     rcx, rax                                                       ; +0x28, 0x14031dd18\ncall    sub_14017AB00                                                  ; +0x2b, 0x14031dd1b\nnop                                                                    ; +0x30, 0x14031dd20\nmov     cs:qword_1406C2ED8, rax                                        ; +0x31, 0x14031dd21\nmov     rdx, [rax]                                                     ; +0x38, 0x14031dd28\nmov     rcx, rax                                                       ; +0x3b, 0x14031dd2b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x14031dd2e\nmov     rax, cs:qword_1406C2ED8                                        ; +0x41, 0x14031dd31\nmov     dword ptr [rax+2BCh], 9                                        ; +0x48, 0x14031dd38\nmov     rax, [rdi+1A8h]                                                ; +0x52, 0x14031dd42\nmov     ebx, [rax+148h]                                                ; +0x59, 0x14031dd49\nsub     ebx, [rax+14Ch]                                                ; +0x5f, 0x14031dd4f\ncall    LocalLevelManager__sharedState                                 ; +0x65, 0x14031dd55\nmov     rcx, rax                                                       ; +0x6a, 0x14031dd5a\nmov     r8d, ebx                                                       ; +0x6d, 0x14031dd5d\nlea     rdx, [rsp+48h+var_28]                                          ; +0x70, 0x14031dd60\ncall    LocalLevelManager__getMainLevelString                          ; +0x75, 0x14031dd65\nmov     rbx, rax                                                       ; +0x7a, 0x14031dd6a\nmov     [rsp+48h+arg_0], rax                                           ; +0x7d, 0x14031dd6d\nmov     rcx, [rdi+1A8h]                                                ; +0x82, 0x14031dd72\nadd     rcx, 198h; void *                                              ; +0x89, 0x14031dd79\ncmp     rcx, rax                                                       ; +0x90, 0x14031dd80\njz      short loc_14031DD9C                                            ; +0x93, 0x14031dd83\nmov     rdx, rax                                                       ; +0x95, 0x14031dd85\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x98, 0x14031dd88\njbe     short loc_14031DD92                                            ; +0x9d, 0x14031dd8d\nmov     rdx, [rax]; Src                                                ; +0x9f, 0x14031dd8f\nmov     r8, [rax+10h]; Size                                            ; +0xa2, 0x14031dd92\ncall    sub_14003CCE0                                                  ; +0xa6, 0x14031dd96\nnop                                                                    ; +0xab, 0x14031dd9b\nmov     rcx, rbx                                                       ; +0xac, 0x14031dd9c\ncall    sub_14003A830                                                  ; +0xaf, 0x14031dd9f\nxor     r8d, r8d                                                       ; +0xb4, 0x14031dda4\nxor     edx, edx                                                       ; +0xb7, 0x14031dda7\nmov     rcx, [rdi+1A8h]                                                ; +0xb9, 0x14031dda9\ncall    PlayLayer__scene                                               ; +0xc0, 0x14031ddb0\nmov     rdx, rax                                                       ; +0xc5, 0x14031ddb5\nmovss   xmm0, cs:dword_140622B08                                       ; +0xc8, 0x14031ddb8\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xd0, 0x14031ddc0\nmov     rbx, rax                                                       ; +0xd6, 0x14031ddc6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd9, 0x14031ddc9\nmov     rcx, rax                                                       ; +0xdf, 0x14031ddcf\nmov     rdx, rbx                                                       ; +0xe2, 0x14031ddd2\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xe5, 0x14031ddd5\nadd     rsp, 40h                                                       ; +0xea, 0x14031ddda\npop     rdi                                                            ; +0xee, 0x14031ddde\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xef, 0x14031dddf", "xrefs": ["LevelPage::playStep2 @ 0x14031dca5", "<???> @ 0x1406d4b5c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}