Function at 0x40c470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x1c]
sub esp, 0xc
sub eax, 0
push ebx
push esi
push edi
mov esi, ecx
je 0x40c5d4
mov edi, 1
sub eax, edi
jne 0x40c722
mov eax, dword [ebp + 0xc]
cmp eax, 0x201
jne 0x40c4cc
mov eax, dword [ebp + 0x14]
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.0040f780
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 0x10], 0
mov dword [ecx], eax
je 0x40c722
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x202
jne 0x40c50c
test byte [esi + 0x7c], 0x40
mov dword [esp + 0x10], edi
je 0x40c4f0
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x10]
push edx
call fcn.0040f7c0
mov ecx, dword [esp + 0x10]
jmp 0x40c4f4
xor ecx, ecx
xor eax, eax
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
test ecx, ecx
je 0x40c722
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x215
jne 0x40c52f
test byte [esi + 0x7c], 0x40
mov dword [esp + 0x10], edi
je 0x40c4f0
lea eax, [esp + 0x10]
push eax
mov eax, esi
call fcn.0040f830
mov ecx, dword [esp + 0x10]
jmp 0x40c4f4
cmp eax, 0x200
jne 0x40c55d
test byte [esi + 0x7c], 0x40
mov dword [esp + 0x10], 0
je 0x40c556
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040f8f0
jmp 0x40c4b1
xor eax, eax
jmp 0x40c4b1
cmp eax, 0x205
jne 0x40c57c
mov eax, dword [ebp + 0x14]
call fcn.0040fa60
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x104
jne 0x40c722
push 0x10
mov dword [esp + 0x14], edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl al
cmp dword [ebp + 0x10], 0x79
mov byte [esp + 0x14], al
jne 0x40c5c4
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.0040fac0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
test ecx, ecx
jmp 0x40c4bb
mov edx, dword [ebp + 0x18]
xor eax, eax
xor ecx, ecx
mov dword [edx], eax
test ecx, ecx
jmp 0x40c4bb
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x40c5f9
push esi
call fcn.00403330
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x40c618
mov eax, esi
call fcn.0040f680
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 5
jne 0x40c63b
mov ebx, esi
call fcn.00403740
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 7
jne 0x40c673
cmp dword [esi + 0x50], 0xffffffff
je 0x40c65e
call fcn.0040f6b0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x14]
cmp eax, 0x4e
jne 0x40c6f8
mov ecx, dword [ebx + 4]
cmp ecx, 0x521
jne 0x40c6b3
cmp dword [ebx + 8], 0xfffffdd9
jne 0x40c6a7
call fcn.0040f710
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x521
je 0x40c5e2
cmp dword [ebx + 8], 0xfffffdee
jne 0x40c6f8
mov ecx, dword [esi + 0x24]
push 0
push 0
push 0x132d
push ecx
mov edi, 1
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx], eax
jne 0x40c6e2
push ebx
mov eax, esi
call fcn.004037f0
jmp 0x40c6e4
xor edi, edi
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
test edi, edi
jne 0x40c5eb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push ebx
push edx
push esi
mov esi, eax
mov dword [esp + 0x20], 1
call fcn.00413870
cmp dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x40c5eb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18