Function at 0x1001dc80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 0x28], 0
jne 0x1001df3e
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x18]
mov ecx, dword [ebx]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push 0
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
push edx
push dword [ebx + 8]
call dword [eax + 0x2c]
push 0
push 1
push 0x1606
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.1001cef0
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x14], eax
test edx, edx
je 0x1001df3e
mov ecx, dword [edx]
push edx
call dword [ecx + 4]
mov eax, dword [ebx + 0x1c]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebx + 0x1c]
lea edx, [ebp - 8]
mov dword [ebx + 0x28], 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
jne 0x1001df32
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [ebp - 8]
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
push 1
push ecx
call dword [edx + 0xc]
mov esi, dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x1001de31
nop dword [eax]
cmp dword [ebp - 0x14], 0
mov edx, dword [ebp - 4]
je 0x1001dd6b
cmp edx, 2
je 0x1001de15
cmp edx, 4
je 0x1001de15
mov eax, dword [ebp - 0x10]
mov esi, edx
and edx, 0xfff3ffff
and esi, 0xc0000
mov dword [ebp - 4], edx
cmp edx, dword [eax + 0x20]
je 0x1001de0f
mov eax, dword [eax + 0x1c]
lea ebx, [ebp - 0xf0]
push 0x64
push ebx
push 1
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov ebx, dword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
jne 0x1001de0f
mov eax, dword [ebp - 4]
neg esi
sbb esi, esi
and esi, 2
cmp eax, 4
jne 0x1001deaa
lea eax, [ebp - 0xf0]
push eax
push 4
push esi
push 0x10
push edi
call ebx
push 0
push 0xffffffffffffffff
push 0x800
push 0x10
push edi
call ebx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1001de0f
push 0
push 0x64
lea eax, [ebp - 0xf0]
push eax
push str._windows_ms_resource:__Windows.UI.SettingsAppThreshold_SystemSettings_Resources_SettingsGroupRestoreRestoreAdvancedStartup_DisplayName
call dword [sym.imp.SHLWAPI.dll_SHLoadIndirectString]
lea eax, [ebp - 0xf0]
push eax
push 0x2000000
push esi
push 0x2000000
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_GetMenuItemCount]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push 0
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1001dd50
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x400
push edi
call esi
dec eax
push eax
push edi
call dword [sym.imp.USER32.dll_GetMenuState]
test al, 2
je 0x1001de60
push 0x400
push edi
call esi
dec eax
push eax
push edi
call dword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, edi
call fcn.1004c2d0
lea eax, [ebp - 0xc]
push eax
push 0x10054a4c
push 3
push 0
push 0x10051a6c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x1001df32
push 0xc
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov edx, eax
add esp, 4
test edx, edx
je 0x1001dee9
mov dword [edx], 0x10054a3c
mov dword [edx + 8], ebx
mov dword [edx + 4], 1
jmp 0x1001deeb
cmp eax, 0x200
jne 0x1001dec8
push 0
push 0xffffffffffffffff
push 0xc00
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push edi
call ebx
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xf0]
or esi, 0x400
push ecx
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetMenuItemCount]
push edi
call esi
push eax
push edi
call ebx
jmp 0x1001de15
xor edx, edx
mov eax, dword [ebp - 0xc]
push 0x10000004
push 0
push 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xc]
push 0x10000000
push dword [ebx + 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx]
lea edx, [ebp - 0x28]
push 2
push dword [ebx + 8]
mov eax, dword [ecx]
push 1
push edx
push dword [ebp - 0xc]
call dword [eax + 0x30]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret