Function at 0x68f1821c
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x48
mov eax, 0x68f618a7
call fcn.68f54c95
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp dword [sym.GrooveUtil.DLL_class_GCMenuHelper__GCMenuHelper::ms_pCurrentMenu], ecx
je 0x68f1823f
xor eax, eax
jmp 0x68f1844c
mov dword [ebp - 0x30], sym.GrooveUtil.DLL_class_GCMenuHelper__GCMenuHelper::ms_pCurrentMenu
mov dword [ebp - 0x2c], ecx
mov dword [sym.GrooveUtil.DLL_class_GCMenuHelper__GCMenuHelper::ms_pCurrentMenu], esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x28]
push eax
push ecx
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.68f079b4
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, SysReAllocString
cmp ebx, eax
jne 0x68f18293
mov ebx, dword [ebp - 0x20]
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 0x10], eax
jne 0x68f1829e
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], ecx
cmp dword [ebp + 0x14], eax
jne 0x68f182a9
mov ecx, dword [ebp - 0x20]
mov dword [ebp + 0x14], ecx
cmp dword [ebp + 0x18], eax
jne 0x68f182b4
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x40]
cmp ebx, eax
jge 0x68f182c0
mov ebx, eax
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 0x14], eax
jge 0x68f182c8
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x3c]
cmp dword [ebp + 0x10], eax
jge 0x68f182d3
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x18], eax
jge 0x68f182db
mov dword [ebp + 0x18], eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp - 0x54], 0x14
mov dword [ebp - 0x50], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
or dword [ebp - 0x18], 0xffffffff
and dword [ebp + 0x14], 0
push 7
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
mov ebx, eax
xor eax, eax
call fcn.68f079b4
lea ebx, [eax + ebx*2 + 2]
push 8
call edi
mov ecx, dword [esi + 0x38]
lea eax, [ecx + eax*2 + 2]
xor edi, edi
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
cmp eax, ecx
jge 0x68f18359
mov ecx, dword [ebp + 0x18]
lea edx, [eax + ecx]
cmp edx, dword [ebp - 0x34]
jle 0x68f18356
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x14], ecx
push 0x20
pop edi
cmp eax, ecx
jle 0x68f18359
mov eax, dword [ebp - 0x34]
mov dword [ebp + 0x14], eax
jmp 0x68f18359
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
add ebx, ecx
mov eax, dword [ebp - 0x38]
cmp ebx, eax
jle 0x68f1836d
lea ebx, [eax - 1]
or edi, 8
jmp 0x68f1836f
mov ebx, ecx
or edi, 0x100
cmp dword [ebp + 0x1c], 2
je 0x68f1838e
cmp dword [ebp + 0x1c], 1
jne 0x68f18391
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x68f18391
or edi, 2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp + 0x10], eax
cmp byte [esi + 0x29], 0
je 0x68f183a9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp byte [ebp + 0x20], 0
je 0x68f183ca
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push 0
push 0x68f19a3a
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x68fa8a14], eax
push 0
call sym.GrooveUtil.DLL_public:_static_void___stdcall_GCCriticalErrorInfo::StartErrorBlock_bool_
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
push eax
push dword [esi + 4]
push dword [ebp + 0x14]
movsx eax, di
push eax
lea eax, [esi + 0x24]
push eax
mov eax, ebx
call fcn.68f079b4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
jmp 0x68f1840c
mov byte [ebp - 4], 0
call sym.GrooveUtil.DLL_public:_static_void___stdcall_GCCriticalErrorInfo::EndErrorBlock_void_
cmp byte [ebp + 0x20], 0
je 0x68f18420
call fcn.68f19a22
cmp byte [esi + 0x29], 0
je 0x68f1843d
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.68f19b6b
mov eax, dword [ebp - 0x18]
call fcn.68f54d3a
ret 0x1c