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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x4a70c8], esi
jne 0x420c10
cmp dword [0x4a70c0], esi
je 0x420f15
cmp dword [ebp + 0xc], 0x201
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
je 0x420c2c
cmp dword [ebp + 0xc], 0x204
jne 0x420d50
mov eax, dword [0x4a6a78]
push 1
pop edi
cmp eax, edi
jne 0x420c3c
push 0x11
jmp 0x420c47
cmp eax, 2
jne 0x420c45
push 0x10
jmp 0x420c47
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, edi
cmp eax, esi
je 0x420d50
lea eax, [ebp - 8]
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push ecx
push eax
mov dword [0x47f1e0], eax
mov dword [0x47f1e4], ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
test esi, esi
mov edi, esi
je 0x420ca7
push 0xfffffffffffffff0
push edi
mov esi, edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0xc00000
je 0x420c9a
test eax, 0x80000000
jne 0x420ca7
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
test edi, edi
jne 0x420c81
cmp dword [ebp + 0xc], 0x201
jne 0x420ccf
cmp dword [0x4a70c0], 0
je 0x420f15
cmp dword [0x4a7a18], 0
jne 0x420f15
jmp 0x420d65
cmp dword [ebp + 0xc], 0x204
jne 0x420d4e
xor edi, edi
cmp dword [0x4a70c8], edi
je 0x420f15
cmp dword [0x4a7a14], edi
jne 0x420f15
lea eax, [ebp - 0x18]
mov dword [0x4a7a18], esi
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x14]
add edx, ecx
sar edx, 1
sar eax, 1
cmp dword [ebp - 4], edx
jle 0x420d37
cmp dword [ebp - 8], eax
mov dword [0x443d80], 2
jge 0x420d88
mov dword [0x443d80], 3
jmp 0x420d88
cmp dword [ebp - 8], eax
mov dword [0x443d80], edi
jle 0x420d88
mov dword [0x443d80], 1
jmp 0x420d88
xor esi, esi
cmp dword [ebp + 0xc], 0x202
jne 0x420d6d
cmp dword [0x4a7a14], esi
je 0x420f15
mov dword [0x4a7a14], esi
jmp 0x420d88
cmp dword [ebp + 0xc], 0x205
jne 0x420d90
cmp dword [0x4a7a18], esi
je 0x420f15
mov dword [0x4a7a18], esi
push 1
pop eax
jmp 0x420f17
cmp dword [ebp + 0xc], 0x200
jne 0x420f15
mov eax, dword [0x4a7a14]
cmp eax, esi
je 0x420e30
push dword [0x47f1e4]
push dword [0x47f1e0]
push eax
call fcn.00420a20
add esp, 0xc
lea eax, [ebp - 8]
push eax
call ebx
lea eax, [ebp - 0x18]
push eax
push dword [0x4a7a14]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
sub ecx, dword [0x47f1e4]
sub eax, dword [0x47f1e0]
push 1
push esi
add dword [ebp - 0x14], ecx
add dword [ebp - 0x18], eax
push esi
add dword [ebp - 0x10], eax
push dword [ebp - 0x14]
add dword [ebp - 0xc], ecx
push dword [ebp - 0x18]
push esi
push dword [0x4a7a14]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea esi, [ebp - 0x18]
mov edi, 0x4a6c18
movsd dword es:[edi], dword [esi]
mov eax, dword [0x4a7a14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [0x4a6c10], eax
mov eax, dword [ebp - 8]
mov dword [0x47f1e0], eax
mov eax, dword [ebp - 4]
movsd dword es:[edi], dword [esi]
jmp 0x420f10
mov eax, dword [0x4a7a18]
cmp eax, esi
je 0x420f15
push dword [0x47f1e4]
push dword [0x47f1e0]
push eax
call fcn.00420a20
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [0x4a7a18]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 8]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, dword [0x47f1e0]
sub ecx, dword [0x47f1e4]
test eax, eax
jne 0x420e90
test ecx, ecx
je 0x420f15
mov edx, dword [0x443d80]
test edx, edx
jne 0x420ea0
add dword [ebp - 0x14], ecx
add dword [ebp - 0x18], eax
cmp edx, 1
jne 0x420eab
add dword [ebp - 0x14], ecx
add dword [ebp - 0x10], eax
cmp edx, 2
jne 0x420ebd
mov esi, dword [ebp - 0x10]
add dword [ebp - 0xc], ecx
add esi, eax
mov dword [ebp - 0x10], esi
jmp 0x420ec0
mov esi, dword [ebp - 0x10]
cmp edx, 3
mov edx, dword [ebp - 0xc]
jne 0x420ed0
add edx, ecx
add dword [ebp - 0x18], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x24], eax
jne 0x420eea
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x18]
jne 0x420eea
cmp dword [ebp - 0x20], esi
jne 0x420eea
cmp dword [ebp - 0x1c], edx
je 0x420f05
sub esi, dword [ebp - 0x18]
sub edx, eax
push 0
push edx
push esi
push eax
push dword [ebp - 0x18]
push 0
push dword [0x4a7a18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 8]
mov dword [0x47f1e0], eax
mov eax, dword [ebp - 4]
mov dword [0x47f1e4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret