Function at 0x58133c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.00597adc
sub esp, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x58135f
mov eax, 0
jmp 0x581566
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.0058115c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x581399
mov eax, 0xffffffff
jmp 0x581566
cmp dword [ebp - 0x10], 0
jne 0x5813a9
mov eax, 0
jmp 0x581566
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 2
jne 0x581418
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00438a19
test eax, eax
je 0x5813ce
mov eax, 0
jmp 0x581566
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.0058115c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x581408
mov eax, 0xffffffff
jmp 0x581566
cmp dword [ebp - 0x10], 0
jne 0x581418
mov eax, 0
jmp 0x581566
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x11
je 0x581430
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0xd
jne 0x581475
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 0x581475
mov eax, dword [ebp - 0x1000]
and eax, 0xf000
cmp eax, 0x4000
jne 0x58146a
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0049e0d0
test eax, eax
jne 0x581475
call sub.cygwin1.dll___errno
mov dword [eax], 0x11
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x11
jne 0x58153f
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.0044bc24
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.0058115c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x5814f3
mov eax, 0xffffffff
jmp 0x581566
cmp dword [ebp - 0x10], 0
jne 0x581529
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 0x581519
mov eax, 0
jmp 0x581566
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call fcn.004bb651
jmp 0x58153f
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x11
jne 0x58153e
add dword [ebp - 0xc], 1
jmp 0x58148d
nop
mov dword [esp], str.unable_to_write_file__s_mode__o
call fcn.00577c50
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.004b572d
call fcn.0057775c
leave
ret