Function at 0x1001210f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e76e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10012158
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push 0x610e
push dword [ebp - 0x3c]
push 1
push dword [ebp - 0x40]
call fcn.10012331
add esp, 0x10
jmp 0x10012323
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1001230c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xfffffff0
jmp 0x100121b8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x1b
jne 0x1001230a
mov dword [ebp - 0x88], 0xc2f92e6c
mov dword [ebp - 0x84], 0xc2f92e6c
mov dword [ebp - 0x80], 0xc2f92e6c
mov dword [ebp - 0x7c], 0xc2f92e6c
lea ecx, [ebp - 0xe]
call fcn.100051f5
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x68]
call fcn.100051f8
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.100051a4
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x100122e6
push 1
lea ecx, [ebp - 0x74]
call fcn.100051e6
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x1001223b
mov dword [ebp - 0x18], 1
jmp 0x1001223f
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
jg 0x1001224e
mov dword [ebp - 0x1c], 1
jmp 0x10012252
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 5
ja 0x10012261
mov dword [ebp - 0x20], 1
jmp 0x10012265
and dword [ebp - 0x20], 0
push 1
mov ecx, dword [ebp - 0x60]
call fcn.100051e6
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jg 0x1001227f
mov dword [ebp - 0x24], 1
jmp 0x10012283
and dword [ebp - 0x24], 0
push 0
lea ecx, [ebp - 0x74]
call fcn.100051e6
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax]
mov eax, dword [ebp - 0x28]
cmp ecx, dword [eax]
jge 0x100122a2
mov dword [ebp - 0x2c], 1
jmp 0x100122a6
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xffff
jae 0x100122b8
mov dword [ebp - 0x30], 1
jmp 0x100122bc
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jg 0x100122cf
mov dword [ebp - 0x34], 1
jmp 0x100122d3
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
sub eax, 0x6c229e05
je 0x100122e6
mov dword [ebp - 0x38], 1
jmp 0x100122ea
and dword [ebp - 0x38], 0
push 2
lea ecx, [ebp - 0x74]
call fcn.100051e6
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.100051ca
jmp 0x100121ad
jmp 0x10012323
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10012323
push 0xa92
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret