Function at 0x401cd4
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
mov dword [esp + 0x20], esi
xor edi, edi
call fcn.0040276c
mov ecx, dword [esp + 0x14]
mov ebx, eax
add ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.0040276c
add eax, eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x208]
push eax
push 8
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x401d3c
push 0xe
pop eax
jmp 0x401f5d
mov edx, esi
mov ecx, ebx
call fcn.0040273b
mov edx, 0x404ab0
call fcn.00402689
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x401f4c
test byte [esp + 0x28], 0x10
lea ecx, [esp + 0x54]
je 0x401e68
mov edx, 0x404ab8
call fcn.004026be
test eax, eax
je 0x401f0d
mov edx, 0x404abc
lea ecx, [esp + 0x54]
call fcn.004026be
test eax, eax
je 0x401f0d
lea ecx, [esp + 0x54]
call fcn.0040276c
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0x208
add esi, esi
add eax, esi
push eax
push 8
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add eax, 0x208
add eax, esi
push eax
push 8
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [esp + 0x10], 0
mov esi, eax
je 0x401f0d
test esi, esi
je 0x401f0d
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x20]
call fcn.0040273b
lea edx, [esp + 0x54]
call fcn.00402689
mov edx, 0x404ac4
mov ecx, edi
call fcn.00402689
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.0040273b
lea edx, [esp + 0x54]
call fcn.00402689
mov edx, 0x404ac4
mov ecx, esi
call fcn.00402689
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401e5a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f26
mov edx, esi
mov ecx, edi
call fcn.00401cd4
jmp 0x401eea
call fcn.0040276c
mov ecx, dword [esp + 0x18]
mov esi, eax
add ecx, 0x208
add esi, esi
add ecx, esi
push ecx
push 8
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x1c]
add ecx, 0x208
mov dword [esp + 0x10], eax
add ecx, esi
push ecx
push 8
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x401f0d
test esi, esi
je 0x401f0d
mov edx, dword [esp + 0x20]
call fcn.0040273b
lea edx, [esp + 0x54]
call fcn.00402689
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.0040273b
lea edx, [esp + 0x54]
call fcn.00402689
mov ecx, dword [esp + 0x10]
mov edx, esi
call fcn.00401c1e
push esi
push 0
push dword [0x409acc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
push 0
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401d68
jmp 0x401f42
push 0
mov edx, 0x404ac8
call fcn.00402f89
pop ecx
push 1
mov edx, esi
call fcn.00402f89
pop ecx
mov edi, 0x10b
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 0
push dword [0x409acc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004031bd
mov esp, ebp
pop ebp
ret