Function at 0x10021119
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10021137
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
jmp 0x10021394
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1002132e
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x3cc9
jl 0x10021200
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10021200
and dword [ebp - 0x44], 0
jmp 0x10021207
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x44], 0xffffffff
je 0x10021216
mov dword [ebp - 0x24], 1
jmp 0x1002121a
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jg 0x1002122d
mov dword [ebp - 0x14], 1
jmp 0x10021231
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1002126c
mov dword [ebp - 0x2c], 1
jmp 0x10021270
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jle 0x10021283
mov dword [ebp - 0x5c], 1
jmp 0x10021287
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x8842b4cf
je 0x100212a6
mov dword [ebp - 0x3c], 1
jmp 0x100212aa
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0xfe0c
je 0x100212bc
mov dword [ebp - 0x34], 1
jmp 0x100212c0
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
sub eax, 0x782e
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jne 0x100212d8
mov dword [ebp - 8], 1
jmp 0x100212dc
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 8], 0xacb2d505
ja 0x100212fe
mov dword [ebp - 0x20], 1
jmp 0x10021302
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jl 0x10021315
mov dword [ebp - 0x74], 1
jmp 0x10021319
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x28]
imul eax, dword [ecx]
test eax, eax
jne 0x1002133c
mov eax, dword [ebp - 0x7c]
cmp dword [eax], 0
jne 0x1002133c
and dword [ebp - 0x30], 0
jmp 0x10021343
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 1
jb 0x10021352
mov dword [ebp - 0x38], 1
jmp 0x10021356
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jge 0x10021369
mov dword [ebp - 0x40], 1
jmp 0x1002136d
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
add eax, 0xf34f
cmp eax, 0x5697
jg 0x10021385
mov dword [ebp - 0x48], 1
jmp 0x10021389
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret