Function at 0x10381ef
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push edi
mov edi, ecx
call fcn.01037946
test eax, eax
je 0x103820b
xor eax, eax
jmp 0x10384a6
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
mov ecx, edi
xor esi, esi
call fcn.01037a36
test eax, eax
mov dword [ebp - 0x1c], eax
jl 0x1038493
push eax
mov ecx, edi
call fcn.01009010
test eax, eax
mov dword [ebp - 0x10], eax
je 0x1038493
mov edx, dword [edi]
lea ecx, [ebp - 4]
push ecx
push 0x101b688
push eax
mov ecx, edi
call dword [edx + 0x84]
test eax, eax
jge 0x1038259
mov dword [ebp - 4], 0x1040a94
push ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x1038481
and dword [ebp - 8], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov esi, 0x100
jge 0x1038286
mov dword [ebp - 8], esi
test byte [edi + 0x48], 8
je 0x1038290
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 0x103abc8
push esi
push ebx
push dword [ebp - 4]
call fcn.0103541e
push 0x103abc0
push esi
push ebx
push dword [ebp - 4]
call fcn.0103541e
push 0x103b4f0
push esi
push dword [ebp - 4]
push ebx
call fcn.0103529c
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 0x1038354
push 0x104
lea ecx, [ebp - 0x268]
push ecx
push eax
push dword [0x1040340]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1038363
cmp dword [ebp - 8], 0xffffffff
je 0x103832f
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 0x1038363
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 0x1038363
push 0x400
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
call fcn.0103515c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
lea ecx, [edi + 0x64]
push ecx
push 0x103aba0
push eax
call dword [edx]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
lea ecx, [edi + 0x68]
push ecx
push 0x103ab80
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.01004d9a
lea eax, [edi + 0x68]
push eax
call fcn.01004d9a
test ebx, ebx
je 0x1038475
mov eax, ebx
dec eax
push 0x104
lea eax, [ebp - 0x268]
je 0x10383e0
push eax
lea eax, [ebx - 0x100]
push eax
push dword [ebp - 4]
call fcn.010353a8
jmp 0x10383ec
push 0x103b4f0
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 0x103845d
push 0x103abb0
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x103845d
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.01037afb
jmp 0x1038475
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 0x1038493
xor eax, eax
jmp 0x10384a5
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