Function at 0x418b90
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]
push ebp
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x10], al
lea eax, [ebx - 1]
push esi
push edi
cmp al, 5
ja 0x418bb3
cmp bl, 3
jne 0x418bbb
lea edx, [ebx + 0x66]
cmp dl, 5
ja 0x418bc2
mov byte [esp + 0x13], 1
jmp 0x418bc7
mov byte [esp + 0x13], 0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ecx, ecx
jle 0x418df0
mov dword [esp + 0x14], ecx
cmp dword [0x4e899c], 0
jne 0x418c3c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4eace4]
mov ecx, dword [0x4e4b24]
cmp eax, dword [ecx + 0xd8]
jbe 0x418c3c
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x418c35
push 1
push 0xffffffffffffffff
mov dword [0x4e4a2c], 0
call fcn.00401510
add esp, 8
mov dword [0x4e4a2c], 1
call esi
mov dword [0x4eace4], eax
cmp byte [esp + 0x4c], 0
jne 0x418d83
mov eax, dword [0x4e4b24]
mov al, byte [eax + 0xf6]
test al, al
je 0x418c62
movzx ecx, al
mov esi, 0xffc3d44d
sub esi, ecx
jmp 0x418c67
mov esi, 0xffc3d44f
cmp dword [0x4e899c], 0
je 0x418c7a
mov al, byte [0x4e6da7]
jmp 0x418d6c
cmp dword [0x4e8020], 0
je 0x418c8d
mov al, byte [0x4e7ee7]
jmp 0x418d6c
push 0xa0
xor bl, bl
call edi
mov edx, 0x8000
test dx, ax
je 0x418ca2
mov bl, 0x10
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x418cb6
or bl, 0x20
push 0xa2
call edi
mov edx, 0x8000
test dx, ax
je 0x418cca
or bl, 1
push 0xa3
call edi
mov ecx, 0x8000
test cx, ax
je 0x418cde
or bl, 2
push 0xa4
call edi
mov edx, 0x8000
test dx, ax
je 0x418cf2
or bl, 4
push 0xa5
call edi
mov ecx, 0x8000
test cx, ax
je 0x418d06
or bl, 8
push 0x5b
call edi
mov edx, 0x8000
test dx, ax
je 0x418d17
or bl, 0x40
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x418d28
or bl, 0x80
cmp dword [0x4e8020], 0
je 0x418d65
mov al, bl
not al
and al, byte [0x4e7ee7]
je 0x418d65
mov cl, byte [0x4e7eeb]
not al
and byte [0x4e7ee7], al
and byte [0x4e7eea], al
and cl, al
mov al, cl
mov byte [0x4e7eeb], cl
mov ecx, 0x4e7f10
call fcn.0041baf0
movzx eax, bl
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
push 1
push 0
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.0041b350
add esp, 0x14
cmp byte [esp + 0x13], 0
je 0x418dbc
cmp dword [esp + 0x50], 0
jne 0x418dbc
mov ecx, dword [esp + 0x5c]
mov edx, dword [0x4e4b24]
mov eax, dword [esp + 0x58]
push ecx
movzx ecx, byte [edx + 0xef]
mov edx, dword [esp + 0x58]
push ebp
push 1
push eax
push edx
mov al, bl
call fcn.0041a3a0
add esp, 0x14
jmp 0x418de6
mov eax, dword [0x4e4b24]
movzx ecx, byte [eax + 0xf6]
mov eax, dword [esp + 0x50]
mov edx, 0xffc3d44d
sub edx, ecx
mov ecx, dword [esp + 0x40]
push edx
push 1
push eax
push ecx
push ebx
push ebp
call fcn.00419440
add esp, 0x18
dec dword [esp + 0x14]
jne 0x418bd9
cmp byte [esp + 0x4c], 0
jne 0x418f30
cmp dword [0x4e899c], 0
je 0x418e0f
mov bl, byte [0x4e6da7]
jmp 0x418efb
cmp dword [0x4e8020], 0
je 0x418e23
mov bl, byte [0x4e7ee7]
jmp 0x418efb
push 0xa0
xor bl, bl
call edi
mov edx, 0x8000
test dx, ax
je 0x418e38
mov bl, 0x10
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x418e4c
or bl, 0x20
push 0xa2
call edi
mov edx, 0x8000
test dx, ax
je 0x418e60
or bl, 1
push 0xa3
call edi
mov ecx, 0x8000
test cx, ax
je 0x418e74
or bl, 2
push 0xa4
call edi
mov edx, 0x8000
test dx, ax
je 0x418e88
or bl, 4
push 0xa5
call edi
mov ecx, 0x8000
test cx, ax
je 0x418e9c
or bl, 8
push 0x5b
call edi
mov edx, 0x8000
test dx, ax
je 0x418ead
or bl, 0x40
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x418ebe
or bl, 0x80
cmp dword [0x4e8020], 0
je 0x418efb
mov al, bl
not al
and al, byte [0x4e7ee7]
je 0x418efb
mov cl, byte [0x4e7eeb]
not al
and byte [0x4e7ee7], al
and byte [0x4e7eea], al
and cl, al
mov al, cl
mov byte [0x4e7eeb], cl
mov ecx, 0x4e7f10
call fcn.0041baf0
mov cl, bl
mov al, cl
xor al, byte [esp + 0x44]
mov byte [esp + 0x4c], cl
and al, cl
and al, 0xcc
je 0x418f30
mov edx, dword [esp + 0x50]
push 0
not al
push 1
push edx
mov edx, dword [esp + 0x58]
and al, cl
movzx eax, al
push edx
push eax
mov esi, 0xffc3d44d
call fcn.0041b350
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret