Function at 0x40eedd
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x40f130
call fcn.004108ac
sub esp, 0x6c
mov eax, dword [ebp + 8]
test byte [ecx + 0x24], 1
push ebx
mov eax, dword [eax + 4]
push esi
mov dword [ebp - 0x10], ecx
push edi
je 0x40f1f0
cmp eax, 0x200
je 0x40ef27
cmp eax, 0xa0
je 0x40ef27
cmp eax, 0x202
je 0x40ef27
cmp eax, 0x205
je 0x40ef27
cmp eax, 0x208
jne 0x40f1f0
push 1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x40f1f0
push 2
call esi
test ax, ax
jl 0x40f1f0
push 4
call esi
test ax, ax
jl 0x40f1f0
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00422895
test eax, eax
je 0x40ef80
cmp eax, dword [ebp - 0x10]
je 0x40ef89
test byte [eax + 0x24], 1
jne 0x40ef80
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00422895
test eax, eax
jne 0x40ef62
cmp eax, dword [ebp - 0x10]
jne 0x40f1f0
call fcn.00437d9a
lea esi, [eax + 0xd0]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ebx, dword [esi]
call fcn.0042427b
mov edi, eax
test ebx, ebx
je 0x40efdd
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x40efb7
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00422895
cmp eax, edi
je 0x40efd9
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x5c]
test ebx, ebx
je 0x40efd5
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
xor ebx, ebx
mov dword [esi], ebx
test ebx, ebx
jne 0x40f042
push 0x58
mov ebx, 0
call fcn.00420809
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40f003
mov ecx, eax
call fcn.0040ebe5
mov ebx, eax
push 1
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.0040ec6b
test eax, eax
jne 0x40f02e
test ebx, ebx
je 0x40f1f0
push 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
jmp 0x40f1f0
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi], ebx
push 0x28
xor esi, esi
push esi
lea eax, [ebp - 0x50]
push eax
call fcn.00410d30
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], 0x28
mov dword [ebp - 0x4c], 1
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0x408
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x40f097
lea eax, [ebp - 0x50]
push eax
push esi
push 0x404
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
add eax, 0x14
mov esi, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x24], edx
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x28
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00410d30
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0x28
push eax
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x28]
call dword [eax + 0x68]
mov dword [ebp - 0x14], eax
inc eax
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
add eax, 0xd8
mov dword [ebp - 0x1c], eax
cmp dword [eax], ecx
jne 0x40f143
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp dword [eax + 0xd4], ecx
jne 0x40f143
cmp dword [ebp - 0x14], 0xffffffff
je 0x40f1df
push dword [ebp + 8]
push ebx
call fcn.0040f202
jmp 0x40f1df
cmp dword [ebp - 0x14], 0xffffffff
je 0x40f199
lea esi, [ebp - 0x78]
lea edi, [ebp - 0x50]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x74]
and eax, 0x3fffffff
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x404
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x71], 0x40
jne 0x40f187
mov ecx, dword [ebp - 0x10]
call fcn.004242c0
test eax, eax
je 0x40f199
push 0
push 1
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 8]
push ebx
call fcn.0040f202
mov edi, dword [ebp - 0x18]
add edi, 0xdc
cmp dword [edi], 0x28
jne 0x40f1c1
push edi
push 0
push 0x405
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea esi, [ebp - 0x78]
mov dword [eax + 0xd4], ecx
mov eax, dword [ebp - 0x14]
mov ecx, 0xa
mov dword [edx], eax
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x54], 0xffffffff
je 0x40f1f0
push dword [ebp - 0x54]
call fcn.00410c40
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4