Function at 0x14000df3c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r12d, r12d
lea rdi, [rcx + 0x10]
test dword [rcx], 0x10000000
mov r15d, edx
mov rbx, rcx
mov ebp, r12d
mov r13d, 0x104
je 0x14000dfec
mov edx, r13d
lea ebp, [r12 + 1]
mov rcx, rdi
mov rsi, 0xffffffff80000002
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov dword [rsp + 0x80], eax
dec eax
cmp eax, 0x103
jbe 0x14000e03d
cmp dword [0x1401e3f88], r12d
je 0x14000dfc8
cmp dword [0x1401e3f90], r12d
je 0x14000dfc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_windows_folder_path_for_queue:__u_r_n
call fcn.140025c48
mov rax, qword [0x14021eec0]
lea rcx, [0x14021eec0]
mov edx, 0x30303030
mov rax, qword [rax + 8]
call qword [case.0x14000c75c.0]
xor eax, eax
jmp 0x14000e1ce
mov r9d, 1
mov rdx, rdi
xor ecx, ecx
mov rsi, 0xffffffff80000001
lea r8d, [r9 + 0x1b]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x14000e03d
cmp dword [0x1401e3f88], r12d
je 0x14000dfc8
cmp dword [0x1401e3f90], r12d
je 0x14000dfc8
cmp word [0x1402321a0], r12w
je 0x14000dfc8
lea rdx, [0x1402321a0]
lea rcx, str.Failed_to_get_folder_path_for_queue_r_n
call fcn.140025aa4
jmp 0x14000dfc8
mov r8d, r13d
lea rcx, str.PCHealthErrorRep_
mov rdx, rdi
call fcn.14003348c
lea rax, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea r14, [rbx + 8]
mov qword [rsp + 0x38], r14
lea rdx, str.SoftwareMicrosoftPCHealthErrorReportingDW
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x2001f
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14000e0c3
cmp dword [0x1401e3f88], r12d
je 0x14000e0c0
cmp dword [0x1401e3f90], r12d
je 0x14000e0c0
cmp word [0x1402321a0], r12w
je 0x14000e0c0
lea rdx, [0x1402321a0]
lea rcx, str.Failed_to_open_reg_key_for_queue_r_n
call fcn.140025aa4
mov qword [r14], r12
mov edx, dword [rbx]
and edx, 7
mov eax, edx
sub eax, 1
je 0x14000e17e
sub eax, 1
je 0x14000e140
cmp eax, 2
je 0x14000e108
cmp dword [0x1401e3f88], r12d
je 0x14000dfe5
cmp dword [0x1401e3f90], r12d
je 0x14000dfe5
lea rcx, str.Failed_to_set_info__bad_queue_type:__u
call fcn.140025c48
jmp 0x14000dfe5
mov r8d, r13d
lea rcx, str.QHeadles
mov rdx, rdi
call fcn.14003348c
cmp dword [0x1401e3f38], r12d
lea rcx, str.DWAdminQueueHeadless
mov eax, 0x32
cmovne eax, dword [0x1401e3f40]
mov dword [rbx + 4], eax
lea rax, str.DWQueueHeadless
jmp 0x14000e176
mov r8d, r13d
lea rcx, str.QSignoff
mov rdx, rdi
call fcn.14003348c
cmp dword [0x1401e3f38], r12d
lea rcx, str.DWAdminQueueSignOff
mov eax, 0x32
cmovne eax, dword [0x1401e3f40]
mov dword [rbx + 4], eax
lea rax, str.DWQueueSignOff
test ebp, ebp
cmovne rax, rcx
jmp 0x14000e1ad
mov r8d, r13d
lea rcx, str.QRegular
mov rdx, rdi
call fcn.14003348c
cmp dword [0x1401e3f38], r12d
mov eax, 0x32
cmovne eax, dword [0x1401e3f40]
mov dword [rbx + 4], eax
lea rax, str.DWQueueRegular
mov qword [rbx + 0x220], rax
test r15d, r15d
je 0x14000e1c9
mov rcx, rbx
call fcn.14000dc7c
test eax, eax
je 0x14000dfe5
mov eax, 1
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret