Function at 0x40c8de
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebp + 0x20]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
cmp esi, edi
jne 0x40c8f9
call fcn.004264de
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov dword [eax], edi
mov dword [ebp - 0xc], 0x1000
mov dword [ebp + 0x20], edi
mov dword [ebp - 8], edi
mov dword [esi], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40cb50
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0047970d
test eax, eax
je 0x40cb50
cmp dword [esi], edi
je 0x40cb50
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, 0x57b550
push ebx
call fcn.004eddf6
push dword [ebp + 0xc]
test eax, eax
je 0x40c97e
push ebx
call fcn.004c4aa0
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x184]
push eax
push 0x539f88
call fcn.004c4aa0
pop ecx
pop ecx
mov ecx, dword [esi]
mov ebx, eax
cmp ecx, edi
je 0x40c9f3
mov eax, dword [ecx]
call dword [eax + 0x170]
mov ecx, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x16c]
mov ecx, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edi
call dword [eax + 0x200]
mov edi, eax
neg edi
sbb edi, edi
neg edi
test ebx, ebx
je 0x40c9f1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x170]
cmp eax, dword [ebp - 0x10]
je 0x40c9d8
test edi, edi
jne 0x40cb4f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x170]
mov ecx, dword [ebp - 0x14]
test ecx, eax
jne 0x40c9f1
test edi, edi
je 0x40cb4f
xor edi, edi
cmp dword [ebp + 0x20], edi
jne 0x40c9fd
cmp dword [ebp - 8], edi
je 0x40ca6a
mov ecx, dword [ebp + 0x1c]
xor eax, eax
cmp dword [esi], edi
setne al
mov dword [ecx], eax
cmp eax, edi
je 0x40cb4f
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x164]
test eax, eax
je 0x40ca5b
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.00499f3e
test eax, eax
je 0x40ca5b
cmp ebx, edi
je 0x40ca5b
mov eax, dword [ebx]
mov edi, dword [esi]
mov ecx, ebx
call dword [eax + 0x170]
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp - 0x14], eax
call dword [edx + 0x170]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jne 0x40ca59
xor eax, eax
inc eax
xor edi, edi
jmp 0x40ca5d
xor edi, edi
xor eax, eax
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
cmp eax, edi
je 0x40cb4f
mov ecx, dword [esi]
cmp ecx, edi
je 0x40cabc
mov eax, dword [ecx]
push edi
call dword [eax + 0x200]
test eax, eax
je 0x40ca8c
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.004d63c5
test eax, eax
je 0x40cab2
cmp dword [esi], edi
je 0x40cabc
mov ecx, dword [ebp + 0xc]
push 0x542e60
call fcn.004eddf6
test eax, eax
je 0x40cabc
mov ecx, dword [esi]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x15c]
test eax, eax
jne 0x40cabc
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
jmp 0x40cb4f
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [esi]
push dword [eax + 0x20]
call edi
mov ecx, dword [ebp + 0xc]
cmp dword [esi], ecx
je 0x40cb49
push 0x57b550
call fcn.004eddf6
test eax, eax
je 0x40caf3
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0
call dword [eax + 0x200]
cmp eax, dword [ebp + 0xc]
je 0x40cb49
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x20]
xor esi, esi
call edi
cmp ebx, esi
je 0x40cb4f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x170]
mov ecx, dword [ebp - 0xc]
test ecx, eax
jne 0x40cb1e
cmp dword [0x582c7c], esi
je 0x40cb4f
xor eax, eax
push eax
push eax
push eax
push esi
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00484724
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x40cb4f
mov eax, dword [ebp + 0x1c]
and dword [eax], 0
pop ebx
pop edi
pop esi
leave
ret 0x1c