Function at 0x40efa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x5f300c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea eax, [esi - 0x100]
cmp eax, 9
ja case.0x40efd2.259
movzx eax, byte [eax + 0x40f364]
jmp dword [eax*4 + 0x40f350]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
mov byte [ebx + 0x7a8], 0
call edi
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cwde
shr eax, 0x1f
mov dword [esp + 0x14], eax
test al, al
je case.0x40f013.13
test edx, 0x1000000
jne case.0x40f013.13
lea eax, [ecx - 0xc]
cmp eax, 0x21
ja case.0x40f013.13
movzx eax, byte [eax + 0x40f378]
jmp dword [eax*4 + 0x40f370]
push edx
push ecx
push esi
push dword [ebx + 0x2a4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 0xc
push 0x11
call edi
movsx esi, ax
push 0x10
shr esi, 0x1f
call edi
movsx ecx, ax
mov eax, dword [esp + 0x14]
movzx eax, al
shr ecx, 0x1f
shl eax, 2
or ecx, eax
lea eax, [esi + esi]
or ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 8]
cmp eax, 0xd5
ja case.0x40f07e.10
movzx eax, byte [eax + 0x40f404]
jmp dword [eax*4 + 0x40f39c]
mov edi, 0x12c
jmp 0x40f14b
mov edi, 0x12d
jmp 0x40f14b
mov edi, 0x12e
jmp 0x40f14b
mov edi, 0x12f
jmp 0x40f14b
mov edi, 0x130
jmp 0x40f14b
mov edi, 0x131
jmp 0x40f14b
mov edi, 0x132
jmp 0x40f14b
mov edi, 0x133
jmp 0x40f14b
mov edi, 0x134
jmp 0x40f14b
mov edi, 0x135
jmp 0x40f14b
mov edi, 7
jmp 0x40f14b
mov edi, 8
jmp 0x40f14b
mov edi, 9
jmp 0x40f14b
mov edi, 0xd
jmp 0x40f14b
mov edi, 0x136
jmp 0x40f14b
mov edi, 0x137
jmp 0x40f14b
mov edi, 0x138
jmp 0x40f14b
mov edi, 0x139
jmp 0x40f14b
mov edi, 0x13a
jmp 0x40f14b
mov edi, 0x13b
jmp 0x40f14b
mov edi, 0x2f
jmp 0x40f14b
mov edi, 0x60
jmp 0x40f14b
mov edi, 0x5b
jmp 0x40f14b
mov edi, 0x5c
jmp 0x40f14b
mov edi, 0x5d
jmp 0x40f14b
mov edi, ecx
mov dword [ebx + 0x570], 0x989680
cmp byte [ebx + 0x574], 0
je 0x40f186
cmp dword [ebx + 0x56c], 0x989680
jge 0x40f186
push dword [ebx + 0x580]
mov ecx, ebx
mov byte [ebx + 0x574], 0
push dword [ebx + 0x57c]
push 0
call fcn.004411f0
mov eax, dword [ebx]
mov ecx, ebx
push 3
call dword [eax + 0xc8]
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 0x530]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], edi
call fcn.0045dc60
mov edx, dword [esp + 0x14]
cmp eax, dword [ebx + 0x530]
je 0x40f1f0
mov ecx, dword [eax + 0x10]
cmp edi, ecx
jne 0x40f1c4
cmp edx, dword [eax + 0x14]
setl cl
test cl, cl
jne 0x40f1f0
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40f1f0
lea esi, [ebx + 0x7a8]
test esi, esi
je 0x40f1df
mov byte [esi], 1
mov eax, dword [ebx]
push 0
push 0
push ecx
mov ecx, ebx
call dword [eax + 0xf0]
jmp 0x40f209
lea esi, [ebx + 0x7a8]
test esi, esi
je 0x40f1fd
mov byte [esi], 0
mov eax, dword [ebx]
mov ecx, ebx
push edx
push edi
call dword [eax + 0x9c]
test eax, eax
jne case.0x40efd2.259
cmp byte [esi], al
jne case.0x40efd2.259
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 0x2a4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebx + 0x2a4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0xc]
cmp esi, 0x80
jae 0x40f28b
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iscntrl]
add esp, 4
test eax, eax
je 0x40f28b
cmp byte [ebx + 0x7a8], 0
jne case.0x40efd2.259
mov word [esp + 0x14], si
mov edi, 0x3ff
mov dword [esp + 0x16], 0
mov ecx, 1
mov edx, dword [esp + 0x14]
lea eax, [edx + 0x2800]
cmp ax, di
ja 0x40f2ba
mov word [ebx + 0x7aa], si
jmp case.0x40efd2.259
lea eax, [edx + 0x2400]
cmp ax, di
ja 0x40f2e4
mov ax, word [ebx + 0x7aa]
mov ecx, 2
mov word [esp + 0x14], ax
xor eax, eax
mov word [esp + 0x16], si
mov word [ebx + 0x7aa], ax
lea eax, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call fcn.0040dbf0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffff
je 0x40f337
cmp byte [ebx + 0x7a8], 0
jne 0x40f337
xor eax, eax
lea esi, [esp + 0x14]
mov edx, esi
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
call fcn.0046d280
push eax
push esi
jmp 0x40f2ea
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 0xc