Function at 0x100644db
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x100647e5
lea eax, [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x10064719
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x24], 0x996a5308
mov dword [ebp - 0x3c], 0x2fe1
mov dword [ebp - 0x90], 0x1000eaac
cmp dword [ebp - 0x3c], 0x3120
jle 0x100645ad
and dword [ebp - 8], 0
jmp 0x10064546
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x5137
jge 0x100645ad
and dword [ebp - 0x18], 0
jmp 0x1006455c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x386
jge 0x100645ab
and dword [ebp - 0x10], 0
jmp 0x10064572
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x1f9f
jge 0x100645a9
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
xor eax, dword [ebp - 8]
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
mov ecx, 0x10092b78
call fcn.10022847
jmp 0x1006456b
jmp 0x10064555
jmp 0x1006453f
mov dword [ebp - 0x30], 0xfffffff6
cmp dword [ebp - 0x3c], 0x2d30
jge 0x100645cd
mov edx, dword [ebp - 0x90]
mov ecx, 0x10092b78
call fcn.10025597
mov dword [ebp - 0x28], 0x5205300c
mov dword [ebp - 0x48], 0xf9f3b06d
mov dword [ebp - 0xc], 0
jmp 0x100645eb
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x10064601
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xa8], 0
jmp 0x100645e4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 4], 0
je 0x10064620
push 4
pop eax
test eax, eax
je 0x10064620
mov dword [ebp - 0x34], 1
jmp 0x10064624
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x34]
lea eax, [ecx + eax - 1]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xfffffffa
ja 0x10064640
mov dword [ebp - 0x44], 1
jmp 0x10064644
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0xd07ddbf4
je 0x10064656
mov dword [ebp - 0x2c], 1
jmp 0x1006465a
and dword [ebp - 0x2c], 0
xor eax, eax
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 4]
je 0x1006466d
mov dword [ebp - 0x60], 1
jmp 0x10064671
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xac], eax
mov eax, 0x813
cmp eax, 0x8fbf
jle 0x10064692
cmp dword [ebp - 4], 0
jne 0x10064692
and dword [ebp - 0x4c], 0
jmp 0x10064699
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 4], eax
jg 0x100646b0
mov dword [ebp - 0x38], 1
jmp 0x100646b4
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xd978
jl 0x100646cc
mov dword [ebp - 0x40], 1
jmp 0x100646d0
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
inc eax
cmp dword [ebp - 0x20], eax
jge 0x100646f4
cmp dword [ebp - 0x28], 0
jne 0x100646f4
cmp dword [ebp - 0x24], 0
jne 0x100646f4
and dword [ebp - 0x94], 0
jmp 0x100646fe
mov dword [ebp - 0x94], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp + eax - 0xa8], ecx
jmp 0x100647e3
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x50], 0x202b
mov dword [ebp - 0x78], 0x1000eacc
cmp dword [ebp - 0x50], 0x20b8
jle 0x100647bf
and dword [ebp - 0x14], 0
jmp 0x1006474f
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x11ad
jge 0x100647b5
and dword [ebp - 0x1c], 0
jmp 0x10064765
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3da1
jge 0x100647b3
mov eax, dword [ebp - 0x14]
and eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
lea ecx, [ebp - 0xc4]
call fcn.100118ee
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.10022827
push eax
call fcn.10077843
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.1002281d
jmp 0x1006475e
jmp 0x10064748
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x100647d1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
cmp dword [ebp - 0x50], 0x1c95
jge 0x100647e3
push dword [ebp - 0x78]
call fcn.10077843
pop ecx
jmp 0x10064835
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
push dword [ebp - 0x88]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push 1
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push 0x76cd
push dword [ebp - 0x74]
push 0x6f5c
call fcn.1004bd98
add esp, 0x24
mov esp, ebp
pop ebp
ret