Function at 0x140006094
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.140004fac
mov edi, 1
xor r15d, r15d
test bl, bl
je 0x1400061a2
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.140004680
lea rcx, [rsp + 0x60]
call fcn.140009680
mov rdx, qword [rsp + 0x70]
lea rcx, str.COMPLUS_DEFAULTVERSION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, edi
je 0x14000617c
lea rcx, str.Unable_to_set_COMPLUS_DEFAULTVERSION_in_a_private_runtime__falling_back_to_slow_path_n
call fcn.140004fac
nop
test byte [rsp + 0x68], 8
je 0x140006394
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x140006394
xor ecx, ecx
call qword [0x14001a008]
jmp 0x140006394
test byte [rsp + 0x68], 8
je 0x140006266
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x140006266
xor ecx, ecx
call qword [0x14001a008]
jmp 0x140006266
call fcn.140005cb4
test al, al
je 0x140006266
lea rcx, str.Framework_needs_repair_n
call fcn.140004fac
mov byte [0x14001b034], 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 [0x14001a070]
test ecx, ecx
je 0x1400061f4
mov rcx, qword [0x14001a068]
test rcx, rcx
je 0x1400061f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r15d
mov qword [0x14001a068], rsi
or rbx, 0xffffffffffffffff
cmp rsi, rbx
cmovne ecx, edi
mov dword [0x14001a070], 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 [0x14001a048]
test ecx, ecx
je 0x14000623d
mov rcx, qword [0x14001a040]
test rcx, rcx
je 0x14000623a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r15d
mov qword [0x14001a040], rsi
cmp rsi, rbx
cmovne ecx, edi
mov dword [0x14001a048], ecx
lea rcx, str.Framework_repair_allowed_n
call fcn.140004fac
call fcn.140005be4
jmp 0x140006394
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.14000ac20
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
lea rax, fcn.140004bf0
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.14000ad10
test eax, eax
js 0x14000633b
cmp dword [rsp + 0x20], r15d
jne 0x14000633b
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, str.ngenrootstorelock.dat
lea rcx, [rsp + 0x28]
call fcn.14000ad10
test eax, eax
js 0x140006332
cmp dword [rsp + 0x20], r15d
jne 0x140006332
call fcn.140005db8
test al, al
jne 0x140006348
lea rcx, str.NGen_Service_has_no_work_n
call fcn.140004fac
mov byte [0x14001b034], r15b
call fcn.140005be4
jmp 0x140006348
lea rcx, str.Unable_to_acquire_root_store_lock__falling_back_to_slow_path_n
jmp 0x140006342
lea rcx, str.Unable_to_acquire_NGen_Service_lock__falling_back_to_slow_path_n
call fcn.140004fac
nop
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x140006362
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 0x14000637c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test r14d, r14d
je 0x140006394
test rsi, rsi
je 0x14000638f
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.140001680
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