Function at 0x40c560
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x164]
push ebp
call fcn.0040d6e0
test eax, eax
jne 0x40c58a
mov ecx, esi
call fcn.0046a90f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
push 0x11
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetKeyState]
mov edi, dword [esp + 0x30]
test ah, 0x80
je case.0x40c5c1.69
lea eax, [edi - 0x41]
cmp eax, 0x17
ja case.0x40c5c1.69
xor edx, edx
mov dl, byte [eax + 0x40ca50]
jmp dword [edx*4 + 0x40ca3c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
jmp case.0x40c5c1.69
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc8]
jmp case.0x40c5c1.69
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
jmp case.0x40c5c1.69
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add edi, 0xfffffff7
cmp edi, 0x25
mov dword [esp + 0x30], edi
ja case.0x40c614.19
xor eax, eax
mov al, byte [edi + 0x40ca94]
jmp dword [eax*4 + 0x40ca68]
mov ecx, dword [esi + 0x168]
mov edx, dword [ebp]
push ecx
push edx
mov ecx, esi
call fcn.00410900
test al, 8
jne 0x40c870
mov eax, dword [esi + 0x168]
mov ecx, dword [ebp]
push 0x4b85e8
push eax
push ecx
mov ecx, esi
call fcn.00410660
push 0
push ebp
mov ecx, esi
call fcn.0040d750
mov dword [esi + 0x6c], 1
jmp 0x40c870
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x40c6bc
mov eax, dword [esi + 0x9c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jle 0x40c687
dec ecx
mov dword [esp + 0x18], ecx
jmp 0x40c870
jne case.0x40c614.19
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x94]
cmp edx, eax
jle case.0x40c614.19
mov eax, dword [esi + 0x98]
dec edx
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 1
jmp 0x40c870
mov eax, dword [esi + 0x98]
mov ecx, dword [esp + 0x18]
dec eax
cmp ecx, eax
jge 0x40c6d5
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x40c870
jne case.0x40c614.19
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x14]
dec eax
cmp ecx, eax
jge case.0x40c614.19
mov eax, ecx
mov ecx, dword [esi + 0x9c]
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
jmp 0x40c870
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x14]
dec edx
cmp eax, edx
jge 0x40c870
inc eax
mov dword [esp + 0x14], eax
jmp 0x40c870
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x94]
cmp eax, ecx
jle 0x40c870
dec eax
mov dword [esp + 0x14], eax
jmp 0x40c870
mov ecx, dword [esi + 0x98]
mov eax, dword [esp + 0x18]
dec ecx
cmp eax, ecx
jge 0x40c870
inc eax
mov dword [esp + 0x18], eax
jmp 0x40c870
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x9c]
cmp edx, eax
jle 0x40c870
mov eax, edx
dec eax
mov dword [esp + 0x18], eax
jmp 0x40c870
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0040ed60
mov ecx, dword [esi + 0x1c]
push 0
push 3
push 0x115
push ecx
call ebx
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.0040ed60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
sub eax, ecx
je 0x40c85c
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esi + 0x90]
dec eax
mov dword [esp + 0x14], ecx
cmp ecx, eax
jle 0x40c870
mov dword [esp + 0x14], eax
jmp 0x40c870
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040ed60
mov ecx, dword [esi + 0x1c]
push 0
push 2
push 0x115
push ecx
call ebx
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.0040ed60
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
je 0x40c826
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esi + 0x94]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jge 0x40c870
mov dword [esp + 0x14], eax
jmp 0x40c870
mov eax, dword [esi + 0x94]
mov dword [esp + 0x14], eax
jmp 0x40c870
mov ecx, dword [esi + 0x1c]
push 0
push 6
push 0x115
push ecx
call ebx
mov edx, dword [esi + 0x94]
mov dword [esp + 0x14], edx
jmp 0x40c870
mov eax, dword [esi + 0x1c]
push 0
push 7
push 0x115
push eax
call ebx
mov eax, dword [esi + 0x90]
dec eax
mov dword [esp + 0x14], eax
jmp 0x40c870
mov ecx, esi
call fcn.0046a90f
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
cmp ecx, eax
jne 0x40c88a
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 4]
cmp edx, eax
je 0x40ca32
mov eax, dword [esi + 0x140]
xor ebp, ebp
cmp eax, ebp
jne 0x40c939
mov edx, dword [esi + 0x1a4]
cmp edx, ebp
je 0x40c8ca
mov eax, dword [esi + 0x1a8]
cmp eax, ebp
jbe 0x40c8ca
mov ecx, edx
mov edi, eax
mov eax, dword [ecx]
test eax, eax
je 0x40c8be
mov eax, dword [eax]
test eax, eax
jne 0x40c8b8
add ecx, 4
dec edi
jne 0x40c8b2
mov edi, dword [esp + 0x30]
xor ebp, ebp
push edx
call fcn.0046e1cf
mov ecx, dword [esi + 0x1b4]
add esp, 4
mov dword [esi + 0x1a4], ebp
mov dword [esi + 0x1ac], ebp
mov dword [esi + 0x1b0], ebp
call fcn.004692fb
mov dword [esi + 0x1b4], ebp
mov eax, dword [esi + 0x74]
neg eax
sbb eax, eax
push 0x10
add eax, 4
mov dword [esi + 0x140], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
jne 0x40c927
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x160], edx
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0040df80
mov dword [esi + 0x140], ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.0040d950
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, esi
call fcn.00410ea0
test eax, eax
jne 0x40ca32
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00410d80
cmp edi, 0x1f
ja case.0x40c98a.5
xor edx, edx
mov dl, byte [edi + 0x40cad4]
jmp dword [edx*4 + 0x40cabc]
push ebp
push 1
mov eax, dword [esi + 0x1c]
push 0x114
push eax
jmp 0x40ca23
mov ecx, dword [esi + 0x1c]
push ebp
push ebp
push 0x114
push ecx
jmp 0x40ca23
push ebp
push 1
push 0x115
jmp 0x40ca1f
mov eax, dword [esi + 0x1c]
push ebp
push ebp
push 0x115
push eax
jmp 0x40ca23
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
mov eax, dword [esp + 0x10]
je 0x40c9fb
cmp eax, ebp
push ebp
push ebp
je 0x40c994
mov ecx, dword [esi + 0x1c]
push 0x115
push ecx
call ebx
mov edx, dword [esi + 0xd8]
push 1
push edx
push ebp
mov ecx, esi
call fcn.0040f140
jmp case.0x40c98a.5
cmp eax, ebp
push ebp
push 1
je 0x40ca1a
mov ecx, dword [esi + 0x1c]
push 0x115
push ecx
call ebx
push 1
push ebp
push ebp
mov ecx, esi
call fcn.0040f140
jmp case.0x40c98a.5
push 0x114
mov edx, dword [esi + 0x1c]
push edx
call ebx
mov eax, dword [esi + 0x1c]
push 1
push ebp
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc