Function at 0x180067554
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 0x180067715
cmp edx, edi
jne 0x180067793
call fcn.180053168
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, [0x1800c7418]
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, [0x1801a2570]
xor r8d, r8d
lea rdx, [0x1800c7408]
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, [0x1801a2680]
mov dword [rbp + 0x68], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1800c73c8]
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 0x180067657
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1800c73f8]
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 0x180067698
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
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]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1800c74a0]
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 [0x1801a1b90]
lea rdx, [0x1800c74cc]
lea rcx, [rsp + 0x40]
mov r8d, dword [r8 + 0x110]
call fcn.1800674fc
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 0x180067793
call fcn.180053654
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, [0x1801a2570]
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, [0x1801a2680]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1800c7478]
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