Function at 0x10040df1
Capabilities:
Check if file exists
Copy file
Create directory
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x86c]
push edi
push 0x250
xor edi, edi
push edi
push eax
call fcn.100a25c0
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x104
push eax
call fcn.10041d04
push 0x100fa64c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x870], eax
cmp eax, 0xffffffff
je 0x100410a9
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10041d04
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.10041d04
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x86c], 0x10
je 0x10040f9c
mov ecx, 0x100fa654
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10040ef8
test dx, dx
je 0x10040ef4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10040ef8
add eax, 4
add ecx, 4
test dx, dx
jne 0x10040ed2
xor eax, eax
jmp 0x10040efd
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004107c
mov ecx, 0x100fa658
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10040f36
test dx, dx
je 0x10040f32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10040f36
add eax, 4
add ecx, 4
test dx, dx
jne 0x10040f10
xor eax, eax
jmp 0x10040f3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004107c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10040f72
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10040f72
test byte [ebp + 0x10], 1
je 0x10041099
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10040df1
add esp, 0x10
add edi, eax
cmp byte [esi], 0
jne 0x1004109c
jmp 0x1004107c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10041059
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
test bl, 0x10
je 0x10040fd7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10040fdd
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp + 0x10], 2
je 0x10041059
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10041059
lea eax, [ebp - 0x20c]
push eax
push str._s.old
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.10041d6e
add esp, 0x10
lea eax, [ebp - 0x61c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10041059
push 4
push 0
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10041076
inc edi
jmp 0x1004107c
test byte [ebp + 0x10], 1
je 0x10041099
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10040e6a
jmp 0x1004109c
mov byte [esi], 1
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10081454
leave
ret