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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d0904
mov eax, dword fs:[0]
push eax
sub esp, 0xcd4
mov eax, dword [0x100e7034]
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.10001de0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc38]
call fcn.10001de0
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.10001560
lea ecx, [ebp - 0xc38]
call fcn.1000f180
movzx eax, al
test eax, eax
jne 0x1000ed2b
push 0
push 0x100d6d98
lea ecx, [ebp - 0xc38]
call fcn.100096a0
cmp eax, 0xffffffff
jne 0x1000ed3b
push 0x100d6d9c
lea ecx, [ebp - 0xc38]
call fcn.10001560
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.10002340
mov dword [ebp - 0xcb4], eax
push esi
call fcn.1000ea90
add esp, 0x1c
mov dword [ebp - 0xca4], eax
mov eax, dword [ebp - 0xca4]
mov dword [ebp - 0xcb8], eax
lea ecx, [ebp - 0xc80]
call fcn.10009150
add esp, 0x18
mov dword [ebp - 0xcc0], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc80]
call fcn.10001c30
push eax
lea ecx, [ebp - 0xc38]
call fcn.10001c30
push eax
push str._sProgramDataMicrosoft_Host_s
lea ecx, [ebp - 0xc68]
push ecx
call fcn.10008f10
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.10002310
mov dword [ebp - 0xcd0], eax
call fcn.10009900
add esp, 0x18
mov byte [ebp - 0xc99], al
movzx eax, byte [ebp - 0xc99]
test eax, eax
jne 0x1000ee21
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcb0], esp
lea edx, [ebp - 0xc68]
push edx
call fcn.10002310
mov dword [ebp - 0xce0], eax
call fcn.10007e10
add esp, 0x18
lea ecx, [ebp + 0xc]
call fcn.10001c30
push eax
lea ecx, [ebp - 0xc80]
call fcn.10001c30
push eax
lea ecx, [ebp - 0xc38]
call fcn.10001c30
push eax
push str._sProgramDataMicrosoft_Host_s_s
lea eax, [ebp - 0xc98]
push eax
call fcn.10008f10
add esp, 0x14
mov dword [ebp - 0xca8], eax
mov ecx, dword [ebp - 0xca8]
push ecx
lea ecx, [ebp - 0xc50]
call fcn.10004a40
lea ecx, [ebp - 0xc98]
call fcn.10001d90
lea ecx, [ebp - 0xc50]
call fcn.10009970
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xccc], esp
lea edx, [ebp - 0xc50]
push edx
call fcn.10002310
mov dword [ebp - 0xcbc], eax
call fcn.10009900
add esp, 0x18
mov byte [ebp - 0xc9a], al
movzx eax, byte [ebp - 0xc9a]
test eax, eax
jne 0x1000eef3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xcdc], esp
lea edx, [ebp - 0xc50]
push edx
call fcn.10002310
mov dword [ebp - 0xcc4], eax
call fcn.10007e10
add esp, 0x18
push 2
lea ecx, [ebp - 0xc68]
call fcn.10001c30
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0xc50]
push eax
mov ecx, dword [ebp + 8]
call fcn.10008140
mov ecx, dword [ebp - 0xca0]
or ecx, 1
mov dword [ebp - 0xca0], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc68]
call fcn.10001d90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc80]
call fcn.10001d90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc38]
call fcn.10001d90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc50]
call fcn.10001d90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10001d90
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.100ce74b
mov esp, ebp
pop ebp
ret