Function at 0x414640
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8058
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5091d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov esi, dword [ebp + 8]
cmp byte [eax], 0
je 0x4148f4
push 0xd
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x414935
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
jne 0x4146c4
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x58]
call fcn.00402850
push str.cannot_get_clipboard_data
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 4
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 5
jmp 0x41495f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 4], 6
test edi, edi
jne 0x41470a
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x58]
call fcn.00402850
push 0x4d6618
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 8
jmp 0x41495f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x414747
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x58]
call fcn.00402850
push str.the_clipboard_does_not_have_data.
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 0xa
jmp 0x41495f
mov ecx, edi
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414767
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00414210
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0048bc80
add esp, 8
mov dword [ebp - 0x84], eax
cmp esi, eax
je 0x414809
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4147d7
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4147c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414976
mov eax, edx
push ecx
push eax
call fcn.0049f81a
mov eax, dword [ebp - 0x84]
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea ecx, [ebp - 0x70]
call fcn.00402b80
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
test eax, eax
jne 0x414871
cmp edx, 8
jb 0x414852
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414848
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414976
push edx
push ecx
call fcn.0049f81a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor al, al
jmp 0x4148d7
lea eax, [eax*2 + 4]
cmp dword [ebp - 0x88], eax
sete byte [ebp - 0x71]
cmp edx, 8
jb 0x4148b9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4148af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414976
push edx
push ecx
call fcn.0049f81a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f836
mov esp, ebp
pop ebp
ret 4
push str.An_logic_exception_occurred:
lea ecx, [ebp - 0x40]
call fcn.00402850
push str.Thread_does_not_have_a_clipboard_open.
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
call fcn.004020f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00413ee0
push 0x4fbf84
lea eax, [ebp - 0x80]
push eax
call fcn.004a0dc4
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x58]
call fcn.00402850
push str.the_current_clipboard_data_is_not_supported_unicode
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x80]
call fcn.00402b30
push 0x4f9f28
lea eax, [ebp - 0x80]
push eax
call fcn.004a0dc4
call fcn.004a48ef
int3