Function at 0x140006410
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.140005328
mov edi, 1
xor r15d, r15d
test bl, bl
je 0x140006506
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.1400049d8
lea rcx, [rsp + 0x60]
call fcn.14000a0b8
mov rdx, qword [rsp + 0x70]
lea rcx, str.COMPLUS_DEFAULTVERSION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, edi
je 0x1400064ec
lea rcx, str.Unable_to_set_COMPLUS_DEFAULTVERSION_in_a_private_runtime__falling_back_to_slow_path_n
call fcn.140005328
nop
test byte [rsp + 0x68], 8
je 0x1400066f8
mov rcx, qword [rsp + 0x70]
call fcn.1400011b0
jmp 0x1400066f8
test byte [rsp + 0x68], 8
je 0x1400065ca
mov rcx, qword [rsp + 0x70]
call fcn.1400011b0
jmp 0x1400065ca
call fcn.140006048
test al, al
je 0x1400065ca
lea rcx, str.Framework_needs_repair_n
call fcn.140005328
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 0x140006558
mov rcx, qword [0x14001b070]
test rcx, rcx
je 0x140006555
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 0x1400065a1
mov rcx, qword [0x14001b040]
test rcx, rcx
je 0x14000659e
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.140005328
call fcn.140005f68
jmp 0x1400066f8
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.14000b630
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
lea rax, [0x140013038]
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.14000b734
test eax, eax
js 0x14000669f
cmp dword [rsp + 0x20], r15d
jne 0x14000669f
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, str.ngenrootstorelock.dat
lea rcx, [rsp + 0x28]
call fcn.14000b734
test eax, eax
js 0x140006696
cmp dword [rsp + 0x20], r15d
jne 0x140006696
call fcn.140006138
test al, al
jne 0x1400066ac
lea rcx, str.NGen_Service_has_no_work_n
call fcn.140005328
mov byte [0x14001c01c], r15b
call fcn.140005f68
jmp 0x1400066ac
lea rcx, str.Unable_to_acquire_root_store_lock__falling_back_to_slow_path_n
jmp 0x1400066a6
lea rcx, str.Unable_to_acquire_NGen_Service_lock__falling_back_to_slow_path_n
call fcn.140005328
nop
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x1400066c6
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 0x1400066e0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test r14d, r14d
je 0x1400066f8
test rsi, rsi
je 0x1400066f3
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.140001030
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