Function at 0x18005843c
Capabilities:
Get windows directory from kuser_shared_data
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rdi, rcx
mov ebx, 0x20a
mov r8d, ebx
lea rcx, [rbp + 0x1d0]
xor edx, edx
call sub.ntdll.dll_memset
mov r8d, ebx
lea rcx, [rbp - 0x40]
xor edx, edx
call sub.ntdll.dll_memset
xor esi, esi
cmp dword [rdi + 4], 0x210
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
jne 0x18005877b
lea r14d, [rsi + 1]
cmp dword [rdi], r14d
jne 0x18005877b
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x60]
call fcn.1800582c0
mov ebx, eax
test eax, eax
jns 0x1800584f3
lea r9, str.Failed_to_hash_File_path___x_
lea r8d, [rsi + 0x79]
lea rdx, str.AeWERQueryFileInfo
mov dword [rsp + 0x20], eax
mov ecx, r14d
call fcn.18001188c
jmp 0x180058780
lea rax, str.AppCompatPrograms
mov r9d, 0x7ffe0030
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x105
lea rcx, [rbp - 0x40]
call fcn.1800583b8
mov ebx, eax
test eax, eax
jns 0x18005852f
lea r9, str.StringCchPrintf_for_StoreDirectory___x_
mov r8d, 0x87
jmp 0x1800584db
lea r8, [rbp - 0x40]
lea rcx, [rbp + 0x1d0]
call fcn.1800581f4
mov ebx, eax
test eax, eax
jns 0x180058554
lea r9, str.AeGetPersistedLocation_failed___x_
mov r8d, 0x92
jmp 0x1800584db
lea rax, str.Amcache.hve
mov edx, 0x104
lea r9, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x3e0]
call fcn.1800583b8
mov ebx, eax
test eax, eax
jns 0x180058597
lea r9, str.StringCchPrintf___x_
mov r8d, 0xa0
jmp 0x1800584db
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, 0x20019
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegLoadAppKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1800585f8
lea r9, str.RegLoadAppKey_failed___d_
mov r8d, 0xab
lea rdx, str.AeWERQueryFileInfo
mov dword [rsp + 0x20], ebx
mov ecx, r14d
call fcn.18001188c
test ebx, ebx
jle 0x180058780
movzx ebx, bx
or ebx, 0x80070000
jmp 0x180058780
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Root
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x18005863d
cmp eax, 2
je 0x1800585e2
lea r9, str.Failed_to_open_file_key___d_
mov r8d, 0xb8
jmp 0x1800585cf
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.InventoryApplicationFile
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x180058689
cmp eax, 2
je 0x1800585e2
lea r9, str.Failed_to_open_file_key___d_
mov r8d, 0xc2
jmp 0x1800585cf
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
lea r8, str.ProgramId
mov r9d, 2
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov r14d, 3
test eax, 0xfffffffd
je 0x1800586f9
lea r9, str.Failed_to_get_program_id___d_
mov dword [rsp + 0x20], eax
mov r8d, 0xd7
lea rdx, str.AeWERQueryFileInfo
mov ecx, r14d
call fcn.18001188c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, str.FileId
add rdi, 0x110
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, 0xfffffffd
je 0x180058766
lea r9, str.Failed_to_get_file_id___d_
mov dword [rsp + 0x20], eax
mov r8d, 0xea
lea rdx, str.AeWERQueryFileInfo
mov ecx, r14d
call fcn.18001188c
cmp word [rdi], si
jne 0x180058777
cmp word [rbx], si
jne 0x180058777
mov ebx, 0x80070002
jmp 0x180058780
mov ebx, esi
jmp 0x180058780
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180058796
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800587ac
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800587c2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret