Function at 0x140158604
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 0x140158645
mov r8d, 0x12a
lea rdx, [0x140202708]
lea rcx, [0x140202738]
call fcn.140189910
xor eax, eax
cmp qword [rsp + 0xb0], 0
je 0x14015866c
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.140158314
movzx eax, al
test eax, eax
jne 0x140158673
xor al, al
jmp 0x140158913
mov byte [rsp + 0x40], 0
call fcn.140138cd0
cmp qword [rsp + 0xa8], rax
jne 0x140158819
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1401587a2
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 0x1401587a0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1401587a0
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 0x140158742
mov r8d, 0x13b
lea rdx, [0x140202740]
lea rcx, [0x140202770]
call fcn.140189910
xor eax, eax
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0x58], rax
ja 0x140158795
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 0x140158814
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140158814
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140158814
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140158814
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
call fcn.1401834e0
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x14015890f
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x14015890f
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14015890f
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 0x14015890f
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 0x1401588b5
mov r8d, 0x15f
lea rdx, [0x140202790]
lea rcx, [0x1402027c0]
call fcn.140189910
xor eax, eax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x48], rax
jbe 0x1401588cf
mov rax, qword [rsp + 0x78]
sub rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
cmp qword [rsp + 0x48], rax
ja 0x140158904
mov rax, qword [rsp + 0x80]
add rax, 8
mov r8, qword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.1401834e0
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