{"type": "func", "start": 5373052624, "end": 5373052936, "name": "LevelInfoLayer::confirmMoveToTop", "pseudocode": "// \n// LevelInfoLayer::confirmMoveToTop from 0x1404246d0 to 0x140424808 (312 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041df95\n// > <???> @ 0x14092696c\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:10 +0000\n// \n\nvoid __fastcall LevelInfoLayer::confirmMoveToTop(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v4; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v5; // [rsp+60h] [rbp-38h]\n  __int64 v6; // [rsp+68h] [rbp-30h]\n  _BYTE v7[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v1 = a1 + 440;\n    if ( !a1 )\n      v1 = 0;\n    v4 = 0;\n    *(_QWORD *)&v4 = sub_14003D460(0x30u);\n    v5 = 46;\n    v6 = 47;\n    strcpy((char *)v4, \"Move this level to the top of the levels list?\");\n    v2 = sub_14003F4F0((__int64)v7, (__int64)&v4);\n    v3 = FLAlertLayer::create(\n           v1,\n           (int)\"Move to Top\",\n           v2,\n           (__int64)&unk_14073A058,\n           (__int64)\"YES\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003D310((__int64)&v4);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 11);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n  }\n}", "assembly": "; \n; LevelInfoLayer::confirmMoveToTop from 0x1404246d0 to 0x140424808 (312 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041df95\n; > <???> @ 0x14092696c\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:10 +0000\n; \npush    rbx                                                            ; +0x0, 0x1404246d0\nsub     rsp, 90h                                                       ; +0x2, 0x1404246d2\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x9, 0x1404246d9\njnz     loc_1404247FF                                                  ; +0x10, 0x1404246e0\nlea     rbx, [rcx+1B8h]                                                ; +0x16, 0x1404246e6\nxor     eax, eax                                                       ; +0x1d, 0x1404246ed\ntest    rcx, rcx                                                       ; +0x1f, 0x1404246ef\ncmovz   rbx, rax                                                       ; +0x22, 0x1404246f2\nxorps   xmm0, xmm0                                                     ; +0x26, 0x1404246f6\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x29, 0x1404246f9\nmov     [rsp+98h+var_38], rax                                          ; +0x2e, 0x1404246fe\nmov     [rsp+98h+var_30], rax                                          ; +0x33, 0x140424703\nmov     ecx, 30h ; '0'                                                 ; +0x38, 0x140424708\ncall    sub_14003D460                                                  ; +0x3d, 0x14042470d\nmov     rdx, rax                                                       ; +0x42, 0x140424712\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x45, 0x140424715\nmov     [rsp+98h+var_38], 2Eh ; '.'                                    ; +0x4a, 0x14042471a\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x53, 0x140424723\nmovups  xmm0, cs:xmmword_14078C460                                     ; +0x5c, 0x14042472c\nmovups  xmmword ptr [rax], xmm0                                        ; +0x63, 0x140424733\nmovups  xmm1, cs:xmmword_14078C470                                     ; +0x66, 0x140424736\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6d, 0x14042473d\nmovsd   xmm0, cs:qword_14078C480                                       ; +0x71, 0x140424741\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x79, 0x140424749\nmov     ecx, cs:dword_14078C488                                        ; +0x7e, 0x14042474e\nmov     [rax+28h], ecx                                                 ; +0x84, 0x140424754\nmovzx   eax, cs:word_14078C48C                                         ; +0x87, 0x140424757\nmov     [rdx+2Ch], ax                                                  ; +0x8e, 0x14042475e\nmov     byte ptr [rdx+2Eh], 0                                          ; +0x92, 0x140424762\nlea     rax, [rsp+98h+var_48]                                          ; +0x96, 0x140424766\nmov     [rsp+98h+arg_0], rax                                           ; +0x9b, 0x14042476b\nlea     rdx, [rsp+98h+var_48]                                          ; +0xa3, 0x140424773\nlea     rcx, [rsp+98h+var_28]                                          ; +0xa8, 0x140424778\ncall    sub_14003F4F0                                                  ; +0xad, 0x14042477d\nmovss   xmm0, cs:flt_140835080                                         ; +0xb2, 0x140424782\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xba, 0x14042478a\nxorps   xmm1, xmm1                                                     ; +0xc0, 0x140424790\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xc3, 0x140424793\nmov     [rsp+98h+var_68], 0                                            ; +0xc9, 0x140424799\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xce, 0x14042479e\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xd6, 0x1404247a6\nlea     rcx, aYes_0; \"YES\"                                             ; +0xdc, 0x1404247ac\nmov     [rsp+98h+var_78], rcx                                          ; +0xe3, 0x1404247b3\nlea     r9, unk_14073A058                                              ; +0xe8, 0x1404247b8\nmov     r8, rax                                                        ; +0xef, 0x1404247bf\nlea     rdx, aMoveToTop; \"Move to Top\"                                 ; +0xf2, 0x1404247c2\nmov     rcx, rbx                                                       ; +0xf9, 0x1404247c9\ncall    FLAlertLayer__create                                           ; +0xfc, 0x1404247cc\nmov     rbx, rax                                                       ; +0x101, 0x1404247d1\nlea     rcx, [rsp+98h+var_48]                                          ; +0x104, 0x1404247d4\ncall    sub_14003D310                                                  ; +0x109, 0x1404247d9\nmov     rcx, [rbx]                                                     ; +0x10e, 0x1404247de\nmov     r8, [rcx+40h]                                                  ; +0x111, 0x1404247e1\nmov     edx, 0Bh                                                       ; +0x115, 0x1404247e5\nmov     rcx, rbx                                                       ; +0x11a, 0x1404247ea\ncall    r8                                                             ; +0x11d, 0x1404247ed\nmov     rcx, [rbx]                                                     ; +0x120, 0x1404247f0\nmov     rdx, [rcx+428h]                                                ; +0x123, 0x1404247f3\nmov     rcx, rbx                                                       ; +0x12a, 0x1404247fa\ncall    rdx                                                            ; +0x12d, 0x1404247fd\nadd     rsp, 90h                                                       ; +0x12f, 0x1404247ff\npop     rbx                                                            ; +0x136, 0x140424806\nretn                                                                   ; +0x137, 0x140424807", "xrefs": ["LevelInfoLayer::init @ 0x14041df95", "<???> @ 0x14092696c"], "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"}