Function at 0x1020135
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [fcn.01001358]
push eax
call dword [fcn.010013d8]
test eax, eax
jne 0x102016e
call fcn.0100d726
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.0100d6a0
test eax, eax
jne 0x1020175
xor eax, eax
jmp 0x1020377
push ebx
push edi
mov edi, dword [0x10013e8]
push 0x10
call edi
xor ecx, ecx
shr eax, 0xf
and al, 1
mov ch, al
or ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
call fcn.0100d6d7
cmp dword [ebp + 0x10], esi
mov ebx, eax
je 0x102022b
movzx eax, word [ebp + 0xc]
xor ecx, ecx
inc ecx
add eax, 0xffffffdf
cmp eax, 7
mov dword [ebp - 8], ecx
ja case.default.0x10201b2
jmp dword [eax*4 + 0x102037c]
mov dword [ebp - 4], 4
jmp 0x10201c9
mov dword [ebp - 4], 3
mov esi, ecx
jmp 0x102022e
mov dword [ebp - 4], 4
push 2
jmp 0x1020225
mov dword [ebp - 4], 3
jmp 0x10201d4
mov dword [ebp - 4], 2
push 0x11
call edi
mov si, ax
and si, 0x8000
neg si
sbb esi, esi
inc esi
jmp 0x1020220
mov dword [ebp - 4], ecx
jmp 0x10201e8
mov dword [ebp - 4], 5
jmp 0x1020211
mov dword [ebp - 4], 6
push 0x11
call edi
test ah, ah
js 0x1020223
cmp dword [ebx + 0x70], esi
je 0x1020223
xor esi, esi
inc esi
jmp 0x102022e
push 3
pop esi
jmp 0x102022e
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x103d580]
je 0x1020261
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
setne cl
push ecx
push eax
call fcn.010237eb
push eax
push dword [ebp + 0xc]
call fcn.0100c06d
test eax, eax
je 0x10202fe
xor esi, esi
inc esi
jmp 0x102036b
cmp dword [ebp + 0x10], 0
jne 0x102027f
push 0
push 0xffffffffffffffff
push dword [ebp + 0xc]
call fcn.0100c06d
test eax, eax
je 0x102027f
xor eax, eax
inc eax
jmp 0x1020375
movzx eax, word [ebp + 0xc]
cmp eax, 9
je 0x10202ad
cmp eax, 0xd
jne 0x10202fe
cmp dword [ebp + 0x10], 0
je 0x10202fe
push ebx
push dword [ebp + 8]
call fcn.0101f29d
mov edi, eax
test edi, edi
je 0x10202fe
push 2
push ebx
call fcn.0102787b
push edi
jmp 0x10202f5
push 0x12
call edi
test ah, ah
js 0x10202fe
cmp dword [ebp + 0x10], 0
je 0x10202fe
push ebx
push dword [ebp + 8]
call fcn.0101f29d
test eax, eax
mov dword [ebp + 0x10], eax
je 0x10202fe
push 0x10
call edi
shr eax, 0xf
and eax, 1
push eax
push ebx
call fcn.0102787b
cmp eax, 3
jne 0x10202f2
push 0x10
call edi
shr eax, 0xf
and eax, 1
push eax
push ebx
call fcn.0102787b
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.0101f2c3
cmp dword [ebp - 4], 0
je 0x1020368
push ebx
push dword [ebp + 8]
call fcn.0101f29d
mov edi, eax
test edi, edi
je 0x1020361
push 1
push esi
push dword [ebp - 4]
push ebx
call fcn.0102704f
lea eax, [ebp - 0x14]
push eax
call dword [0x1001438]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [fcn.01001488]
mov ax, word [ebp - 0x14]
mov word [ebp + 0x10], ax
mov ax, word [ebp - 0x10]
push 0
mov word [ebp + 0x12], ax
push 0x200
lea eax, [ebp + 0x10]
push eax
push ebx
call fcn.010272cd
push edi
push ebx
push dword [ebp + 8]
call fcn.0101f2c3
mov dword [ebp - 8], 1
mov esi, dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0100d6a0
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret 0xc