Function at 0x180066c04
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 0x180066dc5
cmp edx, edi
jne 0x180066e43
call fcn.1800529f8
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, [0x1800c6268]
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, [0x1801a0550]
xor r8d, r8d
lea rdx, [0x1800c6258]
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, [0x1801a0440]
mov dword [rbp + 0x68], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1800c62a0]
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 0x180066d07
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1800c6318]
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 0x180066d48
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]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1800c6328]
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 [0x18019fa60]
lea rdx, [0x1800c62c4]
lea rcx, [rsp + 0x40]
mov r8d, dword [r8 + 0x110]
call fcn.180066bac
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 0x180066e43
call fcn.180052ea0
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, [0x1801a0550]
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, [0x1801a0440]
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