Function at 0x4052f0
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x264
mov eax, dword [0x40f814]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push 0x1004
push eax
mov dword [esp + 0x20], ebp
mov byte [esp + 0x24], 0xd
mov byte [esp + 0x25], 0xa
mov byte [esp + 0x26], 0
call ebx
mov esi, eax
mov ecx, 0x3f
xor eax, eax
mov edi, 0x40f714
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
mov dword [esp + 0x18], esi
stosb byte es:[edi], al
jle 0x40540a
mov eax, dword [0x40f814]
lea edx, [esp + 0x4c]
push edx
push ebp
mov esi, 0xff
lea ecx, [esp + 0x17c]
push 0x102d
push eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ecx
call ebx
mov eax, dword [0x40f814]
lea edx, [esp + 0x24]
push edx
push ebp
lea ecx, [esp + 0x7c]
push 0x102d
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ecx
call ebx
lea ecx, [esp + 0x74]
lea edx, [esp + 0x174]
push ecx
push edx
push str.__50s_t_t__50s
push 0x40f714
call fcn.004059b0
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40f714
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40f714
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add edx, ecx
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], edx
jl 0x405343
mov esi, eax
mov eax, dword [esp + 0x10]
lea ebp, [eax + 1]
push ebp
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
je 0x40556a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov dword [esp + 0x14], eax
call fcn.00405a8a
add esp, 4
xor ebp, ebp
test esi, esi
mov dword [esp + 0x1c], eax
jle 0x405526
mov eax, dword [0x40f814]
lea edx, [esp + 0x24]
push edx
push ebp
mov esi, 0xff
lea ecx, [esp + 0x17c]
push 0x102d
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ecx
call ebx
mov eax, dword [0x40f814]
lea edx, [esp + 0x4c]
push edx
push ebp
lea ecx, [esp + 0x7c]
push 0x102d
push eax
mov dword [esp + 0x64], 1
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ecx
call ebx
lea ecx, [esp + 0x74]
lea edx, [esp + 0x174]
push ecx
push edx
push str.__50s_t_t__30s
push 0x40f714
call fcn.004059b0
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40f714
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40f714
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, eax
rep movsb byte es:[edi], byte [esi]
jl 0x40544a
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x40f70c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x405552
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00405a7f
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret