Function at 0x6c12f4
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea esi, [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x5c
xor ecx, ecx
mov edx, 0xc
call fcn.0040357c
mov eax, dword [ebp - 4]
call fcn.006bd7b4
xor edx, edx
push ebp
push 0x6c1a51
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x6c19f9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov byte [ebp - 9], 0
test bl, bl
je 0x6c13b6
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408ac0
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.006bd2bc
mov eax, dword [ebp - 0xd]
push eax
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, dword [ebp - 0x11]
mov dl, byte [0x6c1a64]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x6c13b0
call fcn.004046a4
call fcn.004046a4
jmp 0x6c1a58
mov byte [ebp - 9], 0
jmp 0x6c13e2
cmp byte [ebp + 0x10], 0
je 0x6c13e2
mov dl, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.006c0bf4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x6c13e2
call fcn.004046a4
call fcn.004046a4
jmp 0x6c1a58
mov bl, 1
jmp 0x6c19d4
test bl, bl
jne 0x6c13f2
call sub.user32.dll_WaitMessage
xor ebx, ebx
jmp 0x6c19b3
mov eax, dword [esi + 4]
sub eax, 0x201
je 0x6c140c
sub eax, 3
jne 0x6c14f7
lea edx, [ebp - 0x11]
mov eax, dword [esi + 0xc]
call fcn.00408ac0
lea eax, [ebp - 0x11]
push eax
mov eax, dword [esi]
push eax
call sub.user32.dll_ClientToScreen
lea eax, [ebp - 0x11]
mov dl, 1
call fcn.00457524
mov edi, eax
mov eax, edi
mov edx, dword [0x6b90f0]
call fcn.00403fb8
test al, al
je 0x6c1456
mov edx, dword [edi + 0x214]
mov eax, dword [ebp - 4]
call fcn.006bd6f0
test al, al
jne 0x6c14f7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x6c14a2
mov eax, dword [ebp - 4]
cmp edi, dword [eax + 0xc8]
jne 0x6c14a2
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.004587e4
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
jne 0x6c14b1
call fcn.004046a4
call fcn.004046a4
jmp 0x6c1a58
cmp dword [esi + 4], 0x201
jne 0x6c14f7
push ebp
lea eax, [ebp - 0x11]
mov dl, 1
call fcn.006c0f88
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
test eax, eax
je 0x6c14e8
mov edx, dword [ebp - 4]
cmp byte [edx + 0x88], 0
je 0x6c14e8
mov eax, dword [eax + 0x1c]
test byte [eax + 0x64], 0x10
je 0x6c14f7
call fcn.004046a4
call fcn.004046a4
jmp 0x6c1a58
push 3
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x6c19b3
mov eax, dword [esi + 4]
mov edx, eax
cmp edx, 0x113
jg 0x6c1542
je 0x6c16da
sub edx, 0x4d
je case.0x6c174d.512
sub edx, 0x2e
je case.0x6c174d.512
add edx, 0xffffff7b
sub edx, 9
jb 0x6c1562
jmp 0x6c1956
sub edx, 0x118
je case.0x6c174d.512
add edx, 0xffffff18
sub edx, 0xb
jb 0x6c1736
jmp 0x6c1956
mov eax, dword [0x98a420]
mov eax, dword [eax]
call fcn.0047bc50
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x6c1590
cmp byte [ebp + 8], 0
je 0x6c158c
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x6c1590
xor eax, eax
jmp 0x6c1592
mov al, 1
mov byte [ebp - 0x1a], al
mov eax, dword [esi + 4]
sub eax, 0x100
je 0x6c15b3
sub eax, 2
je 0x6c1623
sub eax, 2
je 0x6c15b3
sub eax, 2
je 0x6c1623
jmp case.0x6c174d.512
cmp dword [esi + 8], 0xe5
jne 0x6c15c7
mov eax, dword [esi]
push eax
call sub.imm32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
cmp byte [ebp - 0x1a], 0
je 0x6c15d7
cmp dword [esi + 8], 0x70
jne case.0x6c174d.512
mov ax, word [esi + 8]
mov word [ebp - 0x1c], ax
push ebp
mov eax, dword [esi + 0xc]
call fcn.00471b40
push eax
push ebp
call fcn.006c0f6c
pop ecx
lea edx, [ebp - 0x1c]
pop ecx
call fcn.006c1068
pop ecx
test al, al
je 0x6c160d
call fcn.004046a4
call fcn.004046a4
jmp 0x6c1a58
cmp word [ebp - 0x1c], 0
je case.0x6c174d.512
push esi
call sub.user32.dll_TranslateMessage
jmp case.0x6c174d.512
cmp byte [ebp - 0x1a], 0
jne case.0x6c174d.512
push ebp
call fcn.006c0f6c
pop ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 0x18]
call fcn.006c0698
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x6c16ae
mov eax, dword [esi + 8]
sub eax, 0x20
je 0x6c1667
sub eax, 0xd
jne 0x6c16a2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x6c16a2
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne 0x6c16a2
call sub.user32.dll_GetActiveWindow
test eax, eax
je 0x6c16a2
call sub.user32.dll_GetActiveWindow
mov edx, eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 4]
call fcn.006c0bdc
call fcn.004046a4
call fcn.004046a4
jmp 0x6c1a58
push 0
call sub.user32.dll_MessageBeep
jmp case.0x6c174d.512
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.006be234
mov eax, dword [ebp - 0x18]
call fcn.006c0d58
cmp byte [ebp - 0x19], 0
je case.0x6c174d.512
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.006c0bf4
jmp case.0x6c174d.512
mov eax, dword [esi]
call fcn.00455b8c
mov edi, eax
test edi, edi
je 0x6c172b
mov eax, edi
mov edx, dword [0x6b90f0]
call fcn.00403fb8
test al, al
je 0x6c172b
cmp dword [esi + 8], 0x2328
jl 0x6c172b
cmp dword [esi + 8], 0x232b
jg 0x6c172b
mov eax, dword [edi + 0x214]
test eax, eax
je case.0x6c174d.512
mov edx, dword [esi + 8]
sub edx, 0x2328
call fcn.006c1284
jmp case.0x6c174d.512
push esi
call sub.user32.dll_DispatchMessageA
jmp case.0x6c174d.512
mov edx, eax
add edx, 0xfffffe00
cmp edx, 0xa
ja case.0x6c174d.512
mov dl, byte [edx + 0x6c1754]
jmp dword [edx*4 + 0x6c175f]
mov eax, dword [esi + 0x14]
cmp eax, dword [0x99b09c]
jne 0x6c1789
mov eax, dword [esi + 0x18]
cmp eax, dword [0x99b0a0]
je 0x6c17a2
mov eax, dword [esi + 0x14]
mov dword [0x99b09c], eax
mov eax, dword [esi + 0x18]
mov dword [0x99b0a0], eax
push ebp
call fcn.006c1104
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.006c0fdc
pop ecx
test al, al
je case.0x6c174d.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.006bd2bc
mov ecx, dword [ebp - 0xd]
mov edx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x38]
jmp case.0x6c174d.512
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.006c0fdc
pop ecx
test al, al
je case.0x6c174d.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.006bd2bc
mov eax, dword [ebp - 0xd]
push eax
movsx edx, word [esi + 0xa]
mov ecx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x40]
jmp case.0x6c174d.512
cmp eax, 0x204
setne al
or al, byte [ebp + 8]
je case.0x6c174d.512
mov eax, dword [0x98a420]
mov eax, dword [eax]
call fcn.0047bc50
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
push ebp
lea eax, [esi + 0x14]
mov dl, 1
call fcn.006c0f88
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.006c0fdc
pop ecx
test al, al
je case.0x6c174d.512
cmp dword [esi + 4], 0x203
je 0x6c1872
mov al, byte [0x6c1a64]
mov byte [ebp - 0x1d], al
jmp 0x6c187a
mov al, byte [0x6c1a68]
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.006bd2bc
mov eax, dword [ebp - 0xd]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 0x11]
mov dl, byte [ebp - 0x1d]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x34]
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408ac0
mov eax, dword [ebp - 0x48]
mov dword [0x99b09c], eax
mov eax, dword [ebp - 0x44]
mov dword [0x99b0a0], eax
jmp case.0x6c174d.512
cmp eax, 0x202
sete al
or al, byte [ebp + 8]
je case.0x6c174d.512
push ebp
lea eax, [esi + 0x14]
xor edx, edx
call fcn.006c0f88
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.006c0fdc
pop ecx
test al, al
jne 0x6c1934
cmp dword [ebp - 0x18], 0
je 0x6c190d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne case.0x6c174d.512
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je case.0x6c174d.512
mov eax, dword [ebp - 4]
test byte [eax + 0xb3], 0x10
jne 0x6c1928
call fcn.004046a4
call fcn.004046a4
jmp 0x6c1a58
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
jmp case.0x6c174d.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.006bd2bc
mov al, byte [ebp - 9]
push eax
mov ecx, dword [ebp - 0xd]
mov edx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp case.0x6c174d.512
push esi
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x6c1974
call fcn.004046a4
call fcn.004046a4
jmp 0x6c1a58
cmp dword [0x99b09c], 0x80000000
jne 0x6c19ac
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408ac0
mov eax, dword [ebp - 0x48]
mov dword [0x99b09c], eax
mov eax, dword [ebp - 0x44]
mov dword [0x99b0a0], eax
push ebp
call fcn.006c1104
pop ecx
push ebp
call fcn.006c11f8
pop ecx
push ebp
call fcn.006c1050
pop ecx
test al, al
je 0x6c19d4
push 0
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x6c13f9
push ebp
call fcn.006c1050
pop ecx
test al, al
jne 0x6c13e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6c1a00
mov eax, dword [ebp - 4]
call fcn.006c0920
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc