Function at 0x4060c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x4c
mov eax, dword [0x452020]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 5], 0
jne 0x40630c
push 2
mov byte [esi + 6], 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
push 1
shr ebx, 0xf
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 0xffffff01
mov dword [esp + 8], eax
test bl, 1
je 0x406179
push str.CInvokerHelperBackend::EnterLoopAndUnblock
push str._s:_Right_mouse_button_already_pressed
push 0xc8
push esi
mov byte [esi + 6], 0
call fcn.00407d80
add esp, 0x10
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 0x10
movlpd qword [esp + 0x34], xmm0
push 0x1c
push eax
push 1
movlpd qword [esp + 0x50], xmm0
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x406175
push str.CInvokerHelperBackend::EnterLoopAndUnblock
push str._s:_Resetting_right_mouse_button_failed
push 0xc8
push esi
call fcn.00407d80
add esp, 0x10
mov eax, dword [esp + 8]
test al, al
je 0x4061eb
push str.CInvokerHelperBackend::EnterLoopAndUnblock
push str._s:_Left_mouse_button_already_pressed
push 0xc8
push esi
mov byte [esi + 6], 1
call fcn.00407d80
add esp, 0x10
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 4
movlpd qword [esp + 0x34], xmm0
push 0x1c
push eax
push 1
movlpd qword [esp + 0x50], xmm0
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x4061eb
push str.CInvokerHelperBackend::EnterLoopAndUnblock
push str._s:_Resetting_left_mouse_button_failed
push 0xc8
push esi
call fcn.00407d80
add esp, 0x10
lea ecx, [esp + 8]
mov dword [esp + 8], 0xf
mov dword [esp + 0xc], 0
call fcn.00405580
cmp byte [esi + 6], 0
mov ecx, 2
mov eax, 8
mov dword [esp + 0x20], 0
cmovne eax, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
xorps xmm0, xmm0
push 0x1c
lea eax, [esp + 0x18]
movlpd qword [esp + 0x1c], xmm0
push eax
push 1
movlpd qword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x406263
push str.CInvokerHelperBackend::EnterLoopAndUnblock
push str._s:_Mouse_down_failed
push 0xc8
push esi
call fcn.00407d80
add esp, 0x10
lea ecx, [esp + 8]
mov dword [esp + 8], 1
mov dword [esp + 0xc], 0
call fcn.00405580
push 0x1c
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
push 1
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x30], 1
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], 0xa
call dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x4062d8
push str.CInvokerHelperBackend::EnterLoopAndUnblock
push str._s:_Mouse_move_failed
push 0xc8
push esi
call fcn.00407d80
add esp, 0x10
push str.CInvokerHelperBackend::EnterLoopAndUnblock
push str._s:_loop_entered__if_nothing_failed_
push 0x64
push esi
mov byte [esi + 5], 1
call fcn.00407d80
add esp, 0x10
mov dword [esp + 8], 1
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.00405580
jmp 0x406324
push str.CInvokerHelperBackend::EnterLoopAndUnblock
push str._s:_Missing_release_of_mouse
push 0xc8
push esi
call fcn.00407d80
add esp, 0x10
mov ecx, esi
call fcn.00406340
mov ecx, dword [esp + 0x4c]
pop esi
pop ebx
xor ecx, esp
call fcn.0041d1ec
add esp, 0x4c
ret