Function at 0x180004444
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
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 [0x18001b030]
xor rax, rsp
mov qword [rbp + 0x180], rax
movzx ebx, cl
mov edx, ebx
lea rcx, str.FastStartupCheck_isPrivateRuntime_d__n
call fcn.1800032a8
mov esi, 1
xor r13d, r13d
test bl, bl
je 0x18000453a
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x64], 0x200
mov dword [rsp + 0x60], 2
mov rax, qword [rsp + 0x70]
mov word [rax], r13w
lea rcx, [rsp + 0x60]
call fcn.180001b2c
lea rcx, [rsp + 0x60]
call fcn.180007508
mov rdx, qword [rsp + 0x70]
lea rcx, str.COMPLUS_DEFAULTVERSION
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp eax, esi
je 0x180004520
lea rcx, str.Unable_to_set_COMPLUS_DEFAULTVERSION_in_a_private_runtime__falling_back_to_slow_path_n
call fcn.1800032a8
nop
test byte [rsp + 0x68], 8
je 0x1800047a6
mov rcx, qword [rsp + 0x70]
call fcn.180004e48
jmp 0x1800047a6
test byte [rsp + 0x68], 8
je 0x1800045fe
mov rcx, qword [rsp + 0x70]
call fcn.180004e48
jmp 0x1800045fe
call fcn.180003fd8
test al, al
je 0x1800045fe
lea rcx, str.Framework_needs_repair_n
call fcn.1800032a8
mov byte [0x180020db8], sil
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov ecx, dword [0x1800206d0]
test ecx, ecx
je 0x18000458c
mov rcx, qword [0x1800206c8]
test rcx, rcx
je 0x180004589
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r13d
mov qword [0x1800206c8], rdi
or rbx, 0xffffffffffffffff
cmp rdi, rbx
cmovne ecx, esi
mov dword [0x1800206d0], ecx
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov ecx, dword [0x1800206e0]
test ecx, ecx
je 0x1800045d5
mov rcx, qword [0x1800206d8]
test rcx, rcx
je 0x1800045d2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, r13d
mov qword [0x1800206d8], rdi
cmp rdi, rbx
cmovne ecx, esi
mov dword [0x1800206e0], ecx
lea rcx, str.Framework_repair_allowed_n
call fcn.1800032a8
call fcn.180003f08
jmp 0x1800047a6
xor r9d, r9d
mov r8d, esi
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], r13d
mov r12d, r13d
or rbx, 0xffffffffffffffff
cmp rax, rbx
cmovne r12d, esi
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x20], r13d
lea rsi, fcn.1800096c4
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rbx
lea rax, [0x180011988]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov r8, rdi
lea rdx, str.ngenservicelock.dat
lea rcx, [rsp + 0x38]
call fcn.180009794
test eax, eax
js 0x18000474d
cmp dword [rsp + 0x20], r13d
jne 0x18000474d
lea r9, [rsp + 0x20]
mov r8, rdi
lea rdx, str.ngenrootstorelock.dat
lea rcx, [rsp + 0x28]
call fcn.180009794
test eax, eax
js 0x18000470a
cmp dword [rsp + 0x20], r13d
jne 0x18000470a
call fcn.1800040e0
test al, al
jne 0x1800046d1
lea rcx, str.NGen_Service_has_no_work_n
call fcn.1800032a8
mov byte [0x180020db8], r13b
call fcn.180003f08
nop
mov qword [rsp + 0x28], rsi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x1800046eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x180004705
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
jmp 0x18000478e
lea rcx, str.Unable_to_acquire_root_store_lock__falling_back_to_slow_path_n
call fcn.1800032a8
nop
mov qword [rsp + 0x28], rsi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x180004731
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x18000474b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
jmp 0x18000478e
lea rcx, str.Unable_to_acquire_NGen_Service_lock__falling_back_to_slow_path_n
call fcn.1800032a8
nop
mov qword [rsp + 0x28], rsi
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x180004774
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
je 0x18000478e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test r12d, r12d
je 0x1800047a6
test rdi, rdi
je 0x1800047a1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x50], r13d
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.18000bef0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret