Function at 0x1800166e0
Capabilities:
Get common file path
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5e0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x180127050]
xor rax, rsp
mov qword [rsp + 0x5d0], rax
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x150]
call fcn.180002b70
nop
lea rcx, [rsp + 0x130]
call fcn.180002b70
nop
xor eax, eax
mov word [rsp + 0x1b0], ax
lea rax, [rsp + 0x1b2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov word [rsp + 0x3c0], ax
lea rax, [rsp + 0x3c2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCR120.dll__wsplitpath_s]
lea rdx, [rsp + 0x3c0]
lea rcx, [rsp + 0x130]
call fcn.180001750
lea rcx, [rsp + 0x130]
call fcn.180016c10
movzx eax, al
test eax, eax
jne 0x180016815
xor r8d, r8d
lea rdx, [0x18010e9cc]
lea rcx, [rsp + 0x130]
call fcn.180011200
cmp rax, 0xffffffffffffffff
jne 0x180016829
lea rdx, [0x18010f364]
lea rcx, [rsp + 0x130]
call fcn.180001750
lea rcx, [rsp + 0x130]
call fcn.1800031c0
mov r8, rax
lea rdx, str._sProgramDataMicrosoft_Host
lea rcx, [rsp + 0x170]
call fcn.180010920
nop
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0xa0]
call fcn.1800032b0
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.1800115b0
movzx eax, al
test eax, eax
jne 0x1800168bd
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x88]
call fcn.1800032b0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.18000f850
mov rcx, qword [rsp + 0x5f8]
call fcn.1800031c0
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x130]
call fcn.1800031c0
mov rcx, qword [rsp + 0x98]
mov r9, rcx
mov r8, rax
lea rdx, str._sProgramDataMicrosoft_Host_s
lea rcx, [rsp + 0x190]
call fcn.180010920
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x150]
call fcn.180007760
lea rcx, [rsp + 0x190]
call fcn.180002810
lea rcx, [rsp + 0x150]
call fcn.180011620
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x70]
call fcn.1800032b0
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.1800115b0
movzx eax, al
test eax, eax
jne 0x1800169bc
lea rax, [rsp + 0x110]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x90]
call fcn.1800032b0
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.18000f850
lea rcx, [rsp + 0x170]
call fcn.1800031c0
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x5f0]
call fcn.18000fad0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x170]
call fcn.180002810
nop
lea rcx, [rsp + 0x130]
call fcn.180002810
nop
lea rcx, [rsp + 0x150]
call fcn.180002810
nop
mov rcx, qword [rsp + 0x5f8]
call fcn.180002810
mov rax, qword [rsp + 0x5f0]
mov rcx, qword [rsp + 0x5d0]
xor rcx, rsp
call fcn.180106980
add rsp, 0x5e0
pop rdi
ret