Function at 0x100219e
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 0x101e304
je case.0x10021c6.4
lea eax, [ecx - 1]
cmp eax, 0xd
ja case.0x10021c6.8
jmp dword [eax*4 + 0x103b92c]
push 1
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01002b95
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01002cea
jmp case.0x10021c6.8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100215e
cmp eax, 0xffffffff
je case.0x10021c6.8
push 1
xor ebx, ebx
push ebx
push eax
mov ecx, esi
call fcn.01002054
or byte [eax + 5], 1
push ebx
push 0x64
push 4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp case.0x10021c6.8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01005517
jmp case.0x10021c6.8
xor eax, eax
inc eax
jmp 0x10021db
cmp dword [ebp + 0xc], 0xffffffff
je 0x1021699
mov eax, dword [esi + 0x64]
xor ebx, ebx
cmp dword [eax + 0x14], ebx
jne 0x100ba45
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x100ba45
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x103f670]
xor edx, edx
cmp eax, dword [0x103f070]
sete dl
cmp ecx, ebx
je 0x100ba33
cmp eax, ecx
je 0x10216a3
mov edi, dword [esi + 0x50]
cmp edi, ebx
jne 0x101e2f7
cmp edx, ebx
jne 0x100ba45
mov dword [esi + 0x50], eax
push ebx
push ebx
push 0x504
push dword [0x103f070]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10090eb
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 4]
push ecx
push dword [eax]
mov ecx, esi
call fcn.0101e316
jmp 0x10090eb
cmp edx, ebx
je 0x100ba45
jmp 0x10216ab
mov eax, 0x8006
cmp ecx, eax
jne case.0x10021c6.8
jmp 0x10216f1
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x54], eax
jmp case.0x10021c6.8
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je case.0x10021c6.8
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.01004ac2
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100215e
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x101e5eb
push 1
push ebx
push eax
mov ecx, esi
call fcn.01002054
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.01005009
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010021e7
push 1
push ebx
push eax
mov ecx, esi
call fcn.01002054
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.0x10021c6.8
push 1
push dword [0x103f070]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push dword [0x103f070]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x10021c6.8
call fcn.0103438c
jmp 0x10090eb
xor edx, edx
inc edx
jmp 0x100ba33
mov ecx, esi
call fcn.01029f2a
push edi
call fcn.010343f4
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esi + 0x50], ebx
jmp 0x10090eb
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EndTask]
jmp case.0x10021c6.8
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xfff
push eax
mov ecx, esi
call fcn.01029737
jmp 0x10021db
push 0xffffffffffffffff
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01003884
jmp case.0x10021c6.8