Function at 0x10045019
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 [0x102de06c]
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.100aa4a0
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x104
push eax
call fcn.10046780
push 0x102530c0
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 0x100452d1
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10046780
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.10046780
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 0x100451c4
mov ecx, 0x102c4dd4
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10045120
test dx, dx
je 0x1004511c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10045120
add eax, 4
add ecx, 4
test dx, dx
jne 0x100450fa
xor eax, eax
jmp 0x10045125
sbb eax, eax
or eax, 1
test eax, eax
je 0x100452a4
mov ecx, 0x102c4c18
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004515e
test dx, dx
je 0x1004515a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004515e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10045138
xor eax, eax
jmp 0x10045163
sbb eax, eax
or eax, 1
test eax, eax
je 0x100452a4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1004519a
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004519a
test byte [ebp + 0x10], 1
je 0x100452c1
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10045019
add esp, 0x10
add edi, eax
cmp byte [esi], 0
jne 0x100452c4
jmp 0x100452a4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10045281
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 0x100451ff
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10045205
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp + 0x10], 2
je 0x10045281
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10045281
lea eax, [ebp - 0x20c]
push eax
push str._s.old
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.100467ea
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 0x10045281
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 0x1004529e
inc edi
jmp 0x100452a4
test byte [ebp + 0x10], 1
je 0x100452c1
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10045092
jmp 0x100452c4
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.10039266
leave
ret