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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp + 0x18]
push 0x24c
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x254], ebx
call fcn.004bf1a0
add esp, 0xc
lea ecx, [ebp - 0x26c]
push esi
call fcn.00425b11
call fcn.00420e9a
push eax
lea ecx, [ebp - 0x258]
call fcn.00423ea0
push 0x50ffe0
push 0x104
lea ecx, [ebp - 0x26c]
call fcn.00423ed3
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x26c]
call fcn.00425b83
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x49d9fc
push esi
call fcn.00424236
pop ecx
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.004241bd
lea eax, [ebp - 0x228]
push eax
push 0x104
lea ecx, [ebp - 0x258]
call fcn.00423ed3
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.00425b83
push dword [ebp - 0x288]
lea ecx, [ebp - 0x25c]
call fcn.00425b11
lea eax, [ebp - 0x228]
push eax
push 0x104
lea ecx, [ebp - 0x25c]
call fcn.00423ed3
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.00425b83
mov eax, dword [ebp - 0x254]
test al, 0x10
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x228]
je 0x49d764
mov ecx, 0x50c834
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d663
test dx, dx
je 0x49d65f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d663
add eax, 4
add ecx, 4
test dx, dx
jne 0x49d63d
mov eax, ebx
jmp 0x49d668
sbb eax, eax
or eax, 1
test eax, eax
je 0x49d7c0
mov ecx, 0x50c838
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d6a1
test dx, dx
je 0x49d69d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d6a1
add eax, 4
add ecx, 4
test dx, dx
jne 0x49d67b
mov eax, ebx
jmp 0x49d6a6
sbb eax, eax
or eax, 1
test eax, eax
je 0x49d7c0
mov eax, dword [ebp - 0x268]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x49d7c0
cmp dword [ebp + 0x10], 0
je 0x49d915
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d71a
push esi
call fcn.0049b435
pop ecx
test eax, eax
jne 0x49d71a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
push str.base::CreateDirectory__dir_ws_gle_x_r_n
push 0x55913c
call fcn.004a985e
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x25c]
push eax
mov ecx, edi
call fcn.00425bd3
push esi
call fcn.0049b435
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x49d94f
push dword [ebp - 0x278]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x258]
push esi
push edi
call fcn.0049d4e0
add esp, 0x14
test eax, eax
jns 0x49d91b
lea ecx, [esi - 0x10]
mov ebx, 0x80004005
call fcn.004209ab
jmp 0x49d9ee
push eax
lea ecx, [ebp - 0x260]
call fcn.00425b11
lea ecx, [ebp - 0x260]
call fcn.0043e71b
push eax
lea ecx, [ebp - 0x260]
call fcn.00425bd3
mov edi, dword [ebp - 0x278]
lea eax, [ebp - 0x260]
mov byte [ebp - 0x27c], bl
push dword [ebp - 0x27c]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.0049abdb
add esp, 0x10
cmp dword [edi + 4], eax
je 0x49d7d9
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov edi, dword [ebp - 0x258]
jmp 0x49d923
push dword [ebp - 0x260]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
mov byte [ebp - 0x284], bl
push dword [ebp - 0x284]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.0049abb0
add esp, 0x10
cmp dword [edi + 4], eax
jne 0x49d7b2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d8c6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49d8c6
call fcn.00420e9a
push eax
lea ecx, [ebp - 0x270]
call fcn.00423ea0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 0x270]
push 0x4fa350
push eax
call fcn.0042448a
mov edi, dword [ebp - 0x270]
push edi
push esi
call fcn.004c0abc
add esp, 0x18
mov dword [ebp - 0x268], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
push 0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push edi
push esi
push str._trename_src_ws_dst_ws_errcode_d
push 0x55913c
call fcn.004a985e
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x25c]
push eax
call fcn.00425bd3
cmp dword [ebp - 0x268], 0
lea ecx, [edi - 0x10]
jne 0x49d98b
call fcn.004209ab
xor ebx, ebx
mov edi, dword [ebp - 0x258]
push 3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x49d907
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.movefile_fail_src_ws_dst_ws_errcode_d
push 0x55913c
call fcn.004a985e
add esp, 0x14
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x49d997
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov edi, dword [ebp - 0x258]
lea ecx, [esi - 0x10]
call fcn.004209ab
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x49d9ee
mov edi, dword [ebp - 0x264]
mov esi, dword [ebp - 0x280]
jmp 0x49d59f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
push str.CopyDir__DestDir_Not_Exists_dir_ws_gle_x_r_n
push 0x55913c
call fcn.004a985e
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x25c]
push eax
call fcn.00425bd3
mov ebx, 0x80004005
jmp 0x49d9e0
mov ebx, 0x80004005
call fcn.004209ab
jmp 0x49d9d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push edi
push str.CopyFile_fail_src_ws_dst_ws_errcode_d
push 0x55913c
call fcn.004a985e
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x25c]
push eax
call fcn.00425bd3
mov ebx, 0x80004005
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004209ab
lea ecx, [esi - 0x10]
call fcn.004209ab
mov edi, dword [ebp - 0x258]
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x49da02
mov edi, dword [ebp - 0x258]
lea ecx, [edi - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret