Function at 0x1800666a0
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov edi, 1
test edx, edx
je 0x180066861
cmp edx, edi
jne 0x1800668df
call fcn.1800526a0
lea rax, [rsp + 0x30]
mov dword [rbp + 0x78], edi
mov ebx, 0x104
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov dword [rbp + 0x68], ebx
xor r8d, r8d
lea rdx, [0x1800c51f8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x78]
lea rax, [0x18019f420]
xor r8d, r8d
lea rdx, [0x1800c5270]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x78]
lea rax, [0x18019f530]
mov dword [rbp + 0x68], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1800c5258]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, ebx
lea rcx, str.steamclient.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1800667a3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1800c5280]
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, ebx
lea rcx, str.steamclient64.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1800667e4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1800c5220]
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1800c5250]
mov r9d, 4
mov eax, eax
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [0x18019ea40]
lea rdx, [0x1800c524c]
lea rcx, [rsp + 0x40]
mov r8d, dword [r8 + 0xd0]
call fcn.180066648
lea rdx, [rsp + 0x40]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [rsp + 0x40]
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1800668df
call fcn.180052aa8
lea rax, [rbp + 0x78]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteamActiveProcess
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp + 0x78]
lea rax, [0x18019f420]
mov ebx, 0x104
lea rdx, str.SteamClientDll
mov dword [rsp + 0x28], ebx
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x78]
lea rax, [0x18019f530]
mov dword [rsp + 0x28], ebx
lea rdx, str.SteamClientDll64
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea r11, [rsp + 0x150]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret