Function at 0x6ca407d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x20
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.6c974060
mov dword [esp], 0x17
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
sub esp, 4
mov edi, eax
mov dword [esp], 1
call esi
sub esp, 4
test ax, ax
jns 0x6ca40880
mov dword [esp], 2
call esi
sub esp, 4
test ax, ax
jns 0x6ca40a80
mov dword [esp], 4
call esi
sub esp, 4
test ax, ax
jns 0x6ca40a10
mov dword [esp], 5
call esi
sub esp, 4
test ax, ax
jns 0x6ca409a0
mov dword [esp], 6
call esi
sub esp, 4
test ax, ax
jns 0x6ca40930
mov dword [ebx + 0x28], 0
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edi, 1
mov ecx, edi
movzx edx, byte [ebx + 0x44]
sbb ebp, ebp
and ebp, 0xfffffffd
mov byte [esp + 0x1b], dl
add ebp, 4
cmp edi, 1
sbb eax, eax
mov dword [esp + 0x14], eax
and byte [esp + 0x14], 3
sub byte [esp + 0x14], 5
neg ecx
sbb eax, eax
and eax, 2
cmp edi, 1
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 3
bt edx, eax
jae 0x6ca408f9
movzx eax, byte [esp + 0x14]
and al, byte [esp + 0x1b]
mov dword [esp + 0x1c], ecx
mov byte [ebx + 0x44], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca4e6a0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca962d4
call fcn.6c942a20
mov ecx, dword [esp + 0x1c]
test eax, eax
je 0x6ca4081a
test dword [esp + 0x10], ebp
je 0x6ca4081a
mov eax, dword [ebx]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c973cf0
jmp 0x6ca4081a
movzx eax, byte [ebx + 0x44]
test al, 0x10
je 0x6ca40964
and eax, 0xffffffef
mov byte [ebx + 0x44], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca4e6a0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca962d4
call fcn.6c942a20
test eax, eax
je 0x6ca4086e
test byte [esp + 0x10], 0x10
je 0x6ca4086e
mov eax, dword [ebx]
mov dword [esp + 0xc], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c973cf0
mov dword [ebx + 0x28], 0
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebx + 0x44]
test al, 8
je 0x6ca409d4
and eax, 0xfffffff7
mov byte [ebx + 0x44], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca4e6a0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca962d4
call fcn.6c942a20
test eax, eax
je 0x6ca40859
test byte [esp + 0x10], 8
je 0x6ca40859
mov eax, dword [ebx]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c973cf0
jmp 0x6ca40859
movzx eax, byte [ebx + 0x44]
test al, 2
je 0x6ca40a44
and eax, 0xfffffffd
mov byte [ebx + 0x44], al
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6ca4e6a0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca962d4
call fcn.6c942a20
test eax, eax
je 0x6ca40844
test byte [esp + 0x10], 2
je 0x6ca40844
mov eax, dword [ebx]
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.6c973cf0
jmp 0x6ca40844
cmp edi, 1
sbb ebp, ebp
and ebp, 3
add ebp, 1
cmp edi, 1
sbb eax, eax
and eax, 0xfffffffd
sub eax, 2
cmp edi, 1
movzx edi, byte [ebx + 0x44]
sbb edx, edx
and edx, 2
lea ecx, [edx + 1]
bt edi, edx
mov dword [esp + 0x14], ecx
mov ecx, edi
jae 0x6ca40adb
and ecx, eax
mov eax, dword [ebx]
mov byte [ebx + 0x44], cl
mov dword [esp], eax
call fcn.6ca4e6a0
mov dword [esp + 4], 0
mov dword [esp], 0x6ca962d4
call fcn.6c942a20
test eax, eax
je 0x6ca4082f
test dword [esp + 0x10], ebp
je 0x6ca4082f
mov eax, dword [esp + 0x14]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c973cf0
jmp 0x6ca4082f