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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x572c40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x42a06c
mov dword [ebp - 0x30], eax
jmp 0x42a085
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp eax, dword [edi + 4]
cmove ecx, esi
mov dword [ebp - 0x30], ecx
cmp byte [edi + 0x151c], 0
mov eax, dword [ebx + 4]
je 0x42a376
cmp eax, 0x105
ja 0x42a33a
je 0x42a314
sub eax, 0xa1
cmp eax, 0x5f
ja case.0x42a39c.163
movzx eax, byte [eax + 0x42a968]
jmp dword [eax*4 + 0x42a95c]
mov ebx, dword [0xb657a0]
test ebx, ebx
je case.0x42a39c.163
push ebx
mov ecx, edi
call fcn.0042ad70
mov esi, ebx
lea ebx, [esi + 0xac]
cmp eax, 0xffffffff
jne 0x42a0f1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x42a0d0
lea ebx, [esi + 0xac]
test esi, esi
je case.0x42a39c.163
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov edx, dword [edx + 8]
add edx, 0xfffffff3
cmp edx, 0x1b
ja case.0x42a11e.14
movzx edx, byte [edx + 0x42a9e8]
jmp dword [edx*4 + 0x42a9c8]
mov ecx, edi
cmp esi, dword [edi + 0x1518]
je 0x42a148
push esi
call fcn.004282b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
push 2
call fcn.0042da00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.0042ad70
cmp eax, 0xffffffff
je case.0x42a11e.14
push 0xffffffffffffffff
push 0
push 0x202
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + eax*4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.0042ad70
push 1
push eax
push esi
mov ecx, edi
call fcn.0042b0b0
cmp eax, 0xffffffff
je case.0x42a11e.14
push 0xffffffffffffffff
push 0
push 0x200
jmp 0x42a17c
push esi
mov ecx, edi
call fcn.0042ad70
push 0xffffffffffffffff
push eax
push esi
mov ecx, edi
call fcn.0042b0b0
cmp eax, 0xffffffff
je case.0x42a11e.14
push 0xffffffffffffffff
push 0
push 0x200
jmp 0x42a17c
cmp dword [ebx], 0
jne 0x42a253
push esi
mov ecx, edi
call fcn.0042ad70
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42a262
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + ebx*4]
mov ecx, edi
mov dword [ebp - 0x38], eax
movzx eax, word [eax + 0xc]
push eax
call fcn.0042b390
imul ecx, eax, 0x11c
mov eax, dword [edi + 0x175c]
test dword [ecx + eax + 0xc], 0x1000000
je 0x42a262
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0xc0]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ecx + ebx*4]
call fcn.004446a0
mov esi, dword [esi + 0xac]
push 1
push 0xffffffffffffffff
jmp 0x42a1ac
cmp dword [ebp - 0x30], 0
je case.0x42a11e.14
push 1
mov ecx, edi
call fcn.0042da00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi + 0x50]
test ebx, ebx
jne 0x42a2b3
test eax, eax
je case.0x42a11e.14
push 0xffffffffffffffff
mov ecx, edi
call fcn.0042da00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0xbc]
xor eax, eax
test edx, edx
jle 0x42a2d1
mov ecx, dword [ebx + 0xc0]
cmp dword [ecx], esi
je 0x42a2dd
inc eax
add ecx, 4
cmp eax, edx
jl 0x42a2c5
push 1
push 0
push ebx
mov ecx, edi
call fcn.0042b0b0
cmp eax, 0xffffffff
je case.0x42a11e.14
mov ecx, dword [ebx + 0xc0]
push 0xffffffffffffffff
push 0
push 0x200
mov eax, dword [ecx + eax*4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 8], 0x12
jne case.0x42a11e.14
push 2
mov ecx, edi
call fcn.0042da00
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
sub eax, 0x201
je case.0x42a0bb.161
sub eax, 3
je case.0x42a0bb.161
sub eax, 3
jne case.0x42a39c.163
push dword [0xb66508]
call fcn.00433260
add esp, 4
test al, al
jne case.0x42a39c.163
push 0
mov ecx, 0xb64288
call fcn.004282b0
jmp case.0x42a39c.163
cmp eax, 0x105
ja 0x42a55e
je 0x42a53e
sub eax, 0xa0
cmp eax, 0x60
ja case.0x42a39c.163
movzx eax, byte [eax + 0x42aa18]
jmp dword [eax*4 + 0x42aa04]
mov eax, dword [ebx + 8]
cmp eax, 9
jne 0x42a3f0
movzx eax, word [0xb6579c]
mov ecx, edi
push eax
call fcn.0042f630
mov esi, eax
test esi, esi
je case.0x42a39c.163
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
mov ecx, esi
not eax
and eax, 1
lea eax, [eax*2 - 1]
push eax
call fcn.00441bd0
test eax, eax
jne case.0x42a11e.14
jmp case.0x42a39c.163
cmp eax, 0x10
je case.0x42a39c.163
cmp eax, 0x11
je case.0x42a39c.163
cmp eax, 0x12
je case.0x42a39c.163
cmp byte [edi + 0x1528], 0
je case.0x42a39c.163
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and eax, 0xffffff01
push 0x11
mov dword [ebp - 0x3c], eax
call esi
shr eax, 0xf
and eax, 0xffffff01
push 0x12
mov dword [ebp - 0x40], eax
call esi
shr eax, 0xf
xor ebx, ebx
and eax, 0xffffff01
mov dword [ebp - 0x44], eax
cmp dword [edi + 0x176c], ebx
jle case.0x42a39c.163
mov edx, dword [ebp - 0x34]
mov ecx, 0xffff
mov esi, dword [edi + 0x1770]
add esi, 3
mov edx, dword [edx + 8]
mov dword [ebp - 0x48], edx
movzx eax, word [esi - 3]
cmp edx, eax
jne 0x42a4c3
cmp byte [esi - 1], 0
je 0x42a484
cmp byte [ebp - 0x3c], 0
je 0x42a4c3
cmp byte [esi], 0
je 0x42a48f
cmp byte [ebp - 0x40], 0
je 0x42a4c3
cmp byte [esi + 1], 0
je 0x42a49b
cmp byte [ebp - 0x44], 0
je 0x42a4c3
movzx eax, word [esi + 5]
cmp ax, cx
je 0x42a4d4
push eax
mov ecx, edi
call fcn.0042f630
test eax, eax
je case.0x42a39c.163
mov ecx, dword [ebp - 0x30]
cmp dword [eax], ecx
je 0x42a4d4
mov edx, dword [ebp - 0x48]
mov ecx, 0xffff
inc ebx
add esi, 0xa
cmp ebx, dword [edi + 0x176c]
jl 0x42a470
jmp case.0x42a39c.163
mov edi, dword [edi + 0x1770]
lea esi, [ebx + ebx*4]
mov ecx, 0xb64288
movzx eax, word [edi + esi*2 + 6]
push eax
call fcn.0042b390
cmp eax, 0xffffffff
je 0x42a50b
imul ecx, eax, 0x11c
mov eax, dword [0xb659e4]
test dword [ecx + eax + 0xc], 0x8000001
je case.0x42a11e.14
call dword [sym.imp.USER32.dll_GetFocus]
push eax
movzx eax, word [edi + esi*2 + 6]
or eax, 0x100000
push eax
push 0x83ed
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 8], 0x12
jne case.0x42a39c.163
push 0
mov ecx, edi
call fcn.0042da00
test eax, eax
je case.0x42a11e.14
jmp case.0x42a39c.163
sub eax, 0x200
je case.0x42a39c.160
sub eax, 1
je case.0x42a39c.161
sub eax, 1
jne case.0x42a39c.163
cmp byte [0xb630c4], 0
je case.0x42a39c.163
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
mov byte [0xb630c4], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0xb630ac]
test eax, eax
je case.0x42a39c.163
push dword [eax]
call dword [sym.imp.USER32.dll_SetCapture]
push dword [0xb630c0]
mov ecx, edi
mov byte [0xb630c4], 1
call fcn.0042e4b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
cmp byte [0xb630c4], 0
je 0x42a730
push dword [0xb630c0]
mov ecx, edi
call fcn.0042e4b0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0xb630ac]
mov eax, dword [0xb630c0]
dec eax
movups xmm0, xmmword [edx + 0x28]
movups xmmword [ebp - 0x24], xmm0
cmp eax, 7
ja case.default.0x42a61d
jmp dword [eax*4 + 0x42aa7c]
mov eax, dword [ebp - 0x2c]
sub eax, dword [0xb630b0]
mov dword [ebp - 0x24], eax
jmp case.0x42a61d.8
mov eax, dword [ebp - 0x2c]
mov ecx, edx
sub eax, dword [0xb630b0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.00442510
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x2c]
sub eax, dword [0xb630b0]
mov dword [ebp - 0x24], eax
mov eax, dword [0xb630bc]
mov ecx, edx
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.00442510
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0xb630b4]
mov ecx, edx
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0xb630bc]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.00442510
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0xb630b4]
mov ecx, edx
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.00442510
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0xb630b4]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [0xb630b8]
mov dword [ebp - 0x20], eax
push 1
lea eax, [ebp - 0x24]
mov ecx, edx
push eax
call fcn.00442510
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
push dword [ebx + 0x18]
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edx, eax
test edx, edx
je 0x42a771
mov esi, dword [0xb659a4]
xor ecx, ecx
test esi, esi
jle 0x42a764
mov ebx, dword [0xb659a8]
mov eax, dword [ebx + ecx*4]
cmp dword [eax], edx
je 0x42a7e7
inc ecx
cmp ecx, esi
jl 0x42a754
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov edx, eax
test edx, edx
jne 0x42a742
mov dword [0xb630ac], 0
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.USER32.dll_GetClassNameA]
push 7
push eax
mov esi, dword [ebx]
push esi
call edi
lea ecx, [ebp - 0xc]
cmp dword [ecx], 0x37323323
jne 0x42a909
cmp word [ecx + 4], 0x3037
jne 0x42a909
movzx eax, byte [ecx + 6]
test al, al
jne 0x42a909
test esi, esi
je 0x42a7c6
push ebx
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne case.0x42a11e.14
push ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
call dword [sym.imp.USER32.dll_DispatchMessageA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
mov dword [0xb630ac], eax
test eax, eax
je 0x42a771
mov eax, dword [eax + 0x14]
test eax, 0x800
je 0x42a771
test eax, 0x1000
jne 0x42a771
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0xb630ac]
push dword [eax]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [0xb630ac]
mov ecx, dword [ebp - 0x28]
movd xmm1, dword [eax + 0x30]
movd xmm0, dword [eax + 0x28]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
movd xmm0, dword [eax + 0x2c]
cvtdq2pd xmm0, xmm0
cvttsd2si ebx, xmm1
movd xmm1, dword [eax + 0x34]
mov eax, dword [ebp - 0x2c]
sub ebx, 5
cvtdq2pd xmm1, xmm1
subsd xmm1, xmm0
cvttsd2si esi, xmm1
sub esi, 5
cmp eax, 5
jl 0x42a8ac
cmp ecx, 5
jl 0x42a87f
cmp eax, ebx
jge 0x42a883
cmp ecx, esi
jl 0x42a771
cmp eax, ebx
jl 0x42a89b
cmp ecx, 5
jge 0x42a88f
mov eax, 7
jmp 0x42a8c2
xor eax, eax
cmp ecx, esi
setl al
add eax, 5
jmp 0x42a8c2
xor eax, eax
cmp ecx, 5
setl al
lea eax, [eax*4 + 4]
jmp 0x42a8c2
cmp ecx, 5
jge 0x42a8b8
mov eax, 1
jmp 0x42a8c2
xor eax, eax
cmp ecx, esi
setge al
add eax, 2
push eax
mov ecx, edi
mov dword [0xb630c0], eax
call fcn.0042e4b0
mov ecx, dword [ebp - 0x28]
sub esi, ecx
mov eax, dword [ebp - 0x2c]
add esi, 5
sub ebx, eax
mov dword [0xb630b8], ecx
mov ecx, dword [ebp - 4]
add ebx, 5
pop edi
mov dword [0xb630bc], esi
xor ecx, ebp
pop esi
mov dword [0xb630b4], ebx
mov dword [0xb630b0], eax
pop ebx
call fcn.00481761
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
je 0x42a7c6
nop word [eax + eax]
push 7
lea eax, [ebp - 0x14]
push eax
push esi
call edi
lea ecx, [ebp - 0x14]
cmp dword [ecx], 0x37323323
jne 0x42a948
cmp word [ecx + 4], 0x3037
jne 0x42a948
movzx eax, byte [ecx + 6]
test al, al
je 0x42a7ba
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
jne 0x42a920
jmp 0x42a7c6