Function at 0x4547d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00454a60
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jge 0x454809
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x18]
jmp 0x454823
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x18]
mov ebx, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
sub eax, edx
mov edi, eax
sub ecx, ebx
push 0x11
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4548a5
cmp edi, 5
jle 0x454a20
fild dword [esp + 0x14]
fld st(0)
fmul qword [esi + 0xf7d30]
fild dword [esp + 0x18]
fmul qword [esi + 0xf7d20]
fsubp st(1)
fmul qword [esi + 0xb58]
fstp qword [esi + 0xb58]
fld qword [esi + 0xb58]
fxch st(1)
fmul qword [esi + 0xf7d30]
fdivp st(1)
fstp qword [esi + 0xb58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x454975
fild dword [esp + 0x28]
fmul qword [esi + 0xf7d20]
fdiv qword [esi + 0xf7d28]
fadd qword [0x5baea0]
call fcn.00556a00
fild dword [esp + 0x34]
mov ebx, eax
lea edi, [esi + 0xf7cff]
mov dword [esp + 0x10], ebx
fmul qword [esi + 0xf7d30]
fdiv qword [esi + 0xf7d28]
fiadd dword [esi + 0xf7d04]
call fcn.00556a00
lea ecx, [eax + esi + 0x3ac0]
cmp ecx, edi
jb 0x454909
sub ecx, 0xf423f
lea eax, [ecx + ebx]
cmp eax, edi
jb 0x454915
sub eax, 0xf423f
mov edx, dword [esi + 0xf7d00]
lea edx, [esi + edx + 0x3ac0]
cmp eax, edx
je 0x45494a
mov bl, byte [eax]
mov byte [ecx], bl
inc ecx
inc eax
cmp ecx, edi
jb 0x454938
lea ecx, [esi + 0x3ac0]
jmp 0x454942
cmp eax, edi
jb 0x454942
lea eax, [esi + 0x3ac0]
cmp eax, edx
jne 0x454926
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0xf7d00]
sub eax, ebx
mov dword [esi + 0xf7d00], eax
jns 0x454965
add eax, 0xf423f
mov dword [esi + 0xf7d00], eax
mov ecx, esi
call fcn.00451f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 5
jle 0x4549e4
mov eax, dword [esp + 0x2c]
cdq
idiv edi
imul eax, dword [esp + 0x18]
sub eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xf7d54]
cmp eax, 0xf0
jge 0x4549a4
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fild dword [esp + 0x18]
fmul qword [esi + 0xf7d20]
fld st(1)
fmul qword [esi + 0xf7d30]
faddp st(1)
fdivr qword [esi + 0xf7d28]
fmul qword [esi + 0xf7d30]
fmulp st(1)
fst qword [esi + 0xf7d28]
fmul qword [esi + 0xb70]
fdivr qword [0x5be9d0]
fstp qword [esi + 0xb40]
jmp 0x4549ea
neg ebx
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
push 0x10
fmul qword [esi + 0xf7d20]
fstp qword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetKeyState]
fld qword [esp + 0x18]
test ah, 0x80
je 0x454a0f
fadd qword [esi + 0xf7d38]
push 1
mov ecx, esi
sub esp, 8
fchs
fstp qword [esp]
call fcn.00452040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10