Function at 0x10001271
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov ebx, dword [0x10013402]
call fcn.10001250
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x100015d6
mov ebx, dword [0x10013402]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100012c3
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100012d6
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10001302
push 6
call fcn.1000831b
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x100015ce
mov ebx, dword [0x1001340e]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000132f
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001342
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
and dword [ebx], 1
mov ebx, dword [ebp - 8]
xor dword [ebx], 1
mov ebx, dword [0x1001340e]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10001376
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001389
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 1
jne 0x10001441
mov ebx, dword [0x10013412]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100013bd
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100013d0
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [0x10013402]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x100013f8
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000140b
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001437
push 6
call fcn.1000831b
add esp, 4
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
jmp 0x100014e0
mov ebx, dword [0x10013416]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10001461
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001474
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [0x10013402]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000149c
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x100014af
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100014db
push 6
call fcn.1000831b
add esp, 4
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [0x10013412]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10001500
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001513
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [0x10013416]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x1000153b
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000154e
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov ebx, dword [ebp - 8]
cmp dword [ebx], eax
je 0x100015ce
mov ebx, dword [0x10013406]
call fcn.100010ef
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x10001586
push 4
call fcn.1000831b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x10001599
push 1
call fcn.1000831b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, 9
call fcn.10001269
push 0x80000006
push 0
mov ebx, dword [ebp - 8]
push dword [ebx]
push 4
mov ebx, 0x18
mov eax, 0x100094a0
call fcn.100085f0
add esp, 0x34
pop eax
pop ebx
pop ecx
jmp 0x10001295
add esp, 0xc
mov esp, ebp
pop ebp
ret 0x14