Function at 0x30006de9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or edi, dword [0x3009c344]
xor ebx, ebx
mov eax, edi
and eax, 0x4000
mov dword [ebp - 8], eax
mov eax, edi
mov esi, edi
and eax, 0x2000
and esi, 0x1000
test di, di
mov dword [ebp - 0xc], eax
jns 0x30006e2d
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
jne 0x30006e2d
and dword [ebp + 8], ebx
jmp 0x30006e34
mov dword [ebp + 8], 2
and edi, 0xffff0fff
cmp edi, 1
jne 0x30006ec6
cmp byte [0x3009c375], bl
jne 0x30006e52
xor ebx, ebx
jmp 0x30007035
cmp byte [0x3009c348], bl
je 0x30006e62
xor ebx, ebx
inc ebx
jmp 0x30007035
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 3
call esi
test al, 1
jne 0x30006e97
push 0x1b
call esi
test al, 1
je 0x30007035
push 0x12
call esi
test ax, ax
jne 0x30006e4b
push 0x11
call esi
test ax, ax
jne 0x30006e4b
push 0x10
call esi
test ax, ax
jne 0x30006e4b
mov esi, dword [ebp + 8]
xor ebx, ebx
inc ebx
or esi, ebx
push esi
push 0x20e
push 0xa0
push 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x30006e9f
mov byte [0x3009c348], 1
jmp 0x30007035
test esi, esi
jne 0x30006ed8
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x30007032
xor ebx, ebx
push dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x3000701a
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp dword [0x3009c350], 1
mov dword [ebp - 4], ebx
mov esi, eax
jne 0x30006e5a
sub eax, 0xf
je 0x30006f51
sub eax, 0x11
je 0x30006f36
sub eax, 0x80
je 0x30006f36
sub eax, 0x61
je 0x30006f31
sub eax, 0x17
je 0x30006f44
sub eax, 0xe8
je 0x30006f36
dec eax
dec eax
jne 0x30006f5b
cmp dword [ebp - 0xc], ebx
jmp 0x30006f54
cmp edi, ebx
jne 0x30006f56
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x30006f5b
cmp edi, ebx
jne 0x30006f56
mov dword [ebp - 4], 1
jmp 0x30006f56
cmp dword [ebp - 8], ebx
jne 0x30006f5b
xor eax, eax
inc eax
jmp 0x30006f72
lea ecx, [esi - 0xa0]
xor eax, eax
cmp ecx, 0x16e
jbe 0x30007032
xor ebx, ebx
inc ebx
xor ecx, ecx
cmp dword [ebp - 4], ecx
je 0x30006fb4
mov eax, dword [ebp + 8]
or eax, 1
push eax
push esi
push esi
push dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x30006fa7
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
test ebx, ebx
je 0x30006eda
jmp 0x30007035
cmp eax, ecx
je 0x30007016
cmp dword [ebp - 8], ecx
je 0x30006fd1
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push 0xf
push 0xf
push ecx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
test ebx, ebx
jne 0x30007004
xor esi, esi
cmp esi, 0x40
jae 0x30007000
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push dword [esi + 0x30098fb4]
push dword [esi + 0x30098fb0]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
add esi, 8
test ebx, ebx
je 0x30006fd7
test ebx, ebx
je 0x3000701a
mov eax, dword [ebp - 0x24]
add eax, 0xffffff60
cmp eax, 0x16e
jbe 0x30007032
xor ebx, ebx
inc ebx
test ebx, ebx
jne 0x30007035
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
test ax, ax
js 0x30007032
push 2
call esi
test ax, ax
jns 0x30007035
push 2
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret