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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608d78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x698b9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00459250
sub eax, 1
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.004158c0
add eax, 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.004c73f0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
call fcn.004d8fd0
test eax, eax
je 0x4d8f79
movsx ecx, word [ebp - 0x1e]
mov edx, dword [ebp - 0x40]
add ecx, dword [edx + 0x1c]
mov word [ebp - 0x1e], cx
movsx eax, word [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
add eax, dword [ecx + 0x20]
mov word [ebp - 0x1c], ax
cmp dword [ebp - 0x14], 0
je 0x4d892b
movsx edx, word [ebp - 0x1c]
push edx
movsx eax, word [ebp - 0x1e]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x18
call fcn.004ddae0
test eax, eax
jne 0x4d892b
jmp 0x4d88d5
movzx ecx, byte [ebp - 0x20]
cmp ecx, 9
jne 0x4d8a39
movzx edx, word [ebp - 0x1a]
cmp edx, 0x11
je 0x4d89ab
movzx eax, word [ebp - 0x1a]
cmp eax, 0xa2
je 0x4d89ab
movzx ecx, word [ebp - 0x1a]
cmp ecx, 0xa3
je 0x4d89ab
movzx edx, word [ebp - 0x1a]
cmp edx, 0xa0
je 0x4d89ab
movzx eax, word [ebp - 0x1a]
cmp eax, 0xa1
je 0x4d89ab
movzx ecx, word [ebp - 0x1a]
cmp ecx, 0x10
je 0x4d89ab
movzx edx, word [ebp - 0x1a]
cmp edx, 0xa4
je 0x4d89ab
movzx eax, word [ebp - 0x1a]
cmp eax, 0x12
je 0x4d89ab
movzx ecx, word [ebp - 0x1a]
cmp ecx, 0xa5
je 0x4d89ab
movzx edx, word [ebp - 0x1a]
cmp edx, 0x5b
je 0x4d89ab
movzx eax, word [ebp - 0x1a]
cmp eax, 0x5c
jne 0x4d89d0
push 1
lea ecx, [ebp - 0x1a]
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x2e8
call fcn.004db0a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x2e4], eax
jmp 0x4d8a34
movzx eax, word [ebp - 0x1a]
cmp eax, 0x2e
jne 0x4d8a13
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4d8a11
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x4d8a11
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x2e4], 1
call fcn.004d1f70
jmp 0x4d8a34
mov ecx, dword [ebp - 0x40]
add ecx, 0x2e8
call fcn.004cf040
test eax, eax
jbe 0x4d8a34
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x2e4], eax
jmp 0x4d8b1d
movzx edx, byte [ebp - 0x20]
cmp edx, 0xa
jne 0x4d8aec
movzx eax, word [ebp - 0x1a]
cmp eax, 0x11
je 0x4d8ab9
movzx ecx, word [ebp - 0x1a]
cmp ecx, 0xa2
je 0x4d8ab9
movzx edx, word [ebp - 0x1a]
cmp edx, 0xa3
je 0x4d8ab9
movzx eax, word [ebp - 0x1a]
cmp eax, 0xa0
je 0x4d8ab9
movzx ecx, word [ebp - 0x1a]
cmp ecx, 0xa1
je 0x4d8ab9
movzx edx, word [ebp - 0x1a]
cmp edx, 0x10
je 0x4d8ab9
movzx eax, word [ebp - 0x1a]
cmp eax, 0xa4
je 0x4d8ab9
movzx ecx, word [ebp - 0x1a]
cmp ecx, 0x12
je 0x4d8ab9
movzx edx, word [ebp - 0x1a]
cmp edx, 0xa5
je 0x4d8ab9
movzx eax, word [ebp - 0x1a]
cmp eax, 0x5b
je 0x4d8ab9
movzx ecx, word [ebp - 0x1a]
cmp ecx, 0x5c
jne 0x4d8aea
lea edx, [ebp - 0x1a]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x2e8
call fcn.004db110
mov ecx, dword [ebp - 0x40]
add ecx, 0x2e8
call fcn.004cf040
test eax, eax
jne 0x4d8aea
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x2e4], 0
jmp 0x4d8b1d
movzx ecx, byte [ebp - 0x20]
cmp ecx, 0x10
jne 0x4d8b1d
movzx edx, word [ebp - 0x1a]
test edx, edx
jne 0x4d8b07
push 1
call dword [sym.imp.USER32.dll_BlockInput]
jmp 0x4d8b18
movzx eax, word [ebp - 0x1a]
cmp eax, 1
jne 0x4d8b18
push 0
call dword [sym.imp.USER32.dll_BlockInput]
jmp 0x4d88d5
movzx ecx, byte [ebp - 0x20]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
sub edx, 1
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0xe
ja case.default.0x4d8b3a
mov eax, dword [ebp - 0x44]
jmp dword [eax*4 + 0x4d8f8c]
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8001
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8008
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
cmp dword [0x69c114], 1
jbe 0x4d8bc5
cmp dword [ebp - 0x10], 3
jne 0x4d8bc5
mov ecx, dword [0x69c114]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8010
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8002
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
cmp dword [0x69c114], 1
jbe 0x4d8c49
cmp dword [ebp - 0x10], 1
jne 0x4d8c49
mov edx, dword [0x69c114]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8004
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8020
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
cmp dword [0x69c114], 1
jbe 0x4d8ccc
cmp dword [ebp - 0x10], 0xe
jne 0x4d8ccc
mov eax, dword [0x69c114]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8040
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8002
call fcn.004d86f0
add esp, 0x14
cmp dword [0x69c114], 1
jbe 0x4d8d45
mov ecx, dword [0x69c114]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8004
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8008
call fcn.004d86f0
add esp, 0x14
cmp dword [0x69c114], 1
jbe 0x4d8dbe
mov edx, dword [0x69c114]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8010
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8002
call fcn.004d86f0
add esp, 0x14
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8004
call fcn.004d86f0
add esp, 0x14
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8002
call fcn.004d86f0
add esp, 0x14
push 0
push 0
movsx eax, word [ebp - 0x1c]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0x10]
push eax
movsx eax, word [ebp - 0x1e]
imul eax, eax, 0xffff
cdq
idiv dword [ebp + 0xc]
push eax
push 0x8004
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
push 0
movsx eax, word [ebp - 0x1e]
push eax
push 0
push 0
push 0x800
call fcn.004d86f0
add esp, 0x14
jmp case.default.0x4d8b3a
push 0
push 0
push 0
movzx ecx, word [ebp - 0x1a]
push ecx
call fcn.004d8770
add esp, 0x10
jmp case.default.0x4d8b3a
push 0
push 2
push 0
movzx edx, word [ebp - 0x1a]
push edx
call fcn.004d8770
add esp, 0x10
jmp case.default.0x4d8b3a
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.004c6da0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004efe20
push eax
call fcn.005c01cb
add esp, 4
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
jmp 0x4d8f36
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x38]
jae 0x4d8f5e
push 0
push 4
lea ecx, [ebp - 0x34]
call fcn.004efe20
mov ecx, dword [ebp - 0x3c]
movzx edx, word [eax + ecx*2]
push edx
push 0
call fcn.004d8770
add esp, 0x10
jmp 0x4d8f2d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004b4e90
movzx eax, byte [ebp - 0x20]
mov dword [ebp - 0x10], eax
jmp 0x4d88d5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc