Function at 0x404560
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov eax, dword [ebp + 8]
movzx edx, ah
and eax, 0x7f
dec eax
cmp eax, 0x7d
setbe al
movzx eax, al
mov ecx, eax
or ecx, edx
je 0x404617
test eax, eax
sete al
test edx, edx
setne dl
movzx edx, dl
test edx, eax
jne 0x404610
mov eax, str.Background_append_only_file_rewriting_terminated_by_signal
mov dword [esp + 4], eax
lea edi, [ebp - 0x118]
mov dword [esp], 2
call fcn.00403610
mov eax, dword [0x4161d4]
mov dword [esp], eax
call fcn.0040f760
call fcn.0040f6d0
mov dword [0x4161d4], eax
mov eax, dword [0x4161d0]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, str.temp_rewriteaof_bg__d.aof
mov dword [esp + 8], eax
mov eax, 0x100
mov dword [esp + 4], eax
call sub.cygwin1.dll_snprintf
mov dword [esp], edi
call sub.cygwin1.dll_unlink
mov eax, 0xffffffff
mov dword [0x4161d0], eax
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.Background_append_only_file_rewriting_error
jmp 0x40459f
mov dword [esp], 1
mov ecx, str.Background_append_only_file_rewriting_terminated_with_success
lea edi, [ebp - 0x118]
mov dword [esp + 4], ecx
call fcn.00403610
mov dword [esp], edi
mov eax, dword [0x4161d0]
mov edx, str.temp_rewriteaof_bg__d.aof
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, 0x100
mov dword [esp + 4], eax
call sub.cygwin1.dll_snprintf
mov dword [esp], edi
mov eax, 9
mov dword [esp + 4], eax
call sub.cygwin1.dll__open64
cmp eax, 0xffffffff
mov esi, eax
je 0x404778
mov eax, dword [0x4161d4]
mov dword [esp], eax
call fcn.0040f720
mov dword [esp + 8], eax
mov eax, dword [0x4161d4]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_write
mov ebx, eax
mov eax, dword [0x4161d4]
mov dword [esp], eax
call fcn.0040f720
cmp ebx, eax
je 0x4046e0
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, str.Error_or_short_write_trying_to_flush_the_parent_diff_of_the_append_log_file_in_the_child_temp_file:__s
mov dword [esp + 4], eax
mov dword [esp], 2
call fcn.00403610
mov dword [esp], esi
call sub.cygwin1.dll_close
jmp 0x4045b5
mov eax, dword [0x4161d4]
mov dword [esp], eax
call fcn.0040f720
mov dword [esp + 8], eax
mov eax, str.Parent_diff_flushed_into_the_new_append_log_file_with_success___lu_bytes_
mov dword [esp + 4], eax
mov dword [esp], 1
call fcn.00403610
mov dword [esp], edi
mov eax, dword [0x4161ec]
mov dword [esp + 4], eax
call sub.cygwin1.dll_rename
inc eax
je 0x4047a5
mov dword [esp], 1
mov ebx, str.Append_only_file_successfully_rewritten.
mov dword [esp + 4], ebx
call fcn.00403610
mov eax, dword [0x4161c0]
cmp eax, 0xffffffff
je 0x4046ce
mov dword [esp], eax
call sub.cygwin1.dll_close
mov dword [0x4161c0], esi
mov dword [esp], esi
call sub.cygwin1.dll_fsync
mov dword [esp], 1
mov ecx, 0xffffffff
mov edx, str.The_new_append_only_file_was_selected_for_future_appends.
mov dword [0x4161c4], ecx
mov dword [esp + 4], edx
call fcn.00403610
jmp 0x4045b5
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, str.Not_able_to_open_the_temp_append_only_file_produced_by_the_child:__s
mov dword [esp + 4], eax
mov dword [esp], 2
call fcn.00403610
jmp 0x4045b5
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, str.Cant_rename_the_temp_append_only_file_into_the_stable_one:__s
jmp 0x4046be