Function at 0x49d409
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.004bf4f0
add esp, 0xc
lea ecx, [ebp - 0x26c]
push esi
call fcn.00425ac1
call fcn.00420e4a
push eax
lea ecx, [ebp - 0x258]
call fcn.00423e50
push 0x510040
push 0x104
lea ecx, [ebp - 0x26c]
call fcn.00423e83
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x26c]
call fcn.00425b33
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 0x49d925
push esi
call fcn.004241e6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.0042416d
lea eax, [ebp - 0x228]
push eax
push 0x104
lea ecx, [ebp - 0x258]
call fcn.00423e83
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.00425b33
push dword [ebp - 0x288]
lea ecx, [ebp - 0x25c]
call fcn.00425ac1
lea eax, [ebp - 0x228]
push eax
push 0x104
lea ecx, [ebp - 0x25c]
call fcn.00423e83
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.00425b33
mov eax, dword [ebp - 0x254]
test al, 0x10
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x228]
je 0x49d68d
mov ecx, 0x50cdac
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d58c
test dx, dx
je 0x49d588
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d58c
add eax, 4
add ecx, 4
test dx, dx
jne 0x49d566
mov eax, ebx
jmp 0x49d591
sbb eax, eax
or eax, 1
test eax, eax
je 0x49d6e9
mov ecx, 0x50cdb0
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d5ca
test dx, dx
je 0x49d5c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d5ca
add eax, 4
add ecx, 4
test dx, dx
jne 0x49d5a4
mov eax, ebx
jmp 0x49d5cf
sbb eax, eax
or eax, 1
test eax, eax
je 0x49d6e9
mov eax, dword [ebp - 0x268]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x49d6e9
cmp dword [ebp + 0x10], 0
je 0x49d83e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d643
push esi
call fcn.0049b35e
pop ecx
test eax, eax
jne 0x49d643
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.004a9ba2
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.00425b83
push esi
call fcn.0049b35e
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x49d878
push dword [ebp - 0x278]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x258]
push esi
push edi
call fcn.0049d409
add esp, 0x14
test eax, eax
jns 0x49d844
lea ecx, [esi - 0x10]
mov ebx, 0x80004005
call fcn.0042095b
jmp 0x49d917
push eax
lea ecx, [ebp - 0x260]
call fcn.00425ac1
lea ecx, [ebp - 0x260]
call fcn.0043e64b
push eax
lea ecx, [ebp - 0x260]
call fcn.00425b83
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.0049ab04
add esp, 0x10
cmp dword [edi + 4], eax
je 0x49d702
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov edi, dword [ebp - 0x258]
jmp 0x49d84c
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.0049aad9
add esp, 0x10
cmp dword [edi + 4], eax
jne 0x49d6db
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49d7ef
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49d7ef
call fcn.00420e4a
push eax
lea ecx, [ebp - 0x270]
call fcn.00423e50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 0x270]
push 0x4fa350
push eax
call fcn.0042443a
mov edi, dword [ebp - 0x270]
push edi
push esi
call fcn.004c0e0c
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.004a9ba2
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.00425b83
cmp dword [ebp - 0x268], 0
lea ecx, [edi - 0x10]
jne 0x49d8b4
call fcn.0042095b
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 0x49d830
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.004a9ba2
add esp, 0x14
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x49d8c0
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov edi, dword [ebp - 0x258]
lea ecx, [esi - 0x10]
call fcn.0042095b
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x49d917
mov edi, dword [ebp - 0x264]
mov esi, dword [ebp - 0x280]
jmp 0x49d4c8
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.004a9ba2
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.00425b83
mov ebx, 0x80004005
jmp 0x49d909
mov ebx, 0x80004005
call fcn.0042095b
jmp 0x49d8fb
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.004a9ba2
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.00425b83
mov ebx, 0x80004005
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.0042095b
lea ecx, [esi - 0x10]
call fcn.0042095b
mov edi, dword [ebp - 0x258]
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x49d92b
mov edi, dword [ebp - 0x258]
lea ecx, [edi - 0x10]
call fcn.0042095b
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret