{"type": "func", "start": 4297051840, "end": 4297052031, "name": "EditLevelLayer::confirmMoveToTop", "pseudocode": "// \n// EditLevelLayer::confirmMoveToTop from 0x1001fcec0 to 0x1001fcf7f (191 bytes)\n// \n// 1 xrefs:\n// > EditLevelLayer::init @ 0x1001fb5d1\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\nvoid __fastcall EditLevelLayer::confirmMoveToTop(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  __p = operator new(0x38u);\n  v3[0] = 57;\n  v3[1] = 54;\n  strcpy((char *)__p, \"Move this level to the top of the created levels list?\");\n  v2 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, \"Move to Top\", v3, \"NO\", \"YES\", 300.0);\n  if ( (v3[0] & 1) != 0 )\n    operator delete(__p);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 8);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);\n}", "assembly": "; \n; EditLevelLayer::confirmMoveToTop from 0x1001fcec0 to 0x1001fcf7f (191 bytes)\n; \n; 1 xrefs:\n; > EditLevelLayer::init @ 0x1001fb5d1\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\npush    rbp                                                            ; +0x0, 0x1001fcec0\nmov     rbp, rsp                                                       ; +0x1, 0x1001fcec1\npush    rbx                                                            ; +0x4, 0x1001fcec4\nsub     rsp, 18h                                                       ; +0x5, 0x1001fcec5\nmov     rbx, rdi                                                       ; +0x9, 0x1001fcec9\nadd     rbx, 1A0h                                                      ; +0xc, 0x1001fcecc\nmov     edi, 38h ; '8'; __sz                                           ; +0x13, 0x1001fced3\ncall    __Znwm; operator new(ulong)                                    ; +0x18, 0x1001fced8\nmov     [rbp+__p], rax                                                 ; +0x1d, 0x1001fcedd\nmov     [rbp+var_20], 39h ; '9'                                        ; +0x21, 0x1001fcee1\nmov     [rbp+var_18], 36h ; '6'                                        ; +0x29, 0x1001fcee9\nmov     rcx, 3F7473696C20736Ch                                         ; +0x31, 0x1001fcef1\nmov     [rax+2Eh], rcx                                                 ; +0x3b, 0x1001fcefb\nmovups  xmm0, xmmword ptr cs:aMoveThisLevelT+20h; \"e created levels list?\" ; +0x3f, 0x1001fceff\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x46, 0x1001fcf06\nmovups  xmm0, xmmword ptr cs:aMoveThisLevelT+10h; \"to the top of the created levels list?\" ; +0x4a, 0x1001fcf0a\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x51, 0x1001fcf11\nmovups  xmm0, xmmword ptr cs:aMoveThisLevelT; \"Move this level to the top of the creat\"... ; +0x55, 0x1001fcf15\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5c, 0x1001fcf1c\nmov     byte ptr [rax+36h], 0                                          ; +0x5f, 0x1001fcf1f\nlea     rsi, aMoveToTop; \"Move to Top\"                                 ; +0x63, 0x1001fcf23\nlea     rcx, aNo; \"NO\"                                                 ; +0x6a, 0x1001fcf2a\nlea     r8, aYes_0; \"YES\"                                              ; +0x71, 0x1001fcf31\nlea     rdx, [rbp+var_20]                                              ; +0x78, 0x1001fcf38\nmovss   xmm0, cs:dword_1008152B4                                       ; +0x7c, 0x1001fcf3c\nmov     rdi, rbx                                                       ; +0x84, 0x1001fcf44\ncall    FLAlertLayer__create_1                                         ; +0x87, 0x1001fcf47\nmov     rbx, rax                                                       ; +0x8c, 0x1001fcf4c\ntest    byte ptr [rbp+var_20], 1                                       ; +0x8f, 0x1001fcf4f\njz      short loc_1001FCF5E                                            ; +0x93, 0x1001fcf53\nmov     rdi, [rbp+__p]; __p                                            ; +0x95, 0x1001fcf55\ncall    __ZdlPv; operator delete(void *)                               ; +0x99, 0x1001fcf59\nmov     rax, [rbx]                                                     ; +0x9e, 0x1001fcf5e\nmov     rdi, rbx                                                       ; +0xa1, 0x1001fcf61\nmov     esi, 8                                                         ; +0xa4, 0x1001fcf64\ncall    qword ptr [rax+48h]                                            ; +0xa9, 0x1001fcf69\nmov     rax, [rbx]                                                     ; +0xac, 0x1001fcf6c\nmov     rdi, rbx                                                       ; +0xaf, 0x1001fcf6f\ncall    qword ptr [rax+508h]                                           ; +0xb2, 0x1001fcf72\nadd     rsp, 18h                                                       ; +0xb8, 0x1001fcf78\npop     rbx                                                            ; +0xbc, 0x1001fcf7c\npop     rbp                                                            ; +0xbd, 0x1001fcf7d\nretn                                                                   ; +0xbe, 0x1001fcf7e", "xrefs": ["EditLevelLayer::init @ 0x1001fb5d1"], "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"}