{"type": "func", "start": 5369600800, "end": 5369601105, "name": "EditLevelLayer::uploadActionFinished", "pseudocode": "// \n// EditLevelLayer::uploadActionFinished from 0x1400d9b20 to 0x1400d9c51 (305 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140551710\n// > <???> @ 0x1406c88a4\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\n// Hidden C++ exception states: #wind=1\nvoid EditLevelLayer::uploadActionFinished(EditLevelLayer *a1, int a2, int a3)\n{\n  __int64 v4; // rcx\n  _QWORD *v5; // rdx\n  size_t v6; // r8\n  void *v7; // rcx\n  __int128 v8; // [rsp+20h] [rbp-58h] BYREF\n  __int64 v9; // [rsp+30h] [rbp-48h]\n  __int64 v10; // [rsp+38h] [rbp-40h]\n  void *Block[2]; // [rsp+48h] [rbp-30h]\n  __int64 v12; // [rsp+58h] [rbp-20h]\n  unsigned __int64 v13; // [rsp+60h] [rbp-18h]\n\n  v4 = *(_QWORD *)&a1->m_uIndexInArray;\n  if ( v4 )\n  {\n    if ( *(_DWORD *)(v4 + 328) - *(_DWORD *)(v4 + 332) == a2 )\n    {\n      if ( *(_QWORD *)&a1->m_obAnchorPointInPoints.y )\n      {\n        *(_OWORD *)Block = 0;\n        v5 = sub_14003AA10(0x20u);\n        Block[0] = v5;\n        v12 = 20;\n        v13 = 31;\n        strcpy((char *)v5, \"Description updated!\");\n        v8 = 0;\n        v9 = 0;\n        v10 = 0;\n        v6 = -1;\n        do\n          ++v6;\n        while ( *((_BYTE *)v5 + v6) );\n        sub_14003A930(&v8, v5, v6);\n        UploadActionPopup::showSuccessMessage(*(_QWORD *)&a1->m_obAnchorPointInPoints.y, &v8);\n        *(_QWORD *)(*(_QWORD *)&a1->m_obAnchorPointInPoints.y + 632LL) = 0;\n        *(_QWORD *)&a1->m_obAnchorPointInPoints.y = 0;\n        if ( v13 > 0xF )\n        {\n          v7 = Block[0];\n          if ( v13 + 1 >= 0x1000 )\n          {\n            v7 = *((void **)Block[0] - 1);\n            if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n              invalid_parameter_noinfo_noreturn();\n          }\n          j_j_free(v7);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; EditLevelLayer::uploadActionFinished from 0x1400d9b20 to 0x1400d9c51 (305 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140551710\n; > <???> @ 0x1406c88a4\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400d9b20\npush    rdi                                                            ; +0x5, 0x1400d9b25\nsub     rsp, 70h                                                       ; +0x6, 0x1400d9b26\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1400d9b2a\nxor     rax, rsp                                                       ; +0x11, 0x1400d9b31\nmov     [rsp+78h+var_10], rax                                          ; +0x14, 0x1400d9b34\nmov     rbx, rcx                                                       ; +0x19, 0x1400d9b39\nmov     rcx, [rcx+20h]                                                 ; +0x1c, 0x1400d9b3c\ntest    rcx, rcx                                                       ; +0x20, 0x1400d9b40\njz      loc_1400D9C36                                                  ; +0x23, 0x1400d9b43\nmov     eax, [rcx+148h]                                                ; +0x29, 0x1400d9b49\nsub     eax, [rcx+14Ch]                                                ; +0x2f, 0x1400d9b4f\ncmp     eax, edx                                                       ; +0x35, 0x1400d9b55\njnz     loc_1400D9C36                                                  ; +0x37, 0x1400d9b57\ncmp     qword ptr [rbx+60h], 0                                         ; +0x3d, 0x1400d9b5d\njz      loc_1400D9C36                                                  ; +0x42, 0x1400d9b62\nxorps   xmm0, xmm0                                                     ; +0x48, 0x1400d9b68\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x4b, 0x1400d9b6b\nmov     ecx, 20h ; ' '                                                 ; +0x50, 0x1400d9b70\ncall    sub_14003AA10                                                  ; +0x55, 0x1400d9b75\nmov     rdx, rax                                                       ; +0x5a, 0x1400d9b7a\nmov     [rsp+78h+Block], rax                                           ; +0x5d, 0x1400d9b7d\nmov     [rsp+78h+var_20], 14h                                          ; +0x62, 0x1400d9b82\nmov     [rsp+78h+var_18], 1Fh                                          ; +0x6b, 0x1400d9b8b\nmovups  xmm0, cs:xmmword_1405515C0                                     ; +0x74, 0x1400d9b94\nmovups  xmmword ptr [rax], xmm0                                        ; +0x7b, 0x1400d9b9b\nmov     eax, cs:dword_1405515D0                                        ; +0x7e, 0x1400d9b9e\nmov     [rdx+10h], eax                                                 ; +0x84, 0x1400d9ba4\nmov     byte ptr [rdx+14h], 0                                          ; +0x87, 0x1400d9ba7\nxorps   xmm0, xmm0                                                     ; +0x8b, 0x1400d9bab\nmovups  [rsp+78h+var_58], xmm0                                         ; +0x8e, 0x1400d9bae\nxor     edi, edi                                                       ; +0x93, 0x1400d9bb3\nmov     [rsp+78h+var_48], rdi                                          ; +0x95, 0x1400d9bb5\nmov     [rsp+78h+var_40], rdi                                          ; +0x9a, 0x1400d9bba\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x9f, 0x1400d9bbf\ninc     r8                                                             ; +0xa6, 0x1400d9bc6\ncmp     [rdx+r8], dil                                                  ; +0xa9, 0x1400d9bc9\njnz     short loc_1400D9BC6                                            ; +0xad, 0x1400d9bcd\nlea     rcx, [rsp+78h+var_58]                                          ; +0xaf, 0x1400d9bcf\ncall    sub_14003A930                                                  ; +0xb4, 0x1400d9bd4\nlea     rdx, [rsp+78h+var_58]                                          ; +0xb9, 0x1400d9bd9\nmov     rcx, [rbx+60h]                                                 ; +0xbe, 0x1400d9bde\ncall    UploadActionPopup__showSuccessMessage                          ; +0xc2, 0x1400d9be2\nmov     rax, [rbx+60h]                                                 ; +0xc7, 0x1400d9be7\nmov     [rax+278h], rdi                                                ; +0xcb, 0x1400d9beb\nmov     [rbx+60h], rdi                                                 ; +0xd2, 0x1400d9bf2\nmov     rdx, [rsp+78h+var_18]                                          ; +0xd6, 0x1400d9bf6\ncmp     rdx, 0Fh                                                       ; +0xdb, 0x1400d9bfb\njbe     short loc_1400D9C36                                            ; +0xdf, 0x1400d9bff\ninc     rdx                                                            ; +0xe1, 0x1400d9c01\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0xe4, 0x1400d9c04\nmov     rax, rcx                                                       ; +0xe9, 0x1400d9c09\ncmp     rdx, 1000h                                                     ; +0xec, 0x1400d9c0c\njb      short loc_1400D9C31                                            ; +0xf3, 0x1400d9c13\nadd     rdx, 27h ; '''                                                 ; +0xf5, 0x1400d9c15\nmov     rcx, [rcx-8]                                                   ; +0xf9, 0x1400d9c19\nsub     rax, rcx                                                       ; +0xfd, 0x1400d9c1d\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x100, 0x1400d9c20\ncmp     rax, 1Fh                                                       ; +0x104, 0x1400d9c24\njbe     short loc_1400D9C31                                            ; +0x108, 0x1400d9c28\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x10a, 0x1400d9c2a\ndb 0CCh                                                                ; +0x110, 0x1400d9c30\ncall    j_j_free                                                       ; +0x111, 0x1400d9c31\nmov     rcx, [rsp+78h+var_10]                                          ; +0x116, 0x1400d9c36\nxor     rcx, rsp; StackCookie                                          ; +0x11b, 0x1400d9c3b\ncall    __security_check_cookie                                        ; +0x11e, 0x1400d9c3e\nmov     rbx, [rsp+78h+arg_8]                                           ; +0x123, 0x1400d9c43\nadd     rsp, 70h                                                       ; +0x12b, 0x1400d9c4b\npop     rdi                                                            ; +0x12f, 0x1400d9c4f\nretn                                                                   ; +0x130, 0x1400d9c50", "xrefs": ["<???> @ 0x140551710", "<???> @ 0x1406c88a4"], "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"}