Function at 0x1006af90
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edx, edx
test dl, dl
mov ah, ah
xor esi, esi
push ecx
pop ecx
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x58]
jne 0x1006afc1
cmp ecx, 0xffffffff
jne 0x1006afc1
lea eax, [esp + 0x18]
push eax
call fcn.10069d30
mov ebx, ebx
jmp 0x1006afcd
mov dword [esp + 0x18], eax
push edx
pop edx
mov dword [esp + 0x1c], ecx
test ah, ah
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, ecx
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov dh, dh
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 dl, dl
mov ebp, dword [esp + 0x1c]
xchg ebx, eax
xchg ebx, eax
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.1011b380
fst qword [esp + 0x28]
mov ebp, ebp
fld qword [0x10182978]
mov edi, dword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1006b192
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 esi, esi
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 ebx, ebx
mov dword [esp + 0x48], 0x5a
mov ah, ah
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1006b192
fld qword [esp + 0x30]
fmul st(1)
fiadd dword [esp + 0x18]
call fcn.1011ab20
mov dword [esp + 0x10], eax
mov bl, bl
fmul qword [esp + 0x38]
fiadd dword [esp + 0x1c]
call fcn.1011ab20
mov dword [esp + 0x14], eax
test bl, bl
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
push edx
pop edx
cmp dword [esp + 0x50], 0
je 0x1006b0d3
mov dword [esp + 0x4c], 4
mov ah, ah
test eax, eax
mov byte [esi + edi], 8
jne 0x1006b0df
test ebx, ebx
je 0x1006b136
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
fstp st(0)
push 1
call ebp
test ax, ax
je 0x1006b0f6
or byte [esi + edi], 1
mov ch, ch
push 2
call ebp
test ax, ax
je 0x1006b105
or byte [esi + edi], 2
mov ebp, ebp
push 4
call ebp
test ax, ax
je 0x1006b117
or byte [esi + edi], 4
test eax, 0x6f57
cmp dword [esp + 0x54], 0
jge 0x1006b124
or byte [esi + edi], 0x10
test ch, ch
test ebx, ebx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x54]
jle 0x1006b136
or byte [esi + edi], 0x20
mov ch, ch
mov byte [esi + edi + 1], al
mov dl, dl
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1006b154
mov byte [esi + edi + 3], 0
mov ebx, ebx
jmp 0x1006b160
cmp eax, 1
jne 0x1006b160
mov byte [esi + edi + 3], 0
test esi, esi
add esi, dword [esp + 0x4c]
test edx, edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
test edx, edx
mov ebp, dword [esp + 0x14]
xchg ebx, eax
xchg ebx, 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 0x1006b080
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 0x1006b1ae
mov edx, ebx
sub edx, ebp
je 0x1006b258
sub ebx, ebp
mov dword [esp + 0x48], 3
push edx
pop edx
cmp dword [esp + 0x50], 0
je 0x1006b1cb
mov dword [esp + 0x48], 4
mov ah, ah
test eax, eax
mov byte [esi + edi], 8
jne 0x1006b1d7
test ebx, ebx
je 0x1006b228
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebp
test ax, ax
je 0x1006b1ec
or byte [esi + edi], 1
mov ch, ch
push 2
call ebp
test ax, ax
je 0x1006b1fb
or byte [esi + edi], 2
mov ebp, ebp
push 4
call ebp
test ax, ax
je 0x1006b20d
or byte [esi + edi], 4
test eax, 0x6f57
cmp dword [esp + 0x54], 0
jge 0x1006b21a
or byte [esi + edi], 0x10
test ch, ch
test ebx, ebx
mov eax, dword [esp + 0x54]
jle 0x1006b228
or byte [esi + edi], 0x20
mov ch, ch
mov byte [esi + edi + 1], al
mov dl, dl
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1006b246
mov byte [esi + edi + 3], 0
mov ebx, ebx
jmp 0x1006b252
cmp eax, 1
jne 0x1006b252
mov byte [esi + edi + 3], 0
test esi, esi
add esi, dword [esp + 0x48]
test edx, edx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret