Function at 0x409d58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, 0x200
cmp ecx, eax
push edi
ja 0x409f07
je 0x409eb9
mov eax, 0x100
cmp ecx, eax
ja 0x409df9
je 0x409e37
cmp ecx, 2
je 0x409dec
cmp ecx, 5
je 0x409ddb
cmp ecx, 6
jbe 0x40a0df
cmp ecx, 8
jbe 0x409dc9
cmp ecx, 0xa
je 0x409dc9
cmp ecx, 0xf
je 0x409dbb
cmp ecx, 0x14
jne 0x40a0df
xor eax, eax
inc eax
jmp 0x40a0f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
xor eax, eax
jmp 0x40a0f1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40a0df
call fcn.0040b0f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
jmp 0x40a0df
and dword [ebp + 8], 0
mov byte [esi + 0x5c], 0
jmp 0x40a0df
mov eax, ecx
sub eax, 0x101
je 0x409eaa
dec eax
je 0x409e9b
dec eax
dec eax
je 0x409e37
dec eax
je 0x409eaa
sub eax, 0xc
jne 0x40a0df
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi]
shr ecx, 0x10
push ecx
push dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x5c]
jmp 0x40a0df
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, dword [ebp + 0x10]
push 0x11
call edi
test ax, ax
jns 0x409e4f
or ebx, 0x20000
push 0x12
call edi
test ax, ax
jns 0x409e5e
or ebx, 0x10000
push 0x10
call edi
test ax, ax
jns 0x409e6d
or ebx, 0x40000
test dword [ebp + 0x14], 0x40000000
jne 0x409e86
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x48]
test al, al
jne 0x409db3
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x4c]
test al, al
je 0x40a0df
jmp 0x409db3
push dword [ebp + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
jmp 0x40a0df
push dword [ebp + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
jmp 0x40a0df
mov eax, dword [ebp + 0x14]
movsx edi, word [ebp + 0x14]
shr eax, 0x10
cmp byte [esi + 0x5c], 0
movsx ebx, ax
jne 0x409ef9
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 3
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov byte [esi + 0x5c], 1
mov eax, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x40a0df
mov eax, 0x207
cmp ecx, eax
ja 0x409fd5
je 0x409fba
mov eax, ecx
sub eax, 0x201
je 0x409f9f
dec eax
je 0x409f84
dec eax
je 0x409f69
dec eax
je 0x409f4e
dec eax
jne 0x40a0df
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
movsx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x40a0df
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
movsx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x30]
jmp 0x40a0df
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
movsx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x44]
jmp 0x40a0df
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
movsx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x28]
jmp 0x40a0df
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
movsx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x24]
jmp 0x40a0df
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
movsx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x38]
jmp 0x40a0df
mov eax, ecx
sub eax, 0x208
je 0x40a0c9
dec eax
dec eax
je 0x40a090
sub eax, 4
je 0x40a057
sub eax, 0x93
je 0x40a013
dec eax
dec eax
jne 0x40a0df
cmp byte [esi + 0x5c], al
je 0x40a0df
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
jmp 0x409df0
cmp byte [esi + 0x5c], 0
je 0x40a0df
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
shr ecx, 0x10
push ecx
movzx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 3
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
jmp 0x40a0df
movsx eax, word [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 8]
call dword [eax + 0x40]
jmp 0x40a0df
movsx eax, word [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 8]
call dword [eax + 0x3c]
jmp 0x40a0df
mov ecx, dword [ebp + 0x14]
mov eax, dword [esi]
shr ecx, 0x10
movsx ecx, cx
push ecx
movsx ecx, word [ebp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x34]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10