Function at 0x4cec21
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x18]
push 0x24c
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x254], ebx
call fcn.004d9c60
add esp, 0xc
lea ecx, [ebp - 0x270]
push esi
call fcn.004af026
call fcn.004afb89
push eax
lea ecx, [ebp - 0x268]
call fcn.004aef66
push 0x535f3c
push 0x104
lea ecx, [ebp - 0x270]
call fcn.004b03cd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x270]
call fcn.004b5ee5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x278], eax
cmp eax, 0xffffffff
je 0x4cf0da
push esi
lea ecx, [ebp - 0x268]
call fcn.004b063e
lea eax, [ebp - 0x228]
mov esi, 0x104
push eax
push esi
lea ecx, [ebp - 0x268]
call fcn.004b03cd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x268]
call fcn.004b5ee5
push edi
lea ecx, [ebp - 0x258]
call fcn.004af026
lea eax, [ebp - 0x228]
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.004b03cd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.004b5ee5
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
mov edi, dword [ebp - 0x268]
mov esi, dword [ebp - 0x258]
je 0x4cee49
push 0x548be0
push eax
call fcn.004d92ac
pop ecx
pop ecx
test eax, eax
je 0x4ceda3
lea eax, [ebp - 0x228]
push 0x548be4
push eax
call fcn.004d92ac
pop ecx
pop ecx
test eax, eax
je 0x4ceda3
mov eax, dword [ebp - 0x254]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x4cedb1
mov ecx, dword [ebp - 0x258]
lea ecx, [ecx - 0x10]
jmp 0x4cf004
cmp dword [ebp + 0x10], 0
je 0x4cf001
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cee08
push esi
call fcn.004cb24a
pop ecx
test eax, eax
jne 0x4cee08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push str.Jianying_createdeepdirectory__dir_ws_error_x_r_n
push 0x55e0e8
call fcn.004d390d
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x258]
push eax
call fcn.004af11f
xor ebx, ebx
push esi
call fcn.004cb24a
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4cf035
push dword [ebp - 0x264]
push dword [ebp - 0x26c]
push dword [ebp + 0x10]
push esi
push edi
call fcn.004cec21
add esp, 0x14
test eax, eax
jns 0x4cf001
mov ebx, 0x80004005
jmp 0x4cf0c4
push eax
lea ecx, [ebp - 0x25c]
call fcn.004af026
lea ecx, [ebp - 0x25c]
call fcn.004b0030
push eax
lea ecx, [ebp - 0x25c]
call fcn.004af11f
mov byte [ebp - 0x288], bl
lea eax, [ebp - 0x25c]
push dword [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x264]
push dword [eax + 4]
push dword [eax]
call fcn.004c922f
mov ecx, dword [ebp - 0x264]
add esp, 0x10
cmp dword [ecx + 4], eax
je 0x4ceeb0
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
jmp 0x4ceda3
push dword [ebp - 0x25c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
mov byte [ebp - 0x284], bl
push dword [ebp - 0x284]
push eax
mov eax, dword [ebp - 0x264]
push dword [eax + 4]
push dword [eax]
call fcn.004c91e4
mov ecx, dword [ebp - 0x264]
add esp, 0x10
cmp dword [ecx + 4], eax
jne 0x4cee9d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4cefb8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4cefb8
call fcn.004afb89
push eax
lea ecx, [ebp - 0x260]
call fcn.004aef66
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 0x260]
push str._s_d__x
push eax
call fcn.004afaac
push dword [ebp - 0x260]
push esi
call fcn.004e2705
add esp, 0x18
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
push 0
push dword [ebp - 0x260]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push dword [ebp - 0x260]
push esi
push str.Jianying__trename_src_ws_dst_ws_errcode_d
push 0x55e0e8
call fcn.004d390d
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x258]
push eax
call fcn.004af11f
cmp dword [ebp - 0x274], 0
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
jne 0x4cf06f
call fcn.004b04f5
xor ebx, ebx
push 3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4ceff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.Jianying_movefile_fail_src_ws_dst_ws_errcode_d
push 0x55e0e8
call fcn.004d390d
add esp, 0x14
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4cf07b
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
lea ecx, [esi - 0x10]
call fcn.004b04f5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4cf0cc
mov esi, dword [ebp - 0x27c]
mov edi, dword [ebp - 0x280]
jmp 0x4cece0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push str.Jianying_copydir_destdir_no_exists_dir_ws_gle_x_r_n
push 0x55e0e8
call fcn.004d390d
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x258]
push eax
call fcn.004af11f
jmp 0x4cee3f
mov ebx, 0x80004005
call fcn.004b04f5
jmp 0x4cf0b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push edi
push str.Jianying_copy_file_fail_src_ws_dst_ws_errcode_d
push 0x55e0e8
call fcn.004d390d
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x258]
push eax
call fcn.004af11f
mov ebx, 0x80004005
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
lea ecx, [esi - 0x10]
call fcn.004b04f5
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4cf0e0
mov edi, dword [ebp - 0x268]
lea ecx, [edi - 0x10]
call fcn.004b04f5
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret