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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x254], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x24c
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x250]
push 0
push eax
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x260], ebx
call fcn.004d11d0
add esp, 0xc
lea ecx, [ebp - 0x258]
push esi
call fcn.004a6826
call fcn.004a7389
push eax
lea ecx, [ebp - 0x25c]
call fcn.004a6766
push 0x52d094
push 0x104
lea ecx, [ebp - 0x258]
call fcn.004a7bcd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.004ad6e5
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x4c788e
push esi
lea ecx, [ebp - 0x25c]
call fcn.004a7e3e
lea eax, [ebp - 0x228]
mov esi, 0x104
push eax
push esi
lea ecx, [ebp - 0x25c]
call fcn.004a7bcd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x25c]
call fcn.004ad6e5
push dword [ebp - 0x264]
lea ecx, [ebp - 0x258]
call fcn.004a6826
lea eax, [ebp - 0x228]
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.004a7bcd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x258]
call fcn.004ad6e5
test byte [ebp - 0x254], 0x10
mov esi, dword [ebp - 0x258]
je 0x4c77fd
lea eax, [ebp - 0x228]
push 0x528690
push eax
call fcn.004d081c
pop ecx
pop ecx
test eax, eax
je 0x4c779b
lea eax, [ebp - 0x228]
push 0x52867c
push eax
call fcn.004d081c
pop ecx
pop ecx
test eax, eax
je 0x4c779b
mov eax, dword [ebp - 0x254]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x4c77a6
mov ecx, dword [ebp - 0x258]
lea ecx, [ecx - 0x10]
jmp 0x4c7817
cmp dword [ebp + 0x10], 0
je 0x4c7814
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c77c2
push esi
call fcn.004c3be3
pop ecx
test eax, eax
je 0x4c783f
push esi
call fcn.004c3be3
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4c7876
push ebx
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x25c]
call fcn.004c7622
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x4c78f9
mov ebx, dword [ebp - 0x260]
jmp 0x4c7814
push 3
push esi
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4c78b9
lea ecx, [esi - 0x10]
call fcn.004a7cf5
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4c7887
mov esi, dword [ebp - 0x268]
jmp 0x4c76d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push str.Jianying_createdirectory_dir_ws_error_x_r_n
push 0x555004
call fcn.004cd208
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x258]
push eax
call fcn.004a691f
jmp 0x4c78f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push str.Jianying_copydir_dest_no_exists_dir_ws_error_x_r_n
jmp 0x4c784e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
mov ecx, dword [ebp - 0x25c]
add ecx, 0xfffffff0
call fcn.004a7cf5
lea ecx, [edi - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x25c]
push str.Jianying_movefile_fail_src_ws_dst_ws_errcode_d
push 0x555004
call fcn.004cd208
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
add esp, 0x14
push eax
call fcn.004a691f
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 0x80004005
lea ecx, [esi - 0x10]
call fcn.004a7cf5
jmp 0x4c7890