Function at 0x140005eec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
movzx ebx, cl
mov edx, ebx
lea rcx, str.FastStartupCheck_isPrivateRuntime_d__n
call fcn.140004e84
mov edi, 1
xor r15d, r15d
test bl, bl
je 0x140005fe2
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x64], 0x200
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 2
mov rax, qword [rsp + 0x70]
mov word [rax], r15w
lea rcx, [rsp + 0x60]
call fcn.1400045b4
lea rcx, [rsp + 0x60]
call fcn.1400096f0
mov rdx, qword [rsp + 0x70]
lea rcx, str.COMPLUS_DEFAULTVERSION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, edi
je 0x140005fc8
lea rcx, str.Unable_to_set_COMPLUS_DEFAULTVERSION_in_a_private_runtime__falling_back_to_slow_path_n
call fcn.140004e84
nop
test byte [rsp + 0x68], 8
je 0x1400061d4
mov rcx, qword [rsp + 0x70]
call fcn.1400010a0
jmp 0x1400061d4
test byte [rsp + 0x68], 8
je 0x1400060a6
mov rcx, qword [rsp + 0x70]
call fcn.1400010a0
jmp 0x1400060a6
call fcn.140005b24
test al, al
je 0x1400060a6
lea rcx, str.Framework_needs_repair_n
call fcn.140004e84
mov byte [0x14001c01c], dil
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov ecx, dword [0x14001b078]
test ecx, ecx
je 0x140006034
mov rcx, qword [0x14001b070]
test rcx, rcx
je 0x140006031
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r15d
mov qword [0x14001b070], rsi
or rbx, 0xffffffffffffffff
cmp rsi, rbx
cmovne ecx, edi
mov dword [0x14001b078], ecx
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov ecx, dword [0x14001b048]
test ecx, ecx
je 0x14000607d
mov rcx, qword [0x14001b040]
test rcx, rcx
je 0x14000607a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r15d
mov qword [0x14001b040], rsi
cmp rsi, rbx
cmovne ecx, edi
mov dword [0x14001b048], ecx
lea rcx, str.Framework_repair_allowed_n
call fcn.140004e84
call fcn.140005a54
jmp 0x1400061d4
xor r9d, r9d
mov r8d, edi
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], r15d
mov r14d, r15d
or rbx, 0xffffffffffffffff
cmp rax, rbx
cmovne r14d, edi
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x20], r15d
lea rdi, fcn.14000ac5c
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
lea rax, [0x140012db8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, str.ngenservicelock.dat
lea rcx, [rsp + 0x38]
call fcn.14000ad4c
test eax, eax
js 0x14000617b
cmp dword [rsp + 0x20], r15d
jne 0x14000617b
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, str.ngenrootstorelock.dat
lea rcx, [rsp + 0x28]
call fcn.14000ad4c
test eax, eax
js 0x140006172
cmp dword [rsp + 0x20], r15d
jne 0x140006172
call fcn.140005c14
test al, al
jne 0x140006188
lea rcx, str.NGen_Service_has_no_work_n
call fcn.140004e84
mov byte [0x14001c01c], r15b
call fcn.140005a54
jmp 0x140006188
lea rcx, str.Unable_to_acquire_root_store_lock__falling_back_to_slow_path_n
jmp 0x140006182
lea rcx, str.Unable_to_acquire_NGen_Service_lock__falling_back_to_slow_path_n
call fcn.140004e84
nop
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x1400061a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x1400061bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test r14d, r14d
je 0x1400061d4
test rsi, rsi
je 0x1400061cf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x50], r15d
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140001460
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret