{"type": "func", "start": 5373046416, "end": 5373047360, "name": "LevelInfoLayer::confirmOwnerDelete", "pseudocode": "// \n// LevelInfoLayer::confirmOwnerDelete from 0x140422e90 to 0x140423240 (944 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041d8d2\n// > <???> @ 0x1409268c4\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\n// Hidden C++ exception states: #wind=4\nvoid __fastcall LevelInfoLayer::confirmOwnerDelete(__int64 a1)\n{\n  _DWORD *v2; // r8\n  __int64 v3; // rax\n  __int64 v4; // rax\n  char v5; // bl\n  char *v6; // rax\n  char *v7; // rdi\n  _QWORD *v8; // rax\n  __int64 v9; // rax\n  __int64 *v10; // rbx\n  void *v11; // [rsp+50h] [rbp-88h]\n  void *v12; // [rsp+50h] [rbp-88h]\n  __int128 v13; // [rsp+58h] [rbp-80h] BYREF\n  __int64 v14; // [rsp+68h] [rbp-70h]\n  __int64 v15; // [rsp+70h] [rbp-68h]\n  _BYTE v16[32]; // [rsp+80h] [rbp-58h] BYREF\n  __int128 v17; // [rsp+A0h] [rbp-38h] BYREF\n  __int64 v18; // [rsp+B0h] [rbp-28h]\n  __int64 v19; // [rsp+B8h] [rbp-20h]\n\n  if ( *(_BYTE *)(a1 + 488) )\n    return;\n  v2 = (_DWORD *)qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v11 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = (_DWORD *)qword_14090BFD0;\n  }\n  if ( v2[173] - v2[174] != *(_DWORD *)(*(_QWORD *)(a1 + 504) + 648LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 652LL) )\n  {\n    v3 = GJAccountManager::sharedState();\n    if ( *(_DWORD *)(v3 + 360) == *(_DWORD *)(v3 + 364)\n      || (v4 = GJAccountManager::sharedState(),\n          *(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364) != *(_DWORD *)(*(_QWORD *)(a1 + 504) + 660LL)\n                                                         - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 664LL)) )\n    {\n      v5 = 0;\n      v2 = (_DWORD *)qword_14090BFD0;\n      goto LABEL_9;\n    }\n    v2 = (_DWORD *)qword_14090BFD0;\n  }\n  v5 = 1;\nLABEL_9:\n  if ( !v2 )\n  {\n    v12 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v12);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = (_DWORD *)qword_14090BFD0;\n  }\n  if ( v5 || v2[266] - v2[267] <= 1 )\n  {\n    v17 = 0;\n    v7 = (char *)sub_14003D460(0x90u);\n    *(_QWORD *)&v17 = v7;\n    v18 = 129;\n    v19 = 143;\n    strcpy(\n      v7,\n      \"Do you want to <cr>delete</c> this <cg>level</c> from the <cl>server</c>?\\n\"\n      \"<cy>(Your level will no longer be available online)</c>\");\n    v13 = 0;\n    v8 = sub_14003D460(0x90u);\n    *(_QWORD *)&v13 = v8;\n    v14 = 129;\n    v15 = 143;\n    *(_OWORD *)v8 = *(_OWORD *)v7;\n    *((_OWORD *)v8 + 1) = *((_OWORD *)v7 + 1);\n    *((_OWORD *)v8 + 2) = *((_OWORD *)v7 + 2);\n    *((_OWORD *)v8 + 3) = *((_OWORD *)v7 + 3);\n    *((_OWORD *)v8 + 4) = *((_OWORD *)v7 + 4);\n    *((_OWORD *)v8 + 5) = *((_OWORD *)v7 + 5);\n    *((_OWORD *)v8 + 6) = *((_OWORD *)v7 + 6);\n    *((_OWORD *)v8 + 7) = *((_OWORD *)v7 + 7);\n    *((_WORD *)v8 + 64) = *((_WORD *)v7 + 64);\n    v9 = sub_14003F4F0((__int64)v16, (__int64)&v13);\n    v10 = (__int64 *)FLAlertLayer::create(\n                       (int)a1 + 440,\n                       (int)\"Remove Server Level\",\n                       v9,\n                       (__int64)\"Cancel\",\n                       (__int64)\"DELETE\",\n                       1136525312,\n                       0,\n                       0,\n                       1065353216);\n    sub_14003D310((__int64)&v13);\n    ButtonSprite::updateBGImage(v10[77], \"GJ_button_06.png\");\n    (*(void (__fastcall **)(__int64 *, __int64))(*v10 + 64))(v10, 5);\n    (*(void (__fastcall **)(__int64 *))(*v10 + 1064))(v10);\n    j_j_free(v7);\n  }\n  else\n  {\n    sub_14003F4F0((__int64)&v17, *(_QWORD *)(a1 + 504) + 344LL);\n    v6 = AdminActionConfirmPopup::createContentDelete((int)a1 + 480, 5, (int)\"Remove Server Level\", (size_t *)&v17, 1u);\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1064LL))(v6);\n    sub_14003D310((__int64)&v17);\n  }\n}", "assembly": "; \n; LevelInfoLayer::confirmOwnerDelete from 0x140422e90 to 0x140423240 (944 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041d8d2\n; > <???> @ 0x1409268c4\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; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140422e90\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140422e95\npush    rdi                                                            ; +0xa, 0x140422e9a\nsub     rsp, 0D0h                                                      ; +0xb, 0x140422e9b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140422ea2\nxor     rax, rsp                                                       ; +0x19, 0x140422ea9\nmov     [rsp+0D8h+var_18], rax                                         ; +0x1c, 0x140422eac\nmov     rsi, rcx                                                       ; +0x24, 0x140422eb4\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x27, 0x140422eb7\njnz     loc_14042321B                                                  ; +0x2e, 0x140422ebe\nmov     r8, cs:qword_14090BFD0                                         ; +0x34, 0x140422ec4\ntest    r8, r8                                                         ; +0x3b, 0x140422ecb\njnz     short loc_140422F02                                            ; +0x3e, 0x140422ece\nmov     ecx, 6E8h; Size                                                ; +0x40, 0x140422ed0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x45, 0x140422ed5\nmov     [rsp+0D8h+var_88], rax                                         ; +0x4a, 0x140422eda\nmov     rcx, rax                                                       ; +0x4f, 0x140422edf\ncall    GameManager__GameManager                                       ; +0x52, 0x140422ee2\nnop                                                                    ; +0x57, 0x140422ee7\nmov     cs:qword_14090BFD0, rax                                        ; +0x58, 0x140422ee8\nmov     rcx, [rax]                                                     ; +0x5f, 0x140422eef\nmov     rdx, [rcx+48h]                                                 ; +0x62, 0x140422ef2\nmov     rcx, rax                                                       ; +0x66, 0x140422ef6\ncall    rdx                                                            ; +0x69, 0x140422ef9\nmov     r8, cs:qword_14090BFD0                                         ; +0x6b, 0x140422efb\nmov     rcx, [rsi+1F8h]                                                ; +0x72, 0x140422f02\nmov     edx, [r8+2B4h]                                                 ; +0x79, 0x140422f09\nsub     edx, [r8+2B8h]                                                 ; +0x80, 0x140422f10\nmov     eax, [rcx+288h]                                                ; +0x87, 0x140422f17\nsub     eax, [rcx+28Ch]                                                ; +0x8d, 0x140422f1d\ncmp     edx, eax                                                       ; +0x93, 0x140422f23\njz      short loc_140422F71                                            ; +0x95, 0x140422f25\ncall    GJAccountManager__sharedState                                  ; +0x97, 0x140422f27\nmov     ecx, [rax+16Ch]                                                ; +0x9c, 0x140422f2c\ncmp     [rax+168h], ecx                                                ; +0xa2, 0x140422f32\njz      loc_140423027                                                  ; +0xa8, 0x140422f38\ncall    GJAccountManager__sharedState                                  ; +0xae, 0x140422f3e\nmov     rcx, [rsi+1F8h]                                                ; +0xb3, 0x140422f43\nmov     edx, [rax+168h]                                                ; +0xba, 0x140422f4a\nsub     edx, [rax+16Ch]                                                ; +0xc0, 0x140422f50\nmov     eax, [rcx+294h]                                                ; +0xc6, 0x140422f56\nsub     eax, [rcx+298h]                                                ; +0xcc, 0x140422f5c\ncmp     edx, eax                                                       ; +0xd2, 0x140422f62\njnz     loc_140423027                                                  ; +0xd4, 0x140422f64\nmov     r8, cs:qword_14090BFD0                                         ; +0xda, 0x140422f6a\nmov     bl, 1                                                          ; +0xe1, 0x140422f71\ntest    r8, r8                                                         ; +0xe3, 0x140422f73\njnz     short loc_140422FAA                                            ; +0xe6, 0x140422f76\nmov     ecx, 6E8h; Size                                                ; +0xe8, 0x140422f78\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xed, 0x140422f7d\nmov     [rsp+0D8h+var_88], rax                                         ; +0xf2, 0x140422f82\nmov     rcx, rax                                                       ; +0xf7, 0x140422f87\ncall    GameManager__GameManager                                       ; +0xfa, 0x140422f8a\nnop                                                                    ; +0xff, 0x140422f8f\nmov     cs:qword_14090BFD0, rax                                        ; +0x100, 0x140422f90\nmov     rcx, [rax]                                                     ; +0x107, 0x140422f97\nmov     rdx, [rcx+48h]                                                 ; +0x10a, 0x140422f9a\nmov     rcx, rax                                                       ; +0x10e, 0x140422f9e\ncall    rdx                                                            ; +0x111, 0x140422fa1\nmov     r8, cs:qword_14090BFD0                                         ; +0x113, 0x140422fa3\nmov     eax, [r8+428h]                                                 ; +0x11a, 0x140422faa\nsub     eax, [r8+42Ch]                                                 ; +0x121, 0x140422fb1\ntest    bl, bl                                                         ; +0x128, 0x140422fb8\njnz     short loc_140423035                                            ; +0x12a, 0x140422fba\ncmp     eax, 1                                                         ; +0x12c, 0x140422fbc\njle     short loc_140423035                                            ; +0x12f, 0x140422fbf\nmov     rdx, [rsi+1F8h]                                                ; +0x131, 0x140422fc1\nadd     rdx, 158h                                                      ; +0x138, 0x140422fc8\nlea     rcx, [rsp+0D8h+var_38]                                         ; +0x13f, 0x140422fcf\ncall    sub_14003F4F0                                                  ; +0x147, 0x140422fd7\nnop                                                                    ; +0x14c, 0x140422fdc\nmov     dword ptr [rsp+0D8h+var_B8], 1                                 ; +0x14d, 0x140422fdd\nlea     r9, [rsp+0D8h+var_38]                                          ; +0x155, 0x140422fe5\nlea     r8, aRemoveServerLe; \"Remove Server Level\"                     ; +0x15d, 0x140422fed\nmov     edx, 5                                                         ; +0x164, 0x140422ff4\nlea     rcx, [rsi+1E0h]                                                ; +0x169, 0x140422ff9\ncall    AdminActionConfirmPopup__createContentDelete                   ; +0x170, 0x140423000\nmov     rcx, [rax]                                                     ; +0x175, 0x140423005\nmov     rdx, [rcx+428h]                                                ; +0x178, 0x140423008\nmov     rcx, rax                                                       ; +0x17f, 0x14042300f\ncall    rdx                                                            ; +0x182, 0x140423012\nnop                                                                    ; +0x184, 0x140423014\nlea     rcx, [rsp+0D8h+var_38]                                         ; +0x185, 0x140423015\ncall    sub_14003D310                                                  ; +0x18d, 0x14042301d\njmp     loc_14042321B                                                  ; +0x192, 0x140423022\nxor     bl, bl                                                         ; +0x197, 0x140423027\nmov     r8, cs:qword_14090BFD0                                         ; +0x199, 0x140423029\njmp     loc_140422F73                                                  ; +0x1a0, 0x140423030\nxorps   xmm0, xmm0                                                     ; +0x1a5, 0x140423035\nmovups  [rsp+0D8h+var_38], xmm0                                        ; +0x1a8, 0x140423038\nmov     ecx, 90h                                                       ; +0x1b0, 0x140423040\ncall    sub_14003D460                                                  ; +0x1b5, 0x140423045\nmov     rdi, rax                                                       ; +0x1ba, 0x14042304a\nmov     qword ptr [rsp+0D8h+var_38], rax                               ; +0x1bd, 0x14042304d\nmov     [rsp+0D8h+var_28], 81h                                         ; +0x1c5, 0x140423055\nmov     [rsp+0D8h+var_20], 8Fh                                         ; +0x1d1, 0x140423061\nmovaps  xmm0, cs:xmmword_14078C100                                     ; +0x1dd, 0x14042306d\nmovups  xmmword ptr [rax], xmm0                                        ; +0x1e4, 0x140423074\nmovaps  xmm1, cs:xmmword_14078C110                                     ; +0x1e7, 0x140423077\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x1ee, 0x14042307e\nmovaps  xmm0, cs:xmmword_14078C120                                     ; +0x1f2, 0x140423082\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x1f9, 0x140423089\nmovaps  xmm1, cs:xmmword_14078C130                                     ; +0x1fd, 0x14042308d\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x204, 0x140423094\nmovaps  xmm0, cs:xmmword_14078C140                                     ; +0x208, 0x140423098\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x20f, 0x14042309f\nmovaps  xmm1, cs:xmmword_14078C150                                     ; +0x213, 0x1404230a3\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x21a, 0x1404230aa\nmovaps  xmm0, cs:xmmword_14078C160                                     ; +0x21e, 0x1404230ae\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x225, 0x1404230b5\nmovaps  xmm1, cs:xmmword_14078C170                                     ; +0x229, 0x1404230b9\nmovups  xmmword ptr [rax+70h], xmm1                                    ; +0x230, 0x1404230c0\nmovzx   eax, cs:byte_14078C180                                         ; +0x234, 0x1404230c4\nmov     [rdi+80h], al                                                  ; +0x23b, 0x1404230cb\nmov     byte ptr [rdi+81h], 0                                          ; +0x241, 0x1404230d1\nxorps   xmm0, xmm0                                                     ; +0x248, 0x1404230d8\nmovups  [rsp+0D8h+var_80], xmm0                                        ; +0x24b, 0x1404230db\nmov     [rsp+0D8h+var_70], 0                                           ; +0x250, 0x1404230e0\nmov     [rsp+0D8h+var_68], 0                                           ; +0x259, 0x1404230e9\nmov     ecx, 90h                                                       ; +0x262, 0x1404230f2\ncall    sub_14003D460                                                  ; +0x267, 0x1404230f7\nmov     rcx, rax                                                       ; +0x26c, 0x1404230fc\nmov     qword ptr [rsp+0D8h+var_80], rax                               ; +0x26f, 0x1404230ff\nmov     [rsp+0D8h+var_70], 81h                                         ; +0x274, 0x140423104\nmov     [rsp+0D8h+var_68], 8Fh                                         ; +0x27d, 0x14042310d\nmovups  xmm0, xmmword ptr [rdi]                                        ; +0x286, 0x140423116\nmovups  xmmword ptr [rax], xmm0                                        ; +0x289, 0x140423119\nmovups  xmm1, xmmword ptr [rdi+10h]                                    ; +0x28c, 0x14042311c\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x290, 0x140423120\nmovups  xmm0, xmmword ptr [rdi+20h]                                    ; +0x294, 0x140423124\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x298, 0x140423128\nmovups  xmm1, xmmword ptr [rdi+30h]                                    ; +0x29c, 0x14042312c\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x2a0, 0x140423130\nmovups  xmm0, xmmword ptr [rdi+40h]                                    ; +0x2a4, 0x140423134\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x2a8, 0x140423138\nmovups  xmm1, xmmword ptr [rdi+50h]                                    ; +0x2ac, 0x14042313c\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x2b0, 0x140423140\nmovups  xmm0, xmmword ptr [rdi+60h]                                    ; +0x2b4, 0x140423144\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x2b8, 0x140423148\nmovups  xmm1, xmmword ptr [rdi+70h]                                    ; +0x2bc, 0x14042314c\nmovups  xmmword ptr [rax+70h], xmm1                                    ; +0x2c0, 0x140423150\nmovzx   eax, word ptr [rdi+80h]                                        ; +0x2c4, 0x140423154\nmov     [rcx+80h], ax                                                  ; +0x2cb, 0x14042315b\nlea     rax, [rsp+0D8h+var_80]                                         ; +0x2d2, 0x140423162\nmov     [rsp+0D8h+var_88], rax                                         ; +0x2d7, 0x140423167\nlea     rdx, [rsp+0D8h+var_80]                                         ; +0x2dc, 0x14042316c\nlea     rcx, [rsp+0D8h+var_58]                                         ; +0x2e1, 0x140423171\ncall    sub_14003F4F0                                                  ; +0x2e9, 0x140423179\nmovss   xmm0, cs:flt_140835080                                         ; +0x2ee, 0x14042317e\nmovss   [rsp+0D8h+var_98], xmm0                                        ; +0x2f6, 0x140423186\nxorps   xmm1, xmm1                                                     ; +0x2fc, 0x14042318c\nmovss   [rsp+0D8h+var_A0], xmm1                                        ; +0x2ff, 0x14042318f\nmov     [rsp+0D8h+var_A8], 0                                           ; +0x305, 0x140423195\nmovss   xmm0, cs:dword_140835A04                                       ; +0x30a, 0x14042319a\nmovss   [rsp+0D8h+var_B0], xmm0                                        ; +0x312, 0x1404231a2\nlea     rcx, aDelete; \"DELETE\"                                         ; +0x318, 0x1404231a8\nmov     [rsp+0D8h+var_B8], rcx                                         ; +0x31f, 0x1404231af\nlea     r9, aCancel; \"Cancel\"                                          ; +0x324, 0x1404231b4\nmov     r8, rax                                                        ; +0x32b, 0x1404231bb\nlea     rdx, aRemoveServerLe; \"Remove Server Level\"                    ; +0x32e, 0x1404231be\nlea     rcx, [rsi+1B8h]                                                ; +0x335, 0x1404231c5\ncall    FLAlertLayer__create                                           ; +0x33c, 0x1404231cc\nmov     rbx, rax                                                       ; +0x341, 0x1404231d1\nlea     rcx, [rsp+0D8h+var_80]                                         ; +0x344, 0x1404231d4\ncall    sub_14003D310                                                  ; +0x349, 0x1404231d9\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x34e, 0x1404231de\nmov     rcx, [rbx+268h]                                                ; +0x355, 0x1404231e5\ncall    ButtonSprite__updateBGImage                                    ; +0x35c, 0x1404231ec\nmov     r8, [rbx]                                                      ; +0x361, 0x1404231f1\nmov     edx, 5                                                         ; +0x364, 0x1404231f4\nmov     rcx, rbx                                                       ; +0x369, 0x1404231f9\ncall    qword ptr [r8+40h]                                             ; +0x36c, 0x1404231fc\nmov     r8, [rbx]                                                      ; +0x370, 0x140423200\nmov     rcx, rbx                                                       ; +0x373, 0x140423203\ncall    qword ptr [r8+428h]                                            ; +0x376, 0x140423206\nnop                                                                    ; +0x37d, 0x14042320d\nmov     edx, 90h                                                       ; +0x37e, 0x14042320e\nmov     rcx, rdi; Block                                                ; +0x383, 0x140423213\ncall    j_j_free                                                       ; +0x386, 0x140423216\nmov     rcx, [rsp+0D8h+var_18]                                         ; +0x38b, 0x14042321b\nxor     rcx, rsp; StackCookie                                          ; +0x393, 0x140423223\ncall    __security_check_cookie                                        ; +0x396, 0x140423226\nlea     r11, [rsp+0D8h+var_8]                                          ; +0x39b, 0x14042322b\nmov     rbx, [r11+18h]                                                 ; +0x3a3, 0x140423233\nmov     rsi, [r11+20h]                                                 ; +0x3a7, 0x140423237\nmov     rsp, r11                                                       ; +0x3ab, 0x14042323b\npop     rdi                                                            ; +0x3ae, 0x14042323e\nretn                                                                   ; +0x3af, 0x14042323f", "xrefs": ["LevelInfoLayer::init @ 0x14041d8d2", "<???> @ 0x1409268c4"], "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"}