Function at 0x140076e30
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 + 8]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], rdx
mov rbx, qword [rdx + 0x10]
xor ecx, ecx
call sub.USER32.dll_OpenClipboard
test eax, eax
je 0x140076e8c
test rbx, rbx
je 0x140076ea0
mov r8, qword [rbp - 0x10]
add rbx, r8
movzx ecx, byte [r8]
movzx edi, cl
test dil, dil
js 0x140076ebf
lea r14, [r8 + 1]
xor r15d, r15d
jmp 0x140076f4c
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x140077198
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 2
mov qword [rbp - 0x20], 0
xor edx, edx
jmp 0x140077139
mov eax, edi
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x140076f0c
movzx edi, byte [r8 + 2]
shl edx, 6
and edi, 0x3f
or edi, edx
cmp cl, 0xf0
jb 0x140076f1c
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
ja 0x140076f2d
xor r15d, r15d
jmp 0x140076f4c
lea r14, [r8 + 2]
shl eax, 6
or eax, edx
mov edi, eax
xor r15d, r15d
jmp 0x140076f4c
lea r14, [r8 + 3]
shl eax, 0xc
or edi, eax
cmp edi, 0xffff
jbe 0x140076f07
lea eax, [rdi + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov r15d, edi
mov edi, eax
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 0x140077218
lea rsi, [r12*2 + 2]
movzx eax, byte [0x1400e51c1]
mov edx, 2
mov rcx, rsi
call fcn.14000ca40
test rax, rax
je 0x14007721f
inc r12
mov word [rax], di
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov esi, 1
mov r12, 0xffffffffffffffff
lea rdi, [rbp - 0x48]
jmp 0x140076fef
mov word [rax + rsi*2], r15w
inc rsi
mov qword [rbp - 0x38], rsi
mov r15d, r13d
test r15w, r15w
je 0x140077010
xor r13d, r13d
cmp rsi, qword [rbp - 0x48]
jne 0x140076fe0
jmp 0x1400770f0
cmp r14, rbx
je 0x140077123
movzx edx, byte [r14]
movzx r15d, dl
test r15b, r15b
js 0x140077037
inc r14
xor r13d, r13d
cmp rsi, qword [rbp - 0x48]
jne 0x140076fe0
jmp 0x1400770f0
mov ecx, r15d
and ecx, 0x1f
movzx r8d, byte [r14 + 1]
and r8d, 0x3f
cmp r15b, 0xdf
jbe 0x14007708e
movzx r15d, byte [r14 + 2]
shl r8d, 6
and r15d, 0x3f
or r15d, r8d
cmp dl, 0xf0
jb 0x1400770a9
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 0x140076ff5
jmp 0x1400770c0
add r14, 2
shl ecx, 6
or ecx, r8d
mov r15d, ecx
xor r13d, r13d
cmp rsi, qword [rbp - 0x48]
je 0x1400770f0
jmp 0x140076fe0
add r14, 3
shl ecx, 0xc
or r15d, ecx
cmp r15d, 0xffff
jbe 0x140076ff5
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 - 0x48]
jne 0x140076fe0
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.1400af670
mov rax, qword [rbp - 0x40]
jmp 0x140076fe0
mov rdx, qword [rbp - 0x38]
mov qword [rbp - 0x20], rdx
movups xmm0, xmmword [rbp - 0x48]
movaps xmmword [rbp - 0x30], xmm0
cmp rdx, qword [rbp - 0x30]
jne 0x140077146
lea rcx, [rbp - 0x30]
call fcn.140076d70
mov rdx, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x28]
mov word [rdi + rdx*2], 0
lea rax, [rdx + 1]
mov qword [rbp - 0x20], rax
lea r8, [rdx*2 + 2]
mov ecx, 0xd
mov rdx, rdi
call fcn.1400773a0
mov rsi, rax
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x14007718a
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14000ca50
lea rcx, [rbp - 1]
call fcn.140077480
test rsi, rsi
je 0x1400771f3
mov qword [rbp - 0x48], rsi
movzx eax, byte [0x1400e51c1]
mov ecx, 8
mov edx, 8
call fcn.14000ca40
test rax, rax
je 0x140077207
mov rdi, rax
mov qword [rax], rsi
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
test rdx, rdx
mov rcx, qword [rbp - 0x10]
je 0x1400771d8
mov r8d, 1
call fcn.14000ca50
lea rdx, fcn.140004c60
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 - 0x50]
mov rdx, qword [rax]
xor edi, edi
test rdx, rdx
mov rcx, qword [rbp - 0x10]
jne 0x1400771cd
jmp 0x1400771d8
mov ecx, 8
mov edx, 8
call fcn.1400b0770
jmp 0x14007722c
call fcn.1400a1770
jmp 0x14007722c
mov ecx, 2
mov rdx, rsi
call fcn.1400b0770
ud2