Function at 0x180016c30
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.1800172e0
movzx eax, al
test eax, eax
jne 0x180016d9e
xor r8d, r8d
lea rdx, [0x18010fafc]
lea rcx, [rsp + 0x1a8]
call fcn.180011360
cmp rax, 0xffffffffffffffff
jne 0x180016db2
lea rdx, [0x1801103a4]
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.180003420
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xd8]
call fcn.180016ad0
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.180010c90
nop
lea rcx, [rsp + 0x208]
call fcn.1800032c0
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x1a8]
call fcn.1800032c0
mov rcx, qword [rsp + 0xb0]
mov r9, rcx
mov r8, rax
lea rdx, str._sProgramDataMicrosoft_Host_s
lea rcx, [rsp + 0x1e8]
call fcn.180010a80
nop
lea rax, [rsp + 0x108]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x1e8]
mov rcx, qword [rsp + 0x90]
call fcn.1800033b0
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.180011720
movzx eax, al
test eax, eax
jne 0x180016ee6
lea rax, [rsp + 0x188]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x1e8]
mov rcx, qword [rsp + 0xa0]
call fcn.1800033b0
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.18000f9b0
mov rcx, qword [rsp + 0xe98]
call fcn.1800032c0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x208]
call fcn.1800032c0
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x1a8]
call fcn.1800032c0
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.180010a80
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x1c8]
call fcn.1800078c0
lea rcx, [rsp + 0x228]
call fcn.1800028a0
lea rcx, [rsp + 0x1c8]
call fcn.180011790
lea rax, [rsp + 0x168]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0xa8]
call fcn.1800033b0
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.180011720
movzx eax, al
test eax, eax
jne 0x180017007
lea rax, [rsp + 0x148]
mov qword [rsp + 0xc8], rax
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0xc8]
call fcn.1800033b0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18000f9b0
lea rcx, [rsp + 0x1e8]
call fcn.1800032c0
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x1c8]
mov rcx, qword [rsp + 0xe90]
call fcn.18000fc30
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.1801077e0
add rsp, 0xe80
pop rdi
ret