Function at 0x1000bd80
Capabilities:
Check if file exists
Get common file path
Get session user name
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2401
mov eax, dword fs:[0]
push eax
sub esp, 0xc84
mov eax, dword [0x100c7034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc90], esi
mov dword [ebp - 0xc88], 0
xor eax, eax
mov dword [ebp - 4], 1
push 0x7fe
push eax
mov word [ebp - 0xc20], ax
lea eax, [ebp - 0xc1e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8c], 0x400
lea eax, [ebp - 0xc8c]
push eax
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 0xc88], 1
mov dword [ebp - 0xc3c], 7
mov dword [ebp - 0xc40], eax
mov word [ebp - 0xc50], ax
push 0x206
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x104
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.MSVCR120.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0x218], 0
jne 0x1000bebd
xor ecx, ecx
jmp 0x1000bed5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bec6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc50]
call fcn.10001540
cmp dword [ebp - 0xc40], 0
je 0x1000bf0a
push 1
push 0
push 0x100b7d18
lea ecx, [ebp - 0xc50]
call fcn.10003d40
cmp eax, 0xffffffff
jne 0x1000bf1c
push 2
push 0x100b7d1c
lea ecx, [ebp - 0xc50]
call fcn.10001540
sub esp, 0x18
xor eax, eax
mov ebx, esp
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [ebp - 0xc20], ax
jne 0x1000bf46
xor ecx, ecx
jmp 0x1000bf5f
lea ecx, [ebp - 0xc20]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bf50
sub ecx, edi
sar ecx, 1
push ecx
lea eax, [ebp - 0xc20]
mov ecx, edx
push eax
call fcn.10001540
mov ecx, ebx
call fcn.1000bc20
add esp, 0x18
lea ecx, [ebp - 0xc68]
call fcn.10008c10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc68]
cmp dword [ebp - 0xc54], 8
lea eax, [ebp - 0xc50]
cmovae ecx, dword [ebp - 0xc68]
cmp dword [ebp - 0xc3c], 8
push ecx
cmovae eax, dword [ebp - 0xc50]
push eax
lea eax, [ebp - 0xc80]
push str._sProgramDataMicrosoft_Host_s
push eax
call fcn.100089d0
add esp, 0x28
xor eax, eax
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push eax
mov word [ebp - 0xc38], ax
lea ecx, [ebp - 0xc38]
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc24], 7
push eax
mov dword [ebp - 0xc28], 0
call fcn.10001750
lea ecx, [ebp - 0xc38]
mov byte [ebp - 4], 5
call fcn.10009320
cmp dword [ebp - 0xc24], 8
lea eax, [ebp - 0xc38]
cmovae eax, dword [ebp - 0xc38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne bl
cmp dword [ebp - 0xc24], 8
jb 0x1000c048
push dword [ebp - 0xc38]
call edi
add esp, 4
test bl, bl
jne 0x1000c07b
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0xc80]
push eax
call fcn.10001750
call fcn.10007970
add esp, 0x18
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
lea ecx, [ebp - 0xc68]
cmovae edx, dword [ebp + 8]
lea eax, [ebp - 0xc50]
cmp dword [ebp - 0xc54], 8
push edx
cmovae ecx, dword [ebp - 0xc68]
cmp dword [ebp - 0xc3c], 8
push ecx
cmovae eax, dword [ebp - 0xc50]
push eax
lea eax, [ebp - 0xc38]
push str._sProgramDataMicrosoft_Host_s_s
push eax
call fcn.100089d0
mov ebx, eax
add esp, 0x14
cmp esi, ebx
je 0x1000c0f3
cmp dword [esi + 0x14], 8
jb 0x1000c0d8
push dword [esi]
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.10004740
cmp dword [ebp - 0xc24], 8
jb 0x1000c107
push dword [ebp - 0xc38]
call edi
add esp, 4
mov ecx, esi
call fcn.10009320
xor eax, eax
mov dword [ebp - 0xc24], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0xc38]
mov dword [ebp - 0xc28], 0
mov word [ebp - 0xc38], ax
call fcn.10001750
lea ecx, [ebp - 0xc38]
mov byte [ebp - 4], 6
call fcn.10009320
cmp dword [ebp - 0xc24], 8
lea eax, [ebp - 0xc38]
cmovae eax, dword [ebp - 0xc38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 4
setne bl
cmp dword [ebp - 0xc24], 8
jb 0x1000c181
push dword [ebp - 0xc38]
call edi
add esp, 4
test bl, bl
jne 0x1000c1cb
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.10001750
call fcn.10007970
add esp, 0x18
lea eax, [ebp - 0xc80]
cmp dword [ebp - 0xc6c], 8
cmovae eax, dword [ebp - 0xc80]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0xc6c], 8
jb 0x1000c1df
push dword [ebp - 0xc80]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xc6c], 7
cmp dword [ebp - 0xc54], 8
mov dword [ebp - 0xc70], 0
mov word [ebp - 0xc80], ax
jb 0x1000c210
push dword [ebp - 0xc68]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xc54], 7
cmp dword [ebp - 0xc3c], 8
mov dword [ebp - 0xc58], 0
mov word [ebp - 0xc68], ax
jb 0x1000c241
push dword [ebp - 0xc50]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xc3c], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0xc40], 0
mov word [ebp - 0xc50], ax
jb 0x1000c26c
push dword [ebp + 8]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b010b
mov esp, ebp
pop ebp
ret