Function at 0x490660
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4909b2
cmp dword [ecx + 4], 0
je 0x4909b2
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
test eax, eax
je 0x490753
cmp word [eax], si
je 0x4909af
push 1
push eax
call fcn.0044c570
add esp, 8
mov dword [ebp - 4], eax
mov esi, eax
cmp byte [ebp + 0x14], 0
je 0x4906dd
test esi, esi
je 0x4909af
cmp word [esi], 0
je 0x4906dd
push 0
push esi
call fcn.00425890
mov edi, eax
add esp, 8
test edi, edi
je 0x4906dd
push esi
call fcn.0044c4f0
add esp, 4
mov dword [ebp - 4], edi
mov esi, edi
test esi, esi
je 0x4909af
cmp word [esi], 0
je 0x4909a6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4906f4
sub eax, edx
sar eax, 1
lea edi, [esi + eax*2]
push 0x4e77f4
push esi
mov dword [ebp - 8], edi
call fcn.004c9bf0
mov ecx, dword [ebp + 8]
add esp, 8
cmp ecx, 2
jne 0x4908d6
mov ecx, dword [ebp - 0xc]
push 0
call fcn.0048f6a0
mov ecx, dword [0x52fe30]
push eax
call fcn.0044e860
test eax, eax
je 0x490815
mov ecx, eax
call fcn.0047ad90
test al, al
setne byte [ebp + 0x17]
jmp 0x490819
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004c9b50
push str.GetClipboard
xor ebx, ebx
call fcn.00426620
add esp, 0x10
test al, al
je 0x4909af
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x49079e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov ebx, eax
mov word [ebp - 0x10c], cx
jmp 0x4907df
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4907c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x10c]
push str.Cant_lock_CF_UNICODETEXT
push edx
mov ebx, eax
call fcn.00440fd0
add esp, 8
jmp 0x4907df
push 1
push eax
call fcn.0044c570
add esp, 8
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp - 4]
call fcn.004266c0
test esi, esi
jne 0x4906aa
cmp word [ebp - 0x10c], si
je 0x4909af
push esi
push esi
push esi
lea eax, [ebp - 0x10c]
push ebx
push eax
call fcn.004263e0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp + 0x17], 0
mov eax, esi
mov dword [ebp + 0xc], eax
cmp esi, edi
jae 0x4908ca
jmp 0x490830
push 0x4e77f4
push esi
call fcn.004c9bf0
add esp, 8
test eax, eax
jne 0x490859
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490847
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2]
cmp word [eax], 0xd
mov ebx, eax
jne 0x490864
lea ebx, [eax + 2]
cmp word [ebx], 0xa
jne 0x49086d
add ebx, 2
cmp byte [ebp + 0x17], 0
je 0x490885
cmp eax, esi
jbe 0x490885
cmp word [eax - 2], 0x20
jne 0x490885
add eax, 0xfffffffe
cmp eax, esi
ja 0x490877
mov edi, eax
sub edi, esi
sar edi, 1
cmp eax, esi
jbe 0x4908a4
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x4908a4
lea ecx, [edi + edi]
push ecx
push esi
push eax
call fcn.004c9f70
add esp, 0xc
mov edx, dword [ebp + 0xc]
lea eax, [edx + edi*2]
mov esi, ebx
mov dword [ebp + 0xc], eax
cmp ebx, dword [ebp - 8]
jae 0x4908c7
mov ecx, 0x20
mov word [eax], cx
add eax, 2
mov dword [ebp + 0xc], eax
jmp 0x490830
mov esi, dword [ebp - 4]
xor edx, edx
mov word [eax], dx
mov dword [ebp - 8], eax
mov edi, eax
jmp 0x490939
test eax, eax
je 0x490939
cmp ecx, 1
jne 0x4908eb
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 8], eax
mov edi, eax
jmp 0x490939
mov edx, dword [0x52fe30]
cmp byte [edx + 0x125c], 0
je 0x490939
cmp byte [ebp + 0x10], 0
jne 0x490939
lea eax, [ebp - 0x20c]
push str.Pasting_text_involves__Enter__keypress__nContinue_
push eax
call fcn.00440fd0
mov ecx, dword [ebp - 0xc]
add esp, 8
push 1
push 0xffffffffffffffff
push 0
call fcn.0048ec50
push eax
lea ecx, [ebp - 0x20c]
push 0x31
push ecx
call fcn.004262f0
add esp, 0x14
cmp eax, 1
jne 0x4909a6
mov edx, dword [0x52fe30]
mov ecx, dword [edx + 0x1260]
test ecx, ecx
je 0x490994
cmp byte [ebp + 0x10], 0
jne 0x490994
mov eax, edi
sub eax, esi
sar eax, 1
cmp eax, ecx
jbe 0x490994
push eax
lea eax, [ebp - 0x20c]
push str.Pasting_text_length_is__u_chars__nContinue_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push 1
push 0xffffffffffffffff
push 0
call fcn.0048ec50
push eax
lea ecx, [ebp - 0x20c]
push 0x21
push ecx
call fcn.004262f0
add esp, 0x14
cmp eax, 1
jne 0x4909a6
cmp edi, esi
jbe 0x4909a6
mov ecx, dword [ebp - 0xc]
sub edi, esi
sar edi, 1
push edi
push esi
call fcn.0048d650
push esi
call fcn.0044c4f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10