Function at 0x140015950
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rsp + 0x80], bl
test bl, bl
jne 0x14001598a
xor dil, dil
jmp 0x140015c21
xor r12d, r12d
mov dword [rsi], r12d
mov rcx, qword [rsi + 0x18]
call fcn.140147b10
mov rcx, qword [rsi + 0x20]
call fcn.140147b10
mov rcx, qword [rsi + 0x28]
call fcn.140147b10
mov rcx, qword [rsi + 0x30]
call fcn.140147b10
mov qword [rsi + 0x18], r12
mov qword [rsi + 0x20], r12
mov qword [rsi + 0x28], r12
mov qword [rsi + 0x30], r12
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400de6e0
mov dword [rsi], eax
mov dword [rsi + 4], r12d
lea ecx, [r12 + 0xd]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140015ab5
lea ecx, [r12 + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x140015ab5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalSize]
test rbp, rbp
je 0x140015ab5
test eax, eax
jle 0x140015ab5
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9d, [r12 - 1]
mov r8, rbp
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
test eax, eax
jle 0x140015aac
mov rcx, r14
call fcn.140147b5c
mov qword [rsi + 0x18], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
lea r9d, [r12 - 1]
mov r8, rbp
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsi + 0x18]
test eax, eax
jle 0x140015aa7
mov dword [rsi + 4], eax
mov r8d, eax
mov rdx, rcx
mov ecx, dword [rsi]
call fcn.1400de6e0
mov dword [rsi], eax
jmp 0x140015aac
call fcn.140147b10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [rsi + 8], r12d
mov ecx, dword [0x14022a6e4]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140015b29
mov ecx, dword [0x14022a6e4]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x140015b29
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r14, rax
test r15, r15
je 0x140015b29
test r14d, r14d
jle 0x140015b29
movsxd rdi, r14d
mov rcx, rdi
call fcn.140147b5c
mov qword [rsi + 0x20], rax
mov r8, rdi
mov rdx, r15
mov rcx, rax
call fcn.140149f10
mov dword [rsi + 8], r14d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [rsi + 0xc], r12d
mov ecx, dword [0x14022a6e0]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140015b9d
mov ecx, dword [0x14022a6e0]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x140015b9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r14, rax
test r15, r15
je 0x140015b9d
test r14d, r14d
jle 0x140015b9d
movsxd rdi, r14d
mov rcx, rdi
call fcn.140147b5c
mov qword [rsi + 0x28], rax
mov r8, rdi
mov rdx, r15
mov rcx, rax
call fcn.140149f10
mov dword [rsi + 0xc], r14d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [rsi + 0x10], r12d
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140015c0f
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbp, rax
test rax, rax
je 0x140015c0f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r14, rax
test r15, r15
je 0x140015c0f
test r14d, r14d
jle 0x140015c0f
movsxd rdi, r14d
mov rcx, rdi
call fcn.140147b5c
mov qword [rsi + 0x30], rax
mov r8, rdi
mov rdx, r15
mov rcx, rax
call fcn.140149f10
mov dword [rsi + 0x10], r14d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [rsi + 8]
add eax, dword [rsi + 4]
add eax, dword [rsi + 0x10]
add eax, dword [rsi + 0xc]
test eax, eax
setg dil
test bl, bl
je 0x140015c2b
call qword [sym.imp.USER32.dll_CloseClipboard]
movzx eax, dil
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret