Function at 0x30080d29
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov dword [0x302088e0], 1
call dword [sym.imp.USER32.dll_GetMessageTime]
push dword [0x30229f5c]
mov dword [ebp - 0x28], eax
call fcn.3005b0b6
mov eax, dword [ebp + 0xc]
movzx esi, ax
shr eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x16d
push eax
push eax
call fcn.30108612
test eax, eax
mov dword [0x302088e4], eax
mov edi, 0x302088e8
mov ebx, 0x302088f8
je 0x30080df0
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.3005106b
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push 0
push edi
call fcn.3005996e
mov eax, dword [ebp - 0x34]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x38]
cdq
sub eax, edx
mov edx, dword [ebp - 0x10]
sar ecx, 1
add edx, ecx
push edx
sar eax, 1
lea edx, [eax + esi]
push edx
mov edx, dword [ebp - 0x10]
sub edx, ecx
push edx
sub esi, eax
push esi
push ebx
call fcn.3005996e
cmp dword [0x302088e4], 0
je 0x30080df0
push 0x10a
call fcn.30053212
push ebx
push edi
push dword [0x302088e4]
mov esi, eax
call fcn.300540de
push esi
call fcn.30053212
mov eax, dword [0x30208928]
and dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], eax
call fcn.300fbad3
mov esi, 0x80df
jmp 0x30080e3f
lea eax, [ebp - 0x7c]
push eax
call fcn.300600ad
test eax, eax
jne 0x30080f0b
mov eax, dword [ebp - 0x6c]
cmp eax, dword [0x3022b6ec]
je 0x30080e65
lea eax, [ebp - 0x7c]
push eax
call fcn.300600e3
test eax, eax
jne 0x30080efd
lea eax, [ebp - 0x7c]
push eax
call fcn.3005b3ac
push esi
lea eax, [ebp - 0x7c]
push eax
call fcn.30060f68
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x30080e09
cmp dword [ebp - 4], 0
jne 0x30080f63
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x30081203
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
jge 0x30080e7d
mov dword [ebp - 0x14], 8
jmp 0x30080e81
and dword [ebp - 0x14], 0
push 4
call esi
test ax, ax
jge 0x30080e93
mov dword [ebp - 0x18], 0x10
jmp 0x30080e97
and dword [ebp - 0x18], 0
push 2
call esi
test ax, ax
jge 0x30080ea9
mov dword [ebp - 0x1c], 2
jmp 0x30080ead
and dword [ebp - 0x1c], 0
push 0x10
call esi
test ax, ax
jge 0x30080ebb
push 4
pop esi
jmp 0x30080ebd
xor esi, esi
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
movzx eax, word [ebp - 0x68]
setl cl
shl eax, 0x10
or ecx, eax
movzx eax, word [ebp - 0x14]
or ecx, eax
movzx eax, word [ebp - 0x18]
or ecx, eax
movzx eax, word [ebp - 0x1c]
or ecx, eax
movzx eax, si
or ecx, eax
mov eax, 0x20a
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x7c], eax
jmp 0x30080f02
call fcn.300a69e4
lea eax, [ebp - 0x78]
push eax
call fcn.3006069d
cmp dword [ebp - 0x20], 0
je 0x30080e50
push 1
lea eax, [ebp - 0x78]
push eax
push dword [0x3022a248]
push 0
call fcn.3005c4f1
movzx ecx, word [ebp + 0xc]
mov eax, dword [ebp - 0x78]
sub eax, ecx
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp - 0x10]
test eax, eax
mov esi, eax
jge 0x30080f3f
neg esi
test ecx, ecx
mov edx, ecx
jge 0x30080f47
neg edx
cmp esi, edx
jle 0x300810f1
test eax, eax
jl 0x300810e4
mov dword [ebp - 4], 2
jmp 0x300810ed
cmp dword [ebp - 8], 0x64
jge 0x30080f71
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30080f80
mov eax, dword [ebp - 8]
push 0x64
cdq
pop ecx
idiv ecx
and dword [ebp - 0x20], 0
mov esi, eax
mov eax, dword [ebp - 4]
dec eax
je 0x30081061
dec eax
je 0x30081021
dec eax
je 0x30080fe0
dec eax
jne 0x300810c5
cmp dword [0x30229f38], 1
jle 0x300810c5
cmp dword [0x302088e4], 0
je 0x30080fd3
push 0x10a
call fcn.30053212
push ebx
push edi
push dword [0x302088e4]
mov dword [ebp - 0x1c], eax
call fcn.300540de
push dword [ebp - 0x1c]
call fcn.30053212
neg esi
push esi
call fcn.300989aa
jmp 0x3008109d
cmp dword [0x30229f00], 0xf9f
jge 0x300810c5
cmp dword [0x302088e4], 0
je 0x30081097
push 0x10a
call fcn.30053212
push ebx
push edi
push dword [0x302088e4]
mov dword [ebp - 0x1c], eax
call fcn.300540de
push dword [ebp - 0x1c]
call fcn.30053212
jmp 0x30081097
cmp dword [0x30229f38], 0xf9f
jge 0x300810c5
cmp dword [0x302088e4], 0
je 0x30080fd5
push 0x10a
call fcn.30053212
push ebx
push edi
push dword [0x302088e4]
mov dword [ebp - 0x1c], eax
call fcn.300540de
push dword [ebp - 0x1c]
call fcn.30053212
jmp 0x30080fd5
cmp dword [0x30229f00], 1
jle 0x300810c5
cmp dword [0x302088e4], 0
je 0x30081095
push 0x10a
call fcn.30053212
push ebx
push edi
push dword [0x302088e4]
mov dword [ebp - 0x1c], eax
call fcn.300540de
push dword [ebp - 0x1c]
call fcn.30053212
neg esi
push esi
call fcn.30098ab9
cmp dword [0x302088e4], 0
je 0x300810c5
push 0x10a
call fcn.30053212
push ebx
push edi
push dword [0x302088e4]
mov esi, eax
call fcn.300540de
push esi
call fcn.30053212
cmp dword [ebp - 0x20], 0
je 0x30081203
push 0x64
pop eax
sub eax, dword [ebp - 8]
imul eax, eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30081203
mov dword [ebp - 4], 4
neg eax
mov edx, eax
jmp 0x30081109
test ecx, ecx
jl 0x300810fe
mov dword [ebp - 4], 3
jmp 0x30081107
mov dword [ebp - 4], 1
neg ecx
mov edx, ecx
cmp edx, dword [0x30208908]
jge 0x3008111b
and dword [ebp - 8], 0
and dword [ebp - 4], 0
jmp 0x3008116d
push 3
pop eax
cmp edx, dword [eax*4 + 0x30208908]
jg 0x3008112c
dec eax
test eax, eax
jg 0x3008111e
cmp eax, 3
jge 0x30081163
mov ecx, eax
shl ecx, 2
mov esi, dword [ecx + 0x30208918]
mov edi, dword [ecx + 0x30208908]
mov eax, dword [ecx + 0x3020891c]
mov ecx, dword [ecx + 0x3020890c]
sub edx, edi
sub eax, esi
imul eax, edx
sub ecx, edi
cdq
idiv ecx
mov edi, 0x302088e8
add eax, esi
jmp 0x3008116a
mov eax, dword [eax*4 + 0x30208918]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax*4 + 0x30208928]
cmp esi, dword [ebp - 0x24]
je 0x30081185
push esi
call fcn.300fbad3
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0xc]
sub eax, 0
je 0x300811b2
dec eax
je 0x300811ea
dec eax
jne 0x30081203
mov eax, dword [ebp - 0x7c]
cmp eax, 0x201
je 0x3008120d
cmp eax, 0x203
je 0x3008120d
cmp eax, 0x20a
je 0x3008120d
cmp eax, 0x100
jmp 0x30081207
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x28]
cmp eax, 0x190
jae 0x300811e3
cmp dword [ebp - 0x7c], 0x202
jne 0x300811da
cmp dword [ebp - 4], 0
jne 0x300811e3
mov dword [ebp - 0xc], 2
jmp 0x30080e02
cmp dword [ebp - 0x7c], 0x20a
jmp 0x30081207
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x7c], 0x202
jne 0x30081203
call fcn.300606e7
test eax, eax
jne 0x30081203
mov dword [ebp - 0xc], 3
cmp dword [ebp - 0xc], 3
jne 0x30080e02
cmp dword [0x302088e4], 0
je 0x3008124b
push 0x10a
call fcn.30053212
push ebx
push edi
push dword [0x302088e4]
mov esi, eax
call fcn.300540de
push esi
call fcn.30053212
mov eax, dword [0x302088e4]
test eax, eax
je 0x3008124b
push eax
call fcn.30051057
and dword [0x302088e4], 0
push dword [0x30229f5c]
call fcn.3005b0d0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3009756a
and dword [0x302088e0], 0
pop edi
pop esi
pop ebx
leave
ret 8