Function at 0x40c8d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bf0f8
push eax
mov dword fs:[0], esp
sub esp, 0x74
cmp dword [ebp + 8], 0xffffffff
push ebx
mov ebx, ecx
je 0x40cc6b
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.004a4720
lea eax, [ebp - 0x14]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.0049f8f0
mov edi, dword [ebp + 0xc]
add esp, 8
test eax, eax
jl 0x40c92c
test edi, edi
jne 0x40c934
lea ecx, [ebp - 0x14]
call fcn.004a4800
mov edi, eax
test edi, edi
je 0x40cc53
lea ecx, [edi + 8]
call fcn.0049ca00
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40cc53
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x123a], 0
jne 0x40cc53
call fcn.004434e0
test al, al
jne 0x40cc53
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x11265], 1
jbe 0x40cc53
test byte [ebx + 0x42c0], 0x40
je 0x40cc53
cmp dword [ebx + 0x73f4], 0
jle 0x40cc53
cmp dword [ebx + 0x73e4], 0
je 0x40cc53
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
sete al
test al, al
je 0x40cc53
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [ebx + 0x42e4]
mov esi, eax
cmp esi, 0xc8
jb 0x40cc5a
cmp esi, 0x2710
ja 0x40cc53
cmp dword [ebx + 0x7400], 0
jne 0x40ca13
test edi, edi
je 0x40ca13
mov edx, dword [ebx + 0x42dc]
push edx
mov ecx, edi
mov dword [ebx + 0x7400], 1
call fcn.004a4a70
mov ecx, eax
call fcn.00479c00
mov ecx, dword [ebx + 0x73f4]
add esi, 0xffffff38
imul esi, ecx
mov eax, 0x51eb851f
mul esi
shr edx, 7
cmp edx, ecx
mov dword [ebp - 0x10], edx
jl 0x40ca37
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, 0xa
mov esi, str.ConEmu_RightClicking
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp dword [ebx + 0x7404], edi
jne 0x40cac2
mov eax, dword [0x50b380]
push 0x7f00
push edi
mov dword [ebp - 0x80], 0x30
mov dword [ebp - 0x7c], 0x20
mov dword [ebp - 0x78], 0x4064c0
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x50]
push edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x40cab8
push edi
push edi
push edi
push edi
push str.Regitser_class_failed
call fcn.004200b0
add esp, 0x14
jmp 0x40cac2
mov dword [ebx + 0x7404], 1
mov esi, dword [ebx + 0x73f0]
sar esi, 1
mov dword [ebp - 0x18], esi
cmp dword [ebx + 0x7404], edi
je 0x40cb69
mov eax, dword [ebx + 0x7408]
cmp eax, edi
je 0x40caee
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40cb69
mov eax, dword [ebx + 0x4364]
mov ecx, dword [ebx + 0x4368]
sub eax, esi
push 1
sub ecx, esi
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [0x50b384]
push edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [0x50b380]
mov ecx, dword [0x50b384]
mov eax, dword [ebx + 0x73f0]
push edi
push edx
mov edx, dword [ebp - 0x20]
push 0x270f
push ecx
push eax
push eax
mov eax, dword [ebp - 0x24]
push edx
push eax
push 0x5e000000
push 0x4c1318
lea ecx, [ebp - 0x50]
push ecx
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 3
push edi
push edi
push edi
push edi
push edi
push eax
mov dword [ebx + 0x7408], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40cb8b
mov edx, dword [ebx + 0x7408]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40cb8b
mov eax, dword [ebx + 0x7408]
push 1
push eax
call fcn.004acc20
add esp, 8
mov eax, dword [ebx + 0x7408]
cmp eax, edi
je 0x40cc48
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, edi
je 0x40cc48
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebx + 0x73e4]
mov edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp + 8], 0
mov dword [ebp - 0x1c], eax
mov byte [ebp + 0xc], 0
mov byte [ebp + 0xd], 0
mov byte [ebp + 0xe], 0xff
mov byte [ebp + 0xf], 1
je 0x40cc0b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x4368]
mov eax, dword [ebx + 0x73f0]
push 0xcc0020
sub edx, ecx
push edx
mov edx, dword [ebx + 0x4364]
sub edx, ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebx + 0x73f0]
mov edx, dword [ebp + 0xc]
push edx
push eax
mov ecx, eax
imul ecx, dword [ebp - 0x10]
push eax
push 0
push ecx
push edi
push eax
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cc41
test edi, edi
je 0x40cc41
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x73f8], edx
jmp 0x40cc5a
mov ecx, ebx
call fcn.00406460
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004a4770
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8