{"type": "func", "start": 4297058416, "end": 4297058594, "name": "EditLevelLayer::uploadActionFailed", "pseudocode": "// \n// EditLevelLayer::uploadActionFailed from 0x1001fe870 to 0x1001fe922 (178 bytes)\n// \n// 2 xrefs:\n// > sub_1001FE940 @ 0x1001fe94c\n// > <???> @ 0x1008da820\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::uploadActionFailed(EditLevelLayer *a1, int a2, int a3)\n{\n  GJGameLevel *m_level; // rax\n  UploadActionPopup *m_descriptionPopup; // rbx\n  _QWORD v5[2]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\n\n  m_level = a1->m_level;\n  if ( m_level )\n  {\n    if ( m_level->m_levelID.random - m_level->m_levelID.seed == a2 )\n    {\n      m_descriptionPopup = a1->m_descriptionPopup;\n      if ( m_descriptionPopup )\n      {\n        __p = operator new(0x20u);\n        v5[0] = 33;\n        v5[1] = 31;\n        strcpy((char *)__p, \"Failed. Please try again later.\");\n        UploadActionPopup::showFailMessage(m_descriptionPopup, v5);\n        if ( (v5[0] & 1) != 0 )\n          operator delete(__p);\n        a1->m_descriptionPopup->m_delegate = nullptr;\n        a1->m_descriptionPopup = nullptr;\n      }\n    }\n  }\n}", "assembly": "; \n; EditLevelLayer::uploadActionFailed from 0x1001fe870 to 0x1001fe922 (178 bytes)\n; \n; 2 xrefs:\n; > sub_1001FE940 @ 0x1001fe94c\n; > <???> @ 0x1008da820\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, 0x1001fe870\nmov     rbp, rsp                                                       ; +0x1, 0x1001fe871\npush    r14                                                            ; +0x4, 0x1001fe874\npush    rbx                                                            ; +0x6, 0x1001fe876\nsub     rsp, 20h                                                       ; +0x7, 0x1001fe877\nmov     rax, [rdi+1C8h]                                                ; +0xb, 0x1001fe87b\ntest    rax, rax                                                       ; +0x12, 0x1001fe882\njz      loc_1001FE919                                                  ; +0x15, 0x1001fe885\nmov     ecx, [rax+148h]                                                ; +0x1b, 0x1001fe88b\nsub     ecx, [rax+14Ch]                                                ; +0x21, 0x1001fe891\ncmp     ecx, esi                                                       ; +0x27, 0x1001fe897\njnz     short loc_1001FE919                                            ; +0x29, 0x1001fe899\nmov     rbx, [rdi+200h]                                                ; +0x2b, 0x1001fe89b\ntest    rbx, rbx                                                       ; +0x32, 0x1001fe8a2\njz      short loc_1001FE919                                            ; +0x35, 0x1001fe8a5\nmov     r14, rdi                                                       ; +0x37, 0x1001fe8a7\nmov     edi, 20h ; ' '; __sz                                           ; +0x3a, 0x1001fe8aa\ncall    __Znwm; operator new(ulong)                                    ; +0x3f, 0x1001fe8af\nmov     [rbp+__p], rax                                                 ; +0x44, 0x1001fe8b4\nmov     [rbp+var_28], 21h ; '!'                                        ; +0x48, 0x1001fe8b8\nmov     [rbp+var_20], 1Fh                                              ; +0x50, 0x1001fe8c0\nmovups  xmm0, xmmword ptr cs:aFailedPleaseTr+0Fh; \"try again later.\"   ; +0x58, 0x1001fe8c8\nmovups  xmmword ptr [rax+0Fh], xmm0                                    ; +0x5f, 0x1001fe8cf\nmovups  xmm0, xmmword ptr cs:aFailedPleaseTr; \"Failed. Please try again later.\" ; +0x63, 0x1001fe8d3\nmovups  xmmword ptr [rax], xmm0                                        ; +0x6a, 0x1001fe8da\nmov     byte ptr [rax+1Fh], 0                                          ; +0x6d, 0x1001fe8dd\nlea     rsi, [rbp+var_28]                                              ; +0x71, 0x1001fe8e1\nmov     rdi, rbx                                                       ; +0x75, 0x1001fe8e5\ncall    UploadActionPopup__showFailMessage                             ; +0x78, 0x1001fe8e8\ntest    byte ptr [rbp+var_28], 1                                       ; +0x7d, 0x1001fe8ed\njz      short loc_1001FE8FC                                            ; +0x81, 0x1001fe8f1\nmov     rdi, [rbp+__p]; __p                                            ; +0x83, 0x1001fe8f3\ncall    __ZdlPv; operator delete(void *)                               ; +0x87, 0x1001fe8f7\nmov     rax, [r14+200h]                                                ; +0x8c, 0x1001fe8fc\nmov     qword ptr [rax+278h], 0                                        ; +0x93, 0x1001fe903\nmov     qword ptr [r14+200h], 0                                        ; +0x9e, 0x1001fe90e\nadd     rsp, 20h                                                       ; +0xa9, 0x1001fe919\npop     rbx                                                            ; +0xad, 0x1001fe91d\npop     r14                                                            ; +0xae, 0x1001fe91e\npop     rbp                                                            ; +0xb0, 0x1001fe920\nretn                                                                   ; +0xb1, 0x1001fe921", "xrefs": ["sub_1001FE940 @ 0x1001fe94c", "<???> @ 0x1008da820"], "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"}