Function at 0x140030208
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

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 [0x140051580]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
and dword [rsp + 0x5c], 0
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallWindows_Media_Connect
mov esi, 0x101
mov dword [rsp + 0x60], 1
mov r15, 0xffffffff80000002
mov dword [rsp + 0x58], 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]
nop dword [rax + rax]
test eax, eax
je 0x1400302c0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 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]
nop dword [rax + rax]
test eax, eax
jne 0x1400304ba
mov esi, 4
lea rdx, str.Uninstalling_legacy_WMC_install._r_n
mov ecx, esi
call fcn.140018e9c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400304ac
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x5c], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.UninstallString
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140030390
mov ecx, dword [rsp + 0x60]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x140030390
lea ebx, [rsi - 3]
cmp ecx, 2
jne 0x140030390
mov r8d, 0x104
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x14003036c
lea r8, [rbp + 0x180]
mov edx, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400103e4
test eax, eax
jns 0x140030390
lea rdx, str.Unable_to_find_WMC_uninstall_information:_skipping._r_n
mov ecx, esi
call fcn.140018e9c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400304ba
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x1400304ac
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
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]
nop dword [rax + rax]
test eax, eax
jne 0x140030429
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
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]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp dword [rsp + 0x58], 2
jne 0x140030435
call fcn.140030b54
lea rdx, str.msiexec.exe
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x1400304a8
lea rdx, [0x140049008]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x1400304a8
mov r9, rax
lea r8, str.msiexec.exe__uninstall__s__qn__norestart
mov edx, 0x208
lea rcx, [rbp + 0x390]
call fcn.140010420
test eax, eax
js 0x1400304a8
mov r9d, 0xffff
lea rdx, [rbp + 0x390]
mov r8d, 1
xor ecx, ecx
call fcn.140019884
mov eax, ebx
jmp 0x1400304bc
lea rdx, str.Unable_to_find_WMC_uninstall_information:_skipping._r_n
mov ecx, esi
call fcn.140018e9c
xor eax, eax
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140001660
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