Function at 0x1006af60
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
test eax, 0x397c
mov edi, edi
push ecx
pop ecx
xor esi, esi
test dh, dh
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x58]
jne 0x1006af94
cmp ecx, 0xffffffff
jne 0x1006af94
lea eax, [esp + 0x18]
push eax
call fcn.10069c80
test bl, bl
jmp 0x1006afa0
mov dword [esp + 0x18], eax
mov cl, cl
mov dword [esp + 0x1c], ecx
test bh, bh
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dl, dl
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
test eax, 0x684b
add ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
xchg ebx, eax
xchg ebx, eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
test bh, bh
mov ebp, dword [esp + 0x1c]
test al, al
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.1011b840
fst qword [esp + 0x28]
mov edi, edi
fld qword [0x10182968]
mov edi, dword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1006b16a
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 bl, bl
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]
test ecx, ecx
mov dword [esp + 0x48], 0x5a
push eax
pop eax
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1006b16a
fld qword [esp + 0x30]
fmul st(1)
fiadd dword [esp + 0x18]
call fcn.1011afe0
mov dword [esp + 0x10], eax
test bl, bl
fmul qword [esp + 0x38]
fiadd dword [esp + 0x1c]
call fcn.1011afe0
mov dword [esp + 0x14], eax
test edx, edx
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 bl, bl
cmp dword [esp + 0x50], 0
je 0x1006b0a8
mov dword [esp + 0x4c], 4
nop
test eax, eax
mov byte [esi + edi], 8
jne 0x1006b0b4
test ebx, ebx
je 0x1006b108
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
fstp st(0)
push 1
call ebp
test ax, ax
je 0x1006b0cb
or byte [esi + edi], 1
mov dl, dl
push 2
call ebp
test ax, ax
je 0x1006b0da
or byte [esi + edi], 2
test ebx, ebx
push 4
call ebp
test ax, ax
je 0x1006b0e9
or byte [esi + edi], 4
mov ebp, ebp
cmp dword [esp + 0x54], 0
jge 0x1006b0f6
or byte [esi + edi], 0x10
mov dl, dl
test ebx, ebx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x54]
jle 0x1006b108
or byte [esi + edi], 0x20
test ecx, ecx
mov byte [esi + edi + 1], al
test eax, 0x2260
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1006b129
mov byte [esi + edi + 3], 0
test bh, bh
jmp 0x1006b135
cmp eax, 1
jne 0x1006b135
mov byte [esi + edi + 3], 0
test edi, edi
add esi, dword [esp + 0x4c]
test eax, 0x607d
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
test esi, esi
mov ebp, dword [esp + 0x14]
test eax, eax
add dword [esp + 0x48], 0x5a
xchg ebx, eax
xchg ebx, eax
fild dword [esp + 0x48]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1006b056
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 0x1006b186
mov edx, ebx
sub edx, ebp
je 0x1006b22f
sub ebx, ebp
mov dword [esp + 0x48], 3
test bl, bl
cmp dword [esp + 0x50], 0
je 0x1006b1a2
mov dword [esp + 0x48], 4
nop
test eax, eax
mov byte [esi + edi], 8
jne 0x1006b1ae
test ebx, ebx
je 0x1006b1fc
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebp
test ax, ax
je 0x1006b1c3
or byte [esi + edi], 1
mov dl, dl
push 2
call ebp
test ax, ax
je 0x1006b1d2
or byte [esi + edi], 2
test ebx, ebx
push 4
call ebp
test ax, ax
je 0x1006b1e1
or byte [esi + edi], 4
mov ebp, ebp
cmp dword [esp + 0x54], 0
jge 0x1006b1ee
or byte [esi + edi], 0x10
mov dl, dl
test ebx, ebx
mov eax, dword [esp + 0x54]
jle 0x1006b1fc
or byte [esi + edi], 0x20
test ecx, ecx
mov byte [esi + edi + 1], al
test eax, 0x2260
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1006b21d
mov byte [esi + edi + 3], 0
test bh, bh
jmp 0x1006b229
cmp eax, 1
jne 0x1006b229
mov byte [esi + edi + 3], 0
test edi, edi
add esi, dword [esp + 0x48]
test esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret