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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156264
mov eax, dword fs:[0]
push eax
sub esp, 0xcd4
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xca0], 0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0xc20], ax
push 0x7fe
push 0
lea ecx, [ebp - 0xc1e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xcac], 0x400
lea edx, [ebp - 0xcac]
push edx
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0xc50]
call fcn.10002fa0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc38]
call fcn.10002fa0
mov byte [ebp - 4], 2
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
add esp, 0x24
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0xc38]
call fcn.10006e00
lea ecx, [ebp - 0xc38]
call fcn.10003ae0
movzx eax, al
test eax, eax
jne 0x100fa27b
push 0
push 0x10177778
lea ecx, [ebp - 0xc38]
call fcn.1000a030
cmp eax, 0xffffffff
jne 0x100fa28b
push 0x101777cc
lea ecx, [ebp - 0xc38]
call fcn.10006e00
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0xcd8], esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcd4], esp
lea edx, [ebp - 0xc20]
push edx
call fcn.10002c60
mov dword [ebp - 0xcb4], eax
push esi
call fcn.100f9e00
add esp, 0x1c
mov dword [ebp - 0xca4], eax
mov eax, dword [ebp - 0xca4]
mov dword [ebp - 0xcb8], eax
lea ecx, [ebp - 0xc80]
call fcn.1007b9b0
add esp, 0x18
mov dword [ebp - 0xcc0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc80]
call fcn.10001960
push eax
lea ecx, [ebp - 0xc38]
call fcn.10001960
push eax
push str._sProgramDataMicrosoft_Host_s
lea ecx, [ebp - 0xc68]
push ecx
call fcn.1007b7d0
add esp, 0x10
mov byte [ebp - 4], 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcc8], esp
lea edx, [ebp - 0xc68]
push edx
call fcn.10003060
mov dword [ebp - 0xcd0], eax
call fcn.1007c400
add esp, 0x18
mov byte [ebp - 0xc99], al
movzx eax, byte [ebp - 0xc99]
test eax, eax
jne 0x100fa371
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcb0], esp
lea edx, [ebp - 0xc68]
push edx
call fcn.10003060
mov dword [ebp - 0xce0], eax
call fcn.100f7ee0
add esp, 0x18
lea ecx, [ebp + 0xc]
call fcn.10001960
push eax
lea ecx, [ebp - 0xc80]
call fcn.10001960
push eax
lea ecx, [ebp - 0xc38]
call fcn.10001960
push eax
push str._sProgramDataMicrosoft_Host_s_s
lea eax, [ebp - 0xc98]
push eax
call fcn.1007b7d0
add esp, 0x14
mov dword [ebp - 0xca8], eax
mov ecx, dword [ebp - 0xca8]
push ecx
lea ecx, [ebp - 0xc50]
call fcn.10002230
lea ecx, [ebp - 0xc98]
call fcn.10002d10
lea ecx, [ebp - 0xc50]
call fcn.1007c460
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xccc], esp
lea edx, [ebp - 0xc50]
push edx
call fcn.10003060
mov dword [ebp - 0xcbc], eax
call fcn.1007c400
add esp, 0x18
mov byte [ebp - 0xc9a], al
movzx eax, byte [ebp - 0xc9a]
test eax, eax
jne 0x100fa443
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcdc], esp
lea edx, [ebp - 0xc50]
push edx
call fcn.10003060
mov dword [ebp - 0xcc4], eax
call fcn.100f7ee0
add esp, 0x18
push 2
lea ecx, [ebp - 0xc68]
call fcn.10001960
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0xc50]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000d5e0
mov ecx, dword [ebp - 0xca0]
or ecx, 1
mov dword [ebp - 0xca0], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc68]
call fcn.10002d10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc80]
call fcn.10002d10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc38]
call fcn.10002d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc50]
call fcn.10002d10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10002d10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret