Function at 0x6ca42d40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x6ca64cb8]
test ecx, ecx
je 0x6ca42e48
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
lea esi, [eax + 1]
xor edi, edi
lea ebx, [esp + 0x24]
lea esi, [esi]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call ebp
sub esp, 0x14
test eax, eax
je 0x6ca42e48
mov eax, dword [0x6cb1cbf4]
test eax, eax
je 0x6ca42de3
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
sar edx, 0x1f
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 4], edx
mov edx, dword [0x6cb1cbf0]
mov dword [esp], edx
call eax
cmp dword [esp + 0x28], 0x200
jne 0x6ca42e10
mov eax, dword [0x6cb1cc1c]
test eax, eax
je 0x6ca42e10
add eax, 1
sub eax, dword [esp + 0x34]
test eax, eax
jg 0x6ca42d70
mov dword [0x6cb1cc1c], 0
nop
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, esi
sub esp, 4
sub eax, dword [esp + 0x34]
test eax, eax
jg 0x6ca42d70
add edi, 1
cmp edi, 3
jle 0x6ca42d70
lea esi, [esi]
mov dword [esp], 0
call fcn.6c9724c0
cmp byte [eax + 0xe1], 1
mov ebx, eax
je 0x6ca42fb8
cmp byte [ebx + 0xe5], 1
je 0x6ca42f80
call fcn.6c971be0
test eax, eax
je 0x6ca42f20
test byte [eax + 0x32], 0x10
je 0x6ca42f20
call fcn.6ca1e140
mov ebx, eax
call fcn.6c9dbfb0
mov esi, eax
test ebx, ebx
je 0x6ca42ef0
mov ebx, dword [ebx + 0x168]
test ebx, ebx
jne 0x6ca42ec3
jmp 0x6ca42ef0
mov edi, esi
sub edi, dword [eax + 0x4c]
cmp edi, 0xbb7
ja 0x6ca42f70
mov ebx, dword [ebx + 0xac]
test ebx, ebx
je 0x6ca42ef0
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x6ca42eb9
mov edx, dword [eax + 0x48]
test edx, edx
je 0x6ca42ea8
mov dword [eax + 0x48], 0
mov dword [esp], ebx
call fcn.6ca4e6a0
mov ebx, dword [ebx + 0xac]
test ebx, ebx
jne 0x6ca42ec3
lea esi, [esi]
call fcn.6c971be0
test eax, eax
je 0x6ca42f10
test byte [eax + 0x31], 0x40
je 0x6ca42f10
mov ebx, dword [eax + 0xa4]
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x6ca42ff0
add esp, 0x40
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebx + 0xe3], 1
je 0x6ca43150
cmp byte [ebx + 0xe7], 1
jne 0x6ca42e87
mov dword [esp], 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
sub esp, 4
test ax, ax
js 0x6ca42e87
mov dword [esp + 4], 0xe7
mov dword [esp], 0
call fcn.6c971df0
jmp 0x6ca42e87
mov dword [esp], ebx
call fcn.6ca4e6a0
jmp 0x6ca42eb9
mov dword [esp], 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
sub esp, 4
test ax, ax
js 0x6ca42e70
mov dword [esp + 4], 0xe5
mov dword [esp], 0
call fcn.6c971df0
jmp 0x6ca42e70
mov dword [esp], 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
sub esp, 4
test ax, ax
js 0x6ca42e63
mov dword [esp + 4], 0xe1
mov dword [esp], 0
call fcn.6c971df0
jmp 0x6ca42e63
lea esi, [esp + 0x1c]
mov dword [esp], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
sub esp, 4
test eax, eax
je 0x6ca42f10
mov dword [esp + 4], esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
sub esp, 8
test eax, eax
je 0x6ca42f10
mov dword [esp], 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esp, 4
mov edi, eax
call fcn.6c973540
mov esi, dword [eax + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c973c50
test edi, edi
jne 0x6ca43182
mov dword [esp], 1
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 3
call edi
cwde
sub esp, 4
shr eax, 0x1f
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c973cf0
mov dword [esp], 2
call edi
cwde
sub esp, 4
shr eax, 0x1f
mov dword [esp + 0xc], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c973cf0
mov dword [esp], 4
call edi
cwde
sub esp, 4
shr eax, 0x1f
mov dword [esp + 4], esi
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c973cf0
mov dword [esp], 5
call edi
cwde
sub esp, 4
shr eax, 0x1f
mov dword [esp + 4], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c973cf0
mov dword [esp], 6
call edi
cwde
sub esp, 4
shr eax, 0x1f
mov dword [esp + 0xc], 5
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c973cf0
jmp 0x6ca42f10
mov dword [esp], 0x5b
call dword [sym.imp.USER32.dll_GetKeyState]
sub esp, 4
test ax, ax
js 0x6ca42f2d
mov dword [esp + 4], 0xe3
mov dword [esp], 0
call fcn.6c971df0
jmp 0x6ca42f2d
mov dword [esp], 1
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 1
call edi
cwde
sub esp, 4
shr eax, 0x1f
mov dword [esp + 0xc], 3
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.6c973cf0
jmp 0x6ca430a0