Function at 0x1037cef
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push edi
mov edi, ecx
call fcn.010373c4
test eax, eax
je 0x1037d0b
xor eax, eax
jmp 0x1037fa6
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
mov ecx, edi
xor esi, esi
call fcn.01037476
test eax, eax
mov dword [ebp - 0x1c], eax
jl 0x1037f93
push eax
mov ecx, edi
call fcn.01007d18
test eax, eax
mov dword [ebp - 0x10], eax
je 0x1037f93
mov edx, dword [edi]
lea ecx, [ebp - 4]
push ecx
push 0x10166e4
push eax
mov ecx, edi
call dword [edx + 0x84]
test eax, eax
jge 0x1037d59
mov dword [ebp - 4], 0x103fa5c
push ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x1037f81
and dword [ebp - 8], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov esi, 0x100
jge 0x1037d86
mov dword [ebp - 8], esi
test byte [edi + 0x48], 8
je 0x1037d90
or dword [ebp - 8], 0x10
push dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0x7000
push esi
push 0
push ebx
push eax
call dword [ecx + 0xc]
push 0x103a708
push esi
push ebx
push dword [ebp - 4]
call fcn.01034f5a
push 0x103a700
push esi
push ebx
push dword [ebp - 4]
call fcn.01034f5a
push 0x103a9d8
push esi
push dword [ebp - 4]
push ebx
call fcn.01034dd8
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
test eax, eax
je 0x1037e54
push 0x104
lea ecx, [ebp - 0x268]
push ecx
push eax
push dword [0x103e830]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1037e63
cmp dword [ebp - 8], 0xffffffff
je 0x1037e2f
lea eax, [ebp - 0x268]
push eax
mov eax, dword [ebp - 0xc]
push 1
or eax, 0x400
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_ModifyMenuW]
jmp 0x1037e63
push 0
push 0xffffffffffffffff
push 0x800
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [ebp - 0x268]
push eax
push 1
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x1037e63
push 0x400
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
call fcn.01034c98
mov eax, dword [ebp - 4]
mov edx, dword [eax]
lea ecx, [edi + 0x64]
push ecx
push 0x103a6e0
push eax
call dword [edx]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
lea ecx, [edi + 0x68]
push ecx
push 0x103a6c0
push eax
call dword [edx]
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x102
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov ebx, eax
lea eax, [edi + 0x64]
push eax
call fcn.010031d7
lea eax, [edi + 0x68]
push eax
call fcn.010031d7
test ebx, ebx
je 0x1037f75
mov eax, ebx
dec eax
push 0x104
lea eax, [ebp - 0x268]
je 0x1037ee0
push eax
lea eax, [ebx - 0x100]
push eax
push dword [ebp - 4]
call fcn.01034ee4
jmp 0x1037eec
push 0x103a9d8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
sub ebx, esi
test byte [edi + 0x48], 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], 0x4100000
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], 0xa
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], eax
je 0x1037f5d
push 0x103a6f0
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1037f5d
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0103753b
jmp 0x1037f75
mov eax, dword [edi]
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp - 0x10]
call dword [eax + 0x48]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_DestroyMenu]
xor esi, esi
inc esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
pop ebx
je 0x1037f93
xor eax, eax
jmp 0x1037fa5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop esi
pop edi
leave
ret 0x10