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

Disassembly:
mov ecx, dword [0x67e8e0]
sub esp, 0x60
push esi
push edi
test ecx, ecx
je 0x50b157
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x50b157
mov esi, dword [esp + 0x70]
mov ecx, esi
test esi, esi
jne 0x50b11a
mov ecx, str._null_
mov edi, dword [esp + 0x6c]
mov eax, edi
test edi, edi
jne 0x50b129
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.005090f0
add esp, 0x10
jmp 0x50b15f
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 0x50b1b6
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50b1ae
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50b1ae
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.005090f0
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 [0x67e8e0]
je 0x50b3db
test ecx, ecx
je 0x50b25d
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50b25d
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 0x50b207
call edi
mov edx, dword [eax]
push edx
call ebx
add esp, 4
mov ebp, eax
jmp 0x50b20c
mov ebp, str._null_
mov ebx, esi
test esi, esi
jne 0x50b217
mov ebx, str._null_
mov esi, dword [esp + 0x74]
test esi, esi
jne 0x50b224
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.005090f0
mov esi, dword [esp + 0x90]
add esp, 0x18
xor ebx, ebx
mov ebp, 0x2cb
push 0xbb8
call fcn.0050acf0
mov edx, dword [esp + 0x78]
push esi
push edx
call dword [sym.imp.MSVCR90.dll_rename]
mov ecx, dword [0x67e8e0]
add esp, 0xc
test eax, eax
je 0x50b355
test ecx, ecx
je 0x50b2ff
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0xa
jl 0x50b2f9
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 0x50b2bd
call edi
mov ecx, dword [eax]
push ecx
call esi
add esp, 4
mov esi, eax
jmp 0x50b2c2
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.005090f0
mov esi, dword [esp + 0x8c]
add esp, 0x14
mov ecx, dword [0x67e8e0]
inc ebx
cmp ebx, 0x28
jl 0x50b264
test ecx, ecx
je 0x50b4a0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50b4a0
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.005090f0
add esp, 8
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x60
ret
test ecx, ecx
je 0x50b3d1
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x50b391
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.005090f0
add esp, 0xc
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50b3d1
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50b3d1
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.005090f0
add esp, 8
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x60
ret
test ecx, ecx
je 0x50b4a0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x32
jl 0x50b460
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 0x50b411
call edi
mov edx, dword [eax]
push edx
call ebx
add esp, 4
mov ebp, eax
jmp 0x50b416
mov ebp, str._null_
mov ebx, esi
test esi, esi
jne 0x50b421
mov ebx, str._null_
mov esi, dword [esp + 0x74]
test esi, esi
jne 0x50b42e
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.005090f0
add esp, 0x18
mov ecx, dword [0x67e8e0]
test ecx, ecx
je 0x50b4a0
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0x28
jl 0x50b4a0
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.005090f0
add esp, 8
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x60
ret