Function at 0x40cda5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
or edi, dword [0x49c6d4]
mov eax, edi
mov ebx, edi
and eax, 0x4000
and ebx, 0x1000
mov dword [ebp - 8], eax
mov eax, edi
and eax, 0x2000
mov dword [ebp - 0xc], eax
mov eax, 0x8000
test eax, edi
je 0x40cde8
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x40cdeb
push 2
pop eax
and edi, 0xffff0fff
mov dword [ebp + 8], eax
cmp edi, 1
jne 0x40ce83
cmp byte [0x49c6f9], 0
jne 0x40ce0d
xor esi, esi
jmp 0x40cfff
cmp byte [0x49c6d8], 0
je 0x40ce1e
xor esi, esi
inc esi
jmp 0x40cfff
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 3
call edi
test al, 1
jne 0x40ce53
push 0x1b
call edi
test al, 1
je 0x40cfff
push 0x12
call edi
test ax, ax
jne 0x40ce06
push 0x11
call edi
test ax, ax
jne 0x40ce06
push 0x10
call edi
test ax, ax
jne 0x40ce06
mov eax, dword [ebp + 8]
or eax, 1
mov dword [ebp + 8], eax
push eax
push 0x20e
push 0xa0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
mov eax, dword [ebp + 8]
jne 0x40ce5c
mov byte [0x49c6d8], 1
jmp 0x40ce16
test ebx, ebx
jne 0x40ce95
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x40cffc
mov ebx, dword [ebp + 8]
xor esi, esi
push ebx
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40cfdf
and dword [ebp - 4], 0
cmp dword [0x49c6e8], 1
mov edx, dword [ebp - 0x24]
mov dword [ebp + 8], edx
jne 0x40ce16
mov eax, edx
sub eax, 0xf
je 0x40cf18
sub eax, 0x11
je 0x40cefa
sub eax, 0x80
je 0x40cefa
sub eax, 0x61
je 0x40cef4
sub eax, 0x17
je 0x40cf0b
sub eax, 0xe8
je 0x40cefa
dec eax
sub eax, 1
jne 0x40cf25
cmp dword [ebp - 0xc], 0
jmp 0x40cf1c
test edi, edi
jne 0x40cf1e
call dword [sym.imp.USER32.dll_GetCapture]
mov edx, dword [ebp + 8]
test eax, eax
jne 0x40cf25
test edi, edi
jne 0x40cf1e
mov dword [ebp - 4], 1
jmp 0x40cf1e
cmp dword [ebp - 8], 0
jne 0x40cf25
xor ecx, ecx
xor esi, esi
inc ecx
jmp 0x40cf3b
lea eax, [edx - 0xa0]
xor ecx, ecx
cmp eax, 0x16e
jbe 0x40cffc
xor esi, esi
inc esi
cmp dword [ebp - 4], 0
je 0x40cf7b
mov eax, ebx
or eax, 1
push eax
push edx
push edx
push dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40cf6e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
test esi, esi
je 0x40ce9a
jmp 0x40cfff
test ecx, ecx
je 0x40cfdb
cmp dword [ebp - 8], 0
je 0x40cf98
push ebx
push 0xf
push 0xf
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, eax
test esi, esi
jne 0x40cfc9
xor edi, edi
cmp edi, 0x40
jae 0x40cfc5
push ebx
push dword [edi + 0x4997a4]
lea eax, [ebp - 0x28]
push dword [edi + 0x4997a0]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, eax
add edi, 8
test esi, esi
je 0x40cf9e
test esi, esi
je 0x40cfdf
mov eax, dword [ebp - 0x24]
add eax, 0xffffff60
cmp eax, 0x16e
jbe 0x40cffc
xor esi, esi
inc esi
test esi, esi
jne 0x40cfff
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call edi
mov ebx, 0x8000
test bx, ax
jne 0x40cffc
push 2
call edi
test bx, ax
je 0x40cfff
push 2
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4