Function at 0x42ec20
Capabilities:
Move file

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov eax, 0xffffffea
test edi, edi
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
je 0x42edc2
cmp dword [edi], edi
je 0x42edc0
test byte [edi + 0x18], 4
je 0x42edc0
mov eax, dword [edi + 0x1c]
test eax, eax
mov dword [ebp - 0x84], eax
je 0x42ef4b
lea eax, [ebp - 0x78]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.cygwin1.dll__stat64
test eax, eax
mov esi, eax
js 0x42edaf
test esi, esi
je 0x42ee79
mov eax, 0x4439d0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x42ef3f
mov ebx, dword [edi]
cmp ebx, edi
je 0x42ecf1
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x42edd0
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x42ece0
test esi, esi
js 0x42ecfe
and dword [edi + 0x18], 0xfffffffb
mov esi, 1
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sub.cygwin1.dll_fclose
mov eax, dword [ebp - 0x84]
cmp dword [ebp - 0x80], eax
je 0x42ed90
test esi, esi
js 0x42ef5b
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
add eax, 5
mov dword [esp], eax
call sub.cygwin1.dll_malloc
test eax, eax
mov ebx, eax
je 0x42ed7b
mov eax, dword [ebp - 0x84]
mov edx, str._s.old
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.cygwin1.dll_sprintf
mov dword [esp], ebx
call sub.cygwin1.dll_unlink
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.cygwin1.dll_link
mov dword [esp], ebx
call sub.cygwin1.dll_free
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sub.cygwin1.dll_rename
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x42eda2
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sub.cygwin1.dll_free
add esp, 0x9c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x42ec94
lea esi, [esi]
xor eax, eax
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x42eddc
mov eax, dword [ebx + 0x14]
cmp byte [eax], 0x2f
je 0x42ede5
xor esi, esi
mov ebx, dword [ebx]
jmp 0x42eced
mov eax, dword [ebx + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, str._device_DEVNO_0x_04lx__TIME__ld_
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x42ef6b
mov esi, dword [ebx + 8]
lea eax, [ebx + 8]
mov dword [ebp - 0x8c], eax
cmp eax, esi
jmp 0x42ee52
mov eax, dword [esi + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
mov eax, str.__s__s_
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov esi, dword [esi]
cmp dword [ebp - 0x8c], esi
jne 0x42ee25
mov eax, dword [ebx + 0x14]
mov ecx, str.__s__device__n
xor esi, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x42edde
mov eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.cygwin1.dll_access
test eax, eax
js 0x42edc0
mov eax, dword [ebp - 0x68]
and eax, 0xf000
cmp eax, 0x8000
jne 0x42ec9c
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
add eax, 8
mov dword [esp], eax
call sub.cygwin1.dll_malloc
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x42ec9c
mov eax, dword [ebp - 0x84]
mov dword [esp + 8], eax
mov eax, str._s_XXXXXX
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sub.cygwin1.dll_sprintf
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sub.cygwin1.dll_mkstemp
test eax, eax
mov ebx, eax
js 0x42ef1b
mov dword [esp], ebx
mov eax, 0x4439d0
mov dword [esp + 4], eax
call sub.cygwin1.dll__fdopen64
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov dword [esp], ebx
mov ecx, 0x1a4
mov dword [esp + 4], ecx
call sub.cygwin1.dll_fchmod
mov edx, dword [ebp - 0x88]
test edx, edx
jne 0x42ecd0
jmp 0x42ec9c
call sub.cygwin1.dll___errno
mov esi, dword [eax]
jmp 0x42ed90
mov eax, str._etc_blkid.tab
mov dword [ebp - 0x84], eax
jmp 0x42ec75
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sub.cygwin1.dll_unlink
jmp 0x42ed90
mov dword [esp + 8], eax
mov eax, str._PRI__d_
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x42ee15