Function at 0x10018a40
Capabilities:
Check if file exists
Connect network resource
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1005bd02
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
lea esi, [ebp + 0x4c4]
mov eax, esi
call fcn.10020e60
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x10018a9e
mov eax, esi
call fcn.10020e00
mov esi, dword [esi]
cmp dword [esi - 8], 0
mov dword [esp + 0x20], esi
je 0x10018e40
mov ebx, esi
lea esi, [esp + 0x28]
call fcn.10015b70
mov dword [esp + 0x264], 0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx - 8]
mov ebx, esi
call fcn.10015350
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov edi, esi
call fcn.10011c20
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebx - 8], eax
xor esi, esi
push ebx
mov word [ebx + eax*2], si
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x10018d86
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.1004a2a0
test al, al
je 0x10018d86
push ebx
mov byte [esp + 0x23], 0
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x10018b65
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x30], esi
mov ecx, dword [ebx - 8]
lea ebx, [esp + 0x28]
call fcn.10015350
push 8
push esi
push esi
lea edx, [esp + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 4]
push edx
push eax
call sub.MPR.dll_WNetAddConnection3W
test eax, eax
sete al
test al, al
je 0x10018cf5
mov ebx, dword [esp + 0x28]
push edi
mov byte [esp + 0x2b], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
jne 0x10018bf2
push esi
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete al
test al, al
mov byte [esp + 0x27], al
jne 0x10018bf2
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x18], ecx
push 0x175
lea ecx, [esp + 0x1c]
call fcn.10013a10
mov byte [esp + 0x264], 4
mov eax, dword [ebp + 0x16c]
lea ecx, [esp + 0x20]
call fcn.100139b0
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 4]
push 0x10
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x20]
call fcn.10015b40
mov edx, dword [ebp + 0x480]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
lea esi, [esp + 0x18]
call fcn.10015b40
jmp 0x10018d5b
lea eax, [esp + 0x4c]
push eax
push esi
push 0x1005e484
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10018c7e
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x10018c28
mov byte [esp + 0x1f], 1
jmp 0x10018ce5
mov edx, dword [0x1006eb44]
push 0x174
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.10013a10
mov byte [esp + 0x264], 2
mov eax, dword [ebp + 0x16c]
lea ecx, [esp + 0x20]
call fcn.100139b0
mov eax, dword [eax]
mov ecx, dword [ebp + 4]
push 0x34
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea esi, [esp + 0x20]
sete byte [esp + 0x1f]
call fcn.10015b40
jmp 0x10018cdc
mov edx, dword [0x1006eb44]
mov dword [esp + 0x18], edx
push edi
lea eax, [esp + 0x1c]
push 0x20c
push eax
mov byte [esp + 0x270], 3
call fcn.1001ad50
mov eax, dword [ebp + 0x16c]
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.100139b0
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 4]
push 0x10
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x20]
call fcn.10015b40
mov ecx, dword [ebp + 0x480]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
lea esi, [esp + 0x18]
call fcn.10015b40
cmp byte [esp + 0x27], 0
je 0x10018d5b
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10018d5b
mov edx, dword [0x1006eb44]
push 0x175
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.10013a10
mov byte [esp + 0x264], 5
mov eax, dword [ebp + 0x16c]
lea ecx, [esp + 0x20]
call fcn.100139b0
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 4]
push 0x10
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x20]
call fcn.10015b40
mov eax, dword [ebp + 0x480]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
lea esi, [esp + 0x18]
call fcn.10015b40
mov ebx, dword [esp + 0x28]
lea ecx, [ebx - 0xc]
cmp ecx, 0x1006eb34
je 0x10018d7d
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10018d7d
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, byte [esp + 0x1f]
jmp 0x10018e42
mov edx, dword [0x1006eb44]
push 0x136
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.10013a10
mov byte [esp + 0x264], 1
mov eax, dword [ebp + 0x16c]
lea ecx, [esp + 0x20]
call fcn.100139b0
mov eax, dword [eax]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebp + 4]
push 0x10
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x10018df8
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x10018df8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp + 0x480]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10018e23
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10018e23
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, 0x1006eb34
je 0x10018e40
lea esi, [ebx - 0xc]
push esi
call edi
test eax, eax
jg 0x10018e40
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.10056d50
add esp, 0x254
ret 4