Function at 0x4e5840
Capabilities:
Move file
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x633a04]
sub esp, 0x60
push esi
push edi
test ecx, ecx
je 0x4e58a7
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4e58a7
mov esi, dword [esp + 0x70]
mov ecx, esi
test esi, esi
jne 0x4e586a
mov ecx, str._null_
mov edi, dword [esp + 0x6c]
mov eax, edi
test edi, edi
jne 0x4e5879
mov eax, str._null_
push ecx
push eax
lea eax, [esp + 0x10]
push str._ENTER_PzLocalFile::RenameSub__src_s__tar_s_
push eax
mov dword [esp + 0x18], str..._osfile.cpp
mov dword [esp + 0x1c], 0x2a1
mov dword [esp + 0x20], 0x14
call fcn.004e3840
add esp, 0x10
jmp 0x4e58af
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
push esi
push edi
call dword [sym.imp.MSVCR90.dll_rename]
add esp, 8
test eax, eax
jne 0x4e5906
mov ecx, dword [0x633a04]
test ecx, ecx
je 0x4e58fe
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4e58fe
lea ecx, [esp + 8]
push str._EXIT_RenameSub__:_true
push ecx
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x2a8
mov dword [esp + 0x18], 0x28
call fcn.004e3840
add esp, 8
pop edi
mov al, 1
pop esi
add esp, 0x60
ret
mov edi, dword [sym.imp.MSVCR90.dll__errno]
push ebx
push ebp
call edi
mov eax, dword [eax]
sub eax, 2
mov ecx, dword [0x633a04]
je 0x4e5b2b
test ecx, ecx
je 0x4e59ad
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x4e59ad
call edi
mov ecx, dword [eax]
mov ebx, dword [sym.imp.MSVCR90.dll_strerror]
push ecx
call ebx
add esp, 4
test eax, eax
je 0x4e5957
call edi
mov edx, dword [eax]
push edx
call ebx
add esp, 4
mov ebp, eax
jmp 0x4e595c
mov ebp, str._null_
mov ebx, esi
test esi, esi
jne 0x4e5967
mov ebx, str._null_
mov esi, dword [esp + 0x74]
test esi, esi
jne 0x4e5974
mov esi, str._null_
mov dword [esp + 0x10], str..._osfile.cpp
mov dword [esp + 0x14], 0x2b9
mov dword [esp + 0x18], 0xa
call edi
mov eax, dword [eax]
push ebp
push eax
push ebx
push esi
lea ecx, [esp + 0x20]
push str.FAILED:__0_rename_src_s__tar_s_:__d___s_
push ecx
call fcn.004e3840
mov esi, dword [esp + 0x90]
add esp, 0x18
xor ebx, ebx
mov ebp, 0x2cb
push 0xbb8
call fcn.004e5440
mov edx, dword [esp + 0x78]
push esi
push edx
call dword [sym.imp.MSVCR90.dll_rename]
mov ecx, dword [0x633a04]
add esp, 0xc
test eax, eax
je 0x4e5aa5
test ecx, ecx
je 0x4e5a4f
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0xa
jl 0x4e5a49
call edi
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCR90.dll_strerror]
push eax
call esi
add esp, 4
test eax, eax
je 0x4e5a0d
call edi
mov ecx, dword [eax]
push ecx
call esi
add esp, 4
mov esi, eax
jmp 0x4e5a12
mov esi, str._null_
mov dword [esp + 0x20], str..._osfile.cpp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0xa
call edi
mov edx, dword [eax]
push esi
push edx
lea eax, [ebx + 1]
push eax
lea ecx, [esp + 0x2c]
push str.FAILED:___d_rename__:__d___s_
push ecx
call fcn.004e3840
mov esi, dword [esp + 0x8c]
add esp, 0x14
mov ecx, dword [0x633a04]
inc ebx
cmp ebx, 0x28
jl 0x4e59b4
test ecx, ecx
je 0x4e5bf0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4e5bf0
lea ecx, [esp + 0x40]
push str._EXIT_RenameSub__:_false
push ecx
mov dword [esp + 0x48], str..._osfile.cpp
mov dword [esp + 0x4c], 0x2d2
mov dword [esp + 0x50], 0x28
call fcn.004e3840
add esp, 8
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x60
ret
test ecx, ecx
je 0x4e5b21
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x4e5ae1
inc ebx
push ebx
lea ecx, [esp + 0x34]
push str.SUCCEEDED:___d_rename__
push ecx
mov dword [esp + 0x3c], str..._osfile.cpp
mov dword [esp + 0x40], 0x2c5
mov dword [esp + 0x44], 0xa
call fcn.004e3840
add esp, 0xc
mov ecx, dword [0x633a04]
test ecx, ecx
je 0x4e5b21
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4e5b21
lea ecx, [esp + 0x40]
push str._EXITING_RenameSub__:_true
push ecx
mov dword [esp + 0x48], str..._osfile.cpp
mov dword [esp + 0x4c], 0x2c6
mov dword [esp + 0x50], 0x28
call fcn.004e3840
add esp, 8
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x60
ret
test ecx, ecx
je 0x4e5bf0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x32
jl 0x4e5bb0
call edi
mov ecx, dword [eax]
mov ebx, dword [sym.imp.MSVCR90.dll_strerror]
push ecx
call ebx
add esp, 4
test eax, eax
je 0x4e5b61
call edi
mov edx, dword [eax]
push edx
call ebx
add esp, 4
mov ebp, eax
jmp 0x4e5b66
mov ebp, str._null_
mov ebx, esi
test esi, esi
jne 0x4e5b71
mov ebx, str._null_
mov esi, dword [esp + 0x74]
test esi, esi
jne 0x4e5b7e
mov esi, str._null_
mov dword [esp + 0x50], str..._osfile.cpp
mov dword [esp + 0x54], 0x2b1
mov dword [esp + 0x58], 0x32
call edi
mov eax, dword [eax]
push ebp
push eax
push ebx
push esi
lea ecx, [esp + 0x60]
push str.FAILED:_rename_src_s__tar_s_:__d___s_
push ecx
call fcn.004e3840
add esp, 0x18
mov ecx, dword [0x633a04]
test ecx, ecx
je 0x4e5bf0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x4e5bf0
lea ecx, [esp + 0x60]
push str._EXITING_RenameSub__:_false
push ecx
mov dword [esp + 0x68], str..._osfile.cpp
mov dword [esp + 0x6c], 0x2b4
mov dword [esp + 0x70], 0x28
call fcn.004e3840
add esp, 8
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x60
ret