Function at 0x1002b04
Capabilities:
Log keystrokes via polling

Disassembly:
push 1
push dword [0x1046078]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push dword [0x1046078]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x1002b3d.8
cmp edi, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
jne 0x1002a01
call fcn.0103ac35
jmp 0x100a4a1
mov eax, dword [esi + 0x68]
xor ebx, ebx
cmp dword [eax + 0x14], ebx
jne 0x1002a48
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x1002a48
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
xor edx, edx
cmp eax, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
sete dl
cmp ecx, ebx
je 0x1002a3a
cmp eax, ecx
jne 0x1002a3a
xor edx, edx
inc edx
mov edi, dword [esi + 0x54]
cmp edi, ebx
jne 0x1002a60
cmp edx, ebx
jne 0x1002a48
mov dword [esi + 0x54], eax
push ebx
push ebx
push 0x504
push dword [0x1046078]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x100a4a1
cmp edx, ebx
je 0x1002a48
mov ecx, esi
call fcn.0102e08a
push edi
call fcn.0103ad55
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esi + 0x54], ebx
jmp 0x100a4a1
xor ebx, ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_EndTask]
jmp case.0x1002b3d.8
shr edi, 0x10
and edi, 0xfff
push edi
mov ecx, esi
call fcn.0102d44c
jmp 0x1002b57
push edi
mov ecx, esi
call fcn.0102d738
jmp case.0x1002b3d.8
push 0xffffffffffffffff
push eax
push edi
mov ecx, esi
call fcn.01004648
jmp case.0x1002b3d.8
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
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 0x100a4a9
je case.0x1002b3d.4
lea eax, [ecx - 1]
cmp eax, 0xe
ja case.0x1002b3d.8
jmp dword [eax*4 + 0x1002ac3]
push edi
mov ecx, esi
call fcn.01002958
cmp eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
jne 0x100472f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001b01
leave
ret 8
push edi
mov ecx, esi
call fcn.01002b6b
jmp case.0x1002b3d.8
push 1
push edi
mov ecx, esi
call fcn.01003750
jmp case.0x1002b3d.8
push 1
xor ebx, ebx
push ebx
push eax
mov ecx, esi
call fcn.01002380
or byte [eax + 5], 1
push ebx
push 0x64
push 4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp case.0x1002b3d.8
mov dword [esi + 0x58], edi
jmp case.0x1002b3d.8
mov eax, dword [esi + 0x58]
xor ebx, ebx
cmp eax, ebx
je case.0x1002b3d.8
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.01004044
push edi
mov ecx, esi
call fcn.01002958
cmp eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
jne 0x10069c0
mov dword [esi + 0x58], ebx
jmp case.0x1002b3d.8
push 1
push ebx
push eax
mov ecx, esi
call fcn.01002380
mov edi, eax
mov eax, dword [esi + 0x58]
mov dword [edi], eax
push 0x104
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push dword [esi + 0x58]
call fcn.010065a7
push dword [ebp - 0x210]
mov ecx, esi
call fcn.010029a7
push 1
push ebx
push eax
mov ecx, esi
call fcn.01002380
lea ecx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
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 0x10069b8
push edi
mov ecx, esi
call fcn.01006f7d
jmp case.0x1002b3d.8
lea eax, [edi + 4]
push eax
push dword [edi]
mov ecx, esi
call fcn.0100a4c0
xor eax, eax
inc eax
jmp 0x1002b57
mov eax, 0x8006
cmp ecx, eax
jne case.0x1002b3d.8
jmp 0x1002ab3