Function at 0x454280
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x7c]
push 2
push ecx
lea ecx, [esi + 0x1f0]
call fcn.004548b0
mov edi, eax
test edi, edi
je 0x45449f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [esp]
cmp byte [esi], 0
jne 0x454470
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.SoftwareValveSteamSecureDesktop
push closesocket
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45432a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.InputEnabled
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.InputTimestamp
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0x14], 0
je 0x45434d
push 0
call fcn.005d5feb
sub eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x76a700
jae 0x45434d
mov byte [esi + 1], 1
jmp 0x4543f5
push 0x1001
push str.Steam_Input
push str.Would_you_like_to_accept_secure_desktop_input_from_Steam__n_nYou_must_respond_to_this_dialog_while_sitting_at_the_PC._n_nIf_you_are_seeing_this_when_you_arent_using_a_controller_or_Steam_Remote_Play_then_you_should_check_your_PC_for_malware.
push 0
mov byte [esi + 1], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x4543f5
lea ecx, [esi + 0x1f0]
call fcn.00454890
lea ecx, [ebp - 0x44]
mov byte [esi + 1], 1
call fcn.00454110
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x44]
push eax
push 0x20006
push 0
push 0
push 0
push str.SoftwareValveSteamSecureDesktop
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4543de
cmp byte [esi + 1], al
push 4
setne al
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.InputEnabled
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x24], 0
je 0x4543f5
call fcn.005c6a80
push 0
push dword [ebp - 0x24]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x44]
call fcn.00454110
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x44]
push eax
push 0x20006
push 0
push 0
push 0
push str.SoftwareValveSteamSecureDesktop
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x454456
push eax
call fcn.005d5feb
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 4
push eax
push 4
push 0
push str.InputTimestamp
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call ebx
cmp dword [ebp - 0x24], 0
je 0x45446d
call fcn.005c6a80
push 0
push dword [ebp - 0x24]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [esi], 1
cmp byte [esi + 1], 0
je 0x454483
push 0x1c
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.USER32.dll_SendInput]
push 2
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + 0x1f0]
call fcn.004548b0
mov edi, eax
test edi, edi
jne 0x4542b0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret