Function at 0x414320
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5091d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x84], eax
mov eax, dword [eax + 4]
cmp byte [eax], 0
je 0x41450e
mov eax, dword [eax + 8]
test eax, eax
je 0x414378
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x41454f
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
jne 0x4143b3
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x40]
call fcn.00402850
push str.cannot_get_clipboard_data
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 5
jmp 0x414579
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov esi, eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 4], 6
test esi, esi
jne 0x4143fb
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x40]
call fcn.00402850
push str.cannot_lock_global_clipboard_data
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 8
jmp 0x414579
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x80], eax
test eax, eax
jne 0x414435
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x40]
call fcn.00402850
push str.the_clipboards_data_is_not_valid.
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 0xa
jmp 0x414579
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x414470
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x40]
call fcn.00402850
push str.cannot_alloc_memories_in_global_area.
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 0xc
jmp 0x414579
push ebx
call edi
mov edi, eax
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 0xd
test edi, edi
jne 0x4144cd
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x58]
call fcn.00402850
push str.cannot_lock_global_memory_for_backup.
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xe
push eax
call fcn.004020f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xf
call fcn.00402b30
push 0x4f9f28
lea eax, [ebp - 0x98]
jmp 0x41458a
push dword [ebp - 0x80]
push esi
push edi
call fcn.004a11f0
mov eax, dword [ebp - 0x84]
add esp, 0xc
mov eax, dword [eax + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [eax + 8], ebx
call edi
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049f836
mov esp, ebp
pop ebp
ret
push str.An_logic_exception_occurred:
lea ecx, [ebp - 0x28]
call fcn.00402850
push str.Thread_does_not_have_a_clipboard_open.
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.004020f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00413ee0
push 0x4fbf84
lea eax, [ebp - 0x7c]
push eax
call fcn.004a0dc4
push str.An_runtime_exception_occurred:
lea ecx, [ebp - 0x40]
call fcn.00402850
push str.Cannot_free_cache_for_backup
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
call fcn.004020f0
add esp, 0xc
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x7c]
call fcn.00402b30
push 0x4f9f28
lea eax, [ebp - 0x7c]
push eax
call fcn.004a0dc4
int3