{"type": "func", "start": 5372082496, "end": 5372082849, "name": "MessagesProfilePage::uploadActionFinished", "pseudocode": "// \n// MessagesProfilePage::uploadActionFinished from 0x140337940 to 0x140337aa1 (353 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405ab8e8\n// > <???> @ 0x1406d5294\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 MessagesProfilePage::uploadActionFinished(MessagesProfilePage *a1, int 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+20h] [rbp-58h] BYREF\n  __int64 v11; // [rsp+30h] [rbp-48h]\n  __int64 v12; // [rsp+38h] [rbp-40h]\n  void *Block[2]; // [rsp+48h] [rbp-30h] BYREF\n  __int64 v14; // [rsp+58h] [rbp-20h]\n  unsigned __int64 v15; // [rsp+60h] [rbp-18h]\n\n  if ( *(_QWORD *)&a1->m_obAnchorPointInPoints.y )\n  {\n    *(_OWORD *)Block = 0;\n    v5 = sub_14003AA10(0x20u);\n    Block[0] = v5;\n    v14 = 23;\n    v6 = 31;\n    v15 = 31;\n    strcpy(v5, \"Unknown action finished\");\n    if ( a3 == 39 )\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_14003A930(&v10, v7, v8);\n    UploadActionPopup::showSuccessMessage(*(_QWORD *)&a1->m_obAnchorPointInPoints.y, &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          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v9);\n    }\n  }\n}", "assembly": "; \n; MessagesProfilePage::uploadActionFinished from 0x140337940 to 0x140337aa1 (353 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405ab8e8\n; > <???> @ 0x1406d5294\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, 0x140337940\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140337945\npush    rdi                                                            ; +0xa, 0x14033794a\nsub     rsp, 70h                                                       ; +0xb, 0x14033794b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14033794f\nxor     rax, rsp                                                       ; +0x16, 0x140337956\nmov     [rsp+78h+var_10], rax                                          ; +0x19, 0x140337959\nmov     esi, r8d                                                       ; +0x1e, 0x14033795e\nmov     rdi, rcx                                                       ; +0x21, 0x140337961\ncmp     qword ptr [rcx+60h], 0                                         ; +0x24, 0x140337964\njz      loc_140337A82                                                  ; +0x29, 0x140337969\nxorps   xmm0, xmm0                                                     ; +0x2f, 0x14033796f\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x32, 0x140337972\nmov     ecx, 20h ; ' '                                                 ; +0x37, 0x140337977\ncall    sub_14003AA10                                                  ; +0x3c, 0x14033797c\nmov     rbx, rax                                                       ; +0x41, 0x140337981\nmov     [rsp+78h+Block], rax                                           ; +0x44, 0x140337984\nmov     [rsp+78h+var_20], 17h                                          ; +0x49, 0x140337989\nmov     r8d, 1Fh                                                       ; +0x52, 0x140337992\nmov     [rsp+78h+var_18], r8                                           ; +0x58, 0x140337998\nmovups  xmm0, cs:xmmword_140547400                                     ; +0x5d, 0x14033799d\nmovups  xmmword ptr [rax], xmm0                                        ; +0x64, 0x1403379a4\nmov     ecx, cs:dword_140547410                                        ; +0x67, 0x1403379a7\nmov     [rax+10h], ecx                                                 ; +0x6d, 0x1403379ad\nmovzx   ecx, cs:word_140547414                                         ; +0x70, 0x1403379b0\nmov     [rax+14h], cx                                                  ; +0x77, 0x1403379b7\nmovzx   eax, cs:byte_140547416                                         ; +0x7b, 0x1403379bb\nmov     [rbx+16h], al                                                  ; +0x82, 0x1403379c2\nmov     byte ptr [rbx+17h], 0                                          ; +0x85, 0x1403379c5\ncmp     esi, 27h ; '''                                                 ; +0x89, 0x1403379c9\njnz     short loc_1403379F8                                            ; +0x8c, 0x1403379cc\nmov     [rsp+78h+var_20], 10h                                          ; +0x8e, 0x1403379ce\nlea     r8d, [rsi-17h]; Size                                           ; +0x97, 0x1403379d7\nlea     rdx, aMessagesRemove; \"Messages removed\"                       ; +0x9b, 0x1403379db\nmov     rcx, rbx; void *                                               ; +0xa2, 0x1403379e2\ncall    memmove                                                        ; +0xa5, 0x1403379e5\nmov     byte ptr [rbx+10h], 0                                          ; +0xaa, 0x1403379ea\nmov     r8, [rsp+78h+var_18]                                           ; +0xae, 0x1403379ee\nmov     rbx, [rsp+78h+Block]                                           ; +0xb3, 0x1403379f3\nlea     rdx, [rsp+78h+Block]                                           ; +0xb8, 0x1403379f8\ncmp     r8, 0Fh                                                        ; +0xbd, 0x1403379fd\ncmova   rdx, rbx                                                       ; +0xc1, 0x140337a01\nxorps   xmm0, xmm0                                                     ; +0xc5, 0x140337a05\nmovups  [rsp+78h+var_58], xmm0                                         ; +0xc8, 0x140337a08\nxor     eax, eax                                                       ; +0xcd, 0x140337a0d\nmov     [rsp+78h+var_48], rax                                          ; +0xcf, 0x140337a0f\nmov     [rsp+78h+var_40], rax                                          ; +0xd4, 0x140337a14\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xd9, 0x140337a19\ninc     r8                                                             ; +0xe0, 0x140337a20\ncmp     [rdx+r8], al                                                   ; +0xe3, 0x140337a23\njnz     short loc_140337A20                                            ; +0xe7, 0x140337a27\nlea     rcx, [rsp+78h+var_58]                                          ; +0xe9, 0x140337a29\ncall    sub_14003A930                                                  ; +0xee, 0x140337a2e\nlea     rdx, [rsp+78h+var_58]                                          ; +0xf3, 0x140337a33\nmov     rcx, [rdi+60h]                                                 ; +0xf8, 0x140337a38\ncall    UploadActionPopup__showSuccessMessage                          ; +0xfc, 0x140337a3c\nnop                                                                    ; +0x101, 0x140337a41\nmov     rdx, [rsp+78h+var_18]                                          ; +0x102, 0x140337a42\ncmp     rdx, 0Fh                                                       ; +0x107, 0x140337a47\njbe     short loc_140337A82                                            ; +0x10b, 0x140337a4b\ninc     rdx                                                            ; +0x10d, 0x140337a4d\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x110, 0x140337a50\nmov     rax, rcx                                                       ; +0x115, 0x140337a55\ncmp     rdx, 1000h                                                     ; +0x118, 0x140337a58\njb      short loc_140337A7D                                            ; +0x11f, 0x140337a5f\nadd     rdx, 27h ; '''                                                 ; +0x121, 0x140337a61\nmov     rcx, [rcx-8]                                                   ; +0x125, 0x140337a65\nsub     rax, rcx                                                       ; +0x129, 0x140337a69\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x12c, 0x140337a6c\ncmp     rax, 1Fh                                                       ; +0x130, 0x140337a70\njbe     short loc_140337A7D                                            ; +0x134, 0x140337a74\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x136, 0x140337a76\ndb 0CCh                                                                ; +0x13c, 0x140337a7c\ncall    j_j_free                                                       ; +0x13d, 0x140337a7d\nmov     rcx, [rsp+78h+var_10]                                          ; +0x142, 0x140337a82\nxor     rcx, rsp; StackCookie                                          ; +0x147, 0x140337a87\ncall    __security_check_cookie                                        ; +0x14a, 0x140337a8a\nlea     r11, [rsp+78h+var_8]                                           ; +0x14f, 0x140337a8f\nmov     rbx, [r11+18h]                                                 ; +0x154, 0x140337a94\nmov     rsi, [r11+20h]                                                 ; +0x158, 0x140337a98\nmov     rsp, r11                                                       ; +0x15c, 0x140337a9c\npop     rdi                                                            ; +0x15f, 0x140337a9f\nretn                                                                   ; +0x160, 0x140337aa0", "xrefs": ["<???> @ 0x1405ab8e8", "<???> @ 0x1406d5294"], "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"}