Function at 0x419617
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x496200]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x497db8], 0
push edi
mov edi, ecx
mov dword [ebp - 0x14], str.Desktop
mov dword [ebp - 0x10], str.Immersive
mov dword [ebp - 0xc], str.SysLauncher
mov dword [ebp - 8], 0x451a8c
je 0x419659
mov eax, dword [0x497dbc]
jmp 0x41985c
cmp dword [edi + 0xcc], 3
jne 0x419677
and dword [0x497dbc], 0
xor eax, eax
mov byte [0x497db8], 1
jmp 0x41985c
push esi
lea ecx, [ebp - 0x44]
call fcn.004079b0
lea eax, [ebp - 0x44]
push eax
call fcn.004194c4
pop ecx
test al, al
je 0x41983e
lea eax, [ebp - 0x44]
push eax
call fcn.0041f213
pop ecx
cmp eax, 2
jne 0x41983e
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
je 0x4196cf
push 0x7a
call esi
test ax, ax
je 0x4196cf
xor eax, eax
inc eax
mov dword [0x497dbc], eax
mov byte [0x497db8], al
jmp 0x41984f
push ebx
push str.force_immersive
lea ecx, [ebp - 0x2c]
call fcn.00403790
lea eax, [edi + 0x24]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x48], eax
push ecx
mov ecx, eax
call fcn.00402c70
xor esi, esi
lea ecx, [ebp - 0x2c]
xor edi, edi
mov bl, al
push esi
inc edi
push edi
call fcn.00404100
lea ecx, [ebp - 0x2c]
test bl, bl
je 0x41972e
xor ebx, ebx
inc ebx
mov dword [0x497dbc], ebx
push esi
mov byte [0x497db8], bl
call fcn.00402550
mov ecx, dword [ebp - 0x48]
push eax
call fcn.004186a8
lea ecx, [ebp - 0x2c]
call fcn.004026a0
jmp 0x419765
push str.force_desktop
call fcn.00403790
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402c70
push esi
push edi
lea ecx, [ebp - 0x2c]
mov bl, al
call fcn.00404100
test bl, bl
je 0x419762
xor ebx, ebx
mov dword [0x497dbc], esi
inc ebx
lea ecx, [ebp - 0x2c]
jmp 0x41970f
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x58]
call fcn.0040dde0
push 0xf003f
mov edi, str.SoftwareBeagleBrowserMetro
lea ecx, [ebp - 0x58]
push edi
push SysReAllocString
call fcn.0040def0
test eax, eax
je 0x4197af
push eax
push edi
push str.Failed_to_open_HKCU__ls_key__error_0x_x_n
call fcn.004016e0
add esp, 0xc
cmp byte [0x497db8], 0
jne 0x4197dc
mov dword [0x497dbc], esi
mov byte [0x497db8], bl
jmp 0x4197dc
cmp byte [0x497db8], 0
je 0x4197e4
mov esi, dword [0x497dbc]
push dword [ebp + esi*4 - 0x14]
push str.Launch_mode_forced_by_cmdline_to__s_n
call fcn.004016e0
pop ecx
pop ecx
push esi
push str.launch_mode
lea ecx, [ebp - 0x58]
call fcn.0040e1c0
mov esi, dword [0x497dbc]
jmp 0x419833
lea eax, [ebp - 0x4c]
push eax
push str.launch_mode
lea ecx, [ebp - 0x58]
call fcn.0040dfe0
test eax, eax
je 0x419805
push str.Desktop
push str.Cant_read_registry__defaulting_to__s_n
jmp 0x419820
mov eax, dword [ebp - 0x4c]
cmp eax, 2
jb 0x419815
mov dword [0x497dbc], esi
jmp 0x41982d
push dword [ebp + eax*4 - 0x14]
mov esi, eax
push str.Launch_mode_forced_by_registry_to__s_n
mov dword [0x497dbc], esi
call fcn.004016e0
pop ecx
pop ecx
mov byte [0x497db8], bl
lea ecx, [ebp - 0x58]
call fcn.0040dec0
pop ebx
jmp 0x419851
xor esi, esi
mov byte [0x497db8], 1
mov dword [0x497dbc], esi
mov eax, esi
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.004039a0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00430b83
mov esp, ebp
pop ebp
ret