Function at 0x419c10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421928
push 0x41bd84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
push str.Dreye_Search_Last_Active_Window
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [ebp - 0x24], eax
mov edi, dword [esi + 0x7dbc]
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x419e39
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x419e39
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x419e39
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x419e39
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x419d0d
push ebx
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x419cb0
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
jmp 0x419cb2
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x419d07
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
mov dword [ebp - 0x34], ebx
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x30], edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [ebp - 0x20]
xor ebx, ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x419d24
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push 0x1d
push 0x11
mov esi, dword [sym.imp.USER32.dll_keybd_event]
call esi
push ebx
push ebx
push 0x52
push 0x2d
call esi
push ebx
push 2
push 0x1d
push 0x11
call esi
push ebx
push 2
push 0x52
push 0x2d
call esi
mov dword [ebp - 0x2c], ebx
cmp ebx, 0x1388
jae 0x419e2b
push 0
push 0
mov edx, dword [ebp - 0x24]
push edx
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x419e0b
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x419e05
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [ebp - 0x3c], eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x38], ebx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call edi
mov esi, eax
push ebx
call edi
mov edi, eax
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
xor edx, edx
mov ecx, 0x3e8
div ecx
test edx, edx
jne 0x419e25
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x419d5e
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4