Function at 0x462ddc
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.00460d75
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], 0x62f624
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb8], 0x62f624
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc4], 0x62f624
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xd0], 0x62f624
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.00460eb6
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.00460eb6
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.00460eb6
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 0x462f61
mov eax, dword [ebp - 0x98]
and eax, 0xf000
cmp eax, 0xa000
jne 0x462f61
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.reflog_for__s_is_a_symlink
call fcn.004ae2ca
call fcn.004606b8
mov dword [ebp - 0x10], eax
jmp 0x46355f
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.0045dc92
test eax, eax
jne 0x462fad
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.refname__s_not_found
call fcn.004ae2ca
call fcn.004606b8
mov dword [ebp - 0x10], eax
jmp 0x46355f
mov eax, dword [ebp - 0x48]
and eax, 1
test eax, eax
je 0x462ffd
cmp dword [ebp + 0x18], 0
je 0x462fdd
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.004ae2ca
call fcn.004606b8
mov dword [ebp - 0x10], eax
jmp 0x46355f
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.004ae2ca
call fcn.004606b8
mov dword [ebp - 0x10], eax
jmp 0x46355f
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.00462d11
test eax, eax
jne 0x463026
mov dword [ebp - 0x10], 1
jmp 0x46355f
cmp dword [ebp + 0x18], 0
jne 0x463081
cmp dword [ebp - 0x18], 0
je 0x463081
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 0x463081
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.004ae2ca
call fcn.004606b8
mov dword [ebp - 0x10], eax
jmp 0x46355f
cmp dword [ebp + 0x18], 0
je 0x4630e4
cmp dword [ebp - 0x18], 0
je 0x4630e4
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.004ecea8
test eax, eax
je 0x4630e4
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.004ae2ca
call fcn.004606b8
mov dword [ebp - 0x10], eax
jmp 0x46355f
cmp dword [ebp + 0x18], 0
jne 0x463133
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.0045be7a
test eax, eax
je 0x463133
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_delete_old__s
call fcn.004ae2ca
call fcn.004606b8
jmp 0x4633b6
cmp dword [ebp + 0x18], 0
jne 0x463254
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.0045dc92
test eax, eax
je 0x463254
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.0045be7a
test eax, eax
je 0x463254
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x15
jne 0x463237
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xdc], 0x62f624
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.00460f7c
lea eax, [ebp - 0xe4]
mov dword [esp], eax
call fcn.0046220b
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xe4]
mov dword [esp], eax
call fcn.0048a820
cmp dword [ebp - 0x1c], 0
je 0x463254
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.Directory_not_empty:__s
call fcn.004ae2ca
call fcn.004606b8
jmp 0x4633b6
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_delete_existing__s
call fcn.004ae2ca
call fcn.004606b8
jmp 0x4633b6
cmp dword [ebp - 0x18], 0
je 0x463274
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00462c08
test eax, eax
jne 0x4633b5
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.00462267
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46330c
cmp dword [ebp + 0x18], 0
je 0x4632d0
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.004ae2ca
call fcn.004606b8
jmp 0x4632f9
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.004ae2ca
call fcn.004606b8
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.0048a820
jmp 0x4633b6
mov eax, dword [ebp - 0x20]
lea edx, [eax + 8]
lea eax, [ebp - 0x44]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00460a94
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.00463c02
test eax, eax
jne 0x463377
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.00463da0
test eax, eax
je 0x4633a9
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.004ae2ca
call fcn.004606b8
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.0048a820
jmp 0x4633b6
mov dword [ebp - 0x10], 0
jmp 0x46355f
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.00462267
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x463410
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.004ae2ca
call fcn.004606b8
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.0048a820
jmp 0x4634b1
mov eax, dword [0x59b448]
mov dword [ebp - 0x48], eax
mov dword [0x59b448], 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.00463c02
test eax, eax
jne 0x463479
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.00463da0
test eax, eax
je 0x4634a9
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.004ae2ca
call fcn.004606b8
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.0048a820
mov eax, dword [ebp - 0x48]
mov dword [0x59b448], eax
cmp dword [ebp - 0xc], 0
je 0x463505
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 0x463505
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.004ae2ca
call fcn.004606b8
cmp dword [ebp - 0xc], 0
jne 0x463558
cmp dword [ebp - 0x18], 0
je 0x463558
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 0x463558
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.004ae2ca
call fcn.004606b8
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0xc0]
mov dword [esp], eax
call fcn.0048a820
lea eax, [ebp - 0xb4]
mov dword [esp], eax
call fcn.0048a820
lea eax, [ebp - 0xcc]
mov dword [esp], eax
call fcn.0048a820
mov eax, dword [ebp - 0x10]
leave
ret