Function at 0x140015c50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r14, r8
mov qword [rbp - 0x80], r8
mov rsi, rcx
mov qword [rsp + 0x78], rcx
mov rcx, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rsp + 0x70], bl
test bl, bl
je 0x14001641b
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x14001641b
xor r15d, r15d
mov qword [rsi + 0xc], r15
mov qword [rsi + 4], r15
mov edi, dword [r14 + 0x18]
add edi, dword [r14 + 8]
sub edi, dword [r14 + 0x10]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400de6e0
mov dword [rsi], eax
test edi, edi
jne 0x140015ce8
mov dil, 1
jmp 0x14001641e
mov rcx, qword [r14 + 0x10]
lea rax, vtable.rdr::MemInStream.0
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x70], rcx
movsxd rax, edi
add rax, rcx
mov qword [rbp - 0x68], rax
lea rax, vtable.rdr::ZlibInStream.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0x4000
mov dword [rsp + 0x60], r15d
mov ecx, 0x58
call fcn.140147b18
mov qword [rsp + 0x58], rax
mov qword [rax + 0x30], r15
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x38], r15
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x40], r15
mov rax, qword [rsp + 0x58]
mov qword [rax], r15
mov rax, qword [rsp + 0x58]
mov dword [rax + 8], r15d
mov r8d, 0x58
lea rdx, str.1.3.0
mov rcx, qword [rsp + 0x58]
call fcn.1400e0740
test eax, eax
jne 0x140016456
movsxd rcx, dword [rsp + 0x50]
call fcn.140147b5c
mov r10, rax
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], r10
xor r13b, r13b
mov rcx, qword [r14]
test byte [rcx + 3], 1
je 0x140015fa3
lea rax, [r10 + 4]
cmp rax, r10
jbe 0x140015dda
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x18]
mov r10, qword [rsp + 0x38]
movzx r15d, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx eax, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx ecx, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx edx, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
shl r15d, 8
or r15d, eax
shl r15d, 8
or r15d, ecx
shl r15d, 8
or r15d, edx
jle 0x140015fa3
movsxd rdi, r15d
mov rcx, rdi
call fcn.140147b5c
mov r12, rax
mov rsi, rax
lea r14, [rdi + rax]
cmp rax, r14
jae 0x140015eba
mov r9, qword [rsp + 0x38]
nop dword [rax]
nop dword [rax + rax]
mov edx, r14d
sub edx, esi
movsxd rcx, edx
add rcx, r9
mov r8, qword [rsp + 0x40]
cmp rcx, r8
jbe 0x140015e94
lea rax, [r9 + 1]
cmp rax, r8
jbe 0x140015e8c
mov r8d, edx
mov edx, 1
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x18]
mov edx, eax
mov r9, qword [rsp + 0x38]
jmp 0x140015e94
mov edx, dword [rsp + 0x40]
sub edx, dword [rsp + 0x38]
movsxd rdi, edx
mov r8, rdi
mov rdx, r9
mov rcx, rsi
call fcn.140149f10
mov r9, qword [rsp + 0x38]
add r9, rdi
mov qword [rsp + 0x38], r9
add rsi, rdi
cmp rsi, r14
jb 0x140015e50
mov r8d, r15d
mov rdx, r12
mov rdi, qword [rsp + 0x78]
mov ecx, dword [rdi]
call fcn.1400de6e0
mov dword [rdi], eax
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
test eax, eax
jle 0x140015f89
mov rdx, r14
add rdx, rdx
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140015f89
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140015f80
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
jle 0x140015f80
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x140015f7d
lea eax, [r14 + r14]
mov r13, qword [rsp + 0x78]
mov dword [r13 + 4], eax
mov rcx, r12
call fcn.140147b10
mov r10, qword [rsp + 0x38]
mov r14, qword [rbp - 0x80]
jmp 0x140015fa8
mov r13b, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r12
call fcn.140147b10
test r13b, r13b
jne 0x14001630a
mov r10, qword [rsp + 0x38]
mov r14, qword [rbp - 0x80]
mov r13, qword [rsp + 0x78]
mov rax, qword [r14]
mov ecx, dword [rax]
shr ecx, 0x19
test cl, 1
je 0x140016108
lea rax, [r10 + 4]
cmp rax, qword [rsp + 0x40]
jbe 0x140015fdf
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x18]
mov r10, qword [rsp + 0x38]
movzx r15d, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx eax, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx ecx, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx edx, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
shl r15d, 8
or r15d, eax
shl r15d, 8
or r15d, ecx
shl r15d, 8
or r15d, edx
jle 0x140016108
movsxd rdi, r15d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x14001630a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x1400160fa
lea r14, [rdi + rax]
cmp rax, r14
jae 0x1400160d7
mov rdx, qword [rsp + 0x38]
nop word [rax + rax]
mov ecx, r14d
sub ecx, esi
movsxd rax, ecx
add rax, rdx
mov r8, qword [rsp + 0x40]
cmp rax, r8
jbe 0x1400160b4
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x1400160ac
mov r8d, ecx
mov edx, 1
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x18]
mov ecx, eax
mov rdx, qword [rsp + 0x38]
jmp 0x1400160b4
mov ecx, dword [rsp + 0x40]
sub ecx, dword [rsp + 0x38]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.140149f10
mov rdx, qword [rsp + 0x38]
add rdx, rdi
mov qword [rsp + 0x38], rdx
add rsi, rdi
cmp rsi, r14
jb 0x140016070
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, dword [0x14022a6e4]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400160fa
mov dword [r13 + 8], r15d
jmp 0x140016103
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r10, qword [rsp + 0x38]
mov r13, qword [rbp - 0x80]
mov rax, qword [r13]
mov ecx, dword [rax]
shr ecx, 0x1a
test cl, 1
je 0x14001626d
lea rax, [r10 + 4]
cmp rax, qword [rsp + 0x40]
jbe 0x140016144
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x18]
mov r10, qword [rsp + 0x38]
movzx r15d, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx eax, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx ecx, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx edx, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
shl r15d, 8
or r15d, eax
shl r15d, 8
or r15d, ecx
shl r15d, 8
or r15d, edx
jle 0x14001626d
movsxd rdi, r15d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x14001630a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x14001625f
lea r14, [rdi + rax]
cmp rax, r14
jae 0x140016237
mov rdx, qword [rsp + 0x38]
nop
mov ecx, r14d
sub ecx, esi
movsxd rax, ecx
add rax, rdx
mov r8, qword [rsp + 0x40]
cmp rax, r8
jbe 0x140016214
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x14001620c
mov r8d, ecx
mov edx, 1
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x18]
mov ecx, eax
mov rdx, qword [rsp + 0x38]
jmp 0x140016214
mov ecx, dword [rsp + 0x40]
sub ecx, dword [rsp + 0x38]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.140149f10
mov rdx, qword [rsp + 0x38]
add rdx, rdi
mov qword [rsp + 0x38], rdx
add rsi, rdi
cmp rsi, r14
jb 0x1400161d0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, dword [0x14022a6e0]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x14001625f
mov rax, qword [rsp + 0x78]
mov dword [rax + 0xc], r15d
jmp 0x140016268
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov r10, qword [rsp + 0x38]
mov rax, qword [r13]
mov ecx, dword [rax]
shr ecx, 0x1b
test cl, 1
je 0x1400163d7
lea rax, [r10 + 4]
cmp rax, qword [rsp + 0x40]
jbe 0x1400162a5
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x18]
mov r10, qword [rsp + 0x38]
movzx r14d, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx edx, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx r8d, byte [r10]
inc r10
mov qword [rsp + 0x38], r10
movzx r9d, byte [r10]
lea rax, [r10 + 1]
mov qword [rsp + 0x38], rax
shl r14d, 8
or r14d, edx
shl r14d, 8
or r14d, r8d
shl r14d, 8
or r14d, r9d
jle 0x1400163d7
movsxd rdi, r14d
mov rdx, rdi
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
jne 0x140016312
xor dil, dil
jmp 0x1400163da
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x1400163ce
lea r15, [rdi + rax]
cmp rax, r15
jae 0x1400163a7
mov rdx, qword [rsp + 0x38]
nop word [rax + rax]
mov ecx, r15d
sub ecx, esi
movsxd rax, ecx
add rax, rdx
mov r8, qword [rsp + 0x40]
cmp rax, r8
jbe 0x140016384
lea rax, [rdx + 1]
cmp rax, r8
jbe 0x14001637c
mov r8d, ecx
mov edx, 1
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x18]
mov ecx, eax
mov rdx, qword [rsp + 0x38]
jmp 0x140016384
mov ecx, dword [rsp + 0x40]
sub ecx, dword [rsp + 0x38]
movsxd rdi, ecx
mov r8, rdi
mov rcx, rsi
call fcn.140149f10
mov rdx, qword [rsp + 0x38]
add rdx, rdi
mov qword [rsp + 0x38], rdx
add rsi, rdi
cmp rsi, r15
jb 0x140016340
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x1400163ce
mov rax, qword [rsp + 0x78]
mov dword [rax + 0x10], r14d
jmp 0x1400163d7
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov dil, 1
lea rax, vtable.rdr::ZlibInStream.0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x68]
call fcn.140147b10
mov rcx, qword [rsp + 0x58]
call fcn.1400e0430
mov edx, 0x58
mov rcx, qword [rsp + 0x58]
call fcn.140147b54
lea rax, vtable.rdr::InStream.0
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x78], rax
jmp 0x14001641e
xor dil, dil
test bl, bl
je 0x140016428
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, dil
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140147af0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x58
mov rcx, qword [rsp + 0x58]
call fcn.140147b54
lea r8, str.rdr::Exception
lea rdx, str.ZlibInStream:_inflateInit_failed
lea rcx, [rbp - 0x50]
call fcn.140015040
lea rdx, [0x140217350]
lea rcx, [rbp - 0x50]
call fcn.14014a778
int3