Function at 0x140005d50
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.140004cc0
mov edi, 1
xor r15d, r15d
test bl, bl
je 0x140005e46
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.1400043f4
lea rcx, [rsp + 0x60]
call fcn.1400095ac
mov rdx, qword [rsp + 0x70]
lea rcx, str.COMPLUS_DEFAULTVERSION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, edi
je 0x140005e2c
lea rcx, str.Unable_to_set_COMPLUS_DEFAULTVERSION_in_a_private_runtime__falling_back_to_slow_path_n
call fcn.140004cc0
nop
test byte [rsp + 0x68], 8
je 0x140006038
mov rcx, qword [rsp + 0x70]
call fcn.140001094
jmp 0x140006038
test byte [rsp + 0x68], 8
je 0x140005f0a
mov rcx, qword [rsp + 0x70]
call fcn.140001094
jmp 0x140005f0a
call fcn.140005988
test al, al
je 0x140005f0a
lea rcx, str.Framework_needs_repair_n
call fcn.140004cc0
mov byte [0x14001b05c], 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 0x140005e98
mov rcx, qword [0x14001a068]
test rcx, rcx
je 0x140005e95
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 0x140005ee1
mov rcx, qword [0x14001a040]
test rcx, rcx
je 0x140005ede
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.140004cc0
call fcn.1400058b8
jmp 0x140006038
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.14000aaac
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
lea rax, fcn.140004930
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.14000ab9c
test eax, eax
js 0x140005fdf
cmp dword [rsp + 0x20], r15d
jne 0x140005fdf
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, str.ngenrootstorelock.dat
lea rcx, [rsp + 0x28]
call fcn.14000ab9c
test eax, eax
js 0x140005fd6
cmp dword [rsp + 0x20], r15d
jne 0x140005fd6
call fcn.140005a78
test al, al
jne 0x140005fec
lea rcx, str.NGen_Service_has_no_work_n
call fcn.140004cc0
mov byte [0x14001b05c], r15b
call fcn.1400058b8
jmp 0x140005fec
lea rcx, str.Unable_to_acquire_root_store_lock__falling_back_to_slow_path_n
jmp 0x140005fe6
lea rcx, str.Unable_to_acquire_NGen_Service_lock__falling_back_to_slow_path_n
call fcn.140004cc0
nop
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x140006006
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 0x140006020
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test r14d, r14d
je 0x140006038
test rsi, rsi
je 0x140006033
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