Function at 0x40cb05
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45b170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx - 0x305]
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc8]
test al, al
je 0x40cb6c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xd4]
test al, al
je 0x40cb6c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xdc]
mov esi, dword [ebp + 8]
test al, al
jne 0x40cb5e
lea eax, [esi - 0x200]
cmp eax, 0xe
jbe 0x40cb6c
cmp esi, 0x20a
jne 0x40cb7f
test byte [ebp + 0xc], 8
jne 0x40cbd6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004363cf
leave
ret 0x10
cmp esi, 0x10f
jne 0x40cbd6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
push dword [eax]
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, eax
test esi, esi
je 0x40cb6c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCaretPos]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], edx
call dword [sym.imp.IMM32.dll_ImmSetCompositionWindow]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
push esi
push dword [eax]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
jmp 0x40cb6c
mov byte [ebp - 0x21], 1
cmp esi, 0x200
jb 0x40cbea
cmp esi, 0x20e
jbe 0x40cbf3
cmp esi, 0x20
jne 0x40ccfc
mov eax, dword [ebx + 4]
test dword [eax + 0x14], 0x100
jne 0x40cc32
lea eax, [esi - 0x201]
cmp eax, 4
ja 0x40cc32
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
push eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0041833f
lea ecx, [ebx - 0x305]
cmp eax, ecx
jne 0x40cb6c
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x14]
and eax, 0x100
neg eax
sbb eax, eax
and eax, 3
jne 0x40ccba
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
cmp esi, 0x20a
jne 0x40cc8f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40cb6c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
cmp byte [eax + 0xb7], 0
jne 0x40cb6c
push 3
pop eax
cmp eax, 3
jne 0x40cb6c
cmp esi, 0x20
jne 0x40ccd1
mov byte [ebp - 0x21], 0
jmp 0x40cdda
cmp esi, 0x201
je 0x40cced
cmp esi, 0x203
je 0x40cced
cmp esi, 0x204
jne 0x40cd89
mov eax, dword [edi]
mov ecx, edi
call dword [eax + pe_nt_image_headers32]
jmp 0x40cd89
cmp esi, 0x100
jb 0x40cd0c
cmp esi, 0x109
jbe 0x40cd77
cmp esi, 0x102
je 0x40cd77
cmp esi, 0x286
je 0x40cd77
cmp esi, 0x7b
jne 0x40cd69
mov ecx, dword [ebp + 0x10]
movsx eax, cx
mov dword [ebp - 0x2c], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x28]
mov eax, dword [edi]
push dword [ebp - 0x2c]
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0041833f
lea ecx, [ebx - 0x305]
cmp eax, ecx
je 0x40cdda
jmp 0x40cb6c
cmp esi, 0x53
jne 0x40cb6c
jmp 0x40ccc8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xec]
test al, al
je 0x40cb6c
cmp esi, 0x102
jne 0x40cdda
cmp byte [ebx + 0x20], 0
je 0x40cdda
push 0x15
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x40cda9
mov byte [ebx + 0x20], 0
jmp 0x40cdd6
mov eax, dword [ebx + 0x21]
test eax, eax
jne 0x40cdce
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40cdda
mov eax, dword [ebp + 0xc]
movzx eax, ax
shl eax, 8
mov dword [ebx + 0x21], eax
jmp 0x40cb6c
or dword [ebp + 0xc], eax
mov esi, 0x286
and dword [ebx + 0x21], 0
mov eax, dword [edi]
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1b0]
test eax, eax
je 0x40ce2b
mov ecx, 0x100
cmp esi, ecx
jb 0x40ce08
cmp esi, 0x109
jbe 0x40ce2b
cmp esi, 0x102
je 0x40ce2b
cmp esi, 0x286
je 0x40ce2b
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x40ce33
mov eax, dword [ebx + 4]
test dword [eax + 0x14], ecx
je 0x40ce33
mov ecx, dword [ebp - 0x30]
mov al, byte [ebp - 0x21]
mov byte [ecx], al
mov eax, dword [ebp - 0x34]
jmp 0x40cb6e