Function at 0x140088070
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rcx, qword [0x1400b8a28]
xor ebx, ebx
and dword [rsp + 0x90], ebx
mov r12, rdx
and qword [rsp + 0xa0], rbx
xor ebp, ebp
mov rdi, qword [0x1400970d8]
xor r14d, r14d
xor esi, esi
xor r15d, r15d
xor r13d, r13d
call qword [sym.imp.USER32.dll_SetCursor]
xor edx, edx
mov dword [0x140096f20], 1
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rcx, rdi
mov qword [rsp + 0xa8], rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14008838b
call qword [sym.imp.USER32.dll_GetClipboardOwner]
cmp rax, rdi
jne 0x140088168
movzx ecx, word [0x14009713c]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x30], rax
mov r12, rax
test rax, rax
je 0x140088168
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [rsp + 0xa8]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, qword [rbx + 0x48]
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rax + 0x220]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor r12d, r12d
cmp rdi, rbx
cmove r12, qword [rsp + 0x30]
test r12, r12
je 0x140088168
movzx edi, word [0x14009713c]
jmp 0x140088187
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r12, rax
mov edi, 1
test rax, rax
jne 0x140088187
mov edi, dword [rsp + 0x90]
xor ebx, ebx
test r12, r12
je 0x140088219
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalSize]
cmp rax, 0x7d00
ja 0x1400882e6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r13, rax
cmp edi, 1
jne 0x1400881c8
mov eax, 0x4e20
cmp r13, rax
jbe 0x1400881c8
mov r13d, eax
mov r14d, eax
mov rdx, r13
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x1400882e6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, r13
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
mov r12d, 0x2714
call qword [sym.imp.USER32.dll_CloseClipboard]
test rsi, rsi
je 0x14008838b
cmp edi, 1
jne 0x14008831e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov rdx, rax
lea ecx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ebx, ebx
mov r15, rax
test rax, rax
cmove ebx, r12d
test ebx, ebx
jne 0x14008836f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0xa0], rax
mov r12, rax
test r14d, r14d
jne 0x1400882c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r14d, eax
test eax, eax
jne 0x1400882c0
cmp r13, 0xa
jbe 0x1400882c0
movsxd r14, r13d
test r13d, r13d
js 0x1400882ab
mov ecx, r14d
cmp r14, rcx
je 0x1400882c0
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000095
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor r8d, r8d
test r14d, r14d
jle 0x14008830c
mov rdx, r12
movsx r9d, byte [rdi]
mov ecx, r9d
sub ecx, 9
je 0x1400882f9
sub ecx, 1
je 0x140088301
cmp ecx, 3
je 0x1400882f4
mov byte [rdx], r9b
jmp 0x1400882fc
mov r12d, 0x2714
mov ebx, r12d
jmp 0x14008821f
mov r14d, r8d
jmp 0x140088301
mov byte [rdx], 0x20
inc ebp
inc rdx
inc r8d
inc rdi
cmp r8d, r14d
jl 0x1400882cb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebp, ebp
jg 0x14008833f
or ebp, 0xffffffff
jmp 0x14008833d
cmp di, word [0x14009713c]
jne 0x140088341
mov r15, rsi
xor esi, esi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0xa0], rax
test ebp, ebp
js 0x140088366
and dword [rsp + 0x20], 0
mov r9d, 0xa03
mov rdx, qword [rsp + 0xa0]
mov r8d, ebp
mov rcx, qword [rsp + 0x98]
call fcn.140084a64
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
test rsi, rsi
je 0x14008837d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r15, r15
je 0x14008838b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret