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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x101e5820]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x1027d3a4]
test eax, eax
jne 0x10161070
jmp 0x10161327
push 7
mov ecx, 0x101eb298
call fcn.1014e080
movzx ecx, al
test ecx, ecx
jne 0x101610f5
push 8
mov ecx, 0x101eb298
call fcn.1014e080
movzx edx, al
test edx, edx
jne 0x101610f5
push 0xc
mov ecx, 0x101eb298
call fcn.1014e080
movzx eax, al
test eax, eax
jne 0x101610f5
push 0xe
mov ecx, 0x101eb298
call fcn.1014e080
movzx ecx, al
test ecx, ecx
jne 0x101610f5
push 0xf
mov ecx, 0x101eb298
call fcn.1014e080
movzx edx, al
test edx, edx
jne 0x101610f5
push 0x41
mov ecx, 0x101eb298
call fcn.1014e080
movzx eax, al
test eax, eax
jne 0x101610f5
push 0x4e
mov ecx, 0x101eb298
call fcn.1014e080
movzx ecx, al
test ecx, ecx
je 0x101610fa
jmp 0x10161327
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1027cebc]
cmp eax, 0x5dc
jae 0x10161112
jmp 0x10161327
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x10161327
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x10161327
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 0
je 0x10161153
mov edx, dword [ebp - 0x68]
movsx eax, word [edx]
test eax, eax
jge 0x10161158
jmp 0x10161327
mov byte [ebp - 0x60], 0
push 0x5b
push 0
lea ecx, [ebp - 0x5f]
push ecx
call fcn.10075f70
add esp, 0xc
push 0x5c
push 0x78
lea ecx, [ebp - 0x60]
call fcn.10052170
mov dword [ebp - 0x64], 0xffffffff
push 0x4d
mov ecx, 0x101eb298
call fcn.1014e080
movzx edx, al
test edx, edx
je 0x10161202
mov eax, dword [0x101e6d34]
sub eax, 0x17c
cmp dword [0x879340c], eax
jbe 0x101611fd
mov ecx, dword [ebp - 0x68]
movsx edx, byte [ecx + 0x43]
mov eax, dword [ebp - 0x68]
movsx ecx, byte [eax + 0x44]
lea edx, [edx + ecx*8 + 0xc]
mov dword [ebp - 0x64], edx
mov eax, dword [0x101e6d34]
sub eax, 0x17c
cmp dword [0x879340c], eax
jbe 0x101611fd
mov ecx, dword [0x101e6d34]
sub ecx, 0xbe
cmp dword [0x879340c], ecx
jae 0x101611fd
mov edx, dword [ebp - 0x64]
add edx, 0x40
mov dword [ebp - 0x64], edx
cmp dword [0x8793410], 0x82
jle 0x101611fd
mov eax, dword [ebp - 0x64]
add eax, 0x20
mov dword [ebp - 0x64], eax
jmp 0x101612a0
push 0xd
mov ecx, 0x101eb298
call fcn.1014e080
movzx ecx, al
test ecx, ecx
je 0x101612a0
push 0x10
mov ecx, 0x101eb298
call fcn.1014e080
movzx edx, al
test edx, edx
je 0x10161269
mov eax, dword [0x101e6d34]
sub eax, 0x17c
cmp dword [0x879340c], eax
jbe 0x10161267
mov ecx, dword [0x101e6d34]
sub ecx, 0xbe
cmp dword [0x879340c], ecx
jae 0x10161267
mov edx, dword [ebp - 0x68]
movsx eax, byte [edx + 0x43]
mov ecx, dword [ebp - 0x68]
movsx edx, byte [ecx + 0x44]
lea eax, [eax + edx*8 + 0xc]
mov dword [ebp - 0x64], eax
jmp 0x101612a0
mov ecx, dword [0x101e6d34]
sub ecx, 0xbe
cmp dword [0x879340c], ecx
jbe 0x101612a0
mov edx, dword [0x879340c]
cmp edx, dword [0x101e6d34]
jae 0x101612a0
mov eax, dword [ebp - 0x68]
movsx ecx, byte [eax + 0x43]
mov edx, dword [ebp - 0x68]
movsx eax, byte [edx + 0x44]
lea ecx, [ecx + eax*8 + 0xc]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x5c], edx
mov ecx, 0x1020e8b0
call fcn.10017fe0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0x101edd80
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
imul eax, eax, 0x64
add eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x4d]
push ecx
call fcn.1005ba10
add esp, 0xc
mov edx, 1
imul edx, edx, 0x3c
mov byte [ebp + edx - 0x4d], 0
push 0xffffffffffffffff
mov eax, dword [0x101ed644]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.10001f00
add esp, 0xc
mov edx, 1
imul edx, edx, 0xa
mov byte [ebp + edx - 0x58], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
movzx ecx, byte [ebp - 0x5f]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.10169cc0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1027cebc], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006d7c0
mov esp, ebp
pop ebp
ret