Function at 0x1400388e8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140076010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor edi, edi
mov qword [rsp + 0x58], rcx
mov r12, rcx
mov qword [rsp + 0x70], rdx
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x4c], edi
mov qword [rsp + 0x40], rcx
mov r14, r8
mov qword [rsp + 0x38], rcx
mov rax, rdx
mov qword [rsp + 0x50], rcx
mov r15d, edi
mov dword [rsp + 0x48], 4
mov r13d, edi
mov dword [rsp + 0x34], edi
mov esi, edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x60], rdi
test r8, r8
je 0x14003896d
mov dword [r8], 1
test rax, rax
je 0x140038dc7
inc r15d
cmp r15d, 1
jne 0x14003898f
lea rdi, [0x14004d500]
lea rbx, str._T_d__s:_Retrieving_list_of_MultiMsi_Package_codes_under_HKCU_ARP_Uninstall_regkey_for_Product__s
jmp 0x1400389a7
cmp r15d, 2
jne 0x140038d74
lea rdi, [0x14004d288]
lea rbx, str._T_d__s:_Retrieving_list_of_MultiMsi_Package_codes_under_HKLM_ARP_Uninstall_regkey_for_Product__s
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9, r12
lea r8, str.GetMultiMsiPackageCodes
mov edx, eax
mov rcx, rbx
call fcn.140035fec
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400389d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or qword [rsp + 0x40], 0xffffffffffffffff
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1185]
xor edi, edi
mov ebx, eax
test eax, eax
je 0x140038a16
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, ebx
lea r8, str.GetMultiMsiPackageCodes
mov edx, eax
lea rcx, str._T_d__s:_Failed_to_open_ARP_Uninstall_regkey__dwError_d
call fcn.140035fec
jmp 0x140038d70
mov r12d, 1
xor edx, edx
mov rcx, qword [rsp + 0x40]
lea r8, [rbp - 0x80]
mov r9d, 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140038d6b
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140038a52
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or qword [rsp + 0x38], 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov ecx, 0x20019
mov dword [rsp + 0x30], edi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2098]
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov r9d, eax
mov rcx, rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140038d60
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.ProductCodes
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140038d60
test rsi, rsi
jne 0x140038ad2
mov ecx, dword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov rsi, rax
jmp 0x140038af0
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rsi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2860]
neg al
sbb rsi, rsi
and rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.ProductCodes
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140038d60
cmp dword [rsp + 0x34], 7
jne 0x140038d60
xor edx, edx
mov rdi, rsi
mov bl, dl
test rsi, rsi
je 0x140038d5e
cmp dx, word [rdi]
je 0x140038cbb
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140038b49
cmp eax, 0x26
jne 0x140038d2d
cmp word [rdi], 0x7b
jne 0x140038d2d
cmp word [rdi + 0x4a], 0x7d
jne 0x140038d2d
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
test eax, eax
jne 0x140038c9c
cmp r13d, 1
jbe 0x140038bb9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9, rdi
lea r8, str.GetMultiMsiPackageCodes
mov edx, eax
lea rcx, str._T_d__s:_Found_more_than_one_MultiMsi_Product_with_same_Global_ProductCode:__s
call fcn.140035fec
mov ecx, 0x3ca691
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_154]
xor edx, edx
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140038bd2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or qword [rsp + 0x50], 0xffffffffffffffff
xor edx, edx
test r14, r14
je 0x140038c97
mov rbx, qword [rsp + 0x38]
mov ecx, 0x20019
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2098]
xor r8d, r8d
lea rdx, str.Managed
mov r9d, eax
mov rcx, rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
jne 0x140038c97
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.FeaturesAligned
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140038c60
cmp dword [rsp + 0x34], 4
jne 0x140038c60
cmp dword [rsp + 0x48], 4
jne 0x140038c60
mov eax, dword [rsp + 0x4c]
mov ebx, eax
mov dword [r14], eax
jmp 0x140038c66
and dword [r14], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x14004cfb8]
test ebx, ebx
lea r9, str.not
mov edx, eax
cmove r9, rcx
lea r8, str.GetMultiMsiPackageCodes
lea rcx, str._T_d__s:_Product_is_managed_via_DeployCA__Feature_Option_Alignment_has__sbeen_performed.
call fcn.140035fec
xor edx, edx
inc r13d
mov bl, 1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140038ca0
inc eax
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
test rdi, rdi
jne 0x140038b3c
xor edi, edi
test bl, bl
je 0x140038d60
mov rbx, rsi
cmp di, word [rbx]
je 0x140038d60
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140038cd5
movsxd rdx, eax
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_138]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140038d86
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x60]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1520]
cmp eax, 0xffffffff
je 0x140038d7b
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140038d14
inc eax
movsxd rcx, eax
lea rbx, [rbx + rcx*2]
test rbx, rbx
jne 0x140038cc8
jmp 0x140038d60
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9, rdi
lea r8, str.GetMultiMsiPackageCodes
mov edx, eax
lea rcx, str._T_d__s:_Found_at_least_one_invalid_packagecode__s__skipping_ARP_entry_for_:_s
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call fcn.140035fec
xor edi, edi
mov bl, dil
jmp 0x140038cbd
xor edi, edi
mov edx, r12d
inc r12d
jmp 0x140038a1e
mov r12, qword [rsp + 0x58]
cmp r15d, 2
ja 0x140038d86
jmp 0x140038976
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov rcx, qword [rsp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x140038d97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140038da8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140038db9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140038dc7
mov rcx, rsi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400443a0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret