Function at 0x405a91
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x405ce4
call fcn.00406b68
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 0x405db5
cmp eax, 0x200
je 0x405adb
cmp eax, 0xa0
je 0x405adb
cmp eax, 0x202
je 0x405adb
cmp eax, 0x205
je 0x405adb
cmp eax, 0x208
jne 0x405db5
push 1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x405db5
push 2
call esi
test ax, ax
jl 0x405db5
push 4
call esi
test ax, ax
jl 0x405db5
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0041a3be
test eax, eax
je 0x405b34
cmp eax, dword [ebp - 0x10]
je 0x405b3d
test byte [eax + 0x24], 1
jne 0x405b34
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041a3be
test eax, eax
jne 0x405b16
cmp eax, dword [ebp - 0x10]
jne 0x405db5
call fcn.0042e8da
lea esi, [eax + 0xd0]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ebx, dword [esi]
call fcn.0041bd32
mov edi, eax
test ebx, ebx
je 0x405b91
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x405b6b
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041a3be
cmp eax, edi
je 0x405b8d
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x5c]
test ebx, ebx
je 0x405b89
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
xor ebx, ebx
mov dword [esi], ebx
test ebx, ebx
jne 0x405bf6
push 0x58
mov ebx, 0
call fcn.00419b62
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x405bb7
mov ecx, eax
call fcn.0040577d
mov ebx, eax
push 1
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00405803
test eax, eax
jne 0x405be2
test ebx, ebx
je 0x405db5
push 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
jmp 0x405db5
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.00406b10
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 0x405c4b
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.00406b10
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 0x405cf7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp dword [eax + 0xd4], ecx
jne 0x405cf7
cmp dword [ebp - 0x14], 0xffffffff
je 0x405da4
push dword [ebp + 8]
push ebx
call fcn.00405dc7
jmp 0x405da4
cmp dword [ebp - 0x14], 0xffffffff
je 0x405d5e
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 0x405d3b
mov ecx, dword [ebp - 0x10]
call fcn.0041bd77
test eax, eax
je 0x405d5e
xor esi, esi
push esi
push 1
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x13
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 8]
push ebx
call fcn.00405dc7
mov edi, dword [ebp - 0x18]
add edi, 0xdc
cmp dword [edi], 0x28
jne 0x405d86
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 0x405db5
push dword [ebp - 0x54]
call fcn.00406d80
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