Function at 0x40c9d4
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 0x74]
push 0x11
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x40cf55
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0xd
push edi
push 0xa
pop edi
jne 0x40ca21
cmp dword [0x4c7414], 1
jne 0x40ca1c
push 0
push edi
push 0x102
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40ca3c
mov dword [ebp + 8], edi
mov ebx, edi
cmp ebx, 9
je 0x40cf53
cmp ebx, 8
je 0x40cf53
cmp ebx, 0x27
je 0x40cf53
cmp dword [esi + 0x1c], 1
je 0x40cf53
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x50]
cmp eax, ecx
je 0x40ca64
push ecx
push eax
push dword [esi]
mov ecx, esi
call fcn.00408320
mov eax, dword [esi + 0x48]
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x48]
cmp eax, 0xffffffff
je 0x40cf53
cmp eax, dword [esi + 0x78]
jne 0x40ca7f
cmp dword [esi + 0x20], 1
je 0x40cf53
mov ecx, esi
call fcn.004073e0
cmp dword [esi + 0x54], eax
jne 0x40ca92
and dword [esi + 0x54], 0
inc dword [esi + 0x58]
mov ecx, esi
call fcn.0040720f
cmp eax, 1
jne 0x40cc1e
cmp dword [esi + 0x28], eax
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [ebp + 0xb], bl
jne 0x40cb5a
xor ebx, ebx
cmp dword [esi + 0x20], ebx
jne 0x40cf53
test byte [esi + 6], 8
je 0x40caf8
mov eax, dword [0x4dcc88]
cmp eax, ebx
je 0x40caf8
push eax
push dword [0x4dcc8c]
lea ecx, [esi + 0xe0]
call fcn.0040b096
mov eax, dword [0x4dcc8c]
push ebx
push ebx
push dword [esi]
mov dword [esi + 0x4370], 1
mov dword [esi + 0x48], eax
call edi
push 1
lea eax, [ebp + 0xb]
push eax
push dword [esi + 0x48]
lea ebx, [esi + 0xe0]
mov ecx, ebx
call fcn.0040ac49
test al, al
je 0x40cf53
mov ecx, ebx
call fcn.00409e6c
push eax
mov ecx, esi
mov dword [esi + 0x78], eax
call fcn.004073e7
push dword [esi + 0x3c]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x58]
imul eax, dword [esi + 0x44]
push dword [esi + 0x38]
push eax
mov eax, dword [esi + 0xc8]
imul eax, dword [esi + 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call edi
jmp 0x40cb96
push 1
lea eax, [ebp + 0xb]
push eax
push dword [esi + 0x48]
lea ebx, [esi + 0xe0]
mov ecx, ebx
call fcn.0040b574
test al, al
je 0x40cf53
mov ecx, ebx
call fcn.00409e6c
push eax
mov ecx, esi
mov dword [esi + 0x78], eax
call fcn.004073e7
push dword [esi]
mov ecx, esi
mov dword [esi + 0x74], eax
call fcn.004086ee
inc dword [esi + 0x48]
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x78]
cmp ecx, eax
jbe 0x40cba6
mov dword [esi + 0x48], eax
mov ecx, esi
call fcn.00407c02
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0xb8]
xor edx, edx
div ecx
sub eax, dword [esi + 0x5c]
mov dword [esi + 0x54], edx
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x58], eax
jl 0x40cbd9
push 0
push 1
push 0x115
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, esi
call fcn.00408202
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x74], eax
je 0x40cf40
mov eax, dword [esi + 0xc8]
imul eax, dword [esi + 0x40]
push dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x58]
dec eax
imul eax, dword [esi + 0x44]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call edi
jmp 0x40cf40
mov ecx, esi
call fcn.0040720f
test eax, eax
jne 0x40cf40
mov edx, dword [esi + 4]
mov eax, edx
and eax, 0xe0
or ebx, 0xffffffff
sub eax, 0
je 0x40ccae
sub eax, 0x20
je 0x40cc92
sub eax, 0x20
je 0x40cc72
sub eax, 0x40
jne 0x40cce6
mov eax, dword [ebp + 8]
cmp eax, 0x30
je 0x40cc5f
cmp eax, 0x31
jne 0x40cc62
lea ebx, [eax - 0x30]
mov dword [ebp - 8], 8
mov dword [ebp + 8], 2
jmp 0x40cce6
mov eax, dword [ebp + 8]
cmp eax, 0x30
jb 0x40cc82
cmp eax, 0x37
ja 0x40cc82
lea ebx, [eax - 0x30]
mov dword [ebp - 8], 3
mov dword [ebp + 8], 8
jmp 0x40cce6
mov eax, dword [ebp + 8]
cmp eax, 0x30
jb 0x40cca2
cmp eax, 0x39
ja 0x40cca2
lea ebx, [eax - 0x30]
mov dword [ebp - 8], 3
mov dword [ebp + 8], edi
jmp 0x40cce6
mov eax, dword [ebp + 8]
cmp eax, 0x30
jb 0x40ccbe
cmp eax, 0x39
ja 0x40ccbe
lea ebx, [eax - 0x30]
cmp eax, 0x61
jb 0x40cccb
cmp eax, 0x66
ja 0x40cccb
lea ebx, [eax - 0x57]
cmp eax, 0x41
jb 0x40ccd8
cmp eax, 0x46
ja 0x40ccd8
lea ebx, [eax - 0x37]
mov dword [ebp - 8], 2
mov dword [ebp + 8], 0x10
mov eax, dword [ebp - 8]
mov edi, dword [esi + 0x30]
xor ecx, ecx
inc ecx
dec eax
cmp eax, edi
mov dword [ebp - 4], ecx
jle 0x40cd03
sub eax, edi
imul ecx, dword [ebp + 8]
dec eax
jne 0x40ccf9
mov dword [ebp - 4], ecx
cmp ebx, 0xffffffff
je 0x40cf53
test edi, edi
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
jne 0x40ce5c
cmp dword [esi + 0x28], 1
jne 0x40cddc
cmp dword [esi + 0x20], 0
jne 0x40cf53
mov al, bl
imul cl
test edx, 0x80000
mov byte [ebp + 0xb], al
je 0x40cd72
mov eax, dword [0x4dcc88]
test eax, eax
je 0x40cd72
push eax
push dword [0x4dcc8c]
lea ecx, [esi + 0xe0]
call fcn.0040b096
mov eax, dword [0x4dcc8c]
push 0
push 0
push dword [esi]
mov dword [esi + 0x4370], 1
mov dword [esi + 0x48], eax
call edi
push 1
lea eax, [ebp + 0xb]
push eax
push dword [esi + 0x48]
lea ebx, [esi + 0xe0]
mov ecx, ebx
call fcn.0040ac49
test al, al
je 0x40cf53
mov ecx, ebx
call fcn.00409e6c
push eax
mov ecx, esi
mov dword [esi + 0x78], eax
call fcn.004073e7
push dword [esi + 0x3c]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x58]
imul eax, dword [esi + 0x44]
push dword [esi + 0x38]
push eax
mov eax, dword [esi + 0xc8]
imul eax, dword [esi + 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x40ce57
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x78]
jae 0x40ce06
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [esi + 0xe0]
call fcn.00409e76
push dword [eax]
mov ecx, dword [eax + 4]
call fcn.0040a210
mov ecx, dword [ebp - 4]
movzx eax, al
jmp 0x40ce08
xor eax, eax
xor edx, edx
div ecx
mov edi, ecx
imul edi, ebx
add edx, edi
cmp edx, 0xff
jbe 0x40ce1d
mov edx, edi
push edx
push dword [esi + 0x48]
lea eax, [ebp - 0xc]
lea edi, [esi + 0xe0]
push eax
mov ecx, edi
call fcn.00409e76
mov ecx, eax
call fcn.00406c25
mov ecx, edi
call fcn.00409e6c
push eax
mov ecx, esi
mov dword [esi + 0x78], eax
call fcn.004073e7
push dword [esi]
mov ecx, esi
mov dword [esi + 0x74], eax
call fcn.004086ee
inc dword [esi + 0x30]
jmp 0x40ceaf
lea ecx, [esi + 0xe0]
call fcn.00406b4c
mov edi, eax
movzx eax, byte [edi]
xor edx, edx
div dword [ebp - 4]
xor edx, edx
div dword [ebp + 8]
movzx eax, byte [edi]
sub ebx, edx
imul ebx, dword [ebp - 4]
add ebx, eax
cmp ebx, 0xff
jbe 0x40ce92
movzx eax, byte [edi]
cdq
idiv dword [ebp - 4]
sub ebx, edx
mov byte [edi], bl
push dword [esi]
mov ecx, esi
call fcn.004086ee
mov eax, dword [ebp - 8]
inc dword [esi + 0x30]
cmp dword [esi + 0x30], eax
jne 0x40ceaf
and dword [esi + 0x30], 0
inc dword [esi + 0x48]
mov ecx, esi
call fcn.00407c02
mov eax, dword [esi + 0x78]
cmp dword [esi + 0x48], eax
jbe 0x40cec1
mov dword [esi + 0x48], eax
mov ecx, esi
call fcn.004073e0
mov ecx, eax
mov eax, dword [esi + 0x48]
xor edx, edx
div ecx
mov ecx, esi
mov dword [esi + 0x54], edx
call fcn.004073e0
mov ecx, eax
mov eax, dword [esi + 0x48]
xor edx, edx
div ecx
sub eax, dword [esi + 0x5c]
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x58], eax
jl 0x40cf00
push 0
push 1
push 0x115
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, esi
call fcn.00408202
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x74], eax
je 0x40cf40
mov eax, dword [esi + 0xc8]
imul eax, dword [esi + 0x40]
push dword [esi + 0x3c]
push eax
mov eax, dword [esi + 0x58]
dec eax
imul eax, dword [esi + 0x44]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0xfffffbfb
push dword [esi]
mov dword [esi + 0x24], 1
call fcn.00406ac2
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 8