Function at 0x10021e0
Capabilities:
Log keystrokes via polling

Disassembly:
lea eax, [edi + 4]
push eax
push dword [edi]
mov ecx, esi
call fcn.0102f54a
jmp 0x10196c0
push 1
push dword [0x1046094]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push dword [0x1046094]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x1002219.8
call fcn.0103c07f
jmp 0x10196c0
xor edx, edx
inc edx
jmp 0x101969b
mov ecx, esi
call fcn.0102227a
push edi
call fcn.0103c1a1
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esi + 0x54], ebx
jmp 0x10196c0
shr edi, 0x10
and edi, 0xfff
push edi
mov ecx, esi
call fcn.0102e994
jmp 0x100224e
push edi
mov ecx, esi
call fcn.0102ec80
jmp case.0x1002219.8
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1046080]
push ebx
push esi
mov dword [ebp - 4], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, 0x8004
cmp ecx, eax
push edi
mov edi, dword [ebp + 0xc]
jg 0x101ef96
je case.0x1002219.4
lea eax, [ecx - 1]
cmp eax, 0xe
ja case.0x1002219.8
jmp dword [eax*4 + 0x100219f]
push edi
mov ecx, esi
call fcn.010020c3
cmp eax, 0xffffffff
je case.0x1002219.8
push 1
xor ebx, ebx
push ebx
push eax
mov ecx, esi
call fcn.01001e00
or byte [eax + 5], 1
push ebx
push 0x64
push 4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010019ca
leave
ret 8
push edi
mov ecx, esi
call fcn.0100290f
jmp case.0x1002219.8
push 1
push edi
mov ecx, esi
call fcn.01003971
jmp case.0x1002219.8
push edi
mov ecx, esi
call fcn.010055dc
jmp case.0x1002219.8
cmp edi, 0xffffffff
je 0x100214e
mov eax, dword [esi + 0x68]
xor ebx, ebx
cmp dword [eax + 0x14], ebx
jne 0x10196ad
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x10196ad
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x104677c]
xor edx, edx
cmp eax, dword [0x1046094]
sete dl
cmp ecx, ebx
je 0x101969b
cmp eax, ecx
je 0x1002158
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x101eeb2
cmp edx, ebx
jne 0x10196ad
mov dword [esi + 0x54], eax
push ebx
push ebx
push 0x504
push dword [0x1046094]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
jmp 0x100224e
xor ebx, ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_EndTask]
jmp case.0x1002219.8
cmp edx, ebx
jne 0x1002160
jmp 0x10196ad
mov eax, 0x8006
cmp ecx, eax
jne case.0x1002219.8
push 0xffffffffffffffff
push eax
push edi
mov ecx, esi
call fcn.01003850
jmp case.0x1002219.8
mov dword [esi + 0x58], edi
jmp case.0x1002219.8
mov eax, dword [esi + 0x58]
xor ebx, ebx
cmp eax, ebx
je case.0x1002219.8
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.01005366
push edi
mov ecx, esi
call fcn.010020c3
cmp eax, 0xffffffff
mov dword [ebp - 0x210], eax
jne 0x1022dad
mov dword [esi + 0x58], ebx
jmp case.0x1002219.8
push 1
push ebx
push eax
mov ecx, esi
call fcn.01001e00
mov edi, eax
mov eax, dword [esi + 0x58]
mov dword [edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x58]
call fcn.01004615
push dword [ebp - 0x210]
mov ecx, esi
call fcn.0100226a
push 1
push ebx
push eax
mov ecx, esi
call fcn.01001e00
lea ecx, [ebp - 0x20c]
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
jmp 0x1022da5