Function at 0x47f010
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x47f02e
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 8
jge 0x47f05c
cmp dword [ebp - 4], 0
jne 0x47f05c
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x47f053
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47f05a
mov dword [ebp - 4], 1
jmp 0x47f025
cmp dword [ebp - 4], 0
jne 0x47f095
cmp dword [0x65e9c0], 0
je 0x47f079
call fcn.0047f490
mov dword [ebp - 4], 2
jmp 0x47f080
mov dword [ebp - 4], 0
push str._Clipboard_currently_busy_
call fcn.0041db70
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x47f3e9
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47f0df
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [0x65e9c0], 0
je 0x47f0c3
call fcn.0047f490
mov dword [ebp - 4], 2
jmp 0x47f0ca
mov dword [ebp - 4], 0
push str._Clipboard_empty_or_not_TEXT_data_
call fcn.0041db70
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x47f3e9
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47f12b
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [0x65e9c0], 0
je 0x47f10f
call fcn.0047f490
mov dword [ebp - 4], 2
jmp 0x47f116
mov dword [ebp - 4], 0
push str._Cant_lock_clipboard_memory_
call fcn.0041db70
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x47f3e9
cmp dword [0x65e9c0], 0
je 0x47f15b
mov eax, dword [ebp - 8]
push eax
call fcn.0047fec0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
jmp 0x47f3e9
push str._Copying..._
call fcn.0041dc30
add esp, 4
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 1
mov eax, dword [0x65e51c]
mov ecx, dword [0x65e518]
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0x47f196
mov dword [ebp - 0x24], 1
jmp 0x47f19d
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
call fcn.0040d470
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x47f349
cmp dword [ebp - 4], 0
je 0x47f349
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xa
jne 0x47f1ee
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
call fcn.0044a900
mov dword [ebp - 4], eax
jmp 0x47f33b
cmp dword [ebp - 0x14], 0xd
jne 0x47f205
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx + 1]
cmp edx, 0xa
jne 0x47f205
jmp 0x47f33b
mov eax, 8
imul ecx, eax, 0x1a
mov edx, dword [0x65e518]
mov eax, dword [edx + ecx + 0x1c]
cmp dword [eax], 2
jge 0x47f259
mov ecx, 8
imul edx, ecx, 0x1a
mov eax, dword [0x65e518]
mov ecx, dword [eax + edx + 0x1c]
cmp dword [ecx], 0xfffffffe
jne 0x47f23b
cmp dword [0x5960c8], 2
jge 0x47f259
cmp dword [ebp - 0x14], 0x7e
jbe 0x47f259
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0047fd90
add esp, 8
mov dword [ebp - 4], eax
jmp 0x47f33b
mov ecx, dword [0x65e51c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xc], 0
jmp 0x47f277
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x47f2eb
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0xa
je 0x47f2e7
cmp dword [ebp - 0x28], 0xd
jne 0x47f2ab
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx + 1]
cmp eax, 0xa
je 0x47f2e7
mov ecx, 8
imul edx, ecx, 0x1a
mov eax, dword [0x65e518]
mov ecx, dword [eax + edx + 0x1c]
cmp dword [ecx], 2
jge 0x47f2e9
mov edx, 8
imul eax, edx, 0x1a
mov ecx, dword [0x65e518]
mov edx, dword [ecx + eax + 0x1c]
cmp dword [edx], 0xfffffffe
jne 0x47f2e1
cmp dword [0x5960c8], 2
jge 0x47f2e9
cmp dword [ebp - 0x14], 0x7e
jbe 0x47f2e9
jmp 0x47f2eb
jmp 0x47f26e
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0044a2a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47f306
jmp 0x47f349
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [0x65e51c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 0x2c]
push ecx
call fcn.0050e9d0
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx - 1]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x47f1a8
cmp dword [ebp - 4], 0
je 0x47f37b
cmp dword [ebp - 0x10], 0
jbe 0x47f37b
mov eax, 1
imul ecx, eax, 0xffffffff
mov edx, dword [ebp - 8]
movsx eax, byte [edx + ecx]
cmp eax, 0xa
jne 0x47f37b
cmp dword [ebp - 0x30], 0
je 0x47f37b
push 0
push 1
call fcn.00449c50
add esp, 8
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 4], 0
jne 0x47f3a0
push str.cbrdpaste__
call fcn.00402610
add esp, 4
jmp 0x47f3e6
mov edx, dword [0x65e51c]
cmp dword [edx + 0x20], 0
jne 0x47f3b1
call fcn.0040d630
mov eax, dword [0x65e51c]
mov ecx, dword [0x65e518]
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0x47f3d4
mov eax, dword [0x65e51c]
mov ecx, dword [eax]
mov edx, dword [0x65e51c]
mov eax, dword [ecx + 4]
mov dword [edx], eax
push 1
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0047f4e0
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret