Function at 0x100688f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov cl, cl
mov dl, dl
mov ah, ah
xor esi, esi
mov eax, eax
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x58]
jne 0x10068921
cmp ecx, 0xffffffff
jne 0x10068921
lea eax, [esp + 0x18]
push eax
call fcn.10067590
push ebx
pop ebx
jmp 0x1006892d
mov dword [esp + 0x18], eax
mov ebp, ebp
mov dword [esp + 0x1c], ecx
push eax
pop eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ch, ch
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ebx, ebx
add ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
push edx
pop edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov esi, esi
mov ebp, dword [esp + 0x1c]
mov esi, esi
sub ecx, dword [esp + 0x18]
mov eax, ebx
sub eax, dword [esp + 0x1c]
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
call fcn.1011c080
fst qword [esp + 0x28]
mov bl, bl
fld qword [0x101839d0]
mov edi, dword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x10068aee
mov edx, ebx
sub edx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
fdiv st(2)
fstp qword [esp + 0x38]
mov ah, ah
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fdiv st(2)
fstp qword [esp + 0x30]
nop
mov dword [esp + 0x48], 0x5a
mov cl, cl
fcom st(1)
fnstsw ax
test ah, 5
jp 0x10068aee
fld qword [esp + 0x30]
fmul st(1)
fiadd dword [esp + 0x18]
call fcn.1011b5b0
mov dword [esp + 0x10], eax
mov dl, dl
fmul qword [esp + 0x38]
fiadd dword [esp + 0x1c]
call fcn.1011b5b0
mov dword [esp + 0x14], eax
mov cl, cl
mov ebx, eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x54]
sub ebx, ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], 3
mov ah, ah
cmp dword [esp + 0x50], 0
je 0x10068a32
mov dword [esp + 0x4c], 4
xchg ebx, eax
xchg ebx, eax
test eax, eax
mov byte [esi + edi], 8
jne 0x10068a3e
test ebx, ebx
je 0x10068a92
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
fstp st(0)
push 1
call ebp
test ax, ax
je 0x10068a55
or byte [esi + edi], 1
mov ecx, ecx
push 2
call ebp
test ax, ax
je 0x10068a64
or byte [esi + edi], 2
mov eax, eax
push 4
call ebp
test ax, ax
je 0x10068a73
or byte [esi + edi], 4
mov ebx, ebx
cmp dword [esp + 0x54], 0
jge 0x10068a80
or byte [esi + edi], 0x10
mov edx, edx
test ebx, ebx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x54]
jle 0x10068a92
or byte [esi + edi], 0x20
mov ah, ah
mov byte [esi + edi + 1], al
mov bh, bh
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x10068ab0
mov byte [esi + edi + 3], 0
mov dl, dl
jmp 0x10068abc
cmp eax, 1
jne 0x10068abc
mov byte [esi + edi + 3], 0
mov bl, bl
add esi, dword [esp + 0x4c]
mov ch, ch
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov edi, edi
mov ebp, dword [esp + 0x14]
push ecx
pop ecx
add dword [esp + 0x48], 0x5a
mov eax, eax
fild dword [esp + 0x48]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x100689df
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
fstp st(0)
sub eax, dword [esp + 0x54]
fstp st(0)
mov dword [esp + 0x54], eax
jne 0x10068b0a
mov edx, ebx
sub edx, ebp
je 0x10068bb0
sub ebx, ebp
mov dword [esp + 0x48], 3
mov ah, ah
cmp dword [esp + 0x50], 0
je 0x10068b27
mov dword [esp + 0x48], 4
xchg ebx, eax
xchg ebx, eax
test eax, eax
mov byte [esi + edi], 8
jne 0x10068b33
test ebx, ebx
je 0x10068b81
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebp
test ax, ax
je 0x10068b48
or byte [esi + edi], 1
mov ecx, ecx
push 2
call ebp
test ax, ax
je 0x10068b57
or byte [esi + edi], 2
mov eax, eax
push 4
call ebp
test ax, ax
je 0x10068b66
or byte [esi + edi], 4
mov ebx, ebx
cmp dword [esp + 0x54], 0
jge 0x10068b73
or byte [esi + edi], 0x10
mov edx, edx
test ebx, ebx
mov eax, dword [esp + 0x54]
jle 0x10068b81
or byte [esi + edi], 0x20
mov ah, ah
mov byte [esi + edi + 1], al
mov bh, bh
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x10068b9f
mov byte [esi + edi + 3], 0
mov dl, dl
jmp 0x10068bab
cmp eax, 1
jne 0x10068bab
mov byte [esi + edi + 3], 0
mov bl, bl
add esi, dword [esp + 0x48]
nop
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret