Function at 0x581618
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.0059946c
sub esp, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x58163b
mov eax, 0
jmp 0x581842
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
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 eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00581438
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x581675
mov eax, 0xffffffff
jmp 0x581842
cmp dword [ebp - 0x10], 0
jne 0x581685
mov eax, 0
jmp 0x581842
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 2
jne 0x5816f4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00431041
test eax, eax
je 0x5816aa
mov eax, 0
jmp 0x581842
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
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 eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00581438
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x5816e4
mov eax, 0xffffffff
jmp 0x581842
cmp dword [ebp - 0x10], 0
jne 0x5816f4
mov eax, 0
jmp 0x581842
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x11
je 0x58170c
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0xd
jne 0x581751
lea eax, [ebp - 0x1010]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll__lstat64
test eax, eax
jne 0x581751
mov eax, dword [ebp - 0x1000]
and eax, 0xf000
cmp eax, 0x4000
jne 0x581746
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00496c18
test eax, eax
jne 0x581751
call sub.cygwin1.dll___errno
mov dword [eax], 0x11
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x11
jne 0x58181b
call sub.cygwin1.dll_getpid
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_u
mov dword [esp + 4], 0x1000
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call fcn.00443144
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1010]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00581438
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x5817cf
mov eax, 0xffffffff
jmp 0x581842
cmp dword [ebp - 0x10], 0
jne 0x581805
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call sub.cygwin1.dll_rename
test eax, eax
jne 0x5817f5
mov eax, 0
jmp 0x581842
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call fcn.004b50b5
jmp 0x58181b
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x11
jne 0x58181a
add dword [ebp - 0xc], 1
jmp 0x581769
nop
mov dword [esp], str.unable_to_write_file__s_mode__o
call fcn.00577f2c
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.004ae275
call fcn.00577a38
leave
ret