Function at 0x46a218
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [esp + 8], str.rename_ref
mov dword [esp + 4], 2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004681b1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xac], 0x61d2e4
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb8], 0x61d2e4
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc4], 0x61d2e4
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xd0], 0x61d2e4
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0xb4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004682f2
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004682f2
mov dword [esp + 8], str.refs_.tmp_renamed_log
lea eax, [ebp - 0xcc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004682f2
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll__lstat64
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46a39d
mov eax, dword [ebp - 0x98]
and eax, 0xf000
cmp eax, 0xa000
jne 0x46a39d
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.reflog_for__s_is_a_symlink
call fcn.004b5782
call fcn.00467af4
mov dword [ebp - 0x10], eax
jmp 0x46a99b
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x48]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x44]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 3
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004650ce
test eax, eax
jne 0x46a3e9
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.refname__s_not_found
call fcn.004b5782
call fcn.00467af4
mov dword [ebp - 0x10], eax
jmp 0x46a99b
mov eax, dword [ebp - 0x48]
and eax, 1
test eax, eax
je 0x46a439
cmp dword [ebp + 0x18], 0
je 0x46a419
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.refname__s_is_a_symbolic_ref__copying_it_is_not_supported
call fcn.004b5782
call fcn.00467af4
mov dword [ebp - 0x10], eax
jmp 0x46a99b
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.refname__s_is_a_symbolic_ref__renaming_it_is_not_supported
call fcn.004b5782
call fcn.00467af4
mov dword [ebp - 0x10], eax
jmp 0x46a99b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0046a14d
test eax, eax
jne 0x46a462
mov dword [ebp - 0x10], 1
jmp 0x46a99b
cmp dword [ebp + 0x18], 0
jne 0x46a4bd
cmp dword [ebp - 0x18], 0
je 0x46a4bd
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xac]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_rename
test eax, eax
je 0x46a4bd
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_move_logfile_logs__s_to_logs_refs_.tmp_renamed_log:__s
call fcn.004b5782
call fcn.00467af4
mov dword [ebp - 0x10], eax
jmp 0x46a99b
cmp dword [ebp + 0x18], 0
je 0x46a520
cmp dword [ebp - 0x18], 0
je 0x46a520
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xc4]
mov dword [esp + 8], 0x1a4
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ef08c
test eax, eax
je 0x46a520
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_copy_logfile_logs__s_to_logs_refs_.tmp_renamed_log:__s
call fcn.004b5782
call fcn.00467af4
mov dword [ebp - 0x10], eax
jmp 0x46a99b
cmp dword [ebp + 0x18], 0
jne 0x46a56f
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], 1
lea edx, [ebp - 0x44]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004632b6
test eax, eax
je 0x46a56f
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_delete_old__s
call fcn.004b5782
call fcn.00467af4
jmp 0x46a7f2
cmp dword [ebp + 0x18], 0
jne 0x46a690
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004650ce
test eax, eax
je 0x46a690
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004632b6
test eax, eax
je 0x46a690
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x15
jne 0x46a673
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xdc], 0x61d2e4
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0xe4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004683b8
lea eax, [ebp - 0xe4]
mov dword [esp], eax
call fcn.00469647
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xe4]
mov dword [esp], eax
call fcn.00491cd8
cmp dword [ebp - 0x1c], 0
je 0x46a690
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Directory_not_empty:__s
call fcn.004b5782
call fcn.00467af4
jmp 0x46a7f2
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_delete_existing__s
call fcn.004b5782
call fcn.00467af4
jmp 0x46a7f2
cmp dword [ebp - 0x18], 0
je 0x46a6b0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0046a044
test eax, eax
jne 0x46a7f1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xd8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004696a3
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46a748
cmp dword [ebp + 0x18], 0
je 0x46a70c
mov eax, dword [ebp - 0xd0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_copy__s_to__s:__s
call fcn.004b5782
call fcn.00467af4
jmp 0x46a735
mov eax, dword [ebp - 0xd0]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_rename__s_to__s:__s
call fcn.004b5782
call fcn.00467af4
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.00491cd8
jmp 0x46a7f2
mov eax, dword [ebp - 0x20]
lea edx, [eax + 8]
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00467ed0
lea eax, [ebp - 0xd8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0046b03e
test eax, eax
jne 0x46a7b3
lea eax, [ebp - 0xd8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x44]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0046b1dc
test eax, eax
je 0x46a7e5
mov eax, dword [ebp - 0xd0]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_write_current_sha1_into__s:__s
call fcn.004b5782
call fcn.00467af4
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.00491cd8
jmp 0x46a7f2
mov dword [ebp - 0x10], 0
jmp 0x46a99b
nop
lea eax, [ebp - 0xd8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004696a3
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46a84c
mov eax, dword [ebp - 0xd0]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_lock__s_for_rollback:__s
call fcn.004b5782
call fcn.00467af4
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.00491cd8
jmp 0x46a8ed
mov eax, dword [0x5993c8]
mov dword [ebp - 0x48], eax
mov dword [0x5993c8], 0
lea eax, [ebp - 0xd8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0046b03e
test eax, eax
jne 0x46a8b5
lea eax, [ebp - 0xd8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x44]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0046b1dc
test eax, eax
je 0x46a8e5
mov eax, dword [ebp - 0xd0]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_write_current_sha1_into__s:__s
call fcn.004b5782
call fcn.00467af4
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.00491cd8
mov eax, dword [ebp - 0x48]
mov dword [0x5993c8], eax
cmp dword [ebp - 0xc], 0
je 0x46a941
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_rename
test eax, eax
je 0x46a941
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_restore_logfile__s_from__s:__s
call fcn.004b5782
call fcn.00467af4
cmp dword [ebp - 0xc], 0
jne 0x46a994
cmp dword [ebp - 0x18], 0
je 0x46a994
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xc4]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_rename
test eax, eax
je 0x46a994
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_restore_logfile__s_from_logs_refs_.tmp_renamed_log:__s
call fcn.004b5782
call fcn.00467af4
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0xc0]
mov dword [esp], eax
call fcn.00491cd8
lea eax, [ebp - 0xb4]
mov dword [esp], eax
call fcn.00491cd8
lea eax, [ebp - 0xcc]
mov dword [esp], eax
call fcn.00491cd8
mov eax, dword [ebp - 0x10]
leave
ret