Function at 0x10054177
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 [0x102cc06c]
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.100a4c40
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x104
push eax
call fcn.100540ef
push 0x1024741c
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 0x1005442f
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100540ef
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.100540ef
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 0x10054322
mov ecx, 0x10246e10
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1005427e
test dx, dx
je 0x1005427a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1005427e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10054258
xor eax, eax
jmp 0x10054283
sbb eax, eax
or eax, 1
test eax, eax
je 0x10054402
mov ecx, 0x10247414
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100542bc
test dx, dx
je 0x100542b8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100542bc
add eax, 4
add ecx, 4
test dx, dx
jne 0x10054296
xor eax, eax
jmp 0x100542c1
sbb eax, eax
or eax, 1
test eax, eax
je 0x10054402
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100542f8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100542f8
test byte [ebp + 0x10], 1
je 0x1005441f
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10054177
add esp, 0x10
add edi, eax
cmp byte [esi], 0
jne 0x10054422
jmp 0x10054402
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100543df
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 0x1005435d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10054363
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp + 0x10], 2
je 0x100543df
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100543df
lea eax, [ebp - 0x20c]
push eax
push 0x10247428
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.100558de
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 0x100543df
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 0x100543fc
inc edi
jmp 0x10054402
test byte [ebp + 0x10], 1
je 0x1005441f
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100541f0
jmp 0x10054422
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.100451cc
leave
ret