Function at 0x1400029d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x60
call fcn.14000b4d0
sub rsp, rax
xor r14d, r14d
mov dword [rbp + 0x58], 0x104
mov r13, rcx
mov word [r8], r14w
lea rcx, str.MSI.DLL
mov qword [rbp - 0x10], r14
mov esi, r14d
mov qword [rbp - 0x18], r14
mov r12, r8
mov rbx, rdx
xor dil, dil
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
test rax, rax
je 0x140002c46
test rbx, rbx
je 0x140002cc0
cmp word [rbx], si
je 0x140002cc0
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140002a50
lea rsi, [rax*2 + 0x22]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp - 0x20], rax
mov r14, rax
test rax, rax
je 0x140002aca
shr rsi, 1
lea r8, str.SoftwarePolicy_
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, [rbp - 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002ad1
lea rsi, [rax*2 + 0x14]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140002b48
shr rsi, 1
lea r8, str.Software_
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, [rbp - 0x10]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002b50
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
je 0x140002c42
movzx esi, byte [rbp + 0x60]
test dil, dil
jne 0x140002c42
mov rcx, qword [rbp - 0x18]
mov dword [rbp - 0x2c], 4
mov dword [rbp - 0x28], 4
test rcx, rcx
je 0x140002bbe
lea rax, [rbp - 0x2c]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x50]
lea rax, [rbp - 0x30]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002bbe
cmp dword [rbp + 0x50], 4
je 0x140002bf3
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140002c1d
lea rax, [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x50]
lea rax, [rbp - 0x30]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002c1d
cmp dword [rbp + 0x50], 4
jne 0x140002c1d
mov r8d, dword [rbp - 0x30]
lea rax, [rbp + 0x58]
mov byte [rsp + 0x28], sil
mov r9, r12
mov rdx, r13
mov qword [rsp + 0x20], rax
mov rcx, r15
mov dword [rbp + 0x58], 0x104
call fcn.140002880
movzx edi, al
mov rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002c24
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x140002b72
mov rsi, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140002c55
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140002c6e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140002c7d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14, r14
je 0x140002c96
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r15, r15
je 0x140002ca4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0xa0]
movzx eax, dil
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dil, 1
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx ebx, byte [rbp + 0x60]
mov r9, r12
mov r8d, eax
mov byte [rsp + 0x28], bl
lea rax, [rbp + 0x58]
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140002880
test al, al
jne 0x140002c46
mov dword [rbp + 0x58], 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov byte [rsp + 0x28], bl
mov r9, r12
mov r8d, eax
mov rdx, r13
lea rax, [rbp + 0x58]
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140002880
test al, al
jne 0x140002c46
lea rax, [rbp + 0x58]
mov byte [rsp + 0x28], bl
mov r9, r12
mov qword [rsp + 0x20], rax
mov r8d, 0x409
mov dword [rbp + 0x58], 0x104
mov rdx, r13
mov rcx, r15
call fcn.140002880
test al, al
movzx edi, dil
cmove edi, r14d
jmp 0x140002c46