Function at 0x1035043
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push edi
mov edi, ecx
call fcn.01032cd1
test eax, eax
je 0x103505f
xor eax, eax
jmp 0x10352fa
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
mov ecx, edi
xor esi, esi
call fcn.01033800
test eax, eax
mov dword [ebp - 0x1c], eax
jl 0x10352e7
push eax
mov ecx, edi
call fcn.01033626
test eax, eax
mov dword [ebp - 0x10], eax
je 0x10352e7
mov edx, dword [edi]
lea ecx, [ebp - 4]
push ecx
push 0x100556c
push eax
mov ecx, edi
call dword [edx + 0x84]
test eax, eax
jge 0x10350ad
mov dword [ebp - 4], 0x103d648
push ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x10352d5
and dword [ebp - 8], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov esi, 0x100
jge 0x10350da
mov dword [ebp - 8], esi
test byte [edi + 0x48], 8
je 0x10350e4
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 0x1008374
push esi
push ebx
push dword [ebp - 4]
call fcn.0102a6ad
push 0x100836c
push esi
push ebx
push dword [ebp - 4]
call fcn.0102a6ad
push 0x1007064
push esi
push dword [ebp - 4]
push ebx
call fcn.0102a52b
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 0x10351a8
push 0x104
lea ecx, [ebp - 0x268]
push ecx
push eax
push dword [0x103d6e8]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10351b7
cmp dword [ebp - 8], 0xffffffff
je 0x1035183
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 0x10351b7
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 0x10351b7
push 0x400
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
call fcn.0102a2fe
mov eax, dword [ebp - 4]
mov edx, dword [eax]
lea ecx, [edi + 0x64]
push ecx
push 0x100555c
push eax
call dword [edx]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
lea ecx, [edi + 0x68]
push ecx
push 0x100550c
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.010343bd
lea eax, [edi + 0x68]
push eax
call fcn.010343bd
test ebx, ebx
je 0x10352c9
mov eax, ebx
dec eax
push 0x104
lea eax, [ebp - 0x268]
je 0x1035234
push eax
lea eax, [ebx - 0x100]
push eax
push dword [ebp - 4]
call fcn.0102a637
jmp 0x1035240
push 0x1007064
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 0x10352b1
push 0x100835c
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10352b1
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.010338c5
jmp 0x10352c9
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 0x10352e7
xor eax, eax
jmp 0x10352f9
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