Function at 0x30068e20
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x20]
cmp edi, 3
mov esi, ecx
je 0x30069112
xor eax, eax
cmp edi, 2
setne al
cmp edi, 2
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jne 0x30068fd8
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebx
mov ecx, esi
call fcn.30065040
mov edi, eax
test edi, edi
je 0x30068ea7
push 0
push ebp
push ebx
mov ecx, esi
call fcn.30061e80
test eax, eax
je 0x30068f87
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x30068e8f
mov edx, dword [ecx]
call dword [edx + 0x34]
test eax, eax
mov eax, str._blank
jne 0x30068e93
mov eax, dword [esp + 0x24]
push eax
push edi
mov ecx, esi
call fcn.3005efd0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x30069110
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 0x128]
test ah, 0x10
jne 0x30069110
push esi
call fcn.3002a3f0
add esp, 4
test al, al
je 0x30068f06
mov ecx, dword [esi + 0x30]
test ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
je 0x30068ee7
lea edx, [esp + 0x14]
push edx
call fcn.300d20e0
mov ecx, eax
call fcn.300ad730
lea eax, [esp + 0x14]
push eax
mov ecx, eax
push ecx
lea edx, [esi + 0x10c]
push edx
call fcn.30077890
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x30068f58
cmp edi, 5
je 0x30068f58
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov eax, dword [esi + 0x30]
and edi, 0x7fffffff
test eax, eax
je 0x30068f51
cmp dword [esi + 0x1e8], ebx
jne 0x30068f51
cmp dword [esi + 0x1ec], ebp
jne 0x30068f51
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov edx, dword [esi + 0x28]
mov ecx, edi
sub ecx, edx
cmp ecx, eax
jge 0x30068f51
mov dword [esp + 0x28], 4
mov dword [esi + 0x28], edi
mov edi, dword [esp + 0x28]
cmp edi, 4
jne 0x3006903e
mov edi, dword [esi + 8]
mov ebp, dword [esi + 0x2e8]
mov ebx, edi
cmp ebx, ebp
jge 0x30069006
push ebx
mov ecx, esi
call fcn.300636c0
test eax, eax
jne 0x30068ff1
inc ebx
cmp ebx, ebp
jl 0x30068f74
jmp 0x30069006
mov eax, dword [esi + 0x1f0]
sub eax, ebx
jns 0x30068f93
neg eax
cmp eax, 4
jg 0x30068ea7
mov eax, dword [esi + 0x1f4]
sub eax, ebp
jns 0x30068fa8
neg eax
cmp eax, 4
jg 0x30068ea7
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x30068fc6
mov eax, dword [ecx]
call dword [eax + 0x34]
test eax, eax
mov eax, str._blank
jne 0x30068fca
mov eax, dword [esp + 0x24]
push eax
push edi
mov ecx, esi
call fcn.3005efd0
jmp 0x30068ea7
test edi, edi
jne 0x30068eab
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x1f4], ebp
jmp 0x30068eab
push ebx
mov ecx, esi
call fcn.3005e8c0
cmp ax, 0x20
je 0x30069006
cmp ax, 0x2d
je 0x30069006
inc ebx
test edi, edi
jle 0x30069025
lea ebx, [ebx]
lea ebp, [edi - 1]
push ebp
mov ecx, esi
call fcn.300636c0
test eax, eax
jne 0x30069025
mov edi, ebp
test edi, edi
jg 0x30069010
push 1
push 0
push 0
push ebx
push edi
mov ecx, esi
call fcn.30068ac0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 0xc
cmp edi, 1
jne 0x3006904e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x30069110
mov ecx, dword [esi + 0x38]
test ecx, ecx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x1e8], ebx
mov dword [esi + 0x1ec], ebp
mov dword [esi + 0x1fc], edx
je 0x30069084
mov eax, dword [ecx]
call dword [eax + 0x3c]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x30069084
mov edi, 1
jmp 0x30069086
xor edi, edi
push 0
push 1
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
push ebx
mov ecx, esi
call fcn.30064470
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.3005dc60
mov ebx, dword [esi + 4]
mov ebp, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x300690c9
test edi, edi
mov dword [esi + 0x14], 1
jne 0x300690e6
mov ebx, ebp
jmp 0x300690e6
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x300690e6
mov edx, dword [esi + 0x38]
push 1
push edx
mov dword [esi + 0x14], 0
call fcn.301952f0
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x300690f4
mov ecx, esi
call fcn.3005ee30
cmp eax, 8
jle 0x30069101
mov eax, dword [esp + 0x10]
test eax, eax
je 0x30069110
push 1
push 0
push 0
push ebp
push ebx
mov ecx, esi
call fcn.30068ac0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 0xc