Function at 0x180016bb0
Capabilities:
Get common file path
Get session user name
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe80
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x180129050]
xor rax, rsp
mov qword [rsp + 0xe70], rax
mov dword [rsp + 0x50], 0
xor eax, eax
mov word [rsp + 0x670], ax
lea rax, [rsp + 0x672]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov dword [rsp + 0x54], 0x400
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x670]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rcx, [rsp + 0x1c8]
call fcn.180002c00
nop
lea rcx, [rsp + 0x1a8]
call fcn.180002c00
nop
xor eax, eax
mov word [rsp + 0x250], ax
lea rax, [rsp + 0x252]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov word [rsp + 0x460], ax
lea rax, [rsp + 0x462]
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 + 0x460]
lea rcx, [rsp + 0x250]
call qword [sym.imp.MSVCR120.dll__wsplitpath_s]
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x1a8]
call fcn.1800017e0
lea rcx, [rsp + 0x1a8]
call fcn.180017260
movzx eax, al
test eax, eax
jne 0x180016d1e
xor r8d, r8d
lea rdx, [0x18010fae4]
lea rcx, [rsp + 0x1a8]
call fcn.1800112e0
cmp rax, 0xffffffffffffffff
jne 0x180016d32
lea rdx, [0x180110374]
lea rcx, [rsp + 0x1a8]
call fcn.1800017e0
lea rax, [rsp + 0x128]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x670]
mov rcx, qword [rsp + 0xb8]
call fcn.1800033b0
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xd8]
call fcn.180016a50
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x208]
call fcn.180010c10
nop
lea rcx, [rsp + 0x208]
call fcn.180003250
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x1a8]
call fcn.180003250
mov rcx, qword [rsp + 0xb0]
mov r9, rcx
mov r8, rax
lea rdx, str._sProgramDataMicrosoft_Host_s
lea rcx, [rsp + 0x1e8]
call fcn.180010a00
nop
lea rax, [rsp + 0x108]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x1e8]
mov rcx, qword [rsp + 0x90]
call fcn.180003340
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.1800116a0
movzx eax, al
test eax, eax
jne 0x180016e66
lea rax, [rsp + 0x188]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x1e8]
mov rcx, qword [rsp + 0xa0]
call fcn.180003340
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.18000f930
mov rcx, qword [rsp + 0xe98]
call fcn.180003250
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x208]
call fcn.180003250
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x1a8]
call fcn.180003250
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x88]
mov r9, rcx
mov r8, rax
lea rdx, str._sProgramDataMicrosoft_Host_s_s
lea rcx, [rsp + 0x228]
call fcn.180010a00
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x1c8]
call fcn.180007840
lea rcx, [rsp + 0x228]
call fcn.1800028a0
lea rcx, [rsp + 0x1c8]
call fcn.180011710
lea rax, [rsp + 0x168]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0xa8]
call fcn.180003340
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1800116a0
movzx eax, al
test eax, eax
jne 0x180016f87
lea rax, [rsp + 0x148]
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0xc8]
call fcn.180003340
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18000f930
lea rcx, [rsp + 0x1e8]
call fcn.180003250
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0xe90]
call fcn.18000fbb0
mov eax, dword [rsp + 0x50]
or eax, 1
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x1e8]
call fcn.1800028a0
nop
lea rcx, [rsp + 0x208]
call fcn.1800028a0
nop
lea rcx, [rsp + 0x1a8]
call fcn.1800028a0
nop
lea rcx, [rsp + 0x1c8]
call fcn.1800028a0
nop
mov rcx, qword [rsp + 0xe98]
call fcn.1800028a0
mov rax, qword [rsp + 0xe90]
mov rcx, qword [rsp + 0xe70]
xor rcx, rsp
call fcn.180107750
add rsp, 0xe80
pop rdi
ret