Function at 0x300068a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or edi, dword [0x3009527c]
xor ebx, ebx
mov eax, edi
and eax, 0x4000
mov dword [ebp - 0xc], eax
mov eax, edi
mov esi, edi
and eax, 0x2000
and esi, 0x1000
test edi, 0x8000
mov dword [ebp - 0x10], eax
je 0x300068eb
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
jne 0x300068eb
and dword [ebp + 8], eax
jmp 0x300068f2
mov dword [ebp + 8], 2
and edi, 0xffff0fff
cmp edi, 1
jne 0x30006982
cmp byte [0x300952ad], 0
je 0x3000697b
cmp byte [0x30095280], 0
jne 0x30006a76
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 3
call esi
test al, 1
jne 0x3000694c
push 0x1b
call esi
test al, 1
je 0x30006af9
push 0x12
call esi
test ax, ax
jne 0x3000697b
push 0x11
call esi
test ax, ax
jne 0x3000697b
push 0x10
call esi
test ax, ax
jne 0x3000697b
mov esi, dword [ebp + 8]
xor ebx, ebx
inc ebx
or esi, ebx
push esi
push 0x209
push 0xa0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x30006954
mov byte [0x30095280], 1
jmp 0x30006af9
xor ebx, ebx
jmp 0x30006af9
test esi, esi
jne 0x30006994
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x30006af6
xor ebx, ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x2c]
push eax
call esi
test eax, eax
je 0x30006ae0
mov eax, dword [ebp - 0x28]
xor ebx, ebx
cmp dword [0x30095288], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
jne 0x30006a76
sub eax, 0xf
je 0x30006a10
sub eax, 0x11
je 0x300069f5
sub eax, 0x80
je 0x300069f5
sub eax, 0x61
je 0x300069f0
sub eax, 0x17
je 0x30006a03
sub eax, 0xe8
je 0x300069f5
dec eax
dec eax
jne 0x30006a1a
cmp dword [ebp - 0x10], ebx
jmp 0x30006a13
cmp edi, ebx
jne 0x30006a15
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x30006a1a
cmp edi, ebx
jne 0x30006a15
mov dword [ebp - 8], 1
jmp 0x30006a15
cmp dword [ebp - 0xc], ebx
jne 0x30006a1a
xor eax, eax
inc eax
jmp 0x30006a35
xor eax, eax
cmp dword [ebp - 4], 0xa0
jb 0x30006a32
cmp dword [ebp - 4], 0x209
jbe 0x30006af6
xor ebx, ebx
inc ebx
xor ecx, ecx
cmp dword [ebp - 8], ecx
je 0x30006a7b
mov eax, dword [ebp + 8]
or al, 1
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push dword [ebp - 4]
push dword [ebp - 0x2c]
push eax
call esi
test eax, eax
je 0x30006a69
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
test ebx, ebx
je 0x30006996
jmp 0x30006af9
xor ebx, ebx
inc ebx
jmp 0x30006af9
cmp eax, ecx
je 0x30006adc
cmp dword [ebp - 0xc], ecx
je 0x30006a94
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 0xf
push 0xf
push ecx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x30006ac7
xor esi, esi
cmp esi, 0x40
jae 0x30006ac3
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push dword [esi + 0x30091fe4]
push dword [esi + 0x30091fe0]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
add esi, 8
test ebx, ebx
je 0x30006a9a
test ebx, ebx
je 0x30006ae0
cmp dword [ebp - 0x28], 0xa0
jb 0x30006ad9
cmp dword [ebp - 0x28], 0x209
jbe 0x30006af6
xor ebx, ebx
inc ebx
test ebx, ebx
jne 0x30006af9
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
test ah, ah
js 0x30006af6
push 2
call esi
test ah, ah
jns 0x30006af9
push 2
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret