Function at 0x140161794
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp qword [rsp + 0xb0], 0
jne 0x1401617d5
mov r8d, 0x12a
lea rdx, [0x14020dca8]
lea rcx, [0x14020dcd8]
call fcn.140192ba0
xor eax, eax
cmp qword [rsp + 0xb0], 0
je 0x1401617fc
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.1401614a4
movzx eax, al
test eax, eax
jne 0x140161803
xor al, al
jmp 0x140161aa3
mov byte [rsp + 0x40], 0
call fcn.140142038
cmp qword [rsp + 0xa8], rax
jne 0x1401619a9
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140161932
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140161930
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140161930
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cdqe
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0x58], rax
jbe 0x1401618d2
mov r8d, 0x13b
lea rdx, [0x14020dce0]
lea rcx, [0x14020dd10]
call fcn.140192ba0
xor eax, eax
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0x58], rax
ja 0x140161925
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1401619a4
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1401619a4
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x1401619a4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x1401619a4
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
call fcn.14018c770
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140161a9f
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140161a9f
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140161a9f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140161a9f
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x48], rax
jbe 0x140161a45
mov r8d, 0x15f
lea rdx, [0x14020dd30]
lea rcx, [0x14020dd60]
call fcn.140192ba0
xor eax, eax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x48], rax
jbe 0x140161a5f
mov rax, qword [rsp + 0x78]
sub rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0x48], rax
ja 0x140161a94
mov rax, qword [rsp + 0x80]
add rax, 8
mov r8, qword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.14018c770
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov al, byte [rsp + 0x40]
add rsp, 0x98
ret