Function at 0x100544d8
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 [0x102cd06c]
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.100a55e0
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x104
push eax
call fcn.10054411
push 0x1024742c
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 0x10054790
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10054411
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.10054411
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 0x10054683
mov ecx, 0x10246e0c
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100545df
test dx, dx
je 0x100545db
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100545df
add eax, 4
add ecx, 4
test dx, dx
jne 0x100545b9
xor eax, eax
jmp 0x100545e4
sbb eax, eax
or eax, 1
test eax, eax
je 0x10054763
mov ecx, 0x10247424
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1005461d
test dx, dx
je 0x10054619
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1005461d
add eax, 4
add ecx, 4
test dx, dx
jne 0x100545f7
xor eax, eax
jmp 0x10054622
sbb eax, eax
or eax, 1
test eax, eax
je 0x10054763
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10054659
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10054659
test byte [ebp + 0x10], 1
je 0x10054780
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.100544d8
add esp, 0x10
add edi, eax
cmp byte [esi], 0
jne 0x10054783
jmp 0x10054763
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10054740
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 0x100546be
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x100546c4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp + 0x10], 2
je 0x10054740
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10054740
lea eax, [ebp - 0x20c]
push eax
push 0x10247438
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.10055c67
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 0x10054740
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 0x1005475d
inc edi
jmp 0x10054763
test byte [ebp + 0x10], 1
je 0x10054780
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x870]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10054551
jmp 0x10054783
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