{"type": "func", "start": 5373390096, "end": 5373390472, "name": "MessagesProfilePage::uploadActionFinished", "pseudocode": "// \n// MessagesProfilePage::uploadActionFinished from 0x140476d10 to 0x140476e88 (376 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407b4f30\n// > <???> @ 0x140928424\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:41 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall MessagesProfilePage::uploadActionFinished(__int64 a1, __int64 a2, int a3)\n{\n  _BYTE *v5; // rbx\n  unsigned __int64 v6; // r8\n  void **v7; // rdx\n  size_t v8; // r8\n  void *v9; // rcx\n  __int128 v10; // [rsp+30h] [rbp-58h] BYREF\n  __int64 v11; // [rsp+40h] [rbp-48h]\n  __int64 v12; // [rsp+48h] [rbp-40h]\n  void *Block[2]; // [rsp+58h] [rbp-30h] BYREF\n  __int64 v14; // [rsp+68h] [rbp-20h]\n  unsigned __int64 v15; // [rsp+70h] [rbp-18h]\n\n  if ( *(_QWORD *)(a1 + 96) )\n  {\n    *(_OWORD *)Block = 0;\n    v5 = sub_14003D460(0x20u);\n    Block[0] = v5;\n    v14 = 23;\n    v6 = 31;\n    v15 = 31;\n    strcpy(v5, \"Unknown action finished\");\n    if ( a3 == 45 )\n    {\n      v14 = 16;\n      memmove(v5, \"Messages removed\", 0x10u);\n      v5[16] = 0;\n      v6 = v15;\n      v5 = Block[0];\n    }\n    v7 = Block;\n    if ( v6 > 0xF )\n      v7 = (void **)v5;\n    v10 = 0;\n    v11 = 0;\n    v12 = 0;\n    v8 = -1;\n    do\n      ++v8;\n    while ( *((_BYTE *)v7 + v8) );\n    sub_14003D230(&v10, v7, v8);\n    UploadActionPopup::showSuccessMessage(*(_QWORD *)(a1 + 96), &v10);\n    if ( v15 > 0xF )\n    {\n      v9 = Block[0];\n      if ( v15 + 1 >= 0x1000 )\n      {\n        v9 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v9);\n    }\n  }\n}", "assembly": "; \n; MessagesProfilePage::uploadActionFinished from 0x140476d10 to 0x140476e88 (376 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407b4f30\n; > <???> @ 0x140928424\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:41 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140476d10\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140476d15\npush    rdi                                                            ; +0xa, 0x140476d1a\nsub     rsp, 80h                                                       ; +0xb, 0x140476d1b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x140476d22\nxor     rax, rsp                                                       ; +0x19, 0x140476d29\nmov     [rsp+88h+var_10], rax                                          ; +0x1c, 0x140476d2c\nmov     esi, r8d                                                       ; +0x21, 0x140476d31\nmov     rdi, rcx                                                       ; +0x24, 0x140476d34\ncmp     qword ptr [rcx+60h], 0                                         ; +0x27, 0x140476d37\njz      loc_140476E66                                                  ; +0x2c, 0x140476d3c\nxorps   xmm0, xmm0                                                     ; +0x32, 0x140476d42\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x35, 0x140476d45\nmov     ecx, 20h ; ' '                                                 ; +0x3a, 0x140476d4a\ncall    sub_14003D460                                                  ; +0x3f, 0x140476d4f\nmov     rbx, rax                                                       ; +0x44, 0x140476d54\nmov     [rsp+88h+Block], rax                                           ; +0x47, 0x140476d57\nmov     [rsp+88h+var_20], 17h                                          ; +0x4c, 0x140476d5c\nmov     r8d, 1Fh                                                       ; +0x55, 0x140476d65\nmov     [rsp+88h+var_18], r8                                           ; +0x5b, 0x140476d6b\nmovups  xmm0, cs:xmmword_14073A2B8                                     ; +0x60, 0x140476d70\nmovups  xmmword ptr [rax], xmm0                                        ; +0x67, 0x140476d77\nmov     ecx, cs:dword_14073A2C8                                        ; +0x6a, 0x140476d7a\nmov     [rax+10h], ecx                                                 ; +0x70, 0x140476d80\nmovzx   ecx, cs:word_14073A2CC                                         ; +0x73, 0x140476d83\nmov     [rax+14h], cx                                                  ; +0x7a, 0x140476d8a\nmovzx   eax, cs:byte_14073A2CE                                         ; +0x7e, 0x140476d8e\nmov     [rbx+16h], al                                                  ; +0x85, 0x140476d95\nmov     byte ptr [rbx+17h], 0                                          ; +0x88, 0x140476d98\ncmp     esi, 2Dh ; '-'                                                 ; +0x8c, 0x140476d9c\njnz     short loc_140476DCD                                            ; +0x8f, 0x140476d9f\nmov     [rsp+88h+var_20], 10h                                          ; +0x91, 0x140476da1\nmov     r8d, 10h; Size                                                 ; +0x9a, 0x140476daa\nlea     rdx, aMessagesRemove; \"Messages removed\"                       ; +0xa0, 0x140476db0\nmov     rcx, rbx; void *                                               ; +0xa7, 0x140476db7\ncall    memmove                                                        ; +0xaa, 0x140476dba\nmov     byte ptr [rbx+10h], 0                                          ; +0xaf, 0x140476dbf\nmov     r8, [rsp+88h+var_18]                                           ; +0xb3, 0x140476dc3\nmov     rbx, [rsp+88h+Block]                                           ; +0xb8, 0x140476dc8\nlea     rdx, [rsp+88h+Block]                                           ; +0xbd, 0x140476dcd\ncmp     r8, 0Fh                                                        ; +0xc2, 0x140476dd2\ncmova   rdx, rbx                                                       ; +0xc6, 0x140476dd6\nxorps   xmm0, xmm0                                                     ; +0xca, 0x140476dda\nmovups  [rsp+88h+var_58], xmm0                                         ; +0xcd, 0x140476ddd\nxor     ebx, ebx                                                       ; +0xd2, 0x140476de2\nmov     [rsp+88h+var_48], rbx                                          ; +0xd4, 0x140476de4\nmov     [rsp+88h+var_40], rbx                                          ; +0xd9, 0x140476de9\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xde, 0x140476dee\ninc     r8                                                             ; +0xe5, 0x140476df5\ncmp     [rdx+r8], bl                                                   ; +0xe8, 0x140476df8\njnz     short loc_140476DF5                                            ; +0xec, 0x140476dfc\nlea     rcx, [rsp+88h+var_58]                                          ; +0xee, 0x140476dfe\ncall    sub_14003D230                                                  ; +0xf3, 0x140476e03\nlea     rdx, [rsp+88h+var_58]                                          ; +0xf8, 0x140476e08\nmov     rcx, [rdi+60h]                                                 ; +0xfd, 0x140476e0d\ncall    UploadActionPopup__showSuccessMessage                          ; +0x101, 0x140476e11\nnop                                                                    ; +0x106, 0x140476e16\nmov     rdx, [rsp+88h+var_18]                                          ; +0x107, 0x140476e17\ncmp     rdx, 0Fh                                                       ; +0x10c, 0x140476e1c\njbe     short loc_140476E66                                            ; +0x110, 0x140476e20\ninc     rdx                                                            ; +0x112, 0x140476e22\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x115, 0x140476e25\nmov     rax, rcx                                                       ; +0x11a, 0x140476e2a\ncmp     rdx, 1000h                                                     ; +0x11d, 0x140476e2d\njb      short loc_140476E61                                            ; +0x124, 0x140476e34\nadd     rdx, 27h ; '''                                                 ; +0x126, 0x140476e36\nmov     rcx, [rcx-8]                                                   ; +0x12a, 0x140476e3a\nsub     rax, rcx                                                       ; +0x12e, 0x140476e3e\nsub     rax, 8                                                         ; +0x131, 0x140476e41\ncmp     rax, 1Fh                                                       ; +0x135, 0x140476e45\njbe     short loc_140476E61                                            ; +0x139, 0x140476e49\nmov     [rsp+88h+Reserved], rbx; Reserved                              ; +0x13b, 0x140476e4b\nxor     r9d, r9d; LineNo                                               ; +0x140, 0x140476e50\nxor     r8d, r8d; FileName                                             ; +0x143, 0x140476e53\nxor     edx, edx; FunctionName                                         ; +0x146, 0x140476e56\nxor     ecx, ecx; Expression                                           ; +0x148, 0x140476e58\ncall    cs:_invoke_watson                                              ; +0x14a, 0x140476e5a\ndb 0CCh                                                                ; +0x150, 0x140476e60\ncall    j_j_free                                                       ; +0x151, 0x140476e61\nmov     rcx, [rsp+88h+var_10]                                          ; +0x156, 0x140476e66\nxor     rcx, rsp; StackCookie                                          ; +0x15b, 0x140476e6b\ncall    __security_check_cookie                                        ; +0x15e, 0x140476e6e\nlea     r11, [rsp+88h+var_8]                                           ; +0x163, 0x140476e73\nmov     rbx, [r11+18h]                                                 ; +0x16b, 0x140476e7b\nmov     rsi, [r11+20h]                                                 ; +0x16f, 0x140476e7f\nmov     rsp, r11                                                       ; +0x173, 0x140476e83\npop     rdi                                                            ; +0x176, 0x140476e86\nretn                                                                   ; +0x177, 0x140476e87", "xrefs": ["<???> @ 0x1407b4f30", "<???> @ 0x140928424"], "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"}