Function at 0x4f1922
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4f1959
xor eax, eax
jmp 0x4f1b46
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1cc], eax
push 1
push 1
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
call fcn.004e43fc
add esp, 0xc
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1cc]
push eax
call fcn.004e4256
add esp, 8
push 0x18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1cc]
push eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0x7fff
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e6dbb
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x7fff
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e7be0
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f19eb
jmp 0x4f1b34
mov eax, dword [ebp - 4]
test byte [eax], 2
jne 0x4f1a03
mov eax, dword [ebp - 4]
test byte [eax], 4
je 0x4f1a1b
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e9022
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x4f1a22
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x4f1a5d
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
test eax, eax
jne 0x4f1a56
mov eax, dword [ebp - 4]
test byte [eax + 1], 1
je 0x4f1a5d
mov dword [ebp - 0xc], 0x7fff
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c0], 0
je 0x4f1a7d
push 1
push 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.004e43fc
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ebd3e
add esp, 8
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ea15b
add esp, 0x14
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ebe0b
add esp, 0x10
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004eaa3a
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f1b34
call dword [sym.imp.USER32.dll_GetClipboardOwner]
cmp eax, dword [ebp + 8]
jne 0x4f1b2e
xor eax, eax
mov ax, word [0x5336b8]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f1b2e
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x48], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
jmp 0x4f1b46
pop edi
pop esi
pop ebx
leave
ret