Function at 0x49d7db
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 [0x52fe80]
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.004bf240
add esp, 0xc
lea ecx, [ebp - 0x26c]
push esi
call fcn.00425b88
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x258]
call fcn.00423e41
push 0x512178
push 0x104
lea ecx, [ebp - 0x26c]
call fcn.00423e74
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x26c]
call fcn.00425bfa
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 0x49dcf7
push esi
call fcn.004241d7
pop ecx
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.0042415e
lea eax, [ebp - 0x228]
push eax
push 0x104
lea ecx, [ebp - 0x258]
call fcn.00423e74
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.00425bfa
push dword [ebp - 0x288]
lea ecx, [ebp - 0x25c]
call fcn.00425b88
lea eax, [ebp - 0x228]
push eax
push 0x104
lea ecx, [ebp - 0x25c]
call fcn.00423e74
push eax
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.00425bfa
mov eax, dword [ebp - 0x254]
test al, 0x10
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x228]
je 0x49da5f
mov ecx, 0x50f8fc
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d95e
test dx, dx
je 0x49d95a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d95e
add eax, 4
add ecx, 4
test dx, dx
jne 0x49d938
mov eax, ebx
jmp 0x49d963
sbb eax, eax
or eax, 1
test eax, eax
je 0x49dabb
mov ecx, 0x50f900
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d99c
test dx, dx
je 0x49d998
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d99c
add eax, 4
add ecx, 4
test dx, dx
jne 0x49d976
mov eax, ebx
jmp 0x49d9a1
sbb eax, eax
or eax, 1
test eax, eax
je 0x49dabb
mov eax, dword [ebp - 0x268]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x49dabb
cmp dword [ebp + 0x10], 0
je 0x49dc10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49da15
push esi
call fcn.0049b724
pop ecx
test eax, eax
jne 0x49da15
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 0x55b31c
call fcn.004a9913
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.00425c4a
push esi
call fcn.0049b724
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x49dc4a
push dword [ebp - 0x278]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x258]
push esi
push edi
call fcn.0049d7db
add esp, 0x14
test eax, eax
jns 0x49dc16
lea ecx, [esi - 0x10]
mov ebx, 0x80004005
call fcn.004206ab
jmp 0x49dce9
push eax
lea ecx, [ebp - 0x260]
call fcn.00425b88
lea ecx, [ebp - 0x260]
call fcn.0043f655
push eax
lea ecx, [ebp - 0x260]
call fcn.00425c4a
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.0049aeca
add esp, 0x10
cmp dword [edi + 4], eax
je 0x49dad4
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov edi, dword [ebp - 0x258]
jmp 0x49dc1e
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.0049ae9f
add esp, 0x10
cmp dword [edi + 4], eax
jne 0x49daad
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49dbc1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49dbc1
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x270]
call fcn.00423e41
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 0x270]
push 0x4fb360
push eax
call fcn.00424501
mov edi, dword [ebp - 0x270]
push edi
push esi
call fcn.004c0b5c
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 0x55b31c
call fcn.004a9913
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.00425c4a
cmp dword [ebp - 0x268], 0
lea ecx, [edi - 0x10]
jne 0x49dc86
call fcn.004206ab
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 0x49dc02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.movefile_fail_src_ws_dst_ws_errcode_d
push 0x55b31c
call fcn.004a9913
add esp, 0x14
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x49dc92
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov edi, dword [ebp - 0x258]
lea ecx, [esi - 0x10]
call fcn.004206ab
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x49dce9
mov edi, dword [ebp - 0x264]
mov esi, dword [ebp - 0x280]
jmp 0x49d89a
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 0x55b31c
call fcn.004a9913
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.00425c4a
mov ebx, 0x80004005
jmp 0x49dcdb
mov ebx, 0x80004005
call fcn.004206ab
jmp 0x49dccd
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 0x55b31c
call fcn.004a9913
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.00425c4a
mov ebx, 0x80004005
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004206ab
lea ecx, [esi - 0x10]
call fcn.004206ab
mov edi, dword [ebp - 0x258]
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x49dcfd
mov edi, dword [ebp - 0x258]
lea ecx, [edi - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret