Function at 0x1400047e0
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 [0x140022010]
xor rax, rsp
mov qword [rbp + 0x180], rax
movzx ebx, cl
mov edx, ebx
lea rcx, str.FastStartupCheck_isPrivateRuntime_d__n
call fcn.140003708
mov edi, 1
xor r15d, r15d
test bl, bl
je 0x1400048d6
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.140001a30
lea rcx, [rsp + 0x60]
call fcn.1400087cc
mov rdx, qword [rsp + 0x70]
lea rcx, str.COMPLUS_DEFAULTVERSION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, edi
je 0x1400048bc
lea rcx, str.Unable_to_set_COMPLUS_DEFAULTVERSION_in_a_private_runtime__falling_back_to_slow_path_n
call fcn.140003708
nop
test byte [rsp + 0x68], 8
je 0x140004ac8
mov rcx, qword [rsp + 0x70]
call fcn.140005218
jmp 0x140004ac8
test byte [rsp + 0x68], 8
je 0x14000499a
mov rcx, qword [rsp + 0x70]
call fcn.140005218
jmp 0x14000499a
call fcn.140004418
test al, al
je 0x14000499a
lea rcx, str.Framework_needs_repair_n
call fcn.140003708
mov byte [0x140023054], 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 [0x1400220b8]
test ecx, ecx
je 0x140004928
mov rcx, qword [0x1400220b0]
test rcx, rcx
je 0x140004925
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r15d
mov qword [0x1400220b0], rsi
or rbx, 0xffffffffffffffff
cmp rsi, rbx
cmovne ecx, edi
mov dword [0x1400220b8], 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 [0x1400220d8]
test ecx, ecx
je 0x140004971
mov rcx, qword [0x1400220d0]
test rcx, rcx
je 0x14000496e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r15d
mov qword [0x1400220d0], rsi
cmp rsi, rbx
cmovne ecx, edi
mov dword [0x1400220d8], ecx
lea rcx, str.Framework_repair_allowed_n
call fcn.140003708
call fcn.140004338
jmp 0x140004ac8
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.140005ef0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
lea rax, [0x140012be8]
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.140005ff4
test eax, eax
js 0x140004a6f
cmp dword [rsp + 0x20], r15d
jne 0x140004a6f
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, str.ngenrootstorelock.dat
lea rcx, [rsp + 0x28]
call fcn.140005ff4
test eax, eax
js 0x140004a66
cmp dword [rsp + 0x20], r15d
jne 0x140004a66
call fcn.140004508
test al, al
jne 0x140004a7c
lea rcx, str.NGen_Service_has_no_work_n
call fcn.140003708
mov byte [0x140023054], r15b
call fcn.140004338
jmp 0x140004a7c
lea rcx, str.Unable_to_acquire_root_store_lock__falling_back_to_slow_path_n
jmp 0x140004a76
lea rcx, str.Unable_to_acquire_NGen_Service_lock__falling_back_to_slow_path_n
call fcn.140003708
nop
mov qword [rsp + 0x28], rdi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x140004a96
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 0x140004ab0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test r14d, r14d
je 0x140004ac8
test rsi, rsi
je 0x140004ac3
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.14000db20
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