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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x101db820]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x1027334c]
test eax, eax
jne 0x10160380
jmp 0x101605e6
push 7
mov ecx, 0x101e1278
call fcn.1014d3f0
movzx ecx, al
test ecx, ecx
jne 0x10160405
push 8
mov ecx, 0x101e1278
call fcn.1014d3f0
movzx edx, al
test edx, edx
jne 0x10160405
push 0xc
mov ecx, 0x101e1278
call fcn.1014d3f0
movzx eax, al
test eax, eax
jne 0x10160405
push 0xe
mov ecx, 0x101e1278
call fcn.1014d3f0
movzx ecx, al
test ecx, ecx
jne 0x10160405
push 0xf
mov ecx, 0x101e1278
call fcn.1014d3f0
movzx edx, al
test edx, edx
jne 0x10160405
push 0x41
mov ecx, 0x101e1278
call fcn.1014d3f0
movzx eax, al
test eax, eax
jne 0x10160405
push 0x4e
mov ecx, 0x101e1278
call fcn.1014d3f0
movzx ecx, al
test ecx, ecx
je 0x1016040a
jmp 0x101605e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x10272e64]
cmp eax, 0x5dc
jae 0x10160422
jmp 0x101605e6
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x101605e6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x101605e6
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
je 0x10160463
mov edx, dword [ebp - 0x64]
movsx eax, word [edx]
test eax, eax
jge 0x10160468
jmp 0x101605e6
mov byte [ebp - 0x60], 0
push 0x5b
push 0
lea ecx, [ebp - 0x5f]
push ecx
call fcn.10076030
add esp, 0xc
push 0x5c
push 0x78
lea ecx, [ebp - 0x60]
call fcn.10052260
push 0x4d
mov ecx, 0x101e1278
call fcn.1014d3f0
movzx edx, al
test edx, edx
je 0x10160522
mov eax, dword [0x101dcd20]
sub eax, 0x17c
cmp dword [0x879340c], eax
jbe 0x1016050c
mov ecx, dword [ebp - 0x64]
movsx edx, byte [ecx + 0x43]
mov eax, dword [ebp - 0x64]
movsx ecx, byte [eax + 0x44]
lea edx, [edx + ecx*8 + 0xc]
mov dword [ebp - 0x5c], edx
mov eax, dword [0x101dcd20]
sub eax, 0x17c
cmp dword [0x879340c], eax
jbe 0x1016050a
mov ecx, dword [0x101dcd20]
sub ecx, 0xbe
cmp dword [0x879340c], ecx
jae 0x1016050a
mov edx, dword [ebp - 0x5c]
add edx, 0x40
mov dword [ebp - 0x5c], edx
cmp dword [0x8793410], 0x82
jle 0x1016050a
mov eax, dword [ebp - 0x5c]
add eax, 0x20
mov dword [ebp - 0x5c], eax
jmp 0x10160520
mov ecx, dword [ebp - 0x64]
movsx edx, byte [ecx + 0x43]
mov eax, dword [ebp - 0x64]
movsx ecx, byte [eax + 0x44]
lea edx, [edx + ecx*8]
mov dword [ebp - 0x5c], edx
jmp 0x10160565
mov eax, dword [0x101dcd20]
sub eax, 0xb4
cmp dword [0x879340c], eax
jbe 0x1016054b
mov ecx, dword [ebp - 0x64]
movsx edx, byte [ecx + 0x43]
mov eax, dword [ebp - 0x64]
movsx ecx, byte [eax + 0x44]
lea edx, [edx + ecx*8 + 0xc]
mov dword [ebp - 0x68], edx
jmp 0x1016055f
mov eax, dword [ebp - 0x64]
movsx ecx, byte [eax + 0x43]
mov edx, dword [ebp - 0x64]
movsx eax, byte [edx + 0x44]
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], edx
mov ecx, 0x10204878
call fcn.10017a30
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0x101e3d60
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.1005b9b0
add esp, 0xc
mov edx, 1
imul edx, edx, 0x3c
mov byte [ebp + edx - 0x4d], 0
push 0xffffffffffffffff
mov eax, dword [0x101e3624]
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.10168f30
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10272e64], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006d930
mov esp, ebp
pop ebp
ret