Function at 0x42c950
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x5c74e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x6613c8]
push ebx
push ebp
push esi
push edi
push 1
add eax, 4
mov esi, ecx
push eax
lea ecx, [esp + 0x24]
call fcn.005789d4
mov dword [esp + 0x40], 0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call edi
xor ebx, ebx
mov bx, ax
push 0x11
and ebx, 0x8000
call edi
xor ebp, ebp
mov bp, ax
push 2
and ebp, 0x8000
call edi
and eax, 0x8000
test ebx, ebx
jne 0x42c9d5
test ebp, ebp
jne 0x42c9d5
test eax, eax
jne 0x42c9d5
mov eax, dword [esi + 0xb0]
test eax, eax
jne 0x42c9d5
push ebp
mov ecx, esi
call fcn.0042bba0
mov ecx, esi
call fcn.0042c350
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
mov ecx, esi
call fcn.005ad42b
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x48]
dec eax
cmp edi, eax
mov ecx, edi
jl 0x42ca00
mov ecx, eax
test ecx, ecx
jge 0x42ca08
xor edi, edi
jmp 0x42ca0e
cmp edi, eax
jl 0x42ca0e
mov edi, eax
test ebx, ebx
je 0x42cae0
mov eax, dword [esi + 0xac]
cmp eax, edi
jge 0x42ca83
inc eax
cmp eax, edi
mov dword [esi + 0xac], eax
jg 0x42cad8
nop
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, esi
call fcn.0042c590
mov eax, dword [esp + 0x48]
test eax, eax
je 0x42ca54
mov dword [eax + 0x88], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42ca63
mov dword [eax + 0x40], 1
mov edx, dword [esi + 0xac]
inc edx
mov ecx, edx
cmp ecx, edi
mov dword [esi + 0xac], edx
mov eax, edx
jle 0x42ca30
mov dword [esi + 0xac], edi
jmp 0x42cb4b
jle 0x42cad8
dec eax
cmp eax, edi
mov dword [esi + 0xac], eax
jl 0x42cad8
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
mov ecx, esi
call fcn.0042c590
mov eax, dword [esp + 0x48]
test eax, eax
je 0x42cab4
mov dword [eax + 0x88], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42cac3
mov dword [eax + 0x40], 1
mov edx, dword [esi + 0xac]
dec edx
mov ecx, edx
cmp ecx, edi
mov dword [esi + 0xac], edx
mov eax, edx
jge 0x42ca90
mov dword [esi + 0xac], edi
jmp 0x42cb4b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edi
mov ecx, esi
mov dword [esi + 0xac], edi
call fcn.0042c590
test ebp, ebp
mov eax, dword [esp + 0x48]
je 0x42cb2e
test eax, eax
je 0x42cb17
mov ecx, dword [eax + 0x88]
xor edx, edx
test ecx, ecx
sete dl
mov dword [eax + 0x88], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42cb4b
mov edx, dword [eax + 0x40]
xor ecx, ecx
test edx, edx
sete cl
mov dword [eax + 0x40], ecx
jmp 0x42cb4b
test eax, eax
je 0x42cb3c
mov dword [eax + 0x88], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42cb4b
mov dword [eax + 0x40], 1
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
mov ecx, esi
call fcn.005ad403
mov edx, dword [esp + 0x34]
mov ecx, eax
add edx, 0xffffffec
mov eax, 0x78787879
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
lea eax, [edx + eax - 1]
xor edx, edx
test eax, eax
setl dl
push 1
dec edx
and edx, eax
mov eax, dword [esi + 0xac]
cmp eax, ecx
jge 0x42cba8
push eax
push 1
mov ecx, esi
call fcn.005ad3d3
mov ecx, esi
call fcn.0042c350
jmp 0x42cbc9
add ecx, edx
cmp eax, ecx
jle 0x42cbbd
sub eax, edx
mov edx, 0
sets dl
dec edx
and eax, edx
jmp 0x42cb95
mov eax, dword [esi + 0x1c]
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0057897a
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4