Function at 0x40e4a0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x28
or al, byte [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x30]
mov byte [esp + 0xc], al
lea eax, [ebx - 1]
push ebp
push esi
cmp al, 5
ja 0x40e4be
cmp bl, 3
jne 0x40e4c6
lea edx, [ebx + 0x66]
cmp dl, 5
ja 0x40e4cd
mov byte [esp + 0xf], 1
jmp 0x40e4d2
mov byte [esp + 0xf], 0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ecx, ecx
jle 0x40e6f2
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
cmp dword [0x4c3930], 0
jne 0x40e54d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4afc]
mov ecx, dword [0x4be40c]
cmp eax, dword [ecx + 0xd4]
jbe 0x40e54d
push 0
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40e542
push 1
push 0xffffffffffffffff
mov dword [0x4be3d4], 0
call fcn.004012b0
add esp, 8
mov dword [0x4be3d4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c4afc], eax
cmp byte [esp + 0x44], 0
jne 0x40e684
cmp dword [0x4c3930], 0
je 0x40e56c
mov cl, byte [0x4c0def]
jmp 0x40e65e
cmp dword [0x4c1ff8], 0
je 0x40e580
mov cl, byte [0x4c1ec5]
jmp 0x40e65e
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e595
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e5a9
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e5bd
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e5d1
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e5e5
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e5f9
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e60a
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e61b
or bl, 0x80
cmp dword [0x4c1ff8], 0
je 0x40e658
mov al, bl
not al
and al, byte [0x4c1ec5]
je 0x40e658
mov cl, byte [0x4c1ec7]
not al
and byte [0x4c1ec5], al
and byte [0x4c1ec6], al
and cl, al
mov al, cl
mov byte [0x4c1ec7], cl
mov ecx, 0x4c1ee8
call fcn.00411440
mov cl, bl
mov ebx, dword [esp + 0x38]
mov eax, dword [0x4be40c]
movzx edx, byte [eax + 0xf2]
push 1
mov eax, 0xffc3d44d
sub eax, edx
mov edx, dword [esp + 0x4c]
push 0
push edx
push ecx
push ebp
call fcn.00410c40
add esp, 0x14
cmp byte [esp + 0xf], 0
je 0x40e6bd
cmp dword [esp + 0x48], 0
jne 0x40e6bd
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ecx, dword [0x4be40c]
movzx ecx, byte [ecx + 0xeb]
push eax
mov eax, dword [esp + 0x50]
push edi
push 1
push edx
push eax
mov al, bl
call fcn.0040fd00
add esp, 0x14
jmp 0x40e6e8
mov ecx, dword [0x4be40c]
movzx edx, byte [ecx + 0xf2]
mov ecx, dword [esp + 0x48]
mov eax, 0xffc3d44d
sub eax, edx
mov edx, dword [esp + 0x3c]
push eax
push 1
push ecx
push edx
push ebx
push edi
call fcn.0040ed40
add esp, 0x18
dec dword [esp + 0x10]
jne 0x40e4e8
cmp byte [esp + 0x44], 0
jne 0x40e832
cmp dword [0x4c3930], 0
je 0x40e711
mov bl, byte [0x4c0def]
jmp 0x40e7fd
cmp dword [0x4c1ff8], 0
je 0x40e725
mov bl, byte [0x4c1ec5]
jmp 0x40e7fd
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e73a
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x40e74e
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e762
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x40e776
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e78a
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x40e79e
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x40e7af
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x40e7c0
or bl, 0x80
cmp dword [0x4c1ff8], 0
je 0x40e7fd
mov al, bl
not al
and al, byte [0x4c1ec5]
je 0x40e7fd
mov cl, byte [0x4c1ec7]
not al
and byte [0x4c1ec5], al
and byte [0x4c1ec6], al
and cl, al
mov al, cl
mov byte [0x4c1ec7], cl
mov ecx, 0x4c1ee8
call fcn.00411440
mov cl, bl
mov al, cl
xor al, byte [esp + 0x40]
mov byte [esp + 0x44], cl
and al, cl
and al, 0xcc
je 0x40e832
mov edx, dword [esp + 0x48]
push 0
not al
push 1
push edx
mov edx, dword [esp + 0x50]
and al, cl
movzx eax, al
push edx
push eax
mov eax, 0xffc3d44d
call fcn.00410c40
add esp, 0x14
pop esi
pop ebp
pop ebx
add esp, 0x28
ret