Function at 0x180066fcc
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 0x18006718d
cmp edx, edi
jne 0x18006720b
call fcn.180052c64
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, [0x1800c6370]
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, [0x1801a1570]
xor r8d, r8d
lea rdx, [0x1800c6360]
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, [0x1801a1680]
mov dword [rbp + 0x68], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1800c63a8]
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 0x1800670cf
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1800c6330]
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 0x180067110
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1800c6348]
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, [0x1800c6340]
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 [0x1801a0b90]
lea rdx, [0x1800c63f4]
lea rcx, [rsp + 0x40]
mov r8d, dword [r8 + 0x110]
call fcn.180066f74
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 0x18006720b
call fcn.180053134
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, [0x1801a1570]
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, [0x1801a1680]
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