Function at 0x1401bdaf0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rsi, rdx
mov r15, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov rcx, qword [rdx]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x50]
cmp eax, 6
jne 0x1401bdcf0
mov rcx, qword [rsi]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rbp + 0x4e0]
call qword [rax + 0x80]
nop
mov rcx, qword [rbp + 0x4e0]
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
jle 0x1401bdccf
mov byte [rsp + 0x28], dil
mov byte [rsp + 0x3f], 0x17
movzx r10d, byte [rsp + 0x3f]
movzx edx, r10b
shr dl, 7
movsxd r9, eax
mov qword [rbp + 0x4e8], r9
mov rsi, r9
test dl, dl
je 0x1401bdb95
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov r8d, dword [rsp + 0x34]
jmp 0x1401bdba3
mov r8d, 0x17
mov eax, r8d
sub eax, r10d
mov ebx, eax
cmp rax, r8
ja 0x1401bdbe4
cmp r9, r8
ja 0x1401bdbe4
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14027b5a0
test rax, rax
je 0x1401bdc05
cmp byte [rax + rbx], 0
je 0x1401bdc05
lea r8, str._pszString__pszString_nChars___0
mov edx, 0x445
lea rcx, str.c:_buildslave_steam_rel_client_hotfix_win64_build_srcpublic_tier1utlstring.h
call fcn.14029bf90
test al, al
jne 0x1401bdc05
int3
test dl, dl
je 0x1401bdbee
test r10b, 0x40
jne 0x1401bdc05
cmp rbx, r9
cmova r9, rax
mov r8b, 1
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14027acc0
mov rbx, qword [rbp + 0x4e0]
mov rax, qword [rbx]
mov r14, qword [rax + 0x30]
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x1401bdc5c
test al, 0x40
je 0x1401bdc42
lea r8, str._m_data.HasError__
mov edx, 0x39d
lea rcx, str.c:_buildslave_steam_rel_client_hotfix_win64_build_srcpublic_tier1utlstring.h
call fcn.14029bf90
test al, al
jne 0x1401bdc3d
int3
movzx eax, byte [rsp + 0x3f]
test al, al
jns 0x1401bdc5c
test al, 0x40
jne 0x1401bdc58
cmp dword [rsp + 0x34], 0
je 0x1401bdc58
mov rdx, qword [rsp + 0x28]
jmp 0x1401bdc61
xor edx, edx
jmp 0x1401bdc61
lea rdx, [rsp + 0x28]
xor r9d, r9d
mov r8, rsi
mov rcx, rbx
call r14
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.14027b4e0
test byte [rsp + 0x3f], 0x80
je 0x1401bdc94
mov rdx, qword [rsp + 0x28]
test rdx, rdx
jne 0x1401bdc99
lea rdx, [0x1404830ad]
jmp 0x1401bdc99
lea rdx, [rsp + 0x28]
lea rcx, str.STEAMVIDEOTOKEN
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
test byte [rsp + 0x3f], 0x80
je 0x1401bdcc8
call fcn.14029bdd0
mov rcx, qword [rax]
mov r9, qword [rcx + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call r9
mov rsi, qword [rbp + 0x4d8]
mov rax, qword [rbp + 0x4e0]
test rax, rax
je 0x1401bdcf0
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x50]
cmp eax, 8
jne 0x1401be0a7
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rbp + 0x4e0]
call qword [rax + 0x90]
nop
mov rcx, qword [rax]
mov rax, qword [rcx]
lea rdx, [rbp + 0x4e8]
call qword [rax + 0x28]
nop
mov rax, qword [rbp + 0x4e0]
test rax, rax
je 0x1401bdd53
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test dil, dil
jns 0x1401bdd69
btr edi, 7
mov dword [rsp + 0x20], edi
lea rcx, [rbp - 0x78]
call fcn.1402d6a70
mov rcx, qword [rbp + 0x4e8]
mov rax, qword [rcx]
call qword [rax + 0x38]
test eax, eax
jle 0x1401be085
lea rsi, [r15 + 0x1f8]
xor r15d, r15d
mov r12d, r15d
mov r13d, eax
nop
bt edi, 8
jae 0x1401bdda7
btr edi, 8
mov dword [rsp + 0x20], edi
lea rcx, [rbp - 0x78]
call fcn.1402d6a70
mov rcx, qword [rbp + 0x4e8]
mov rax, qword [rcx]
mov r8, r12
lea rdx, [rbp + 0x4e0]
call qword [rax + 0x90]
nop
bt edi, 9
jae 0x1401bdddc
btr edi, 9
mov dword [rsp + 0x20], edi
lea rcx, [rbp + 0x88]
call fcn.1402d6a70
mov rcx, qword [rbp + 0x4e0]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x68]
mov r9d, eax
mov ebx, dword [rsi + 0x18]
cmp ebx, 0xffffffff
je 0x1401bde45
mov r10, qword [rsi + 0x38]
mov rdx, r10
movsxd rcx, ebx
imul r8, rcx, 0x38
cmp r9d, dword [r8 + r10 + 0x10]
jge 0x1401bde21
mov rdx, r10
cmp ebx, 0xffffffff
lea rax, [r8 + r10]
jne 0x1401bde1d
mov rax, rsi
mov ebx, dword [rax]
jmp 0x1401bde37
jle 0x1401bde3c
cmp ebx, 0xffffffff
je 0x1401bde2e
lea rax, [r8 + rdx]
jmp 0x1401bde34
mov rax, rsi
mov rdx, r10
mov ebx, dword [rax + 4]
cmp ebx, 0xffffffff
jne 0x1401bde00
cmp ebx, 0xffffffff
jne 0x1401bdecc
bt edi, 0xa
jae 0x1401bde5f
btr edi, 0xa
mov dword [rsp + 0x20], edi
lea rcx, [rbp + 0x188]
call fcn.1402d6a70
mov rcx, qword [rbp + 0x4e0]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x68]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x70], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x20]
lea rcx, [rsp + 0x48]
call fcn.14027a2c0
nop
mov dword [rsp + 0x60], r15d
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1401529f0
mov ebx, eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x48]
call fcn.140114940
movsxd rax, ebx
imul rcx, rax, 0x38
mov rbx, qword [rsi + 0x38]
add rbx, 0x18
add rbx, rcx
mov r14d, dword [rbx + 0x18]
mov rcx, rbx
call fcn.140049940
lea ecx, [r14 + 1]
cmp ecx, eax
jle 0x1401bdf0d
mov rcx, rbx
call fcn.140049940
mov edx, dword [rbx + 0x18]
sub edx, eax
inc edx
mov rcx, rbx
call fcn.14027a610
mov r14d, dword [rbx + 0x18]
lea eax, [r14 + 1]
mov dword [rbx + 0x18], eax
movsxd rax, r14d
shl rax, 5
add rax, qword [rbx + 8]
mov qword [rbp - 0x80], rax
lea rcx, vtable.CefStringBase_struct_CefStringTraitsUTF8_.0
mov qword [rax], rcx
mov qword [rax + 8], r15
mov byte [rax + 0x10], 0
mov dword [rax + 0x18], r15d
movsxd rcx, dword [rbx + 0x18]
shl rcx, 5
mov rbx, qword [rbx + 8]
add rbx, rcx
bt edi, 0xb
jae 0x1401bdf62
btr edi, 0xb
mov dword [rsp + 0x20], edi
lea rcx, [rbp + 0x288]
call fcn.1402d6a70
mov rcx, qword [rbp + 0x4e0]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rsp + 0x28]
call qword [rax + 0x78]
nop
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1401bdfcf
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
test r15, r15
je 0x1401bdfcf
test r14, r14
je 0x1401bdfcf
mov r8, qword [rbx - 0x18]
test r8, r8
jne 0x1401bdfbc
lea ecx, [r8 + 0x18]
call fcn.14031dc78
mov qword [rbx - 0x18], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov byte [rbx - 0x10], 1
mov r8, qword [rbx - 0x18]
mov r9d, 1
mov rdx, r14
mov rcx, r15
call sub.libcef.dll_cef_string_utf8_set
jmp 0x1401bdfde
mov rcx, qword [rbx - 0x18]
test rcx, rcx
je 0x1401bdfde
call sub.libcef.dll_cef_string_utf8_clear
nop
lea rax, vtable.CefStringBase_struct_CefStringTraitsUTF8_.0
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401be01e
cmp byte [rsp + 0x38], 0
je 0x1401be00f
call sub.libcef.dll_cef_string_utf8_clear
mov edx, 0x18
mov rcx, qword [rsp + 0x30]
call fcn.14031dc44
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov byte [rsp + 0x38], r15b
jmp 0x1401be021
xor r15d, r15d
bt edi, 0xc
jae 0x1401be03b
btr edi, 0xc
mov dword [rsp + 0x20], edi
lea rcx, [rbp + 0x388]
call fcn.1402d6a70
mov rcx, qword [rbp + 0x4e0]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + 0x68]
mov dword [rbx - 8], eax
mov rax, qword [rbp + 0x4e0]
test rax, rax
je 0x1401be071
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + VariantCopy]
inc r12
sub r13, 1
jne 0x1401bdd90
mov rsi, qword [rbp + 0x4d8]
mov rax, qword [rbp + 0x4e8]
test rax, rax
je 0x1401be0a7
mov rcx, qword [rax + 8]
movsxd rdx, dword [rcx + 4]
lea rcx, [rax + 8]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsi]
test rdx, rdx
je 0x1401be0c4
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rdx, 8
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rsp + 0x5d0]
add rsp, 0x590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret