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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xf018
call fcn.00423410
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x48
mov ecx, 0x3bc4
lea edi, [esp + 0x11c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x4341ec]
push 0x5a
push eax
mov dword [0x457878], ebx
mov dword [0x45787c], ebx
mov dword [0x457884], ebx
mov dword [0x457888], ebx
mov dword [0x457554], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0xc
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, eax
mov dword [0x457884], 0x96
mov dword [0x457888], 0x5f
mov word [0x455748], bx
mov word [0x457348], bx
mov dword [0x908dd0], 0x417620
mov dword [0x4578b4], ebx
mov dword [0x4578b8], ebx
call fcn.00405ca0
mov eax, dword [0xc27124]
mov ebp, 1
cmp eax, ebp
je 0x4185d8
call fcn.0041f360
push 0x10
mov esi, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp esi, 0x20
movsx eax, ax
jne 0x417f4e
cmp eax, ebx
jne 0x417f53
jmp 0x41830b
cmp esi, 0x15
jne 0x417f8f
push ebx
push 0x455748
push ebx
push 0xffffffffffffff9c
push 0xffffffffffffff9c
call fcn.00409740
mov eax, dword [0x434244]
add esp, 0x14
cmp eax, ebx
jne 0x417f7f
push ebp
call fcn.00407c40
add esp, 4
xor esi, esi
jmp 0x41830b
push ebx
call fcn.00407c40
add esp, 4
xor esi, esi
jmp 0x41830b
cmp esi, 0x1b
je 0x4185d8
cmp esi, 9
jne 0x417fd1
cmp eax, ebx
mov eax, dword [0x45787c]
mov ecx, 6
je 0x417fbf
add eax, 5
cdq
idiv ecx
push edx
call fcn.00417c90
add esp, 4
jmp 0x41830b
inc eax
cdq
idiv ecx
push edx
call fcn.00417c90
add esp, 4
jmp 0x41830b
cmp esi, 0xd
jne 0x418140
mov eax, dword [0x45787c]
cmp eax, 5
je 0x4185d8
cmp eax, 4
jne 0x41830b
push ebx
call fcn.00417c90
add esp, 4
test eax, eax
jne 0x41830b
mov eax, dword [0xc36038]
push eax
lea ecx, [esp + 0x1c]
push 0x42cadc
push ecx
call fcn.004231fe
xor eax, eax
mov ecx, 0x3bc4
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
mov eax, dword [0xc36038]
lea ecx, [eax + eax*4]
lea edx, [ecx*8 + 0xd611e0]
mov edi, edx
mov ecx, 0xa
mov esi, 0x434218
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x434244]
mov ecx, eax
imul ecx, ecx, 0x190
lea ecx, [ecx + 0xc25078]
push ecx
mov dword [eax*4 + 0xd61500], esi
mov dword [eax*4 + 0xa69bd0], ebp
mov eax, dword [0x457550]
push eax
mov eax, dword [0x457888]
push ebp
push esi
push edx
mov edx, dword [0x457878]
mov dword [ecx], ebx
lea ecx, [esp + 0x138]
push ecx
mov ecx, dword [0x457884]
push ebx
push ebx
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push 0x457348
push edx
call fcn.00415fd0
mov eax, dword [0xc36038]
add esp, 0x40
lea eax, [eax + eax*4]
lea ecx, [eax*8 + 0xd60d80]
push 0x457348
push ecx
call fcn.00423280
mov edx, dword [0xc36038]
mov eax, dword [0x457878]
mov ecx, dword [0x457884]
mov edi, edx
imul edi, edi, 0xef10
mov dword [edx*4 + 0x8efc90], eax
mov eax, dword [0x457888]
mov dword [edx*4 + 0xd610a0], ecx
mov dword [edx*4 + 0xd610f0], eax
xor eax, eax
add edi, 0xc36040
inc edx
push 0x42c268
mov ecx, 0x3bc4
push str.userdata.idx
rep stosd dword es:[edi], eax
mov dword [0xc36038], edx
call fcn.004231d5
mov ecx, dword [0xc36038]
push ecx
mov esi, eax
push 0x42c5f4
push esi
call fcn.004235ec
push esi
call fcn.0042304e
mov word [0x455748], bx
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xfffffffe
jne 0x41821e
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [0x4596d8]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x10]
cmp ecx, 0xd7
mov eax, dword [esp + 0x14]
jle 0x4181b4
cmp eax, 0xf5
jle 0x4181b4
cmp ecx, 0x19f
jge 0x4181b4
cmp eax, 0x12c
jge 0x4181b4
lea ecx, [eax - 0xf5]
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00417c90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, 0x181
jle 0x4181eb
cmp eax, 0x183
jle 0x4181eb
cmp ecx, 0x1e6
jge 0x4181eb
cmp eax, 0x19b
jge 0x4181eb
push ebx
call fcn.00417c90
add esp, 4
test eax, eax
je 0x418491
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x1f1
jle 0x41820d
cmp eax, 0x183
jle 0x41820d
cmp ecx, 0x257
jge 0x41820d
cmp eax, 0x19b
jl 0x4185d8
mov dword [0x4578b4], ebx
mov dword [0x4578b8], ebx
jmp 0x41830b
cmp esi, 0xfffffffd
jne 0x41830b
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4596d8]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
cmp eax, 0x181
mov ecx, dword [esp + 0x14]
jle 0x41827c
cmp ecx, 0x183
jle 0x41827c
cmp eax, 0x1e6
jge 0x41827c
cmp ecx, 0x19b
jge 0x41827c
mov dword [0x4578b4], ebp
call fcn.00417620
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xd7
jle 0x4182e2
cmp ecx, 0x14f
jle 0x4182e2
cmp eax, 0x1a4
jge 0x4182e2
cmp ecx, 0x16d
jge 0x4182e2
lea ecx, [eax - 0xd7]
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push 0xff00
push 0xdf
lea ecx, [eax + eax*2]
mov edx, dword [ecx*4 + 0x908e20]
push 0x1c5
push edx
mov dword [0x457878], eax
call fcn.00406210
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, 0x1f1
jle 0x41830b
cmp ecx, 0x183
jle 0x41830b
cmp eax, 0x257
jge 0x41830b
cmp ecx, 0x19b
jge 0x41830b
mov dword [0x4578b8], ebp
call fcn.00417620
cmp dword [0x45787c], 3
jne 0x41836b
cmp esi, 0x27
jne 0x418338
mov eax, dword [0x457878]
inc eax
cmp eax, 5
mov dword [0x457878], eax
jle 0x41832f
mov dword [0x457878], ebx
call fcn.00417620
xor esi, esi
jmp 0x41836b
cmp esi, 0x25
jne 0x418358
dec dword [0x457878]
jns 0x41834f
mov dword [0x457878], 5
call fcn.00417620
xor esi, esi
jmp 0x41836b
cmp esi, 0xd
jne 0x417f17
push 4
call fcn.00417c90
add esp, 4
mov eax, dword [0x45787c]
cmp eax, ebx
jne 0x4183ce
push 0x455748
call fcn.00417bd0
add esp, 4
cmp eax, 0xa
jl 0x418392
cmp esi, 0xd
je 0x418392
cmp esi, 8
je 0x418392
xor esi, esi
push 0x42c2bc
push ebx
push edi
call fcn.00405ec0
push esi
push 0x455748
push ebx
push 0xf5
push 0x145
call fcn.00409740
add esp, 0x20
test eax, eax
je 0x4183c4
push ebp
call fcn.00417c90
add esp, 4
call fcn.00405f40
jmp 0x417f17
cmp eax, ebp
jne 0x41842d
push 0x455748
call fcn.004231e8
add esp, 4
cmp eax, 2
jbe 0x4183f0
cmp esi, 0xd
je 0x4183f0
cmp esi, 8
je 0x4183f0
xor esi, esi
push 0x42c2bc
push ebx
push edi
call fcn.00405ec0
push esi
push 0x455748
push ebx
push 0x107
push 0x145
call fcn.00409740
add esp, 0x20
test eax, eax
je 0x418423
push 2
call fcn.00417c90
add esp, 4
call fcn.00405f40
jmp 0x417f17
cmp eax, 2
jne 0x417f17
push 0x455748
call fcn.004231e8
add esp, 4
cmp eax, 2
jbe 0x418454
cmp esi, 0xd
je 0x418454
cmp esi, 8
je 0x418454
xor esi, esi
push 0x42c2bc
push ebx
push edi
call fcn.00405ec0
push esi
push 0x455748
push ebx
push 0x119
push 0x145
call fcn.00409740
add esp, 0x20
test eax, eax
je 0x418487
push 3
call fcn.00417c90
add esp, 4
call fcn.00405f40
jmp 0x417f17
mov edx, dword [0xc36038]
push edx
lea eax, [esp + 0x1c]
push 0x42cadc
push eax
call fcn.004231fe
mov edx, dword [0xc36038]
mov ebp, dword [0x434244]
lea eax, [edx + edx*4]
lea ebx, [eax*8 + 0xd611e0]
mov ecx, 0xa
mov esi, 0x434218
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
imul ecx, ecx, 0x190
lea esi, [ecx + 0xc25078]
push esi
mov dword [edx*4 + 0xd61500], ebp
mov dword [edx*4 + 0xa69bd0], 1
mov edx, dword [0x457550]
push edx
mov edx, dword [0x457888]
push 1
push ebp
push ebx
xor eax, eax
mov ecx, 0x3bc4
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
mov ecx, dword [0x457878]
lea eax, [esp + 0x138]
push eax
mov eax, dword [0x457884]
push 0
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
push 0x457348
push ecx
mov dword [esi], 0
call fcn.00415fd0
mov eax, dword [0xc36038]
add esp, 0x40
lea edx, [eax + eax*4]
lea eax, [edx*8 + 0xd60d80]
push 0x457348
push eax
call fcn.00423280
mov edx, dword [0xc36038]
mov ecx, dword [0x457878]
mov eax, dword [0x457884]
mov edi, edx
imul edi, edi, 0xef10
mov dword [edx*4 + 0x8efc90], ecx
mov ecx, dword [0x457888]
mov dword [edx*4 + 0xd610a0], eax
mov dword [edx*4 + 0xd610f0], ecx
xor eax, eax
add edi, 0xc36040
inc edx
push 0x42c268
mov ecx, 0x3bc4
push str.userdata.idx
rep stosd dword es:[edi], eax
mov dword [0xc36038], edx
call fcn.004231d5
mov edx, dword [0xc36038]
push edx
mov esi, eax
push 0x42c5f4
push esi
call fcn.004235ec
push esi
call fcn.0042304e
mov word [0x455748], 0
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret