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

Disassembly:
push 0x288
mov eax, 0x533edd
call fcn.004f2332
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.004f2e30
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 0x55d938
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 0x4cfafc
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 0x4cf837
mov ecx, 0x55b368
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4cf726
test dx, dx
je 0x4cf722
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4cf726
add eax, 4
add ecx, 4
test dx, dx
jne 0x4cf700
mov eax, ebx
jmp 0x4cf72b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4cfa0f
mov ecx, 0x55b36c
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4cf764
test dx, dx
je 0x4cf760
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4cf764
add eax, 4
add ecx, 4
test dx, dx
jne 0x4cf73e
mov eax, ebx
jmp 0x4cf769
sbb eax, eax
or eax, 1
test eax, eax
je 0x4cfa0f
mov eax, dword [ebp - 0x274]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x4cfa0f
cmp dword [ebp + 0x10], 0
je 0x4cfa0f
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cf7ec
push dword [ebp - 0x264]
call fcn.004ccf85
pop ecx
test eax, eax
jne 0x4cf7ec
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 0x5aea00
call fcn.004de360
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.004ccf85
pop ecx
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4cfa47
push dword [ebp - 0x278]
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x264]
push edi
call fcn.004cf59f
add esp, 0x14
test eax, eax
jns 0x4cfa0f
mov ebx, 0x80004005
jmp 0x4cfae0
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.004cc6f3
mov ecx, dword [ebp - 0x278]
add esp, 0x10
cmp dword [ecx + 4], eax
jne 0x4cfa01
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.004cc6c8
mov ecx, dword [ebp - 0x278]
add esp, 0x10
cmp dword [ecx + 4], eax
jne 0x4cfa01
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cf9b7
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4cf9b7
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 0x53dd98
push eax
call fcn.0043ab29
mov esi, dword [ebp - 0x280]
push esi
push dword [ebp - 0x264]
call fcn.004f6fa5
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 0x5aea00
call fcn.004de360
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 0x4cfa86
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 0x4cfa01
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 0x5aea00
call fcn.004de360
add esp, 0x14
push 1
push dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4cfa92
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 0x4cfaee
mov edi, dword [ebp - 0x28c]
jmp 0x4cf65e
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 0x5aea00
call fcn.004de360
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 0x4cf82d
mov ebx, 0x80004005
call fcn.00436fdb
jmp 0x4cfad2
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 0x5aea00
call fcn.004de360
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 0x4cfb02
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.004f22e1
ret