Function at 0x100128c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, edx
push edi
test cl, cl
je 0x10012954
cmp byte [ebp + 0x10], 0
je 0x1001293a
mov eax, dword [esi]
mov eax, dword [esi]
mov eax, dword [esi]
mov eax, dword [esi]
mov eax, dword [esi]
mov edi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [esi]
cmp dword [edi], 0xffffffff
jne 0x100128f9
xor ebx, ebx
cmp dword [esi], ebx
je 0x100128fc
xor ebx, ebx
inc ebx
mov eax, dword [esi]
xor ecx, ecx
cmp ebx, eax
mov eax, dword [esi]
sete cl
xor edx, edx
cmp ecx, 0xfffffff7
setle dl
xor ecx, ecx
cmp edx, eax
setne cl
xor edx, edx
mov dword [esi], ecx
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [edi]
mov eax, dword [ebp + 0xc]
add ecx, 0x8acc167d
mov eax, dword [eax]
cmp ecx, eax
mov eax, dword [ebp + 0x1c]
setle dl
mov dword [eax], edx
jmp 0x10012ac6
xor ebx, ebx
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10012ac6
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardState]
jmp 0x10012ac6
cmp byte [ebp + 0x18], 0
je 0x1001296f
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.100145e3
jmp 0x10012ac6
mov dword [ebp - 8], 0x9c1464f1
xor esi, esi
push 0xfffffffffffffffb
pop edi
inc esi
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0x6ed9
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
push 2
mov dword [ebp - 0xc], 0x89a98e57
mov dword [ebp - 0xc], ebx
pop ecx
jmp 0x100129b1
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x1c], 0xcadd635
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ecx
jl 0x100129a3
mov dword [ebp - 0xc], ebx
jmp 0x100129c9
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x24], 3
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ecx
jl 0x100129bb
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
neg eax
test eax, eax
jg 0x100129e1
mov edx, esi
cmp dword [ebp - 8], ebx
jne 0x100129e3
mov edx, ebx
mov eax, dword [ebp - 8]
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 8]
setg cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 8]
setl dl
xor ecx, ecx
cmp eax, edx
setge cl
xor eax, eax
cmp ecx, 0x4392f209
setg al
imul eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 8]
cmp eax, 0x7fd1e814
jle 0x10012a2b
mov eax, ebx
cmp dword [ebp - 0x1c], ebx
je 0x10012a2d
mov eax, esi
cmp edi, eax
sbb eax, eax
neg eax
mov dword [ebp - 8], eax
je 0x10012a94
mov eax, dword [ebp - 0x18]
neg eax
jne 0x10012a7c
cmp dword [ebp - 0x1c], ebx
jne 0x10012a47
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
xor edx, edx
neg eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
imul ecx, eax, 0xffff
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
mov eax, dword [ebp - 0x1c]
setge dl
sub edx, eax
jne 0x10012a6f
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], esi
jle 0x10012a7e
mov edx, esi
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp edx, eax
setge cl
cmp ecx, dword [ebp - 0x10]
jge 0x10012a94
mov eax, ebx
cmp dword [ebp - 0x10], ebx
jne 0x10012a96
mov eax, esi
mov edx, dword [ebp - 0x18]
xor ecx, ecx
imul edx, dword [ebp - 0x1c]
imul edx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, edx
setne cl
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], esi
jge 0x10012ab7
cmp dword [ebp - 0x14], ebx
jne 0x10012ab9
mov esi, ebx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp esi, eax
sete cl
mov dword [ebp - 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret