Function at 0x6fdc9f40
Capabilities:
Move file

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x1c
mov eax, dword [ecx]
mov ebx, dword [eax + 0x1b0]
mov eax, dword [ecx + 0x5ac]
test ebx, ebx
cmove ebx, dword [str.x265_2pass.log]
test eax, eax
je 0x6fdc9fcf
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, 6
mov dword [esp], eax
call fcn.6fd4e5a0
test eax, eax
mov edi, eax
je 0x6fdca0e0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
add eax, edi
mov dword [eax], 0x6d65742e
mov word [eax + 4], 0x70
mov dword [esp], ebx
call sub.msvcrt.dll__unlink
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_rename
test eax, eax
jne 0x6fdca0fb
mov dword [esp], edi
call fcn.6fd4e5c0
mov eax, dword [esi + 0x5b0]
test eax, eax
je 0x6fdca09c
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, 0xd
mov dword [esp], eax
call fcn.6fd4e5a0
test eax, eax
mov ebp, eax
je 0x6fdca120
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
add eax, ebp
mov dword [eax], 0x7475632e
mov dword [eax + 4], 0x2e656572
mov dword [eax + 8], 0x706d6574
mov byte [eax + 0xc], 0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, 8
mov dword [esp], eax
call fcn.6fd4e5a0
test eax, eax
mov edi, eax
je 0x6fdca1c0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], edi
call sub.msvcrt.dll_strlen
add eax, edi
mov dword [eax], 0x7475632e
mov dword [eax + 4], 0x656572
mov dword [esp], edi
call sub.msvcrt.dll__unlink
mov dword [esp + 4], edi
mov dword [esp], ebp
call sub.msvcrt.dll_rename
test eax, eax
jne 0x6fdca190
mov dword [esp], ebp
call fcn.6fd4e5c0
mov dword [esp], edi
call fcn.6fd4e5c0
mov eax, dword [esi + 0x5b4]
test eax, eax
je 0x6fdca0ae
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esi + 0x5bc]
mov dword [esp], eax
call fcn.6fd4e5c0
mov eax, dword [esi + 0x5d8]
mov dword [esp], eax
call fcn.6fd4e5c0
mov eax, dword [esi + 0x5dc]
mov dword [esp], eax
call fcn.6fd4e5c0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.unable_to_allocate_memory_for_filename_n
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.6fd4e660
mov eax, str.failed_to_rename_output_stats_file_to___s__n
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call fcn.6fd4e660
jmp 0x6fdc9fc7
xor ebp, ebp
mov edi, str.unable_to_allocate_memory_for_filename_n
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp], 0
call fcn.6fd4e660
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, 8
mov dword [esp], eax
call fcn.6fd4e5a0
test eax, eax
mov ebp, eax
je 0x6fdca1b2
mov dword [esp + 4], ebx
mov edi, ebp
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, ebp
mov eax, ecx
not eax
lea eax, [ebp + eax - 1]
xor ebp, ebp
mov dword [eax], 0x7475632e
mov dword [eax + 4], 0x656572
lea esi, [esi]
lea edi, [edi]
mov eax, str.failed_to_rename_cutree_output_stats_file_to___s__n
xor edx, edx
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6fd4e660
jmp 0x6fdca08c
xor ebp, ebp
lea esi, [esi]
lea edi, [edi]
mov ecx, str.unable_to_allocate_memory_for_filename_n
xor ebx, ebx
mov dword [esp + 8], ecx
xor edi, edi
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.6fd4e660
jmp 0x6fdca190