Function at 0x1800ecb70
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 0x1800ecbcb
test rbx, rbx
je 0x1800ecbdf
mov r8, qword [rbp - 0x10]
add rbx, r8
movzx ecx, byte [r8]
movzx edi, cl
test dil, dil
js 0x1800ecbf5
lea r14, [r8 + 1]
xor r15d, r15d
jmp 0x1800ecc82
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x1800eced8
mov qword [rbp - 0x40], 2
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xor edx, edx
jmp 0x1800ece79
mov eax, edi
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp dil, 0xdf
jbe 0x1800ecc42
movzx edi, byte [r8 + 2]
shl edx, 6
and edi, 0x3f
or edi, edx
cmp cl, 0xf0
jb 0x1800ecc52
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 0x1800ecc63
xor r15d, r15d
jmp 0x1800ecc82
lea r14, [r8 + 2]
shl eax, 6
or eax, edx
mov edi, eax
xor r15d, r15d
jmp 0x1800ecc82
lea r14, [r8 + 3]
shl eax, 0xc
or edi, eax
cmp edi, 0xffff
jbe 0x1800ecc3d
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 0x1800ecf5a
lea rsi, [r12*2 + 2]
movzx eax, byte [0x1801e4bc1]
mov edx, 2
mov rcx, rsi
call fcn.18000b020
test rax, rax
je 0x1800ecf61
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 0x1800ecd2f
mov word [rax + rsi*2], r15w
inc rsi
mov qword [rbp - 0x18], rsi
mov r15d, r13d
test r15w, r15w
je 0x1800ecd50
xor r13d, r13d
cmp rsi, qword [rbp - 0x20]
jne 0x1800ecd20
jmp 0x1800ece30
cmp r14, rbx
je 0x1800ece63
movzx edx, byte [r14]
movzx r15d, dl
test r15b, r15b
js 0x1800ecd77
inc r14
xor r13d, r13d
cmp rsi, qword [rbp - 0x20]
jne 0x1800ecd20
jmp 0x1800ece30
mov ecx, r15d
and ecx, 0x1f
movzx r8d, byte [r14 + 1]
and r8d, 0x3f
cmp r15b, 0xdf
jbe 0x1800ecdce
movzx r15d, byte [r14 + 2]
shl r8d, 6
and r15d, 0x3f
or r15d, r8d
cmp dl, 0xf0
jb 0x1800ecde9
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 0x1800ecd35
jmp 0x1800ece00
add r14, 2
shl ecx, 6
or ecx, r8d
mov r15d, ecx
xor r13d, r13d
cmp rsi, qword [rbp - 0x20]
je 0x1800ece30
jmp 0x1800ecd20
add r14, 3
shl ecx, 0xc
or r15d, ecx
cmp r15d, 0xffff
jbe 0x1800ecd35
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 0x1800ecd20
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.1801252f0
mov rax, qword [rbp - 0x28]
jmp 0x1800ecd20
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 0x1800ece86
lea rcx, [rbp - 0x40]
call fcn.1800ec990
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.1800ed340
mov rsi, rax
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x1800ececa
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.18000b030
lea rcx, [rbp - 1]
call fcn.1800ed420
test rsi, rsi
je 0x1800ecf34
mov qword [rbp - 0x28], rsi
movzx eax, byte [0x1801e4bc1]
mov ecx, 8
mov edx, 8
call fcn.18000b020
test rax, rax
je 0x1800ecf49
mov rdi, rax
mov qword [rax], rsi
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp - 0x10]
je 0x1800ecf19
mov r8d, 1
call fcn.18000b030
lea rdx, fcn.180004380
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 0x1800ecf0e
jmp 0x1800ecf19
mov ecx, 8
mov edx, 8
call fcn.180129e70
jmp 0x1800ecf6e
call fcn.18010f660
jmp 0x1800ecf6e
mov ecx, 2
mov rdx, rsi
call fcn.180129e70
ud2