Function at 0x300771ec
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 0x3007720f
mov eax, dword [0x3009e09c]
mov eax, dword [eax + 0x36]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
je 0x300773a6
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 0x3007725b
mov eax, dword [ebp - 0x20]
push eax
call fcn.30085102
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 0x30077297
push 4
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
cmp eax, dword [ebp + 0x18]
jne 0x30077294
push esi
push ebx
call fcn.300770a7
cmp eax, 0xffffffff
pop ecx
pop ecx
jne 0x300772b4
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x30077278
push esi
push dword [ebp + 0x18]
call fcn.300770a7
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 0x300772c3
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 4], ebx
jne 0x300772d2
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 4]
je 0x30077304
cmp eax, ebx
je 0x300772ec
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 0x30077304
push ebx
push ebx
push 0xb6e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x202
cmp dword [ebp - 0x28], ebx
jne 0x30077361
cmp dword [ebp + 0x1c], 0
je 0x30077331
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 0x30077351
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 0x300773ab
mov ebx, 0x202
push 3
push 0x20e
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 ax, ax
js 0x3007738f
cmp dword [ebp - 0x28], ebx
je 0x3007738f
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x28]
sub eax, 0x200
je 0x30077258
dec eax
dec eax
jne 0x3007735c
jmp 0x30077258
mov ebx, 0x202
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 8], eax
je 0x300773c0
test eax, eax
je 0x300773c0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp + 0x1c], 0
je 0x300773e0
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