Function at 0x422470
Capabilities:
Get graphical window text
Hide graphical window
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x645324]
sub esp, 0x3f0
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x42248d
add esp, 0x3f0
ret
mov eax, dword [esp + 0x3f4]
push ebx
push ebp
push esi
mov esi, 1
xor ebp, ebp
cmp eax, esi
push edi
mov dword [esp + 0x10], ebp
jne 0x42257f
cmp dword [0x63b6a8], ebp
je 0x422589
mov ebx, dword [sym.imp.USER32.dll_EnumClipboardFormats]
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x422589
lea ebx, [ebx]
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
test eax, eax
je 0x4224fb
lea edx, [esp + 0x18]
push str.Rich_Text_Format
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x422509
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x4224d0
jmp 0x422589
mov eax, dword [0x645320]
mov ecx, dword [0x645324]
push 0
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
push 0
push 0
push 0x443111c4
push 0x5e6c98
push str.RichEdit20A
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebp, eax
test ebp, ebp
je 0x422589
push 0
push 2
push 0x459
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x7d000
push 2
push ebp
call fcn.00488930
add esp, 0xc
push 5
push ebp
mov esi, edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x23
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x422589
cmp eax, 2
jne 0x422589
mov esi, 0xd
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x4226b4
jmp 0x4225a4
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4226ad
test ebp, ebp
je 0x422638
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0xc
push ebp
call esi
cmp eax, 1
jne 0x4225ef
push 0
push 0
push 0xe
push ebp
call esi
mov ebx, eax
test ebx, ebx
jle 0x4225ef
lea edx, [ebx + 0xa]
push edx
call fcn.005cc381
mov esi, eax
add esp, 4
test esi, esi
jne 0x42260b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4225a0
jmp 0x4226b4
lea ecx, [ebx + 0xa]
mov edx, ecx
shr ecx, 2
xor eax, eax
push esi
mov edi, esi
rep stosd dword es:[edi], eax
add ebx, 5
push ebx
mov ecx, edx
push 0xd
and ecx, 3
push ebp
rep stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
jmp 0x4226ad
cmp dword [esp + 0x404], 2
jne 0x422653
push 0xffffffffffffffff
push eax
call fcn.00579110
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x4226ad
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422656
sub eax, edx
mov esi, eax
lea ebx, [esi + 0xa]
push ebx
call fcn.005cc381
mov edx, eax
add esp, 4
test edx, edx
je 0x4226a5
mov ecx, ebx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
mov esi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], edx
jmp 0x4226ad
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebp, ebp
je 0x4226bf
push ebp
call dword [sym.imp.USER32.dll_DestroyWindow]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3f0
ret