Function at 0x140004d40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
movzx r14d, r9b
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
xor esi, esi
mov dword [rsp + 0x60], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], rsi
mov r8d, 7
mov qword [rcx + 0x38], r8
mov word [rcx + 0x20], si
mov qword [rcx + 0x40], rsi
mov qword [rcx + 0x48], rsi
mov dword [rcx + 0x50], 0xfde9
mov word [rcx + 0x54], ax
mov byte [rcx + 0x56], al
mov qword [rcx + 0x58], rsi
mov qword [rcx + 0x60], rsi
mov dword [rsp + 0x60], 1
mov rcx, rdx
mov r10, qword [rdx + 0x18]
cmp r10, r8
jbe 0x140004de9
mov rcx, qword [rdx]
cmp qword [rdx + 0x10], 0xb
jne 0x140004f2d
mov edx, 0xb
mov r9, qword [str._clipboard_]
sub r9, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx + r9]
cmp ax, word [rcx]
jne 0x140004f2d
add rcx, 2
sub rdx, 1
jne 0x140004e10
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rsp + 0x40], bl
test bl, bl
jne 0x140004e4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140004ed9
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
jne 0x140004e67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140004ed9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x140004e7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140004ed9
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], rax
mov rcx, rsi
cmp word [rax], si
je 0x140004ead
nop dword [rax]
nop dword [rax + rax]
inc rcx
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x140004ea0
mov qword [rsp + 0x58], rcx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movzx r8d, r14b
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140008bb0
nop
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
test bl, bl
je 0x140004ee3
call qword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x14000501c
mov ecx, 2
call fcn.140010e64
mov r9d, esi
lea r8, str.wargs
lea rdx, str._hs:_warning_:_Clipboard_error__u._Clipboard_not_read._n
mov rcx, rax
call fcn.1400038b0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
movzx r8d, r14b
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140008bb0
jmp 0x14000501c
mov rcx, rbx
cmp r10, 7
jbe 0x140004f39
mov rcx, qword [rbx]
cmp qword [rbx + 0x10], 7
jne 0x140004f7b
mov rdx, qword [str._stdin_]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx + rdx]
cmp ax, word [rcx]
jne 0x140004f7b
add rcx, 2
sub r8, 1
jne 0x140004f50
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x80], rsi
jmp 0x140005001
mov rcx, rbx
cmp r10, 7
jbe 0x140004f87
mov rcx, qword [rbx]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 1
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140004ff9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
je 0x14000501c
cmp qword [rbx + 0x18], 7
jbe 0x140004fcc
mov rbx, qword [rbx]
mov ecx, 2
call fcn.140010e64
mov qword [rsp + 0x20], rbx
mov r9d, esi
lea r8, str.wargs
lea rdx, str._hs:_warning_:_CreateFile_error__u_opening_input_file__ls._n
mov rcx, rax
call fcn.1400038b0
jmp 0x140004f0e
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x20], r14b
mov r9d, ebp
mov r8, rax
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.1400087c0
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14000b310
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret