Function at 0x4302d0
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.00430560
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jge 0x430309
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 0x430323
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 0x4303a5
cmp edi, 5
jle 0x430520
fild dword [esp + 0x14]
fld st(0)
fmul qword [esi + 0xf7d48]
fild dword [esp + 0x18]
fmul qword [esi + 0xf7d38]
fsubp st(1)
fmul qword [esi + 0xb70]
fstp qword [esi + 0xb70]
fld qword [esi + 0xb70]
fxch st(1)
fmul qword [esi + 0xf7d48]
fdivp st(1)
fstp qword [esi + 0xb70]
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 0x430475
fild dword [esp + 0x28]
fmul qword [esi + 0xf7d38]
fdiv qword [esi + 0xf7d40]
fadd qword [0x5daf38]
call fcn.00573170
fild dword [esp + 0x34]
mov ebx, eax
lea edi, [esi + 0xf7d17]
mov dword [esp + 0x10], ebx
fmul qword [esi + 0xf7d48]
fdiv qword [esi + 0xf7d40]
fiadd dword [esi + 0xf7d1c]
call fcn.00573170
lea ecx, [eax + esi + 0x3ad8]
cmp ecx, edi
jb 0x430409
sub ecx, 0xf423f
lea eax, [ecx + ebx]
cmp eax, edi
jb 0x430415
sub eax, 0xf423f
mov edx, dword [esi + 0xf7d18]
lea edx, [esi + edx + 0x3ad8]
cmp eax, edx
je 0x43044a
mov bl, byte [eax]
mov byte [ecx], bl
inc ecx
inc eax
cmp ecx, edi
jb 0x430438
lea ecx, [esi + 0x3ad8]
jmp 0x430442
cmp eax, edi
jb 0x430442
lea eax, [esi + 0x3ad8]
cmp eax, edx
jne 0x430426
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0xf7d18]
sub eax, ebx
mov dword [esi + 0xf7d18], eax
jns 0x430465
add eax, 0xf423f
mov dword [esi + 0xf7d18], eax
mov ecx, esi
call fcn.0042d820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 5
jle 0x4304e4
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 + 0xf7d6c]
cmp eax, 0xf0
jge 0x4304a4
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 + 0xf7d38]
fld st(1)
fmul qword [esi + 0xf7d48]
faddp st(1)
fdivr qword [esi + 0xf7d40]
fmul qword [esi + 0xf7d48]
fmulp st(1)
fst qword [esi + 0xf7d40]
fmul qword [esi + 0xb88]
fdivr qword [0x5dcc28]
fstp qword [esi + 0xb58]
jmp 0x4304ea
neg ebx
mov dword [esp + 0x10], ebx
fild dword [esp + 0x10]
push 0x10
fmul qword [esi + 0xf7d38]
fstp qword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetKeyState]
fld qword [esp + 0x18]
test ah, 0x80
je 0x43050f
fadd qword [esi + 0xf7d50]
push 1
mov ecx, esi
sub esp, 8
fchs
fstp qword [esp]
call fcn.0042d900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10