Function at 0x10f0afe
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 8], 0
push ebx
lea eax, [ebp - 1]
push eax
call fcn.010f0880
cmp byte [ebp - 1], 0
mov ebx, eax
jne 0x10f0cf7
test ebx, ebx
jl 0x10f0cfb
lea eax, [ebp - 8]
push eax
call fcn.010f0a4f
mov ebx, eax
test ebx, ebx
jl 0x10f0ce8
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.01083f36
mov ebx, eax
test ebx, ebx
jl 0x10f0ce7
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10f0ba2
call esi
cmp eax, 0xb7
jne 0x10f0bba
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f0ba2
test byte [eax + 0x1c], 1
je 0x10f0ba2
cmp byte [eax + 0x19], 5
jb 0x10f0ba2
push 0x10124c0
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10f0be6
call esi
test eax, eax
jg 0x10f0bd1
call esi
jmp 0x10f0bbe
test eax, eax
jg 0x10f0bc5
mov ebx, eax
jmp 0x10f0cdd
and eax, 0xffff
or eax, 0x80070000
jmp 0x10f0bbe
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x10f0cdd
or eax, 2
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10f0bb0
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x40]
xor esi, esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], esi
mov eax, dword [0x111024c]
mov edi, 0x111024c
cmp eax, edi
je 0x10f0c35
test byte [eax + 0x1c], 1
je 0x10f0c35
cmp byte [eax + 0x19], 5
jb 0x10f0c35
push dword [ebp - 8]
push 0x10124c0
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [ebp - 8]
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x1f6
push esi
mov dword [ebp - 0x40], 0x1004144
mov dword [ebp - 0x3c], 0x80000000
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x24], esi
call sub.NETAPI32.dll_NetShareAdd
mov esi, eax
test esi, esi
je 0x10f0cb6
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10f0ca0
test byte [eax + 0x1c], 1
je 0x10f0ca0
cmp byte [eax + 0x19], 2
jb 0x10f0ca0
push dword [ebp - 0xc]
push esi
push 0x10124c0
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01083f04
test esi, esi
jg 0x10f0ca8
mov ebx, esi
jmp 0x10f0cdd
and esi, 0xffff
or esi, 0x80070000
jmp 0x10f0ca4
mov eax, dword [0x111024c]
cmp eax, edi
je 0x10f0cdd
test byte [eax + 0x1c], 1
je 0x10f0cdd
cmp byte [eax + 0x19], 5
jb 0x10f0cdd
push 0x10124c0
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
lea eax, [ebp - 0x18]
push eax
call fcn.01084304
pop esi
pop edi
cmp dword [ebp - 8], 0
je 0x10f0cf7
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jge 0x10f0d26
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f0d26
test byte [eax + 0x1c], 1
je 0x10f0d26
cmp byte [eax + 0x19], 2
jb 0x10f0d26
push ebx
push 0x10124c0
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, ebx
pop ebx
leave
ret