Function at 0x30071708
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x3007172b
mov eax, dword [0x30096e7c]
mov eax, dword [eax + 0x36]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
je 0x300718c1
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esi + 4], edi
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_SetCapture]
movzx eax, word [esi + 0xc]
mov dword [ebp - 0x2c], edi
lea edi, [esi + 8]
movzx ecx, word [edi]
shl eax, 0x10
or eax, ecx
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x20], eax
jmp 0x30071777
mov eax, dword [ebp - 0x20]
push eax
call fcn.3007f13a
pop ecx
push edi
push dword [ebp - 0x2c]
mov dword [edi], eax
mov dword [edi + 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
push 0
push dword [ebp + 0x18]
jmp 0x300717b3
push 4
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
cmp eax, dword [ebp + 0x18]
jne 0x300717b0
push esi
push ebx
call fcn.300715c3
cmp eax, 0xffffffff
pop ecx
pop ecx
jne 0x300717d0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x30071794
push esi
push dword [ebp + 0x18]
call fcn.300715c3
dec eax
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
xor ebx, ebx
mov dword [ebp - 4], eax
cmp eax, ebx
mov eax, dword [ebp + 0xc]
jne 0x300717df
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 4], ebx
jne 0x300717ee
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 4]
je 0x30071820
cmp eax, ebx
je 0x30071808
push ebx
push ebx
push 0xb6f
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 4]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x30071820
push ebx
push ebx
push 0xb6e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x202
cmp dword [ebp - 0x28], ebx
jne 0x3007187d
cmp dword [ebp + 0x1c], 0
je 0x3007184d
movzx eax, word [esi + 0xc]
movzx ecx, word [edi]
shl eax, 0x10
or eax, ecx
push eax
push 0
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [ebp + 0x1c], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor edi, edi
cmp dword [ebp - 4], edi
je 0x3007186d
push esi
push edi
push 0xb6c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
movzx edi, ax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x300718c6
mov ebx, 0x202
push 3
push 0x209
push 0x100
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
js 0x300718aa
cmp dword [ebp - 0x28], ebx
je 0x300718aa
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x28]
sub eax, 0x200
je 0x30071774
dec eax
dec eax
jne 0x30071878
jmp 0x30071774
mov ebx, 0x202
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], eax
je 0x300718db
test eax, eax
je 0x300718db
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0x1c], 0
je 0x300718fb
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 8]
shl eax, 0x10
or eax, ecx
push eax
push 0
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret