Function at 0x401fc0
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
mov eax, 0x1294
call fcn.00407450
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], si
mov word [esp + 0xc], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x12a0]
lea ecx, [esp + 0x214]
push eax
push ecx
call fcn.00407509
mov edx, dword [esp + 0x12ac]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00407509
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10a6]
mov word [esp + 0x10a4], si
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x214]
stosw word es:[edi], ax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea edx, [esp + 0x214]
push 0x5c
push edx
call fcn.0040752e
add esp, 8
cmp eax, esi
je 0x4022ae
add eax, 2
push eax
lea eax, [esp + 0x1098]
push eax
call fcn.00407509
add esp, 8
lea ecx, [esp + 0x1094]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4020aa
lea ecx, [esp + 0xc]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x876]
mov word [esp + 0x874], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x214]
lea eax, [esp + 0x874]
push edx
push eax
call fcn.00407509
lea ecx, [esp + 0x87c]
push 0x415214
push ecx
call fcn.004074df
add esp, 0x10
lea edx, [esp + 0x624]
lea eax, [esp + 0x874]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x402121
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
add esp, 0x1294
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp word [esp + 0x658], 0x2e
je 0x40228a
test byte [esp + 0x62c], 0x10
je 0x4021d1
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe96]
mov word [esp + 0xe94], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xc8e]
mov word [esp + 0xc8c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x658]
lea eax, [esp + 0x21c]
push edx
push eax
lea ecx, [esp + 0xe9c]
push 0x4151f0
push ecx
call fcn.0040756e
lea edx, [esp + 0x24]
lea eax, [esp + 0xc9c]
push edx
push eax
call fcn.00407509
lea ecx, [esp + 0xca4]
lea edx, [esp + 0xeac]
push ecx
push edx
call fcn.00401fc0
add esp, 0x20
jmp 0x40228a
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa86]
mov word [esp + 0xa84], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x658]
lea ecx, [esp + 0x21c]
push eax
push ecx
lea edx, [esp + 0x42c]
push 0x4151f0
push edx
call fcn.0040756e
add esp, 0x10
lea eax, [esp + 0x658]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xa84]
push eax
push ecx
push 0x4151f0
push edx
call fcn.0040756e
add esp, 0x10
lea eax, [esp + 0x424]
push 0x80
push eax
call ebp
lea ecx, [esp + 0xa84]
push esi
lea edx, [esp + 0x428]
push ecx
push edx
call ebx
test eax, eax
jne 0x40228a
lea eax, [esp + 0xa84]
push 6
lea ecx, [esp + 0x428]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x62c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40212f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1294
ret