Function at 0x1400e64f0
Capabilities:
Open clipboard

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [rdx]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x48], rdx
mov rbx, qword [rdx + 0x10]
xor ecx, ecx
call sub.USER32.dll_OpenClipboard
test eax, eax
je 0x1400e6548
test rbx, rbx
je 0x1400e655c
mov r8, qword [rbp - 0x10]
add rbx, r8
movzx ecx, byte [r8]
movzx edi, cl
test dil, dil
js 0x1400e6572
lea r14, [r8 + 1]
jmp 0x1400e65ce
call fcn.1400f20c0
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x1400e6828
mov qword [rbp - 0x40], 2
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xor edx, edx
jmp 0x1400e67c9
mov eax, edi
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x1400e65c3
movzx edi, byte [r8 + 2]
shl edx, 6
and edi, 0x3f
or edi, edx
cmp cl, 0xf0
jb 0x1400e689d
lea r14, [r8 + 4]
movzx ecx, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl edi, 6
and ecx, 0x3f
or ecx, edi
or ecx, eax
mov edi, ecx
cmp edi, 0xffff
jbe 0x1400e65ce
jmp 0x1400e68b2
lea r14, [r8 + 2]
shl eax, 6
or eax, edx
mov edi, eax
xor r15d, r15d
mov rax, rbx
sub rax, r14
add rax, 3
mov rcx, 0xffffffffffffffff
cmovae rcx, rax
shr rcx, 2
cmp r15w, 1
sbb rcx, 0xffffffffffffffff
cmp rcx, 4
mov r12d, 3
cmovae r12, rcx
movabs rax, 0x3fffffffffffffff
cmp r12, rax
jae 0x1400e68e7
lea rsi, [r12*2 + 2]
movzx eax, byte [0x14019d171]
mov edx, 2
mov rcx, rsi
call fcn.140007cc0
test rax, rax
je 0x1400e68ee
inc r12
mov word [rax], di
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 1
mov esi, 1
mov r12, 0xffffffffffffffff
lea rdi, [rbp - 0x28]
jmp 0x1400e667f
mov word [rax + rsi*2], r15w
inc rsi
mov qword [rbp - 0x18], rsi
mov r15d, r13d
test r15w, r15w
je 0x1400e66a0
xor r13d, r13d
cmp rsi, qword [rbp - 0x20]
jne 0x1400e6670
jmp 0x1400e6780
cmp r14, rbx
je 0x1400e67b3
movzx edx, byte [r14]
movzx r15d, dl
test r15b, r15b
js 0x1400e66c7
inc r14
xor r13d, r13d
cmp rsi, qword [rbp - 0x20]
jne 0x1400e6670
jmp 0x1400e6780
mov ecx, r15d
and ecx, 0x1f
movzx r8d, byte [r14 + 1]
and r8d, 0x3f
cmp r15b, 0xdf
jbe 0x1400e671e
movzx r15d, byte [r14 + 2]
shl r8d, 6
and r15d, 0x3f
or r15d, r8d
cmp dl, 0xf0
jb 0x1400e673a
movzx edx, byte [r14 + 3]
add r14, 4
and ecx, 7
shl ecx, 0x12
shl r15d, 6
and edx, 0x3f
or edx, r15d
or edx, ecx
mov r15d, edx
cmp r15d, 0xffff
jbe 0x1400e6685
jmp 0x1400e6751
add r14, 2
shl ecx, 6
or ecx, r8d
mov r15d, ecx
xor r13d, r13d
cmp rsi, qword [rbp - 0x20]
jne 0x1400e6670
jmp 0x1400e6780
add r14, 3
shl ecx, 0xc
or r15d, ecx
cmp r15d, 0xffff
jbe 0x1400e6685
lea ecx, [r15 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov r13d, r15d
mov r15d, ecx
cmp rsi, qword [rbp - 0x20]
jne 0x1400e6670
nop
mov r8, rbx
sub r8, r14
add r8, 3
cmovb r8, r12
shr r8, 2
cmp r13w, 1
sbb r8, 0
add r8, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140108030
mov rax, qword [rbp - 0x28]
jmp 0x1400e6670
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x30], rdx
movups xmm0, xmmword [rbp - 0x28]
movaps xmmword [rbp - 0x40], xmm0
cmp rdx, qword [rbp - 0x38]
jne 0x1400e67d6
lea rcx, [rbp - 0x40]
call fcn.1400e6300
mov rdx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x40]
mov word [rdi + rdx*2], 0
lea rax, [rdx + 1]
mov qword [rbp - 0x30], rax
lea r8, [rdx*2 + 2]
mov ecx, 0xd
mov rdx, rdi
call fcn.1400e6fc0
mov rsi, rax
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x1400e681a
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140007cd0
lea rcx, [rbp - 1]
call fcn.1400e6d10
test rsi, rsi
je 0x1400e6888
mov qword [rbp - 0x28], rsi
movzx eax, byte [0x14019d171]
mov ecx, 8
mov edx, 8
call fcn.140007cc0
test rax, rax
mov rcx, qword [rbp - 0x10]
je 0x1400e68d6
mov rdi, rax
mov qword [rax], rsi
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400e686d
mov r8d, 1
call fcn.140007cd0
lea rdx, fcn.1400e61f0
mov rax, rdi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax + 8]
xor edi, edi
test rdx, rdx
mov rcx, qword [rbp - 0x10]
jne 0x1400e6862
jmp 0x1400e686d
lea r14, [r8 + 3]
shl eax, 0xc
or edi, eax
cmp edi, 0xffff
jbe 0x1400e65ce
lea eax, [rdi + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov r15d, edi
mov edi, eax
jmp 0x1400e65d1
mov ecx, 8
mov edx, 8
call fcn.1401090d0
jmp 0x1400e68fb
call fcn.1400fbd70
jmp 0x1400e68fb
mov ecx, 2
mov rdx, rsi
call fcn.1401090d0
ud2