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

Disassembly:
mov eax, 0x1070
call fcn.005d9990
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4224e0
pop ebp
add esp, 0x1070
ret
mov eax, dword [esp + 0x1078]
push ebx
push esi
mov esi, 1
cmp eax, esi
push edi
mov dword [esp + 0x10], ebp
jne 0x4225cf
cmp dword [0x676e94], ebp
je 0x4225d9
mov ebx, dword [sym.imp.USER32.dll_EnumClipboardFormats]
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x4225d9
lea ebx, [ebx]
push 0x400
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
test eax, eax
je 0x42254b
lea ecx, [esp + 0x18]
push str.Rich_Text_Format
push ecx
call fcn.005f1860
add esp, 8
test eax, eax
je 0x422559
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x422520
jmp 0x4225d9
mov edx, dword [0x6a0f3c]
mov eax, dword [0x6a0f40]
push 0
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
push 0
push 0
push 0x443111c4
push 0x5f4c90
push str.RichEdit20A
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebp, eax
test ebp, ebp
je 0x4225d9
push 0
push 2
push 0x459
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x7d000
push 2
push ebp
call fcn.0048a1b0
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 0x4225d9
cmp eax, 2
jne 0x4225d9
mov esi, 0xd
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x422704
jmp 0x4225f4
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4226fd
test ebp, ebp
je 0x422688
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0xc
push ebp
call esi
cmp eax, 1
jne 0x42263f
push 0
push 0
push 0xe
push ebp
call esi
mov ebx, eax
test ebx, ebx
jle 0x42263f
lea ecx, [ebx + 0xa]
push ecx
call fcn.005d9f91
mov esi, eax
add esp, 4
test esi, esi
jne 0x42265b
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 0x4225f0
jmp 0x422704
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 0x4226fd
cmp dword [esp + 0x1084], 2
jne 0x4226a3
push 0xffffffffffffffff
push eax
call fcn.00584ef0
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x4226fd
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4226a6
sub eax, edx
mov esi, eax
lea ebx, [esi + 0xa]
push ebx
call fcn.005d9f91
mov edx, eax
add esp, 4
test edx, edx
je 0x4226f5
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 0x4226fd
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebp, ebp
pop edi
pop esi
pop ebx
je 0x422712
push ebp
call dword [sym.imp.USER32.dll_DestroyWindow]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 4]
pop ebp
add esp, 0x1070
ret