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

Disassembly:
sub esp, 0x28
mov dl, byte [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x30]
or al, dl
push ebp
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x10], al
lea eax, [ebx - 1]
push esi
push edi
cmp al, 5
ja 0x417af5
cmp bl, 3
jne 0x417afc
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x417b03
mov byte [esp + 0x13], 1
jmp 0x417b08
mov byte [esp + 0x13], 0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ecx, ecx
jle 0x417d8e
mov dword [esp + 0x14], ecx
cmp dword [0x4bbd80], 0
jne 0x417b7d
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4bcb0c]
mov ecx, dword [0x4b7a70]
cmp eax, dword [ecx + 0xb8]
jbe 0x417b7d
push 0
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x417b76
push 1
push 0xffffffffffffffff
mov dword [0x4b79dc], 0
call fcn.004014b0
add esp, 8
mov dword [0x4b79dc], 1
call esi
mov dword [0x4bcb0c], eax
cmp byte [esp + 0x4c], 0
jne 0x417d1c
mov eax, dword [0x4b7a70]
mov al, byte [eax + 0xd6]
test al, al
je 0x417ba3
movzx ecx, al
mov esi, 0xffc3d44d
sub esi, ecx
jmp 0x417ba8
mov esi, 0xffc3d44f
cmp dword [0x4bbd80], 0
je 0x417bbb
mov al, byte [0x4ba3bd]
jmp 0x417d05
cmp dword [0x4bb5dc], 0
je 0x417bce
mov al, byte [0x4bb4a9]
jmp 0x417d05
push 0xa0
mov byte [esp + 0x16], 0
call edi
mov edx, 0x8000
test dx, ax
je 0x417be9
mov byte [esp + 0x12], 0x10
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0x417bff
or byte [esp + 0x12], 0x20
push 0xa2
call edi
mov edx, 0x8000
test dx, ax
je 0x417c15
or byte [esp + 0x12], 1
push 0xa3
call edi
mov ecx, 0x8000
test cx, ax
je 0x417c2b
or byte [esp + 0x12], 2
push 0xa4
call edi
mov edx, 0x8000
test dx, ax
je 0x417c41
or byte [esp + 0x12], 4
push 0xa5
call edi
mov ecx, 0x8000
test cx, ax
je 0x417c57
or byte [esp + 0x12], 8
push 0x5b
call edi
mov edx, 0x8000
test dx, ax
je 0x417c6a
or byte [esp + 0x12], 0x40
push 0x5c
call edi
mov ecx, 0x8000
test cx, ax
je 0x417c7d
or byte [esp + 0x12], 0x80
cmp dword [0x4bb5dc], 0
je 0x417d00
mov bl, byte [esp + 0x12]
not bl
and bl, byte [0x4bb4a9]
cmp byte [0x4bb4ce], 0
je 0x417cb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ba390]
cmp eax, 0x14
jae 0x417cb6
mov dl, byte [0x4bb4ce]
not dl
and bl, dl
test bl, bl
je 0x417cfc
mov cl, byte [0x4bb4ab]
mov al, bl
not al
and byte [0x4bb4a9], al
and byte [0x4bb4aa], al
and cl, al
mov al, cl
mov byte [0x4bb4ab], cl
mov ecx, 0x4bb4d0
call fcn.0041aa90
mov eax, dword [0x4ba3b0]
test eax, eax
je 0x417cfc
test byte [eax + 8], bl
je 0x417cfc
mov dword [0x4ba3b0], 0
mov ebx, dword [esp + 0x3c]
movzx eax, byte [esp + 0x12]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x18]
push 1
push 0
push ecx
push eax
push edx
call fcn.0041a280
add esp, 0x14
cmp byte [esp + 0x13], 0
je 0x417d55
cmp dword [esp + 0x50], 0
jne 0x417d55
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ecx, dword [0x4b7a70]
movzx ecx, byte [ecx + 0xcf]
push eax
mov eax, dword [esp + 0x58]
push ebp
push 1
push edx
push eax
mov al, bl
call fcn.00419340
add esp, 0x14
jmp 0x417d80
mov ecx, dword [0x4b7a70]
movzx edx, byte [ecx + 0xd6]
mov ecx, dword [esp + 0x50]
mov eax, 0xffc3d44d
sub eax, edx
mov edx, dword [esp + 0x40]
push eax
push 1
push ecx
push edx
push ebx
push ebp
call fcn.004184a0
add esp, 0x18
dec dword [esp + 0x14]
jne 0x417b1a
mov dl, byte [esp + 0x44]
cmp byte [esp + 0x4c], 0
jne 0x417f1e
cmp dword [0x4bbd80], 0
je 0x417dac
mov al, byte [0x4ba3bd]
jmp 0x417ef4
cmp dword [0x4bb5dc], 0
je 0x417dbf
mov al, byte [0x4bb4a9]
jmp 0x417ef4
push 0xa0
mov byte [esp + 0x50], 0
call edi
mov ecx, 0x8000
test cx, ax
je 0x417dda
mov byte [esp + 0x4c], 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x417df0
or byte [esp + 0x4c], 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x417e06
or byte [esp + 0x4c], 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x417e1c
or byte [esp + 0x4c], 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x417e32
or byte [esp + 0x4c], 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x417e48
or byte [esp + 0x4c], 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x417e5b
or byte [esp + 0x4c], 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x417e6e
or byte [esp + 0x4c], 0x80
cmp dword [0x4bb5dc], 0
je 0x417eec
mov bl, byte [esp + 0x4c]
not bl
and bl, byte [0x4bb4a9]
cmp byte [0x4bb4ce], 0
je 0x417ea6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ba390]
cmp eax, 0x14
jae 0x417ea6
mov al, byte [0x4bb4ce]
not al
and bl, al
test bl, bl
je 0x417eec
mov cl, byte [0x4bb4ab]
mov al, bl
not al
and byte [0x4bb4a9], al
and byte [0x4bb4aa], al
and cl, al
mov al, cl
mov byte [0x4bb4ab], cl
mov ecx, 0x4bb4d0
call fcn.0041aa90
mov eax, dword [0x4ba3b0]
test eax, eax
je 0x417eec
test byte [eax + 8], bl
je 0x417eec
mov dword [0x4ba3b0], 0
mov al, byte [esp + 0x4c]
mov dl, byte [esp + 0x44]
not dl
and dl, al
and dl, 0xcc
mov byte [esp + 0x44], dl
je 0x417f1e
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
push 0
push 1
push ecx
push edx
push 0
mov esi, 0xffc3d44d
call fcn.0041a280
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret