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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x6c]
push eax
call fcn.005714e0
add esp, 8
test al, al
jne 0x579503
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0x108
push 0x100
lea ecx, [esp + 0x34]
push 0
push ecx
call ebx
test eax, eax
je 0x578d07
push 1
push 0x108
push 0x100
lea edx, [esp + 0x34]
push 0
push edx
call ebx
test eax, eax
jne 0x578cee
test esi, esi
jne 0x578d0f
xor ebp, ebp
jmp 0x578d12
mov ebp, dword [esi + 0x1c]
push ebp
lea ecx, [esi + 0x78]
mov dword [esp + 0x18], ebp
call fcn.0058c630
mov eax, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jle 0x578f98
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x578f98
call dword [sym.imp.USER32.dll_WaitMessage]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov byte [esp + 0x13], 0
mov al, byte [esp + 0x13]
test al, al
jne 0x578f98
push ebp
call edi
test eax, eax
je 0x578d65
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
call ebx
test eax, eax
je 0x578d65
push ebp
call edi
test eax, eax
je 0x578f71
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp ecx, ebp
jne 0x578e8f
cmp eax, 0x200
jne 0x578e07
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub eax, ecx
cdq
mov ecx, eax
mov eax, dword [esp + 0x24]
xor ecx, edx
sub ecx, edx
mov edx, dword [esp + 0x1c]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x50]
cmp ecx, edx
jge 0x578f5a
cmp eax, dword [esp + 0x54]
jge 0x578f5a
push 1
push 0x200
push 0x200
lea eax, [esp + 0x34]
push ebp
push eax
call ebx
jmp 0x578f4a
cmp eax, 0x7b
ja 0x578e26
je 0x578f71
cmp eax, 0x1c
je 0x578f71
cmp eax, 0x1f
je 0x578f71
jmp 0x578e2d
cmp eax, 0x215
je 0x578e80
cmp eax, 0x100
jb 0x578e3b
cmp eax, 0x108
jbe 0x578e51
cmp eax, 0x200
jb 0x578ef2
cmp eax, 0x209
ja 0x578ef2
cmp eax, 0x100
jne 0x578f71
cmp dword [esp + 0x30], 0x11
jne 0x578f71
push 1
push 0x100
push 0x100
push ecx
lea ecx, [esp + 0x38]
push ecx
call ebx
jmp 0x578f4a
cmp dword [esp + 0x34], ebp
jne 0x578f71
jmp 0x578f4a
cmp eax, 0x1c
je 0x578f71
cmp eax, 0x1f
je 0x578f71
cmp eax, 0x7b
je 0x578f71
cmp eax, 0x100
jb 0x578eb8
cmp eax, 0x108
jbe 0x578ec6
cmp eax, 0x200
jb 0x578ef2
cmp eax, 0x209
ja 0x578ef2
cmp eax, 0x100
jne 0x578f71
cmp dword [esp + 0x30], 0x11
jne 0x578f71
push 1
push 0x100
push 0x100
lea edx, [esp + 0x34]
push ecx
push edx
call ebx
jmp 0x578f4a
call fcn.005ddc59
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x5c]
test eax, eax
je 0x578f64
push ebp
call edi
test eax, eax
je 0x578f71
mov al, byte [0x6c6e54]
test al, al
je 0x578f3d
xor edi, edi
call fcn.005ddc59
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x60]
test eax, eax
je 0x578f37
inc edi
call fcn.005ddc59
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x60]
test eax, eax
jne 0x578f25
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push ebp
call edi
test eax, eax
je 0x578f71
call dword [sym.imp.USER32.dll_WaitMessage]
push ebp
call edi
test eax, eax
je 0x578d65
jmp 0x578d78
mov byte [esp + 0x13], 1
jmp 0x578d65
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x578d65
push ebp
call edi
test eax, eax
je 0x579503
call sub.USER32.dll_GetCapture
cmp eax, ebp
jne 0x579503
call sub.USER32.dll_ReleaseCapture
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x10
push 0
mov ecx, 0x6c6d50
mov dword [0x6c6da4], esi
mov dword [0x6c6d74], esi
call fcn.0057b8d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x188]
mov al, byte [esi + 0xf8]
or al, 4
mov byte [esi + 0xf8], al
mov ecx, dword [esi + 0xc4]
mov ebx, dword [esi + 0xbc]
mov edx, dword [esi + 0xc0]
mov edi, dword [esi + 0xb8]
sub ecx, ebx
sub edx, edi
cmp edx, ecx
jge 0x578ff2
mov ebp, dword [esi + 0xc0]
mov eax, edi
jmp 0x578ffe
mov ebp, dword [esi + 0xc4]
mov eax, dword [esi + 0xbc]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
sub ebp, eax
cmp ebp, 2
jle 0x57900f
mov eax, ebp
jmp 0x579013
push 0x33
call ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp ebp, 2
jle 0x579023
mov eax, ebp
jmp 0x57902c
push 0x33
call ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x108], eax
mov dword [esi + 0x110], eax
mov dword [esi + 0x118], eax
mov dword [esi + 0x10c], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x11c], edi
mov edi, dword [esp + 0x4c]
cmp dword [edi], 0
jne 0x579060
mov eax, dword [edi + 4]
test eax, eax
je 0x5790ad
mov ecx, esi
call fcn.00572b50
test al, al
je 0x57907e
mov eax, dword [edi]
mov dword [esi + 0x108], eax
mov ecx, dword [edi + 4]
mov dword [esi + 0x10c], ecx
jmp 0x5790ad
mov ecx, esi
call fcn.00572ab0
test al, al
je 0x57909c
mov edx, dword [edi]
mov dword [esi + 0x110], edx
mov eax, dword [edi + 4]
mov dword [esi + 0x114], eax
jmp 0x5790ad
mov ecx, dword [edi]
mov dword [esi + 0x118], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0x11c], edx
mov ecx, esi
call fcn.00582e70
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
jne 0x57912c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf8]
test al, al
jne 0x57912c
cmp edi, 1
jne 0x57912c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
shr eax, 0xf
and eax, edi
xor ebx, ebx
cmp eax, ebx
setne al
push eax
push ecx
mov ecx, esi
call dword [edx + 0x184]
cmp dword [0x6c6d58], ebx
jne 0x579113
mov edx, dword [esi]
push ebx
push 0x6c6d50
mov ecx, esi
call dword [edx + 0x178]
mov eax, dword [esi + 0x6c]
push ebx
push eax
call fcn.00584280
mov ecx, dword [esi + 0x6c]
push ebx
push ecx
call fcn.00584640
add esp, 0x10
jmp 0x579151
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
shr eax, 0xf
and eax, 1
xor ebx, ebx
cmp eax, ebx
setne al
push eax
push ecx
mov ecx, esi
call dword [edx + 0x184]
mov edx, dword [esp + 0x14]
push ebx
push 0x32
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SetTimer]
test byte [esi + 0xf8], 4
je 0x5794e8
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5794e8
call dword [sym.imp.USER32.dll_WaitMessage]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x579495
push ebx
push ebx
push ebx
lea edx, [esp + 0x34]
push ebx
push edx
call ebp
test eax, eax
je 0x579495
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x48], 0
cmp eax, 0xa8
ja 0x5791ef
cmp eax, 0xa7
jae case.0x579209.277
lea ecx, [eax - 0x1c]
cmp ecx, 0x89
ja case.0x579209.278
xor edx, edx
mov dl, byte [ecx + 0x579518]
jmp dword [edx*4 + 0x579510]
lea ecx, [eax - 0x113]
cmp ecx, 0xf5
ja case.0x579209.278
xor edx, edx
mov dl, byte [ecx + 0x5795b4]
jmp dword [edx*4 + 0x5795a4]
cmp dword [esp + 0x30], 0x1004
jne 0x579444
push 1
push eax
push eax
lea eax, [esp + 0x34]
push ebx
push eax
call ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
or ecx, edx
mov edx, dword [esp + 0x2c]
xor eax, eax
cmp edx, 0x100
setne al
dec eax
push ecx
mov ecx, dword [esi + 0x1c]
and eax, 0x11
push eax
push 0x200
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x57946b
push 1
push 0x200
push 0x200
lea edx, [esp + 0x34]
push ebx
push edx
call ebp
push ebx
push 0x200
push 0x200
lea eax, [esp + 0x34]
push ebx
push eax
call ebp
test eax, eax
je 0x5792e4
push 1
push 0x200
push 0x200
lea ecx, [esp + 0x34]
push ebx
push ecx
call ebp
push ebx
push 0x200
push 0x200
lea edx, [esp + 0x34]
push ebx
push edx
call ebp
test eax, eax
jne 0x5792b9
mov eax, dword [esp + 0x34]
movsx ecx, ax
shr eax, 0x10
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x1c]
movsx edx, ax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], edx
cmp eax, ecx
je 0x57931f
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x34]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x1ec]
test al, al
jne 0x57946b
mov eax, dword [esp + 0x2c]
cmp eax, 0x100
jb 0x57940a
cmp eax, 0x108
ja 0x57940a
mov cl, byte [0x6c6e5c]
test cl, cl
jne 0x579444
cmp eax, 0x100
je 0x57937a
cmp eax, 0x101
jne case.0x579209.277
cmp dword [esp + 0x30], 0x11
jne case.0x579209.277
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ebx
push ecx
mov dword [esp + 0x58], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x124]
mov eax, dword [esp + 0x50]
cmp edx, eax
jne 0x5793bd
mov eax, dword [esi + 0x128]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jne 0x5793bd
mov eax, edx
dec eax
mov dword [esi + 0x124], eax
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x2c]
and eax, 0xffff
shl eax, 0x10
and ecx, 0xffff
xor edx, edx
or eax, ecx
cmp edi, 0x100
setne dl
dec edx
push eax
mov eax, dword [esi + 0x1c]
and edx, 0x11
push edx
push 0x200
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x579444
cmp esi, ebx
jne 0x579412
xor edi, edi
jmp 0x579415
mov edi, dword [esi + 0x1c]
call sub.USER32.dll_GetCapture
cmp eax, edi
jne case.0x579209.277
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
test ah, 0x80
je case.0x579209.277
push 2
call edi
test ah, 0x80
jne case.0x579209.277
push 4
call edi
test ah, 0x80
je 0x579444
mov byte [esp + 0x48], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x579495
mov al, byte [esp + 0x48]
test al, al
jne 0x579480
call fcn.005ddc59
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x5c]
test eax, eax
je 0x57948e
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x5791a3
jmp 0x579495
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x180]
jmp 0x579495
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5794e8
test byte [esi + 0xf8], 4
je 0x5794e8
mov al, byte [0x6c6e54]
test al, al
je 0x5794db
xor edi, edi
call fcn.005ddc59
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0x60]
test eax, eax
je 0x5794db
inc edi
call fcn.005ddc59
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x60]
test eax, eax
jne 0x5794c9
test byte [esi + 0xf8], 4
jne 0x579177
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x579503
push 0x1004
push esi
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x10
ret 4