Function at 0x1086918
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
jne 0x108693e
push 0x1008808
push 0x2c7
push 0x10087a4
call fcn.0107b644
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1086968
test byte [eax + 0x1c], 1
je 0x1086968
cmp byte [eax + 0x19], 4
jb 0x1086968
push 0x10085c8
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, 0x80070000
cmp byte [ebp + 0xc], bl
je 0x1086a69
push ebx
lea eax, [ebp - 8]
push eax
push 1
mov esi, 0x1008648
push esi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x10869ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10869ad
and eax, 0xffff
or eax, edi
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1086af1
test byte [eax + 0x1c], 1
je 0x1086af1
cmp byte [eax + 0x19], 3
jb 0x1086af1
push dword [ebp - 4]
push esi
push 0x10085c8
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x1086aec
mov eax, dword [ebp - 8]
push dword [ebp + 8]
and dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1086ac0
test bl, 0x10
je 0x1086a6e
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.010862a5
mov dword [ebp - 4], eax
test eax, eax
jge 0x1086a69
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1086a60
test byte [eax + 0x1c], 1
je 0x1086a60
cmp byte [eax + 0x19], 3
jb 0x1086a60
push dword [ebp + 8]
push dword [ebp - 4]
push 0x10085c8
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019471
mov eax, dword [0x111024c]
and dword [ebp - 4], 0
jmp 0x1086af1
test bl, 0x10
jne 0x1086ac0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1086ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1086a8c
and eax, 0xffff
or eax, edi
mov ecx, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1086abc
test byte [eax + 0x1c], 1
je 0x1086abc
cmp byte [eax + 0x19], 3
jb 0x1086abc
push ecx
push dword [ebp + 8]
push 0x10085c8
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1086aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1086aec
test eax, eax
jle 0x1086ae9
and eax, 0xffff
or eax, edi
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x1086b08
lea eax, [ebp - 0x14]
push eax
call fcn.01084304
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1086b2d
test byte [eax + 0x1c], 1
je 0x1086b2d
cmp byte [eax + 0x19], 4
jb 0x1086b2d
push 0x10085c8
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
leave
ret 8