Function at 0x140002680
Capabilities:
Create process on windows
Set environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x140037080]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov rbx, qword [rbp + 0xa0]
xor r12d, r12d
cmp qword [r8 + 0x18], 0x10
jb 0x1400026c4
mov r8, qword [r8]
mov rdx, r8
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp qword [rdi + 0x18], 0x10
jb 0x1400026de
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [0x140032584]
lea rcx, str.STEAM_RUNTIME
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [0x140032584]
lea rcx, str.STEAM_LAUNCHER
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [0x1400325a8]
lea rcx, str.STEAM_DISABLE_OVERLAY
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [0x140032584]
lea rcx, str.STEAM_USE_LAUNCHER
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [0x140032584]
lea rcx, str.STEAM_SKIP_INITIAL_REPAIR
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000275f
mov rdx, qword [rbx]
lea rcx, str.STEAM_LANGUAGE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp qword [rbx + 0x18], 0x10
jb 0x140002776
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.STEAM_UI_LANGUAGE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [0x1400325a8]
lea rcx, str.STEAMVR_ENABLE
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, str.bootstrapper
lea rcx, str.SteamLaunchMode
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov r13, qword [rsi + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r13
cmp rax, 1
jb 0x140002a08
cmp qword [rsi + 0x18], 0x10
jb 0x1400027d6
mov rsi, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r15, [r13 + 1]
mov ebx, 0xf
lea rdi, [rsp + 0x50]
cmp r15, rbx
jbe 0x140002875
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x140002836
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140006678
test rax, rax
je 0x140002a0e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140002870
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000285e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002a02
jmp 0x140002817
test rcx, rcx
je 0x14000286d
call fcn.140006678
mov rdi, rax
jmp 0x140002870
mov rdi, r12
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rbx
mov r8, r13
mov rdx, rsi
mov rcx, rdi
call fcn.140008530
mov byte [rdi + r13], 0x20
mov byte [rdi + r15], r12b
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x1400028a4
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140004580
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14000291b
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002916
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a0e
call fcn.140006670
mov dword [rbp - 0x50], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
mov dword [rbp - 0x14], 1
mov word [rbp - 0x10], r12w
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae rdx, qword [rbp - 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400029a5
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1400029dc
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400029fc
call fcn.140006670
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140006650
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000f8b4
int3
call fcn.140001170
int3
call fcn.140001210
int3
call fcn.14000f8b4
int3