Function at 0x100215b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, 0x8004
cmp ecx, eax
push edi
jg 0x101a0a3
je case.0x1002183.4
lea eax, [ecx - 1]
cmp eax, 0xd
ja case.0x1002183.8
jmp dword [eax*4 + 0x1016200]
push 1
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01002cce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01002c1c
jmp case.0x1002183.8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100211b
cmp eax, 0xffffffff
je case.0x1002183.8
push 1
xor ebx, ebx
push ebx
push eax
mov ecx, esi
call fcn.0100203b
or byte [eax + 5], 1
push ebx
push 0x64
push 4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp case.0x1002183.8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01004658
jmp case.0x1002183.8
xor eax, eax
inc eax
jmp 0x1002198
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x54], eax
jmp case.0x1002183.8
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je case.0x1002183.8
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.01019412
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100211b
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1019faa
push 1
push ebx
push eax
mov ecx, esi
call fcn.0100203b
mov edi, eax
mov eax, dword [esi + 0x54]
mov dword [edi], eax
push 0x104
lea eax, [ebp - 0x208]
push eax
push dword [esi + 0x54]
call fcn.01003de5
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010021a4
push 1
push ebx
push eax
mov ecx, esi
call fcn.0100203b
lea ecx, [ebp - 0x208]
push ecx
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
neg eax
mov dword [edi + 0x20], eax
mov dword [esi + 0x54], ebx
jmp case.0x1002183.8
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 4]
push ecx
push dword [eax]
mov ecx, esi
call fcn.0101a0b5
jmp 0x10199c7
cmp edx, ebx
je 0x101c4e3
jmp 0x1021191
mov eax, 0x8006
cmp ecx, eax
jne case.0x1002183.8
jmp 0x10211d7
cmp dword [ebp + 0xc], 0xffffffff
je 0x102117f
mov eax, dword [esi + 0x64]
xor ebx, ebx
cmp dword [eax + 0x14], ebx
jne 0x101c4e3
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x101c4e3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x103e74c]
xor edx, edx
cmp eax, dword [0x103e070]
sete dl
cmp ecx, ebx
je 0x101c4d1
cmp eax, ecx
je 0x1021189
mov edi, dword [esi + 0x50]
cmp edi, ebx
jne 0x101a096
cmp edx, ebx
jne 0x101c4e3
mov dword [esi + 0x50], eax
push ebx
push ebx
push 0x504
push dword [0x103e070]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10199c7
push 1
push dword [0x103e070]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push dword [0x103e070]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x1002183.8
call fcn.01033e47
jmp 0x10199c7
xor edx, edx
inc edx
jmp 0x101c4d1
mov ecx, esi
call fcn.01029b38
push edi
call fcn.01033eaf
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esi + 0x50], ebx
jmp 0x10199c7
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EndTask]
jmp case.0x1002183.8
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xfff
push eax
mov ecx, esi
call fcn.010292cb
jmp 0x1002198
push 0xffffffffffffffff
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0101932b
jmp case.0x1002183.8