Function at 0x14002f1c4
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r15
push rbp
lea rbp, [rax - 0x5b8]
sub rsp, 0x6b0
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
and dword [rsp + 0x64], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallWindows_Media_Connect
mov esi, 0x101
mov dword [rsp + 0x68], 1
mov r15, 0xffffffff80000002
mov dword [rsp + 0x60], 1
mov r9d, esi
mov qword [rsp + 0x20], rax
mov rcx, r15
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002f270
lea rax, [rsp + 0x58]
mov dword [rsp + 0x60], 2
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallWMCSetup
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002f4f4
cmp qword [0x140050310], 0xffffffffffffffff
mov esi, 4
jne 0x14002f286
mov edx, esi
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14002f2bc
cmp dword [0x1400516e0], esi
jl 0x14002f2bc
and dword [rsp + 0x50], ebx
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], rbx
lea rdx, str.Uninstalling_legacy_WMC_install._r_n
mov r8d, 0x22
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002f4ab
lea rax, [rsp + 0x64]
mov dword [rsp + 0x64], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.UninstallString
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002f3b3
mov ecx, dword [rsp + 0x68]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14002f3b3
mov ebx, 1
cmp ecx, 2
jne 0x14002f3b3
mov r8d, 0x104
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14002f357
lea r8, [rbp + 0x180]
mov edx, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400014f8
test eax, eax
jns 0x14002f3b3
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14002f378
mov edx, esi
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14002f3a3
cmp dword [0x1400516e0], esi
jl 0x14002f3a3
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, str.Unable_to_find_WMC_uninstall_information:_skipping._r_n
mov r8d, 0x35
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002f4f4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14002f4ab
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x20106
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002f434
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], esi
lea rdx, str.Migrated_NSS_Version
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x60], 2
jne 0x14002f440
call fcn.14002e8fc
lea rdx, str.msiexec.exe
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x14002f4a7
lea rdx, [0x140047958]
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x14002f4a7
mov r9, rax
lea r8, str.msiexec.exe__uninstall__s__qn__norestart
mov edx, 0x208
lea rcx, [rbp + 0x390]
call fcn.1400017b4
test eax, eax
js 0x14002f4a7
mov r9d, 0xffff
lea rdx, [rbp + 0x390]
mov r8d, 1
xor ecx, ecx
call fcn.140019648
mov eax, ebx
jmp 0x14002f4f6
cmp qword [0x140050310], 0xffffffffffffffff
jne 0x14002f4bc
mov edx, esi
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14002f4f4
cmp dword [0x1400516e0], esi
jl 0x14002f4f4
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, str.Unable_to_find_WMC_uninstall_information:_skipping._r_n
mov r8d, 0x35
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret