Function at 0x1006baca
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 [0x102fb070]
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.100cd120
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x104
push eax
call fcn.1006ba42
push 0x1026ec20
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 0x1006bd82
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006ba42
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.1006ba42
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 0x1006bc75
mov ecx, 0x102df248
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006bbd1
test dx, dx
je 0x1006bbcd
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006bbd1
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006bbab
xor eax, eax
jmp 0x1006bbd6
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006bd55
mov ecx, 0x102df0d8
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006bc0f
test dx, dx
je 0x1006bc0b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006bc0f
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006bbe9
xor eax, eax
jmp 0x1006bc14
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006bd55
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006bc4b
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1006bc4b
test byte [ebp + 0x10], 1
je 0x1006bd72
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.1006baca
add esp, 0x10
add edi, eax
cmp byte [esi], 0
jne 0x1006bd75
jmp 0x1006bd55
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1006bd32
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 0x1006bcb0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1006bcb6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp + 0x10], 2
je 0x1006bd32
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006bd32
lea eax, [ebp - 0x20c]
push eax
push 0x1026ec2c
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.1006d231
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 0x1006bd32
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 0x1006bd4f
inc edi
jmp 0x1006bd55
test byte [ebp + 0x10], 1
je 0x1006bd72
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006bb43
jmp 0x1006bd75
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.10053a94
leave
ret