{"type": "func", "start": 4296938608, "end": 4296938786, "name": "EditLevelLayer::uploadActionFailed", "pseudocode": "// \n// EditLevelLayer::uploadActionFailed from 0x1001e1470 to 0x1001e1522 (178 bytes)\n// \n// 2 xrefs:\n// > sub_1001E1540 @ 0x1001e154c\n// > <???> @ 0x100ade9a0\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 12:26:28 +0000\n// \n\n__int64 __fastcall EditLevelLayer::uploadActionFailed(__int64 a1, int a2)\n{\n  __int64 result; // rax\n  __int64 v3; // rbx\n  _QWORD v4[2]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\n\n  result = *(_QWORD *)(a1 + 472);\n  if ( result )\n  {\n    if ( *(_DWORD *)(result + 328) - *(_DWORD *)(result + 332) == a2 )\n    {\n      v3 = *(_QWORD *)(a1 + 528);\n      if ( v3 )\n      {\n        __p = operator new(0x20u);\n        v4[0] = 33;\n        v4[1] = 31;\n        strcpy((char *)__p, \"Failed. Please try again later.\");\n        UploadActionPopup::showFailMessage(v3, v4);\n        if ( (v4[0] & 1) != 0 )\n          operator delete(__p);\n        result = *(_QWORD *)(a1 + 528);\n        *(_QWORD *)(result + 664) = 0;\n        *(_QWORD *)(a1 + 528) = 0;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditLevelLayer::uploadActionFailed from 0x1001e1470 to 0x1001e1522 (178 bytes)\n; \n; 2 xrefs:\n; > sub_1001E1540 @ 0x1001e154c\n; > <???> @ 0x100ade9a0\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 12:26:28 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001e1470\nmov     rbp, rsp                                                       ; +0x1, 0x1001e1471\npush    r14                                                            ; +0x4, 0x1001e1474\npush    rbx                                                            ; +0x6, 0x1001e1476\nsub     rsp, 20h                                                       ; +0x7, 0x1001e1477\nmov     rax, [rdi+1D8h]                                                ; +0xb, 0x1001e147b\ntest    rax, rax                                                       ; +0x12, 0x1001e1482\njz      loc_1001E1519                                                  ; +0x15, 0x1001e1485\nmov     ecx, [rax+148h]                                                ; +0x1b, 0x1001e148b\nsub     ecx, [rax+14Ch]                                                ; +0x21, 0x1001e1491\ncmp     ecx, esi                                                       ; +0x27, 0x1001e1497\njnz     short loc_1001E1519                                            ; +0x29, 0x1001e1499\nmov     rbx, [rdi+210h]                                                ; +0x2b, 0x1001e149b\ntest    rbx, rbx                                                       ; +0x32, 0x1001e14a2\njz      short loc_1001E1519                                            ; +0x35, 0x1001e14a5\nmov     r14, rdi                                                       ; +0x37, 0x1001e14a7\nmov     edi, 20h ; ' '; __sz                                           ; +0x3a, 0x1001e14aa\ncall    __Znwm; operator new(ulong)                                    ; +0x3f, 0x1001e14af\nmov     [rbp+__p], rax                                                 ; +0x44, 0x1001e14b4\nmov     [rbp+var_28], 21h ; '!'                                        ; +0x48, 0x1001e14b8\nmov     [rbp+var_20], 1Fh                                              ; +0x50, 0x1001e14c0\nmovups  xmm0, xmmword ptr cs:aFailedPleaseTr+0Fh; \"try again later.\"   ; +0x58, 0x1001e14c8\nmovups  xmmword ptr [rax+0Fh], xmm0                                    ; +0x5f, 0x1001e14cf\nmovups  xmm0, xmmword ptr cs:aFailedPleaseTr; \"Failed. Please try again later.\" ; +0x63, 0x1001e14d3\nmovups  xmmword ptr [rax], xmm0                                        ; +0x6a, 0x1001e14da\nmov     byte ptr [rax+1Fh], 0                                          ; +0x6d, 0x1001e14dd\nlea     rsi, [rbp+var_28]                                              ; +0x71, 0x1001e14e1\nmov     rdi, rbx                                                       ; +0x75, 0x1001e14e5\ncall    UploadActionPopup__showFailMessage                             ; +0x78, 0x1001e14e8\ntest    byte ptr [rbp+var_28], 1                                       ; +0x7d, 0x1001e14ed\njz      short loc_1001E14FC                                            ; +0x81, 0x1001e14f1\nmov     rdi, [rbp+__p]; __p                                            ; +0x83, 0x1001e14f3\ncall    __ZdlPv; operator delete(void *)                               ; +0x87, 0x1001e14f7\nmov     rax, [r14+210h]                                                ; +0x8c, 0x1001e14fc\nmov     qword ptr [rax+298h], 0                                        ; +0x93, 0x1001e1503\nmov     qword ptr [r14+210h], 0                                        ; +0x9e, 0x1001e150e\nadd     rsp, 20h                                                       ; +0xa9, 0x1001e1519\npop     rbx                                                            ; +0xad, 0x1001e151d\npop     r14                                                            ; +0xae, 0x1001e151e\npop     rbp                                                            ; +0xb0, 0x1001e1520\nretn                                                                   ; +0xb1, 0x1001e1521", "xrefs": ["sub_1001E1540 @ 0x1001e154c", "<???> @ 0x100ade9a0"], "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"}