Function at 0x47ece0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x47ef4f
cmp dword [ecx], 0
je 0x47ef4f
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
test eax, eax
je 0x47edbc
cmp word [eax], si
je 0x47ef4c
push eax
call fcn.00441380
add esp, 4
mov esi, eax
cmp byte [ebp + 0x14], 0
je 0x47ed51
test esi, esi
je 0x47ef4c
cmp word [esi], 0
je 0x47ed51
push 0
push esi
call fcn.0041f9d0
mov edi, eax
add esp, 8
test edi, edi
je 0x47ed51
push esi
call fcn.00441300
add esp, 4
mov esi, edi
test esi, esi
je 0x47ef4c
cmp word [esi], 0
je 0x47ef43
mov eax, esi
lea edx, [eax + 2]
jmp 0x47ed70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47ed70
sub eax, edx
sar eax, 1
push 0x4c2ecc
push esi
lea edi, [esi + eax*2]
call fcn.004b13eb
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 8
test eax, eax
je 0x47eed9
cmp eax, edi
jae 0x47eed9
cmp byte [ebp + 8], 0
je 0x47ee90
xor edx, edx
mov word [eax], dx
mov edi, eax
jmp 0x47eed9
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004b03e0
add esp, 0xc
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x47edfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x104]
push str.Cant_open_Windows_clipboard
push ecx
mov ebx, eax
call fcn.00438c90
add esp, 8
jmp 0x47ee59
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x47ee1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov ebx, eax
mov word [ebp - 0x104], dx
jmp 0x47ee59
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x47ee47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x104]
push str.Cant_lock_CF_UNICODETEXT
push eax
call fcn.00438c90
add esp, 8
jmp 0x47ee59
push eax
call fcn.00441380
add esp, 4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
jne 0x47ed21
cmp word [ebp - 0x104], si
je 0x47ef4c
push esi
push esi
push esi
lea ecx, [ebp - 0x104]
push ebx
push ecx
call fcn.004200b0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x50b3a0]
cmp byte [eax + 0x1251], 0
je 0x47eed9
cmp byte [ebp + 0x10], 0
jne 0x47eed9
lea ecx, [ebp - 0x204]
push str.Pasting_text_involves__Enter__keypress__nContinue_
push ecx
call fcn.00438c90
mov ecx, dword [ebp - 4]
add esp, 8
push 1
push 0
call fcn.0047d8a0
push eax
mov eax, dword [0x50b384]
lea edx, [ebp - 0x204]
push edx
push eax
call ebx
cmp eax, 1
jne 0x47ef43
mov ecx, dword [0x50b3a0]
mov ecx, dword [ecx + 0x1254]
test ecx, ecx
je 0x47ef31
cmp byte [ebp + 0x10], 0
jne 0x47ef31
mov eax, edi
sub eax, esi
sar eax, 1
cmp eax, ecx
jbe 0x47ef31
push eax
lea edx, [ebp - 0x204]
push str.Pasting_text_length_is__u_chars__nContinue_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0xc
push 1
push 0
call fcn.0047d8a0
mov ecx, dword [0x50b384]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
call ebx
cmp eax, 1
jne 0x47ef43
cmp edi, esi
jbe 0x47ef43
mov ecx, dword [ebp - 4]
sub edi, esi
sar edi, 1
push edi
push esi
call fcn.0047cb10
push esi
call fcn.00441300
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10