Function at 0x18004a31c
Capabilities:
Initialize winsock library
Set environment variable
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov ecx, 0x202
lea rdx, [0x18010f120]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x2b0
call fcn.1800903f0
mov qword [rbp + 0x67], rax
mov rcx, rax
call fcn.180002ff4
nop
mov qword [0x18010ead0], rax
mov ecx, 0xe8
call fcn.1800903f0
mov qword [rbp + 0x67], rax
mov rcx, rax
call fcn.18004a1d8
nop
mov qword [0x18010ece8], rax
mov edi, 0x110
mov ecx, edi
call fcn.1800903f0
mov qword [rbp + 0x67], rax
mov rcx, rax
call fcn.18004a724
nop
mov qword [0x18010ef08], rax
lea ecx, [rdi - 0x58]
call fcn.1800903f0
mov rbx, rax
mov qword [rbp + 0x67], rax
mov rcx, rax
call fcn.180079680
lea rax, vtable.Hooker.0
mov qword [rbx], rax
xor esi, esi
mov qword [rbx + 0xa8], rsi
mov dword [rbx + 0xb0], esi
mov qword [0x18010ead8], rbx
mov ecx, edi
call fcn.1800903f0
mov rbx, rax
mov qword [rbp + 0x67], rax
mov rcx, rax
call fcn.180079680
nop
lea rax, vtable.OverlayRender.0
mov qword [rbx], rax
mov qword [rbx + 0xa8], rsi
mov qword [rbx + 0xb0], rsi
mov qword [rbx + 0xb8], rsi
lea rcx, [rbx + 0xc0]
lea edx, [rsi + 2]
call fcn.18008f000
nop
mov rax, qword [0x18010ead0]
cmp byte [rax + 0xe0], sil
je 0x18004a431
mov rcx, rbx
call fcn.180054220
nop
mov qword [0x18010f2d8], rbx
mov ecx, 0x48
call fcn.1800903f0
mov qword [rbp + 0x67], rax
mov rcx, rax
call fcn.180011e00
nop
mov qword [0x18010eae0], rax
mov edi, 0x60
mov ecx, edi
call fcn.1800903f0
mov rbx, rax
mov qword [rbp + 0x67], rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
lea ecx, [rdi - 8]
call fcn.1800903f0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
lea edx, [rdi - 0x5e]
call fcn.18008f000
nop
mov qword [0x18010f2d0], rbx
mov rax, qword [0x18010ead0]
cmp byte [rax + 0xdd], sil
je 0x18004a4ec
mov rbx, qword [0x18010ead8]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x19]
lea r8, str..bind
xor edx, edx
mov rcx, rbx
call fcn.18007a6a0
test al, al
je 0x18004a4ec
mov r8d, dword [rbp + 0x67]
mov rdx, qword [rbp - 0x19]
mov rcx, rbx
call fcn.18000bf80
mov rax, qword [0x18010ead0]
cmp qword [rax + 0x200], rsi
jbe 0x18004a508
mov rcx, qword [0x18010ead8]
call fcn.18000b54c
mov rax, qword [0x18010ead0]
cmp byte [rax + 0xdc], sil
je 0x18004a524
mov rcx, qword [0x18010ead8]
call fcn.18000c53c
mov rax, qword [0x18010ead0]
cmp byte [rax + 0xde], sil
je 0x18004a539
call fcn.18000cba4
mov rax, qword [0x18010ead0]
cmp byte [rax + 0xdb], sil
je 0x18004a54e
call fcn.18000cd84
mov r9, qword [0x18010ead0]
mov r9d, dword [r9 + 0xd0]
lea r8, [0x1800c5060]
mov edx, 0x40
lea rcx, [rbp - 9]
call fcn.18003f31c
lea rdx, [rbp - 9]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [rbp - 9]
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov ebx, 0xf003f
mov r9d, ebx
xor r8d, r8d
lea rdx, str.SoftwareValveSteamActiveProcess
mov rdi, 0xffffffff80000001
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18004a5f3
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareValveSteamActiveProcess
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rax, qword [0x18010ead0]
mov rcx, qword [rax + 8]
mov eax, dword [rcx]
mov dword [rbp + 0x6f], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x77], eax
mov ebx, 4
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.ActiveUser
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, [0x1800c5084]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0xa8
pop rdi
pop rsi
pop rbx
pop rbp
ret