Function at 0x4c7903
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x18]
push 0x24c
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x254], ebx
call fcn.004d11d0
add esp, 0xc
lea ecx, [ebp - 0x268]
push edi
call fcn.004a6826
call fcn.004a7389
push eax
lea ecx, [ebp - 0x258]
call fcn.004a6766
push 0x52d094
push 0x104
lea ecx, [ebp - 0x268]
call fcn.004a7bcd
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x268]
call fcn.004ad6e5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x4c7dc5
push edi
lea ecx, [ebp - 0x258]
call fcn.004a7e3e
lea eax, [ebp - 0x228]
mov edi, 0x104
push eax
push edi
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
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x25c]
call fcn.004a6826
lea eax, [ebp - 0x228]
push eax
push edi
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
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
mov edi, dword [ebp - 0x25c]
je 0x4c7b14
push 0x528690
push eax
call fcn.004d081c
pop ecx
pop ecx
test eax, eax
je 0x4c7b70
lea eax, [ebp - 0x228]
push 0x52867c
push eax
call fcn.004d081c
pop ecx
pop ecx
test eax, eax
je 0x4c7b70
mov eax, dword [ebp - 0x254]
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
je 0x4c7b70
cmp dword [ebp + 0x10], ebx
je 0x4c7ce7
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c7aca
push edi
call fcn.004c3b33
pop ecx
test eax, eax
jne 0x4c7aca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x25c]
mov ecx, esi
push eax
call fcn.004a691f
push edi
call fcn.004c3b33
pop ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4c7d21
push dword [ebp - 0x278]
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x258]
push edi
push esi
call fcn.004c7903
add esp, 0x14
test eax, eax
jns 0x4c7ced
lea ecx, [edi - 0x10]
mov ebx, 0x80004005
call fcn.004a7cf5
jmp 0x4c7db7
push eax
lea ecx, [ebp - 0x260]
call fcn.004a6826
lea ecx, [ebp - 0x260]
call fcn.004a7830
push eax
lea ecx, [ebp - 0x260]
call fcn.004a691f
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x260]
mov byte [ebp - 0x27c], bl
push dword [ebp - 0x27c]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.004c0e45
add esp, 0x10
cmp dword [esi + 4], eax
je 0x4c7b89
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
mov esi, dword [ebp - 0x258]
jmp 0x4c7cf5
push dword [ebp - 0x260]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x280]
mov byte [ebp - 0x288], bl
push dword [ebp - 0x288]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.004c0dfa
add esp, 0x10
cmp dword [esi + 4], eax
jne 0x4c7b62
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c7c32
call fcn.004a7389
push eax
lea ecx, [ebp - 0x274]
call fcn.004a6766
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x274]
push str._s_d__x
push eax
call fcn.004a72ac
mov esi, dword [ebp - 0x274]
push esi
push edi
call fcn.004d9c75
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.Jianying_trename_src_ws_dst_ws_errcode_d
push 0x555004
call fcn.004cd208
add esp, 0x14
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esi - 0x10]
call fcn.004a7cf5
mov esi, dword [ebp - 0x258]
push 3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4c7cd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Jianying_movefileex_fail_src_ws_dst_ws_errcode_d
push 0x555004
call fcn.004cd208
add esp, 0x14
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4c7c8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Jianying_copyfile_fail_src_ws_dst_ws_errcode_d
push 0x555004
call fcn.004cd208
add esp, 0x14
call fcn.004a7389
push eax
lea ecx, [ebp - 0x264]
call fcn.004a6766
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea eax, [ebp - 0x264]
push str._s_d__x
push eax
call fcn.004a72ac
push dword [ebp - 0x264]
push esi
call fcn.004d9c75
add esp, 0x18
test eax, eax
jne 0x4c7d43
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
mov esi, dword [ebp - 0x258]
lea ecx, [edi - 0x10]
call fcn.004a7cf5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4c7db7
mov esi, dword [ebp - 0x26c]
mov edi, dword [ebp - 0x284]
jmp 0x4c79c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x25c]
mov ecx, esi
push eax
call fcn.004a691f
mov ebx, 0x80004005
jmp 0x4c7da9
push 4
push ebx
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push edi
push esi
push str.Jianying_movefile_fail_src_ws_dst_ws_errcode_d
push 0x555004
call fcn.004cd208
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x258]
add esp, 0x14
push eax
call fcn.004a691f
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x264]
mov ebx, 0x80004005
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
lea ecx, [edi - 0x10]
call fcn.004a7cf5
mov esi, dword [ebp - 0x258]
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4c7dcb
mov esi, dword [ebp - 0x258]
lea ecx, [esi - 0x10]
call fcn.004a7cf5
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 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