Function at 0x140031430
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1400a8378]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
xor esi, esi
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], si
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 7
mov word [rbp - 0x19], si
lea r8d, [rsi + 0xe]
lea rdx, str._k_Scenario_t_
lea rcx, [rbp + 7]
call fcn.14000b390
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x27]
call fcn.140030dc0
mov rbx, rax
lea rax, [rbp - 0x19]
cmp rax, rbx
je 0x14003151a
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x1400314ec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400314e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400317d1
call fcn.140036990
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 7
mov word [rbp - 0x19], si
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 9], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x14003155a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031555
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400317d1
call fcn.140036990
mov r8, qword [rbp - 9]
test r8, r8
jne 0x140031586
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140031570
mov rdx, qword [rdi]
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x1400315a5
lea rax, [rbp - 0x19]
cmp rdi, rax
je 0x1400315a5
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov rcx, rdi
call fcn.14000b390
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400315b2
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp + 7]
call fcn.14000b0b0
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x27]
call fcn.140030dc0
mov rbx, rax
lea rax, [rbp - 0x19]
cmp rax, rbx
je 0x140031646
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140031618
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400317d7
call fcn.140036990
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 7
mov word [rbp - 0x19], si
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 9], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x140031686
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031681
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400317d7
call fcn.140036990
lea rbx, [rdi + 0x20]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140031697
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x19]
call fcn.14000b0b0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp qword [rbx + 0x18], 8
jb 0x1400316d0
mov rbx, qword [rbx]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400316e0
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.14000b0b0
lea rdx, [rdi + 0x40]
cmp qword [rdx + 0x18], 8
jb 0x140031705
mov rdx, qword [rdx]
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x14003175a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140031755
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400317dd
call fcn.140036990
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 7
mov word [rbp - 0x19], si
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x1400317a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400317a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400317cb
call fcn.140036990
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140036fa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140059e3c
nop
call fcn.140059e3c
nop
call fcn.140059e3c
nop
call fcn.140059e3c
int3