Function at 0x1006bad0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
test ecx, ecx
test ah, ah
test dl, dl
xor esi, esi
test ecx, ecx
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x58]
jne 0x1006bb01
cmp ecx, 0xffffffff
jne 0x1006bb01
lea eax, [esp + 0x18]
push eax
call fcn.1006a750
test al, al
jmp 0x1006bb0d
mov dword [esp + 0x18], eax
mov eax, eax
mov dword [esp + 0x1c], ecx
push eax
pop eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, edx
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
test eax, eax
add ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
test dl, dl
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
test dh, dh
mov ebp, dword [esp + 0x1c]
mov ch, ch
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.1011c1f0
fst qword [esp + 0x28]
test ah, ah
fld qword [0x10181bd0]
mov edi, dword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1006bcd5
mov edx, ebx
sub edx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
fdiv st(2)
fstp qword [esp + 0x38]
test eax, 0x375d
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]
push ebx
pop ebx
mov dword [esp + 0x48], 0x5a
push eax
pop eax
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1006bcd5
fld qword [esp + 0x30]
fmul st(1)
fiadd dword [esp + 0x18]
call fcn.1011b720
mov dword [esp + 0x10], eax
mov bl, bl
fmul qword [esp + 0x38]
fiadd dword [esp + 0x1c]
call fcn.1011b720
mov dword [esp + 0x14], eax
test eax, 0x763d
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
test esi, esi
cmp dword [esp + 0x50], 0
je 0x1006bc19
mov dword [esp + 0x4c], 4
mov ch, ch
test eax, eax
mov byte [esi + edi], 8
jne 0x1006bc25
test ebx, ebx
je 0x1006bc79
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
fstp st(0)
push 1
call ebp
test ax, ax
je 0x1006bc3c
or byte [esi + edi], 1
push ebx
pop ebx
push 2
call ebp
test ax, ax
je 0x1006bc4b
or byte [esi + edi], 2
test ah, ah
push 4
call ebp
test ax, ax
je 0x1006bc5a
or byte [esi + edi], 4
test edx, edx
cmp dword [esp + 0x54], 0
jge 0x1006bc67
or byte [esi + edi], 0x10
mov ecx, ecx
test ebx, ebx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x54]
jle 0x1006bc79
or byte [esi + edi], 0x20
mov ebx, ebx
mov byte [esi + edi + 1], al
test cl, cl
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1006bc97
mov byte [esi + edi + 3], 0
mov al, al
jmp 0x1006bca3
cmp eax, 1
jne 0x1006bca3
mov byte [esi + edi + 3], 0
mov ah, ah
add esi, dword [esp + 0x4c]
test esi, esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov ebp, ebp
mov ebp, dword [esp + 0x14]
test cl, cl
add dword [esp + 0x48], 0x5a
mov al, al
fild dword [esp + 0x48]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1006bbc3
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 0x1006bcf1
mov edx, ebx
sub edx, ebp
je 0x1006bd98
sub ebx, ebp
mov dword [esp + 0x48], 3
test esi, esi
cmp dword [esp + 0x50], 0
je 0x1006bd0e
mov dword [esp + 0x48], 4
mov ch, ch
test eax, eax
mov byte [esi + edi], 8
jne 0x1006bd1a
test ebx, ebx
je 0x1006bd68
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebp
test ax, ax
je 0x1006bd2f
or byte [esi + edi], 1
push ebx
pop ebx
push 2
call ebp
test ax, ax
je 0x1006bd3e
or byte [esi + edi], 2
test ah, ah
push 4
call ebp
test ax, ax
je 0x1006bd4d
or byte [esi + edi], 4
test edx, edx
cmp dword [esp + 0x54], 0
jge 0x1006bd5a
or byte [esi + edi], 0x10
mov ecx, ecx
test ebx, ebx
mov eax, dword [esp + 0x54]
jle 0x1006bd68
or byte [esi + edi], 0x20
mov ebx, ebx
mov byte [esi + edi + 1], al
test cl, cl
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1006bd86
mov byte [esi + edi + 3], 0
mov al, al
jmp 0x1006bd92
cmp eax, 1
jne 0x1006bd92
mov byte [esi + edi + 3], 0
mov ah, ah
add esi, dword [esp + 0x48]
push ebx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret