Function at 0x1006a810
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov bl, bl
nop
mov ch, ch
xor esi, esi
xchg ebx, eax
xchg ebx, eax
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x58]
jne 0x1006a840
cmp ecx, 0xffffffff
jne 0x1006a840
lea eax, [esp + 0x18]
push eax
call fcn.100688f0
mov edx, edx
jmp 0x1006a84c
mov dword [esp + 0x18], eax
mov dh, dh
mov dword [esp + 0x1c], ecx
mov al, al
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, eax
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
push edx
pop edx
add ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov ch, ch
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov cl, cl
mov ebp, dword [esp + 0x1c]
mov bl, bl
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.1011c0e0
fst qword [esp + 0x28]
mov cl, cl
fld qword [0x101818e8]
mov edi, dword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1006aa0e
mov edx, ebx
sub edx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
fdiv st(2)
fstp qword [esp + 0x38]
push ecx
pop ecx
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]
mov edi, edi
mov dword [esp + 0x48], 0x5a
mov ebp, ebp
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1006aa0e
fld qword [esp + 0x30]
fmul st(1)
fiadd dword [esp + 0x18]
call fcn.1011b610
mov dword [esp + 0x10], eax
mov ch, ch
fmul qword [esp + 0x38]
fiadd dword [esp + 0x1c]
call fcn.1011b610
mov dword [esp + 0x14], eax
mov dh, dh
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 bl, bl
cmp dword [esp + 0x50], 0
je 0x1006a952
mov dword [esp + 0x4c], 4
mov ebx, ebx
test eax, eax
mov byte [esi + edi], 8
jne 0x1006a95e
test ebx, ebx
je 0x1006a9b2
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
fstp st(0)
push 1
call ebp
test ax, ax
je 0x1006a975
or byte [esi + edi], 1
mov edi, edi
push 2
call ebp
test ax, ax
je 0x1006a984
or byte [esi + edi], 2
mov dl, dl
push 4
call ebp
test ax, ax
je 0x1006a993
or byte [esi + edi], 4
mov ah, ah
cmp dword [esp + 0x54], 0
jge 0x1006a9a0
or byte [esi + edi], 0x10
push eax
pop eax
test ebx, ebx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x54]
jle 0x1006a9b2
or byte [esi + edi], 0x20
mov ebx, ebx
mov byte [esi + edi + 1], al
mov edi, edi
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1006a9d0
mov byte [esi + edi + 3], 0
mov ecx, ecx
jmp 0x1006a9dc
cmp eax, 1
jne 0x1006a9dc
mov byte [esi + edi + 3], 0
mov cl, cl
add esi, dword [esp + 0x4c]
xchg ebx, eax
xchg ebx, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov ch, ch
mov ebp, dword [esp + 0x14]
push edx
pop edx
add dword [esp + 0x48], 0x5a
push eax
pop eax
fild dword [esp + 0x48]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1006a8ff
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 0x1006aa2a
mov edx, ebx
sub edx, ebp
je 0x1006aad1
sub ebx, ebp
mov dword [esp + 0x48], 3
mov bl, bl
cmp dword [esp + 0x50], 0
je 0x1006aa47
mov dword [esp + 0x48], 4
mov ebx, ebx
test eax, eax
mov byte [esi + edi], 8
jne 0x1006aa53
test ebx, ebx
je 0x1006aaa1
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebp
test ax, ax
je 0x1006aa68
or byte [esi + edi], 1
mov edi, edi
push 2
call ebp
test ax, ax
je 0x1006aa77
or byte [esi + edi], 2
mov dl, dl
push 4
call ebp
test ax, ax
je 0x1006aa86
or byte [esi + edi], 4
mov ah, ah
cmp dword [esp + 0x54], 0
jge 0x1006aa93
or byte [esi + edi], 0x10
push eax
pop eax
test ebx, ebx
mov eax, dword [esp + 0x54]
jle 0x1006aaa1
or byte [esi + edi], 0x20
mov ebx, ebx
mov byte [esi + edi + 1], al
mov edi, edi
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1006aabf
mov byte [esi + edi + 3], 0
mov ecx, ecx
jmp 0x1006aacb
cmp eax, 1
jne 0x1006aacb
mov byte [esi + edi + 3], 0
mov cl, cl
add esi, dword [esp + 0x48]
mov eax, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret