Function at 0x405fe0
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x40694d
mov eax, dword [0x462308]
mov ecx, dword [eax + 0x34c0]
test ecx, ecx
jne 0x40694d
mov edi, dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x1c]
push ecx
call edi
mov eax, dword [0x462308]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax + 0x2ff0]
call fcn.0041f250
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
push eax
call ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [0x462308]
test eax, eax
jl 0x40607d
cmp eax, 0x280
jge 0x40607d
mov ecx, dword [edx + 0x2ff8]
mov eax, dword [ecx + 0x490]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jl 0x40607d
lea eax, [eax + eax + 0x190]
cmp ecx, eax
jge 0x40607d
mov ebp, dword [edx + 0x34c0]
xor ecx, ecx
test ebp, ebp
sete cl
and ecx, 1
mov ebp, ecx
jmp 0x40607f
xor ebp, ebp
mov ecx, dword [edx + 0x2ff0]
call fcn.0041f270
test eax, eax
je 0x406090
xor ebp, ebp
mov eax, dword [esi + 0x91a0]
test al, 8
je 0x4064d0
mov edx, dword [0x462308]
push 9
mov ecx, dword [edx + 0x2ff0]
call fcn.0041f470
test eax, eax
je 0x4060b9
test ebp, ebp
jne 0x406127
mov eax, dword [0x462308]
push 2
mov ecx, dword [eax + 0x2ff0]
call fcn.0041f470
test eax, eax
jne 0x406127
mov ecx, dword [0x462308]
push 3
mov ecx, dword [ecx + 0x2ff0]
call fcn.0041f470
test eax, eax
jne 0x406127
mov edx, dword [0x462308]
push 4
mov ecx, dword [edx + 0x2ff0]
call fcn.0041f470
test eax, eax
jne 0x406127
mov eax, dword [0x462308]
push 5
mov ecx, dword [eax + 0x2ff0]
call fcn.0041f470
test eax, eax
jne 0x406127
or edx, 0xffffffff
mov dword [esi + 0x91c8], edx
mov dword [esi + 0x91cc], edx
jmp 0x4063f9
lea ecx, [esp + 0x14]
push ecx
call edi
mov eax, dword [0x462308]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax + 0x2ff0]
call fcn.0041f250
push eax
call ebx
mov eax, dword [esi + 0x91c8]
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
cmp eax, edx
mov eax, dword [esp + 0x18]
jne 0x40616f
cmp dword [esi + 0x91cc], edx
jne 0x40616f
mov dword [esi + 0x91c8], ecx
mov dword [esi + 0x91cc], eax
mov ebx, dword [esi + 0x91c8]
mov edi, dword [esi + 0x91cc]
sub ecx, ebx
sub eax, edi
mov dword [esp + 0x10], ecx
push 2
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fsubr qword [esi + 0x9190]
fstp qword [esi + 0x9190]
fild dword [esp + 0x14]
fsubr qword [esi + 0x9198]
fstp qword [esi + 0x9198]
mov ecx, dword [0x462308]
mov ecx, dword [ecx + 0x2ff0]
call fcn.0041f470
test eax, eax
je 0x4061ef
fld qword [esi + 0x9198]
fsub qword [0x434500]
push 0x10
fstp qword [esi + 0x9198]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x4061ef
fld qword [esi + 0x9198]
fsub qword [0x434508]
fstp qword [esi + 0x9198]
mov edx, dword [0x462308]
push 3
mov ecx, dword [edx + 0x2ff0]
call fcn.0041f470
test eax, eax
je 0x406240
fld qword [esi + 0x9198]
fsub qword [0x434510]
push 6
fstp qword [esi + 0x9198]
mov eax, dword [0x462308]
mov ecx, dword [eax + 0x2ff0]
call fcn.0041f470
test eax, eax
je 0x406240
fld qword [esi + 0x9198]
fsub qword [0x434518]
fstp qword [esi + 0x9198]
mov ecx, dword [0x462308]
push 4
mov ecx, dword [ecx + 0x2ff0]
call fcn.0041f470
test eax, eax
je 0x406292
fld qword [esi + 0x9190]
fsub qword [0x434500]
push 6
fstp qword [esi + 0x9190]
mov edx, dword [0x462308]
mov ecx, dword [edx + 0x2ff0]
call fcn.0041f470
test eax, eax
je 0x406292
fld qword [esi + 0x9190]
fsub qword [0x434508]
fstp qword [esi + 0x9190]
mov eax, dword [0x462308]
push 5
mov ecx, dword [eax + 0x2ff0]
call fcn.0041f470
test eax, eax
je 0x4062e3
fld qword [esi + 0x9190]
fsub qword [0x434510]
push 6
fstp qword [esi + 0x9190]
mov ecx, dword [0x462308]
mov ecx, dword [ecx + 0x2ff0]
call fcn.0041f470
test eax, eax
je 0x4062e3
fld qword [esi + 0x9190]
fsub qword [0x434518]
fstp qword [esi + 0x9190]
mov eax, dword [esi + 0x91b8]
fld qword [esi + 0x9190]
lea edi, [eax - 1]
mov dword [esp + 0x10], edi
call fcn.00420410
cmp eax, edi
jl 0x406309
fild dword [esp + 0x10]
fstp qword [esi + 0x9190]
mov eax, dword [esi + 0x91bc]
fld qword [esi + 0x9198]
lea edi, [eax - 1]
mov dword [esp + 0x10], edi
call fcn.00420410
cmp eax, edi
jl 0x40632f
fild dword [esp + 0x10]
fstp qword [esi + 0x9198]
fld qword [esi + 0x9190]
fcomp qword [0x4344f8]
fnstsw ax
test ah, 1
je 0x406352
xor edi, edi
mov dword [esi + 0x9190], edi
mov dword [esi + 0x9194], edi
jmp 0x406354
xor edi, edi
fld qword [esi + 0x9198]
fcomp qword [0x4344f8]
fnstsw ax
test ah, 1
je 0x406373
mov dword [esi + 0x9198], edi
mov dword [esi + 0x919c], edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
mov dword [esi + 0x91c8], edx
mov dword [esi + 0x91cc], eax
mov ecx, dword [0x462308]
push edi
push edi
call fcn.004167c0
mov ecx, dword [0x462308]
push eax
push edi
push edi
push 9
call fcn.004167c0
fld qword [esi + 0x9198]
push eax
push 0x190
push 0x280
call fcn.00420410
fld qword [esi + 0x9190]
push eax
call fcn.00420410
mov ecx, dword [0x462308]
push eax
push edi
mov ecx, dword [ecx + 0x2ff8]
call fcn.00410e80
mov edx, dword [0x462308]
push 0x190
push 0x280
push edi
mov ecx, dword [edx + 0x2ff8]
push edi
call fcn.00410de0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call edi
test al, 1
je 0x40640b
test ebp, ebp
jne 0x40642b
push 0x11
call edi
test al, 1
je 0x406417
test ebp, ebp
jne 0x40642b
push 0xd
call edi
test al, 1
je 0x40694d
test ebp, ebp
je 0x40694d
fld qword [esi + 0x9190]
fcomp qword [0x4344f8]
fnstsw ax
test ah, 0x40
je 0x406455
fld qword [esi + 0x9198]
fcomp qword [0x4344f8]
fnstsw ax
test ah, 0x40
je 0x406455
push 0
jmp 0x406485
fld qword [esi + 0x9198]
fcomp qword [0x4344f8]
fnstsw ax
test ah, 0x40
je 0x40646c
push 3
jmp 0x406485
fld qword [esi + 0x9190]
fcomp qword [0x4344f8]
fnstsw ax
test ah, 0x40
je 0x406483
push 5
jmp 0x406485
push 7
fld qword [esi + 0x9198]
fsub qword [0x434520]
call fcn.00420410
fld qword [esi + 0x9190]
fsub qword [0x434528]
push eax
call fcn.00420410
fld qword [esi + 0x9198]
push eax
call fcn.00420410
fld qword [esi + 0x9190]
push eax
call fcn.00420410
push eax
mov ecx, esi
call fcn.00405e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test eax, eax
je 0x4068dc
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, 1
push ebx
call edi
test bl, al
je 0x4064f2
test ebp, ebp
jne 0x4068dc
push 2
call edi
test al, 1
je 0x406502
test ebp, ebp
jne 0x4068dc
push 0xd
call edi
test al, 1
je 0x406512
test ebp, ebp
jne 0x4068dc
push 0x20
call edi
test al, 1
je 0x406522
test ebp, ebp
jne 0x4068dc
push 0x1b
call edi
test al, 1
je 0x406532
test ebp, ebp
jne 0x4068dc
mov eax, dword [esi + 0x91d0]
dec eax
mov dword [esi + 0x91d0], eax
jne 0x40694d
fld qword [esi + 0x9190]
call fcn.00420410
cmp eax, dword [esi + 0x91b8]
jg 0x40663b
fld qword [esi + 0x9198]
call fcn.00420410
cmp eax, dword [esi + 0x91bc]
jg 0x40663b
mov eax, dword [esi + 0x91c4]
test eax, eax
jne 0x40663b
mov ecx, dword [0x462308]
push 0
push 0
push 0
push 0
push 0
call fcn.004167c0
mov ecx, dword [0x462308]
push eax
push 0
push 0
push 9
call fcn.004167c0
fld qword [esi + 0x9198]
push eax
push 0x190
push 0x280
call fcn.00420410
fld qword [esi + 0x9190]
push eax
call fcn.00420410
push eax
mov eax, dword [0x462308]
push 0
mov ecx, dword [eax + 0x2ff8]
call fcn.00410e80
mov ecx, dword [0x462308]
push 0x190
push 0x280
push 0
mov ecx, dword [ecx + 0x2ff8]
push 0
call fcn.00410de0
mov ebx, dword [esi + 0x91a0]
mov edi, ebx
and edi, 2
je 0x40661b
fld qword [esi + 0x91a8]
fadd qword [esi + 0x9190]
fstp qword [esi + 0x9190]
mov eax, ebx
and eax, 4
mov dword [esp + 0x10], eax
je 0x40672e
fld qword [esi + 0x91b0]
fadd qword [esi + 0x9198]
jmp 0x406728
fld qword [esi + 0x9190]
fcomp qword [0x4344f8]
fnstsw ax
test ah, 1
jne 0x4067c7
fld qword [esi + 0x9198]
fcomp qword [0x4344f8]
fnstsw ax
test ah, 1
jne 0x4067c7
mov eax, dword [esi + 0x91c4]
test eax, eax
je 0x4067c7
mov ecx, dword [0x462308]
push 0
push 0
push 0
push 0
push 0
call fcn.004167c0
mov ecx, dword [0x462308]
push eax
push 0
push 0
push 9
call fcn.004167c0
fld qword [esi + 0x9198]
push eax
push 0x190
push 0x280
call fcn.00420410
fld qword [esi + 0x9190]
push eax
call fcn.00420410
mov edx, dword [0x462308]
push eax
push 0
mov ecx, dword [edx + 0x2ff8]
call fcn.00410e80
mov eax, dword [0x462308]
push 0x190
push 0x280
push 0
mov ecx, dword [eax + 0x2ff8]
push 0
call fcn.00410de0
mov ebx, dword [esi + 0x91a0]
mov edi, ebx
and edi, 2
je 0x406711
fld qword [esi + 0x9190]
fsub qword [esi + 0x91a8]
fstp qword [esi + 0x9190]
mov eax, ebx
and eax, 4
mov dword [esp + 0x10], eax
je 0x40672e
fld qword [esi + 0x9198]
fsub qword [esi + 0x91b0]
fstp qword [esi + 0x9198]
fld qword [esi + 0x9190]
mov ebp, dword [esi + 0x91b8]
mov dword [esi + 0x91d0], 1
call fcn.00420410
cmp eax, ebp
jg 0x406764
fld qword [esi + 0x9198]
call fcn.00420410
cmp eax, dword [esi + 0x91bc]
jle 0x40694d
test bl, 1
je 0x40694d
mov eax, dword [esi + 0x91c4]
test eax, eax
jne 0x40694d
test edi, edi
mov dword [esi + 0x91c4], 1
je 0x406798
dec ebp
mov dword [esp + 0x14], ebp
fild dword [esp + 0x14]
fstp qword [esi + 0x9190]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4067b5
mov ecx, dword [esi + 0x91bc]
dec ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fstp qword [esi + 0x9198]
mov dword [esi + 0x91d0], 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x91c4]
xor edi, edi
cmp eax, edi
je 0x40683c
mov ecx, dword [0x462308]
push edi
push edi
push edi
push edi
push edi
call fcn.004167c0
mov ecx, dword [0x462308]
push eax
push edi
push edi
push 9
call fcn.004167c0
mov edx, dword [0x462308]
push eax
push 0x190
push 0x280
mov ecx, dword [edx + 0x2ff8]
push edi
push edi
push edi
call fcn.00410e80
mov eax, dword [0x462308]
push 0x190
push 0x280
push edi
mov ecx, dword [eax + 0x2ff8]
push edi
call fcn.00410de0
mov dword [esi + 0x91c0], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x91a0]
mov ecx, eax
and ecx, 2
je 0x406853
test al, 4
jne 0x406857
mov dword [esi + 0x91bc], ebx
test al, 4
je 0x406861
cmp ecx, edi
jne 0x406861
mov dword [esi + 0x91b8], ebx
mov ecx, dword [0x462308]
push edi
push edi
push edi
push edi
push edi
call fcn.004167c0
mov ecx, dword [0x462308]
push eax
push edi
push edi
push 9
call fcn.004167c0
mov cx, word [esi + 0x91bc]
mov dx, word [esi + 0x91b8]
push eax
mov eax, dword [0x462308]
push 0x190
dec cx
push 0x280
dec dx
push ecx
mov ecx, dword [eax + 0x2ff8]
push edx
push edi
call fcn.00410e80
mov ecx, dword [0x462308]
push 0x190
push 0x280
push edi
mov ecx, dword [ecx + 0x2ff8]
push edi
call fcn.00410de0
mov dword [esi + 0x91c0], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [0x462308]
push 0
push 0
push 0
push 0
push 0
call fcn.004167c0
mov ecx, dword [0x462308]
push eax
push 0
push 0
push 9
call fcn.004167c0
mov edx, dword [0x462308]
push eax
push 0x190
push 0x280
mov ecx, dword [edx + 0x2ff8]
push 0
push 0
push 0
call fcn.00410e80
mov eax, dword [0x462308]
push 0x190
push 0x280
push 0
mov ecx, dword [eax + 0x2ff8]
push 0
call fcn.00410de0
mov dword [esi + 0x91c0], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret