Function at 0x4531b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x12
mov dword [edi + 0x3c], 0xffffffff
call dword [sym.imp.user32.dll_GetKeyState]
fld dword [edi + 8]
movsx eax, ax
mov dword [esp + 0x14], eax
call fcn.004eaa58
mov ebp, dword [esp + 0x2c]
fld dword [edi + 0xc]
mov ebx, ebp
sub ebx, eax
call fcn.004eaa58
mov esi, dword [esp + 0x30]
sub esi, eax
mov ecx, esi
mov edx, ebx
imul ecx, esi
imul edx, ebx
add ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fsqrt
call fcn.004eaa58
cmp eax, 8
jge 0x453227
mov edi, dword [esp + 0x14]
xor eax, eax
test edi, edi
setge al
pop edi
pop esi
pop ebp
pop ebx
dec eax
and eax, 5
inc eax
add esp, 0x18
ret 8
mov eax, dword [edi + 0x40]
sub eax, 0
je 0x453274
dec eax
jne 0x4532e1
fld dword [edi + 0x1c]
fadd dword [edi + 8]
call fcn.004eaa58
mov ecx, ebp
sub ecx, eax
mov eax, esi
mov edx, ecx
imul eax, esi
imul edx, ecx
add eax, edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsqrt
call fcn.004eaa58
cmp eax, 8
jge 0x4532e1
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x18
ret 8
mov edx, dword [edi + 0x2c]
fld dword [edi + 0x24]
fmul dword [0x54fb3c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
sub esp, 8
fstp dword [esp + 4]
fld dword [edi + 0x20]
fmul dword [0x54fb3c]
fstp dword [esp]
call fcn.0049ba90
fld dword [esp + 0x30]
add esp, 0x14
fadd dword [edi + 8]
call fcn.004eaa58
fld dword [esp + 0x20]
fadd dword [edi + 0xc]
mov esi, ebp
sub esi, eax
call fcn.004eaa58
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, ecx
imul eax, ecx
mov ecx, esi
imul ecx, esi
add eax, ecx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jmp 0x453259
mov ecx, dword [edi + 0x54]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jg 0x453300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esp + 0x10]
lea esp, [esp]
test eax, eax
jl 0x4534e2
cmp eax, dword [edi + 0x54]
jge 0x4534e2
mov edx, dword [edi + 0x50]
mov esi, dword [edx + eax*4]
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 0x5b4]
mov dword [esp + 0x18], 0
jne 0x453335
mov dword [esp + 0x18], 1
fld dword [0x54fb38]
fld dword [esi + 0x10]
fucompp
fnstsw ax
test ah, 0x44
jp 0x453359
fld dword [0x54fb38]
fld dword [esi + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4533a4
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4533a4
fld dword [esi + 8]
fadd dword [esi + 0x10]
call fcn.004eaa58
fld dword [esi + 0x14]
fadd dword [esi + 0xc]
mov ebx, ebp
sub ebx, eax
call fcn.004eaa58
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov edx, ecx
mov eax, ebx
imul edx, ecx
imul eax, ebx
add edx, eax
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fsqrt
call fcn.004eaa58
cmp eax, 8
jl 0x45346d
fld dword [0x54fb38]
fld dword [esi + 0x18]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4533c8
fld dword [0x54fb38]
fld dword [esi + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x453413
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x453413
fld dword [esi + 8]
fadd dword [esi + 0x18]
call fcn.004eaa58
fld dword [esi + 0x1c]
fadd dword [esi + 0xc]
mov ebx, ebp
sub ebx, eax
call fcn.004eaa58
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov edx, ecx
mov eax, ebx
imul edx, ecx
imul eax, ebx
add edx, eax
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fsqrt
call fcn.004eaa58
cmp eax, 4
jl 0x453498
fld dword [esi + 8]
call fcn.004eaa58
fld dword [esi + 0xc]
mov ebx, ebp
sub ebx, eax
call fcn.004eaa58
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov edx, ecx
mov eax, ebx
imul edx, ecx
imul eax, ebx
add edx, eax
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fsqrt
call fcn.004eaa58
cmp eax, 4
mov eax, dword [esp + 0x10]
jl 0x4534c3
mov ecx, dword [edi + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4532f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x45347c
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x3c], ecx
mov edi, dword [esp + 0x14]
xor eax, eax
test edi, edi
setge al
pop edi
pop esi
pop ebp
pop ebx
dec eax
and eax, 3
add eax, 4
add esp, 0x18
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4534a7
mov edx, dword [esp + 0x10]
mov dword [edi + 0x3c], edx
mov edi, dword [esp + 0x14]
xor eax, eax
test edi, edi
setge al
pop edi
pop esi
pop ebp
pop ebx
dec eax
and eax, 3
add eax, 5
add esp, 0x18
ret 8
mov dword [edi + 0x3c], eax
mov edi, dword [esp + 0x14]
xor eax, eax
test edi, edi
setge al
pop edi
pop esi
pop ebp
pop ebx
dec eax
and eax, 0xfffffffd
add eax, 9
add esp, 0x18
ret 8
call fcn.004fd76e
int3