Function at 0x405780
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
cmp eax, 0x111
ja 0x405f02
je 0x405ed5
add eax, 0xffffffd5
cmp eax, 0xd5
ja case.0x405f19.276
movzx eax, byte [eax + 0x406000]
jmp dword [eax*4 + 0x405fec]
mov eax, dword [ebp + 0xc]
sub eax, 0x65
je 0x4057e7
sub eax, 2
jne case.0x405f19.276
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x10], 0xf
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x10], 0x12
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
sub eax, 0x65
je 0x40582b
sub eax, 2
jne case.0x405f19.276
cmp dword [esi + 0xe0], eax
je case.0x405f19.276
mov ebx, dword [ebp + 0x10]
mov edi, esi
call fcn.00404ba0
jmp case.0x405f19.276
mov eax, dword [ebp + 0x10]
push eax
mov edi, esi
call fcn.00404590
jmp case.0x405f19.276
mov ebx, dword [ebp + 0xc]
mov eax, esi
call fcn.00404ce0
jmp case.0x405f19.276
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
add eax, 0x9b
cmp eax, 0x99
ja case.0x405f19.276
movzx edx, byte [eax + 0x4060fc]
jmp dword [edx*4 + 0x4060d8]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [esi + 0x38]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 0x10], 0
je case.0x405f19.276
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x44], 0x14
mov dword [esp + 0x58], 0x4000
test eax, eax
jl 0x4058b3
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x44]
push ecx
push eax
push 0x120c
push edx
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [esi + 0x74]
je 0x4058ca
mov byte [esi + 0x78], 1
mov edx, dword [eax + 0x10]
mov dword [esi + 0x74], edx
jmp 0x4058d4
cmp byte [esi + 0x78], 0
sete al
mov byte [esi + 0x78], al
mov eax, dword [esi + 0x74]
test eax, eax
jl case.0x405f19.276
cmp byte [esi + 0x78], 0
mov dword [esp + 0x58], 0x7000
je 0x4058f9
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x50], ecx
jmp 0x405900
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x44]
push ecx
push eax
push 0x120c
push edx
call edi
mov ecx, dword [esi + 8]
mov eax, esi
call fcn.004066d0
jmp case.0x405f19.276
push 0
call fcn.00405380
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
je case.0x405f19.276
mov edi, eax
cmp dword [edi + 0xc], 0
jl 0x405a13
cmp dword [esi + 0xb0], 0
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x70], ecx
jne 0x40595c
cmp dword [esi + 0xb4], 0
je 0x405a00
mov edx, dword [edi + 0xc]
push edx
mov edx, esi
call fcn.004051a0
mov byte [esp + 0x12], 0
test eax, eax
je 0x405a00
cmp dword [edi + 8], 0xfffffffb
jne 0x4059a8
mov edx, dword [esi + 0xb4]
test edx, edx
je 0x405a00
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x38]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edi + ecx*4]
push ecx
push eax
push esi
call edx
mov edx, dword [esi + 8]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x405f19.276
cmp byte [eax + 0x2c], 0
jne 0x405a00
mov ecx, dword [esi + 0x70]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x38]
cmp byte [ecx + edx*4 + 0xc], 2
lea edx, [ecx + edx*4]
jne 0x4059d6
push 0
call fcn.004054b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0xb0]
test ecx, ecx
je 0x405a00
mov edx, dword [edx]
lea ebx, [esp + 0x12]
push ebx
push edx
push eax
push esi
call ecx
cmp byte [esp + 0x12], 0
je 0x405a00
mov eax, dword [esi + 0x70]
mov ecx, dword [edi + 0xc]
push eax
push ecx
call fcn.00405220
mov edx, dword [esi + 8]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x405f19.276
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 8]
call fcn.004066a0
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 8]
push 0
push eax
push 0x1013
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 8], 0xfffffffb
jne case.0x405f19.276
mov eax, dword [esi + 0xb4]
test eax, eax
je case.0x405f19.276
push 0
push 0
push esi
call eax
jmp case.0x405f19.276
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
test eax, eax
jl case.0x405f19.276
cmp dword [esi + 0xb8], 0
je case.0x405f19.276
push eax
mov edx, esi
call fcn.004051a0
cmp byte [eax + 0x2c], 0
jne case.0x405f19.276
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x12]
push ecx
mov ecx, dword [edi + 0x10]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x38]
mov byte [esp + 0x16], 0
mov edx, dword [ecx + edx*4]
push edx
push eax
mov eax, dword [esi + 0xb8]
push esi
call eax
cmp byte [esp + 0x12], 0
je 0x405abc
mov ecx, dword [esi + 0x70]
mov edx, dword [edi + 0xc]
push ecx
push edx
call fcn.00405220
mov eax, dword [esi + 8]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x405f19.276
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 8]
push 3
push eax
push 0x102c
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0x68]
push edx
mov edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
call fcn.004051a0
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [esp + 0x1c], eax
call ebx
test ax, ax
push 0x10
setl byte [esp + 0x17]
call ebx
test ax, ax
setl bl
cmp dword [edi + 0x14], 0
je 0x405c53
test byte [esp + 0x14], 1
je 0x405c53
push 0
call fcn.00405380
cmp byte [esp + 0x13], 0
jne 0x405bcb
test bl, bl
jne 0x405bcf
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x30]
push eax
push 0
push 0x1039
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x40]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + edx*4 + 0xc]
shr ecx, 8
test cl, 1
je 0x405bb8
mov edx, dword [edi + 0xc]
push edx
mov edx, esi
call fcn.004051a0
cmp byte [eax + 0x20], bl
jne 0x405bbd
call fcn.00405150
mov eax, dword [esp + 0x18]
mov byte [eax + 0x20], 1
mov byte [eax + 0x21], 1
jmp 0x405c3f
test bl, bl
je 0x405c3f
xor edi, edi
cmp dword [esi + 0x64], edi
mov byte [esp + 0x13], 0
jle 0x405c3c
jmp 0x405be0
mov eax, dword [esi + 8]
push 3
push edi
push 0x102c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esp + 0x13], 0
mov ebx, eax
je 0x405c17
push edi
mov edx, esi
call fcn.004051a0
mov byte [eax + 0x20], 1
mov byte [eax + 0x21], 1
test bl, 1
jne 0x405c3c
cmp edi, dword [esi + 0x6c]
je 0x405c3c
jmp 0x405c36
test bl, 1
jne 0x405c21
cmp edi, dword [esi + 0x6c]
jne 0x405c36
push edi
mov edx, esi
mov byte [esp + 0x17], 1
call fcn.004051a0
mov byte [eax + 0x20], 1
mov byte [eax + 0x21], 1
inc edi
cmp edi, dword [esi + 0x64]
jl 0x405be0
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
mov dword [esi + 0x6c], eax
mov ecx, dword [edi + 0xc]
push ecx
mov edx, esi
call fcn.004051a0
mov dword [esi + 0x68], eax
mov ecx, dword [esi + 0x68]
cmp ecx, dword [esp + 0x1c]
je case.0x405f19.276
mov eax, dword [esi + 0xd0]
test eax, eax
je case.0x405f19.276
push ecx
push esi
call eax
jmp case.0x405f19.276
xor eax, eax
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 8]
lea edx, [esp + 0x30]
push edx
push 0
push 0x1039
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x40]
mov edx, dword [esi + 0x38]
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*4 + 0xc]
shr eax, 8
test al, 1
je 0x405cdd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x405cd2
mov eax, dword [ebp + 0x10]
test byte [eax + 0x14], 1
je 0x405cd2
mov ecx, dword [eax + 0xc]
push ecx
mov edx, esi
call fcn.004051a0
cmp byte [eax + 0x20], 0
je 0x405d16
mov byte [eax + 0x20], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [eax + 0x20], 1
mov byte [eax + 0x21], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
cmp word [ebx + 0xc], 0x41
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
jne 0x405d72
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x405d72
mov ecx, esi
call fcn.00401230
test eax, eax
je 0x405d68
push eax
mov ecx, esi
mov byte [eax + 0x20], 1
mov byte [eax + 0x21], 1
call fcn.00401250
test eax, eax
jne 0x405d54
mov edx, dword [esi + 8]
push 0
push 0
push edx
call edi
movzx edx, word [ebx + 0xc]
lea eax, [edx - 9]
cmp eax, 0x25
ja case.0x405f19.276
movzx eax, byte [eax + 0x4061b4]
jmp dword [eax*4 + 0x406198]
mov eax, dword [esi + 0x70]
test eax, eax
jle case.0x405f19.276
mov ecx, dword [esi + 8]
push 0
push 0
dec eax
push ecx
mov dword [esi + 0x70], eax
call edi
jmp case.0x405f19.276
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x70]
dec edx
cmp eax, edx
jge case.0x405f19.276
inc eax
push 0
mov dword [esi + 0x70], eax
mov eax, dword [esi + 8]
push 0
push eax
call edi
jmp case.0x405f19.276
mov eax, dword [esi + 0xc0]
test eax, eax
je case.0x405f19.276
mov ecx, dword [esi + 0x68]
push ecx
push esi
call eax
jmp case.0x405f19.276
mov eax, dword [esi + 0xc4]
test eax, eax
je case.0x405f19.276
mov ecx, dword [esi + 0x68]
push ecx
push esi
mov dword [esi + 0x68], 0
call eax
jmp case.0x405f19.276
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je case.0x405f19.276
mov eax, dword [esi + 0x70]
mov edi, dword [esi + 0x38]
push edx
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
mov eax, dword [edi + eax*4]
push eax
push edx
push esi
call ecx
test al, al
je case.0x405f19.276
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x405e55
cmp byte [ecx + 0x2c], 0
jne case.0x405f19.276
mov edx, dword [esi + 0xc8]
test edx, edx
je 0x405eae
mov eax, dword [esi + 0x70]
mov edi, dword [esi + 0x38]
lea eax, [eax + eax*4]
cmp byte [edi + eax*4 + 0xc], 2
lea eax, [edi + eax*4]
jne 0x405e87
push 1
call fcn.004054b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [esp + 0x12], 0
mov eax, dword [eax]
lea edi, [esp + 0x12]
push edi
push eax
push ecx
push esi
call edx
cmp byte [esp + 0x12], 0
jne 0x405eae
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x405f19.276
mov eax, esi
call fcn.00405490
jmp case.0x405f19.276
cmp dword [esi + 0x8c], 0
je case.0x405f19.276
mov edx, dword [ebp + 0x10]
push edx
call fcn.00404db0
jmp case.0x405f19.276
cmp word [ebp + 0xc], 0x67
jne case.0x405f19.276
mov eax, dword [ebp + 0xc]
shr eax, 0x10
cmp eax, 9
jne case.0x405f19.276
call fcn.004056b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add eax, 0xfffffeed
cmp eax, 0xef
ja case.0x405f19.276
movzx ecx, byte [eax + 0x4061f0]
jmp dword [ecx*4 + 0x4061dc]
mov eax, dword [ebp + 0x10]
mov ecx, eax
movzx eax, ax
shr ecx, 0x10
mov edx, esi
call fcn.00404e00
jmp case.0x405f19.276
mov eax, dword [ebp + 0x10]
mov ecx, eax
movzx eax, ax
shr ecx, 0x10
call fcn.00404ea0
jmp case.0x405f19.276
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.0x405f19.276
push 0
call fcn.00405380
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push 0x201
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x405f19.276
cmp dword [ebp + 0xc], 0x66
jne case.0x405f19.276
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esi + 0x10]
jne 0x405fc5
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push eax
lea eax, [esp + 0x24]
call fcn.00406660
lea eax, [esp + 0x24]
lea edx, [esi + 0x28]
mov edi, eax
add esp, 4
mov ecx, 0x10
sub edx, edi
mov edi, dword [eax + edx]
cmp edi, dword [eax]
jne 0x405fc5
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x405fb1
jmp case.0x405f19.276
push 0
call fcn.00405380
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc