Function at 0x4cf0c6
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x288
mov eax, 0x533836
call fcn.004f1db2
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0x18]
push 0x24c
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x25c]
push ebx
push eax
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x260], ebx
call fcn.004f28b0
add esp, 0xc
lea ecx, [ebp - 0x27c]
push edi
call fcn.0043c206
mov dword [ebp - 4], ebx
call fcn.00437474
push eax
lea ecx, [ebp - 0x270]
call fcn.0043a4ef
push 0x55c5b8
push 0x104
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.0043a522
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x27c]
call fcn.0043c298
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
je 0x4cf623
push edi
call fcn.0043a8c3
pop ecx
push eax
push edi
lea ecx, [ebp - 0x270]
call fcn.0043a84a
lea eax, [ebp - 0x234]
push eax
push 0x104
lea ecx, [ebp - 0x270]
call fcn.0043a522
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x270]
call fcn.0043c298
push dword [ebp - 0x294]
lea ecx, [ebp - 0x264]
call fcn.0043c206
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
push eax
push 0x104
lea ecx, [ebp - 0x264]
call fcn.0043a522
push eax
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x264]
call fcn.0043c298
mov eax, dword [ebp - 0x260]
test al, 0x10
mov edi, dword [ebp - 0x270]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x234]
je 0x4cf35e
mov ecx, 0x559ff0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4cf24d
test dx, dx
je 0x4cf249
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4cf24d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4cf227
mov eax, ebx
jmp 0x4cf252
sbb eax, eax
or eax, 1
test eax, eax
je 0x4cf536
mov ecx, 0x559ff4
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4cf28b
test dx, dx
je 0x4cf287
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4cf28b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4cf265
mov eax, ebx
jmp 0x4cf290
sbb eax, eax
or eax, 1
test eax, eax
je 0x4cf536
mov eax, dword [ebp - 0x274]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x4cf536
cmp dword [ebp + 0x10], 0
je 0x4cf536
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cf313
push dword [ebp - 0x264]
call fcn.004ccaac
pop ecx
test eax, eax
jne 0x4cf313
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x264]
push str.base::CreateDirectory__dir_ws_gle_x_r_n
push 0x5aca00
call fcn.004dddd9
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
mov ecx, esi
call fcn.0043c2e8
push dword [ebp - 0x264]
call fcn.004ccaac
pop ecx
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4cf56e
push dword [ebp - 0x278]
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x264]
push edi
call fcn.004cf0c6
add esp, 0x14
test eax, eax
jns 0x4cf536
mov ebx, 0x80004005
jmp 0x4cf607
push eax
lea ecx, [ebp - 0x268]
call fcn.0043c206
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call fcn.00454f04
push eax
lea ecx, [ebp - 0x268]
call fcn.0043c2e8
mov byte [ebp - 0x290], bl
lea eax, [ebp - 0x268]
push dword [ebp - 0x290]
push eax
mov eax, dword [ebp - 0x278]
push dword [eax + 4]
push dword [eax]
call fcn.004cc21a
mov ecx, dword [ebp - 0x278]
add esp, 0x10
cmp dword [ecx + 4], eax
jne 0x4cf528
push dword [ebp - 0x268]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
mov byte [ebp - 0x288], bl
push dword [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x278]
push dword [eax + 4]
push dword [eax]
call fcn.004cc1ef
mov ecx, dword [ebp - 0x278]
add esp, 0x10
cmp dword [ecx + 4], eax
jne 0x4cf528
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cf4de
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4cf4de
call fcn.00437474
push eax
lea ecx, [ebp - 0x280]
call fcn.0043a4ef
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp - 0x264]
lea eax, [ebp - 0x280]
push 0x53c9f8
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x280]
push esi
push dword [ebp - 0x264]
call fcn.004f6a25
add esp, 0x18
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push esi
push dword [ebp - 0x264]
push str._trename_src_ws_dst_ws_errcode_d
push 0x5aca00
call fcn.004dddd9
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
call fcn.0043c2e8
cmp dword [ebp - 0x274], 0
lea ecx, [esi - 0x10]
jne 0x4cf5ad
mov byte [ebp - 4], 3
call fcn.00436fdb
mov esi, dword [ebp - 0x26c]
xor ebx, ebx
push 3
push dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4cf528
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x264]
push edi
push str.movefile_fail_src_ws_dst_ws_errcode_d
push 0x5aca00
call fcn.004dddd9
add esp, 0x14
push 1
push dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4cf5b9
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x264]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00436fdb
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4cf615
mov edi, dword [ebp - 0x28c]
jmp 0x4cf185
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x264]
push str.CopyDir__DestDir_Not_Exists_dir_ws_gle_x_r_n
push 0x5aca00
call fcn.004dddd9
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
call fcn.0043c2e8
jmp 0x4cf354
mov ebx, 0x80004005
call fcn.00436fdb
jmp 0x4cf5f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x264]
push edi
push str.CopyFile_fail_src_ws_dst_ws_errcode_d
push 0x5aca00
call fcn.004dddd9
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x264]
push eax
call fcn.0043c2e8
mov ebx, 0x80004005
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4cf629
mov edi, dword [ebp - 0x270]
lea ecx, [edi - 0x10]
call fcn.00436fdb
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
call fcn.00436fdb
mov eax, ebx
call fcn.004f1d61
ret