Function at 0x404fa0
Capabilities:
Enumerate gui resources
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x466c10], 1
push esi
push edi
jne 0x4051df
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, eax
mov ecx, esi
sub ecx, dword [0x466c28]
cmp ecx, 0x2710
jbe 0x405023
mov ecx, dword [0x466180]
mov edx, dword [0x466184]
cmp ecx, edx
je 0x40500d
push ecx
call fcn.004127a0
mov eax, dword [0x466180]
add esp, 4
mov dword [0x466184], eax
push 0x466180
push 0x404d10
call dword [sym.imp.USER32.dll_EnumWindows]
mov dword [0x466c28], esi
cmp dword [0x466c14], 0
jne 0x405033
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x40509f
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push dword [0x466c14]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x14]
push eax
push dword [0x466c14]
call esi
lea eax, [ebp - 0xc]
push eax
push dword [0x466c14]
call esi
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edx, dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp - 8]
sar esi, 1
lea eax, [eax + edx]
cdq
sub eax, edx
sar eax, 1
dec eax
push eax
lea eax, [esi - 1]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetPixel]
push edi
push 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [0x466c1c]
mov eax, dword [0x466d04]
movzx ecx, dl
movsd xmm2, qword [0x461240]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [eax], xmm0
movzx eax, dh
movd xmm0, eax
mov eax, dword [0x466d04]
cvtdq2pd xmm0, xmm0
movsd qword [eax + 8], xmm0
movzx eax, byte [0x466c1e]
movd xmm0, eax
mov eax, dword [0x466d04]
cvtdq2pd xmm0, xmm0
movsd qword [eax + 0x10], xmm0
movzx eax, cl
movd xmm0, eax
mov eax, dword [0x466cc8]
cvtdq2pd xmm0, xmm0
movsd qword [eax], xmm0
mov ax, cx
shr ax, 8
movzx eax, ax
movd xmm0, eax
mov eax, dword [0x466cc8]
cvtdq2pd xmm0, xmm0
movsd qword [eax + 8], xmm0
mov eax, ecx
shr eax, 0x10
movzx eax, al
movd xmm0, eax
mov eax, dword [0x466cc8]
cvtdq2pd xmm0, xmm0
movsd qword [eax + 0x10], xmm0
mov eax, dword [0x466cc8]
mov edx, dword [0x466d04]
movd xmm1, dword [0x466c18]
cvtdq2pd xmm1, xmm1
movsd xmm0, qword [eax]
subsd xmm0, qword [edx]
andps xmm0, xmm2
comisd xmm0, xmm1
ja 0x40518a
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [edx + 8]
andps xmm0, xmm2
comisd xmm0, xmm1
ja 0x40518a
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [edx + 0x10]
andps xmm0, xmm2
comisd xmm0, xmm1
jbe 0x4051d9
push dword [0x466c0c]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
test al, 1
je 0x4051d6
mov esi, dword [sym.imp.USER32.dll_mouse_event]
push 0
push 0
push 0
push 0
push 2
call esi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0
push 4
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0x18]
mov dword [0x466c1c], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004571c9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret