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

Disassembly:
push 0x4d4
mov eax, 0x105e80d
call fcn.0104dd12
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4dc], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x1066af4
xor ebx, ebx
push esi
lea ecx, [ebp - 0x4cc]
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4b8], ebx
call fcn.010442ec
push esi
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 4], ebx
call fcn.010442ec
push esi
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.010442ec
push esi
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 2
call fcn.010442ec
push esi
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 3
call fcn.010442ec
push dword [edi]
or dword [ebp - 0x4c4], 0xffffffff
or dword [ebp - 0x4bc], 0xffffffff
lea eax, [ebp - 0x4cc]
push 0x100fdf4
push eax
mov byte [ebp - 4], 5
call fcn.01030c5e
add esp, 0xc
mov esi, 0x250
push esi
lea eax, [ebp - 0x264]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x4b4]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x4cc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4c4], eax
cmp eax, 0xffffffff
je 0x104192c
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 1
lea eax, [ebp - 0x238]
push 0x1003e44
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1041a27
push 2
lea eax, [ebp - 0x238]
push 0x100fdec
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1041a27
test byte [ebp - 0x264], 0x10
je 0x1041a27
mov eax, dword [ebp - 0x4dc]
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x238]
push eax
push ecx
lea eax, [ebp - 0x4d0]
push 0x100fee8
push eax
call fcn.01030c5e
add esp, 0x14
lea eax, [ebp - 0x4b4]
push eax
push dword [ebp - 0x4d0]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x4bc], eax
cmp eax, 0xffffffff
je 0x1041a27
test byte [ebp - 0x4b4], 0x10
jne 0x10419eb
mov eax, dword [ebp - 0x4d8]
mov eax, dword [eax]
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x4c0]
push 0x1003e38
push eax
call fcn.01030c5e
mov eax, dword [edi]
add esp, 0x10
lea ecx, [ebp - 0x488]
push ecx
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x4c8]
push 0x100fdd8
push eax
call fcn.01030c5e
add esp, 0x14
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10419aa
push 0
push dword [ebp - 0x4c0]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10419aa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1041903
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x4b8], eax
test eax, eax
jl 0x1041917
mov dword [ebp - 0x4b8], 0x80004005
push 0x100fe78
push 0x100fe64
call esi
push eax
call fcn.01048d15
add esp, 0xc
cmp dword [ebp - 0x4c4], 0xffffffff
je 0x1041941
push dword [ebp - 0x4c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x4bc], 0xffffffff
je 0x1041956
push dword [ebp - 0x4bc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x4d4]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x4c8]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x4c0]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x4d0]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x4cc]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov eax, dword [ebp - 0x4b8]
call fcn.0104dd7d
ret 0xc
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x4c8]
push eax
call fcn.0103ff32
mov dword [ebp - 0x4b8], eax
test eax, eax
jge 0x10419eb
push dword [ebp - 0x4d4]
push dword [ebp - 0x4c8]
push 0x100fe28
push 0x100fe14
push eax
call fcn.01048c52
add esp, 0x14
jmp 0x104192c
push esi
lea eax, [ebp - 0x4b4]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4b4]
push eax
push dword [ebp - 0x4bc]
call ebx
test eax, eax
jne 0x104186c
push dword [ebp - 0x4bc]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x4bc], 0xffffffff
push esi
lea eax, [ebp - 0x264]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x4c4]
call ebx
test eax, eax
jne 0x10417d8
jmp 0x104192c