Function at 0x1013184
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 0x101338b
je case.0x10131b4.4
lea eax, [ecx - 1]
cmp eax, 0xd
ja case.0x10131b4.8
jmp dword [eax*4 + 0x10133aa]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 4]
push ecx
push dword [eax]
mov ecx, esi
call fcn.0100f770
jmp 0x1013304
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x54], eax
jmp case.0x10131b4.8
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
je case.0x10131b4.8
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.010117fb
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100e8b2
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x1013258
push 1
push ebx
push eax
mov ecx, esi
call fcn.0100e849
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.01028900
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100eb7c
push 1
push ebx
push eax
mov ecx, esi
call fcn.0100e849
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.0x10131b4.8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01012270
jmp case.0x10131b4.8
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01011971
jmp case.0x10131b4.8
push 1
push dword [0x103e454]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push dword [0x103e454]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x10131b4.8
cmp dword [ebp + 0xc], 0xffffffff
jne 0x10132aa
call fcn.010283f0
jmp 0x1013304
mov eax, dword [esi + 0x64]
xor ebx, ebx
cmp dword [eax + 0x14], ebx
jne 0x10132f1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x10132f1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x103e458]
xor edx, edx
cmp eax, dword [0x103e454]
sete dl
cmp ecx, ebx
je 0x10132e3
cmp eax, ecx
jne 0x10132e3
xor edx, edx
inc edx
mov edi, dword [esi + 0x50]
cmp edi, ebx
jne 0x101330c
cmp edx, ebx
jne 0x10132f1
mov dword [esi + 0x50], eax
push ebx
push ebx
push 0x504
push dword [0x103e454]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
jmp 0x10133a3
cmp edx, ebx
je 0x10132f1
mov ecx, esi
call fcn.0100f52d
push edi
call fcn.0102847b
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esi + 0x50], ebx
jmp 0x1013304
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100e8b2
cmp eax, 0xffffffff
je case.0x10131b4.8
push 1
xor ebx, ebx
push ebx
push eax
mov ecx, esi
call fcn.0100e849
or byte [eax + 5], 1
push ebx
push 0x64
push 4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp case.0x10131b4.8
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EndTask]
jmp case.0x10131b4.8
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xfff
push eax
mov ecx, esi
call fcn.0100dd89
jmp 0x10133a3
push 1
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01013091
jmp case.0x10131b4.8
mov eax, 0x8006
cmp ecx, eax
jne case.0x10131b4.8
push 0xffffffffffffffff
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0101290f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8