Function at 0x6106fdf0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
sub esp, 0xb9c
mov dword [ebp - 0xb58], edx
mov edx, 0xffffffff
movzx eax, byte [ebp + 8]
xor ebx, ebx
mov byte [ebp - 0xb59], cl
mov ecx, 0xffffffff
mov byte [ebp - 0xb5a], al
xor eax, eax
mov dword [ebp - 0x158], eax
xor eax, eax
mov dword [ebp - 0x154], eax
xor eax, eax
mov dword [ebp - 0x150], eax
xor eax, eax
mov dword [ebp - 0x134], eax
mov eax, 0xffffffff
mov dword [ebp - 0x178], edx
mov edx, 0x104
mov dword [ebp - 0x2d8], eax
xor eax, eax
mov dword [ebp - 0xb64], ecx
xor ecx, ecx
mov dword [ebp - 0x2b8], eax
xor eax, eax
mov dword [esp + 8], edx
lea edx, [ebp - 0x718]
mov dword [ebp - 0x294], ecx
mov dword [esp], edx
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x2b4], edi
mov dword [ebp - 0x2b0], ebx
mov byte [ebp - 0x288], 0
mov byte [ebp - 0xb69], 0
mov dword [esp + 4], eax
call sym.cygwin1.dll__memset
mov eax, dword [0x61107420]
lea ecx, [ebp - 0x818]
mov edx, dword fs:[4]
mov dword [ebp - 0x728], eax
mov eax, dword [0x61107424]
sub edx, 0x319c
mov dword [ebp - 0x724], eax
mov eax, dword [0x61107428]
mov dword [ebp - 0x720], eax
xor eax, eax
mov dword [ebp - 0x738], eax
xor eax, eax
mov dword [ebp - 0x734], eax
mov eax, dword [edx + 0xc30]
mov dword [ebp - 0x748], eax
mov eax, dword [edx + 0xc34]
mov dword [edx + 0xc30], ecx
mov dword [ebp - 0x744], eax
mov eax, 0xe
mov dword [edx + 0xc34], eax
mov dword [esp], ecx
call sym.___sjfault
test eax, eax
jne 0x6106ff58
cmp byte [esi], 0
je 0x6106ff34
mov eax, dword [ebp - 0xb58]
cmp byte [eax], 0
jne 0x61070020
test byte [0x6110a820], 1
jne 0x61070142
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 2
mov dword [eax], 2
test byte [0x6110a820], 1
jne 0x6106ffc0
mov eax, dword fs:[4]
mov edx, dword [ebp - 0x748]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [ebp - 0x744]
mov dword [eax + 0xc34], edx
lea edx, [ebp - 0x738]
mov dword [esp], edx
call method.security_descriptor.free__
lea eax, [ebp - 0x2d8]
mov dword [esp], eax
call sym.path_conv::path_conv__
lea edx, [ebp - 0x178]
mov dword [esp], edx
call sym.path_conv::path_conv__
mov eax, dword [ebp - 0xb64]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebp - 0xb5a]
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0xb58]
mov dword [esp], 0x6110a820
mov dword [esp + 0x20], eax
movzx eax, byte [ebp - 0xb59]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xb64]
mov dword [esp + 0x10], eax
mov eax, str._d__symlink_worker___s___s___d___d_
mov dword [esp + 0xc], eax
mov eax, str.int_symlink_worker_const_char__const_char__bool__bool_
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6106ff61
mov dword [esp], esi
call sym.cygwin1.dll__strlen
cmp eax, 0x103
ja 0x61070119
xor eax, eax
cmp byte [0x611463c4], 0
je 0x61070043
mov eax, 0x611463c8
mov dword [esp], eax
mov edx, dword [ebp - 0xb58]
mov ecx, 2
lea eax, [ebp - 0x178]
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
cmp byte [ebp - 0xb59], 0
je 0x61070072
cmp dword [ebp - 0x178], 0xffffffff
je 0x6107074e
mov eax, dword [ebp - 0x150]
test eax, eax
jne 0x61070189
test byte [0x6110a820], 1
jne 0x6107062f
cmp byte [ebp - 0xb5a], 0
jne 0x6107009f
cmp dword [ebp - 0x178], 0xffffffff
jne 0x610700f0
mov ecx, dword [ebp - 0x148]
test ecx, ecx
setne al
xor edx, edx
cmp ecx, 0xf7
setne dl
test eax, edx
je 0x610701b9
cmp ecx, 0xfc
je 0x610701b9
lea eax, [ebp - 0x178]
xor edx, edx
add eax, 0x2c
cmp byte [eax + 0x10], 0
je 0x610700e8
cmp dword [eax + 4], 0xf7
je 0x610700e8
mov edx, 1
test edx, edx
jne 0x610701b9
test byte [0x6110a820], 1
jne 0x61070882
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x11
mov dword [eax], 0x11
jmp 0x6106ff58
test byte [0x6110a820], 1
jne 0x6107079d
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x5b
mov dword [eax], 0x5b
jmp 0x6106ff58
mov dword [esp], 0x6110a820
mov eax, 2
mov edi, str.int_symlink_worker_const_char__const_char__bool__bool_
mov dword [esp + 0x18], eax
mov ebx, 0x611278d7
mov eax, 0xaad
mov dword [esp + 0x14], eax
mov ecx, 0x611278b0
mov edx, 0x40
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6106ff41
cmp byte [ebp - 0x138], 0
mov ebx, eax
jne 0x61070625
test byte [0x6110a820], 1
jne 0x610707e4
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], ebx
mov dword [eax], ebx
jmp 0x6106ff58
cmp byte [ebp - 0xb59], 0
je 0x610702f0
cmp byte [ebp - 0xb5a], 0
jne 0x610708ee
movzx ecx, byte [esi]
cmp cl, 0x2f
sete dl
cmp cl, 0x5c
sete al
or dl, al
jne 0x61070840
movsx eax, cl
test byte [eax + str.______________], 3
je 0x61070200
cmp byte [esi + 1], 0x3a
je 0x61070826
mov ebx, 0x104
lea edi, [ebp - 0x4f8]
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x3e8]
mov dword [esp], edi
call sym._getcwd_1
mov dword [esp], ebx
mov ecx, 0x2f
mov dword [esp + 4], ecx
call sym.cygwin1.dll__strrchr
mov dword [ebp - 0xb68], eax
test eax, eax
je 0x61070965
mov eax, dword [ebp - 0xb68]
mov edx, dword [ebp - 0xb68]
movzx eax, byte [eax]
mov byte [ebp - 0xb69], al
mov byte [edx], 0
mov dword [esp], ebx
call sym._chdir_1
xor ecx, ecx
lea edx, [ebp - 0x718]
mov eax, esi
call sym.backslashify_char_const__char__int_
lea eax, [ebp - 0x718]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
inc eax
je 0x61070989
cmp byte [ebp - 0xb59], 0
lea eax, [ebp - 0x718]
je 0x610702bd
xor eax, eax
cmp byte [0x611463c4], 0
je 0x610702a2
mov eax, 0x611463c8
mov dword [esp], eax
mov ecx, 2
lea eax, [ebp - 0x2d8]
mov edx, esi
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
lea eax, [ebp - 0x288]
mov dword [esp + 4], eax
lea eax, [ebp - 0x608]
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
mov edx, dword [ebp - 0xb68]
test edx, edx
je 0x610702f0
movzx edx, byte [ebp - 0xb69]
mov eax, dword [ebp - 0xb68]
mov byte [eax], dl
mov dword [esp], edi
call sym._chdir_1
mov edi, 1
cmp byte [0x611462e2], 0
lea ebx, [ebp - 0x728]
je 0x61070311
test byte [ebp - 0x160], 8
jne 0x610708c9
mov dword [esp + 0x10], edi
mov eax, pe_nt_image_headers32
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], edx
lea edx, [ebp - 0x128]
mov dword [esp + 8], eax
mov eax, 0x40000000
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 0xb60], eax
sub esp, 0x1c
inc eax
je 0x61070924
cmp byte [ebp - 0xb59], 0
je 0x61070669
mov eax, 0x2010
call sym.cygwin1.dll__alloca
xor eax, eax
lea edi, [esp + 0x33]
and edi, 0xfffffff0
mov dword [ebp - 0xb50], eax
mov eax, 0x4c
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.cygwin1.dll__memset
mov dword [edi], 0x4c
mov eax, dword [0x61127690]
mov dword [edi + 4], eax
mov eax, dword [0x61127694]
mov dword [edi + 8], eax
mov eax, dword [0x61127698]
mov dword [edi + 0xc], eax
mov eax, dword [0x6112769c]
mov dword [edi + 0x14], 0xc
mov dword [edi + 0x3c], 1
mov dword [edi + 0x10], eax
lea eax, [edi + 0x4c]
mov dword [ebp - 0xb68], eax
lea eax, [ebp - 0xb4c]
mov dword [esp], eax
call fcn.610ff290
sub esp, 4
test eax, eax
js 0x610704ce
mov dword [esp], 0
mov ebx, 0x104
xor edx, edx
mov dword [esp + 0x14], ebx
mov ecx, 0xffffffff
lea ebx, [ebp - 0xa28]
mov dword [esp + 0xc], ecx
lea eax, [ebp - 0x608]
mov dword [esp + 4], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
call sub.KERNEL32.dll_MultiByteToWideChar
mov edx, dword [ebp - 0xb4c]
sub esp, 0x18
xor eax, eax
mov ecx, dword [edx]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0xb50]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [ecx + 0xc]
sub esp, 0x1c
test eax, eax
js 0x610704bd
or dword [edi + 0x14], 1
mov ecx, dword [ebp - 0xb50]
mov edx, ecx
movzx eax, word [ecx]
jmp 0x61070477
movzx eax, ax
add edx, eax
movzx eax, word [edx]
test ax, ax
jne 0x6107046f
sub edx, ecx
lea eax, [edx + 2]
mov edx, dword [ebp - 0xb68]
movzx ebx, ax
mov word [edx], bx
add edx, 2
mov dword [ebp - 0xb68], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym.cygwin1.dll__memcpy
add dword [ebp - 0xb68], ebx
mov eax, dword [ebp - 0xb50]
mov dword [esp], eax
call fcn.610feee8
sub esp, 4
mov eax, dword [ebp - 0xb4c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp], esi
call sym.cygwin1.dll__strlen
mov edx, dword [ebp - 0xb68]
movzx ebx, ax
mov word [edx], ax
add edx, 2
mov dword [ebp - 0xb68], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edx
call sym.cygwin1.dll__memcpy
add dword [ebp - 0xb68], ebx
lea ecx, [ebp - 0x608]
cmp byte [ebp - 0x718], 0
je 0x610705f0
lea ecx, [ebp - 0x718]
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x61070520
test edx, 0x8080
jne 0x61070545
shr edx, 0x10
add ecx, 2
add dl, dl
lea eax, [ebp - 0x718]
sbb ecx, 3
mov edx, dword [ebp - 0xb68]
sub ecx, eax
movzx ebx, cx
mov word [edx], cx
add edx, 2
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [ebp - 0xb68], edx
mov dword [esp + 4], eax
call sym.cygwin1.dll__memcpy
mov dword [esp + 4], edi
mov eax, dword [ebp - 0xb68]
mov edx, dword [ebp - 0xb60]
add ebx, eax
xor eax, eax
sub ebx, edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xb54]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x610705ba
cmp ebx, dword [ebp - 0xb54]
je 0x610706f8
mov edx, 0xb6e
mov eax, str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygwin_path.cc
call sym.__Z8seterrnoPKci_8
mov eax, dword [ebp - 0xb60]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea edx, [ebp - 0x128]
mov dword [esp], edx
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
jmp 0x6106ff58
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x610705f0
test edx, 0x8080
jne 0x61070615
shr edx, 0x10
add ecx, 2
add dl, dl
lea eax, [ebp - 0x608]
sbb ecx, 3
jmp 0x61070550
mov ebx, 0x89
jmp 0x61070198
mov dword [esp + 0x10], esi
lea eax, [ebp - 0x128]
mov dword [esp + 0x14], eax
mov eax, str.symlink___s___s_
mov dword [esp + 0xc], eax
mov eax, str.int_symlink_worker_const_char__const_char__bool__bool_
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6107008d
mov dword [esp + 0xc], esi
mov eax, str.__symlink_
lea ebx, [ebp - 0xb48]
mov dword [esp + 8], eax
mov eax, 0x611284e2
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.___small_sprintf
mov ecx, ebx
nop
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x61070690
test edx, 0x8080
jne 0x610706b5
shr edx, 0x10
add ecx, 2
mov dword [esp + 4], ebx
add dl, dl
mov edx, dword [ebp - 0xb60]
sbb ecx, 3
sub ecx, ebx
xor eax, eax
mov dword [esp + 0x10], eax
lea edi, [ecx + 1]
lea eax, [ebp - 0xb54]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], edx
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
jne 0x610706f8
cmp dword [ebp - 0xb54], edi
je 0x610705ba
mov edx, dword [ebp - 0xb60]
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
cmp byte [0x611462e2], 0
jne 0x6107071f
cmp byte [0x611445f0], 0
jne 0x61070938
cmp byte [ebp - 0xb59], 1
sbb eax, eax
and eax, 3
inc eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
xor eax, eax
mov dword [ebp - 0xb64], eax
jmp 0x6106ff58
mov edx, dword [ebp - 0xb58]
lea ebx, [ebp - 0x3e8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sym.cygwin1.dll__strcpy
mov dword [esp], ebx
call sym.cygwin1.dll__strlen
mov edx, 0x6b6e6c2e
mov ecx, 2
mov dword [ebp + eax - 0x3e8], edx
mov edx, ebx
mov byte [ebx + eax + 4], 0
lea eax, [ebp - 0x178]
mov dword [esp], 0
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
jmp 0x61070072
mov dword [esp], 0x6110a820
mov eax, 0x5b
mov edi, 0x611278d7
mov dword [esp + 0x18], eax
mov eax, 0xab3
mov ebx, 0x611278b0
mov dword [esp + 0x14], eax
mov ecx, 0x40
mov eax, str.int_symlink_worker_const_char__const_char__bool__bool_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61070126
mov dword [esp + 0x18], ebx
mov eax, 0xac2
mov edi, 0x611278d7
mov dword [esp + 0x14], eax
mov ecx, 0x611278b0
mov eax, str.int_symlink_worker_const_char__const_char__bool__bool_
mov dword [esp + 0x10], eax
mov edx, 0x40
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610701a5
movzx eax, byte [esi + 2]
test al, al
je 0x61070840
cmp al, 0x2f
sete dl
cmp al, 0x5c
sete al
or dl, al
je 0x61070200
xor eax, eax
cmp byte [0x611463c4], 0
je 0x61070850
mov eax, 0x611463c8
mov dword [esp], eax
mov ecx, 2
lea eax, [ebp - 0x2d8]
mov edx, esi
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
lea eax, [ebp - 0x288]
mov dword [esp + 4], eax
lea eax, [ebp - 0x608]
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
jmp 0x610702f0
mov dword [esp], 0x6110a820
mov eax, 0x11
mov edi, 0x611278d7
mov dword [esp + 0x18], eax
mov eax, 0xacb
mov ebx, 0x611278b0
mov dword [esp + 0x14], eax
mov ecx, 0x40
mov eax, str.int_symlink_worker_const_char__const_char__bool__bool_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610700fd
mov dword [esp], 0xa1a4
lea edx, [ebp - 0x738]
lea ebx, [ebp - 0x728]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
call sym.set_security_attribute_int___SECURITY_ATTRIBUTES__security_descriptor_
jmp 0x61070311
mov dword [esp + 4], esi
lea eax, [ebp - 0x608]
mov edi, 2
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
mov eax, pe_nt_image_headers32
lea edx, [ebp - 0x128]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
jmp 0x610702f5
mov edx, 0xb0d
mov eax, str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygwin_path.cc
call sym.__Z8seterrnoPKci_8
jmp 0x6106ff58
mov dword [esp], 0
lea eax, [ebp - 0x128]
mov edi, 0xa1ff
mov dword [esp + 0xc], edi
xor ebx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
call sym.__Z18set_file_attributebPvPKci_16
sub esp, 0x10
jmp 0x6107071f
mov dword [esp], ebx
mov eax, 0x5c
mov dword [esp + 4], eax
call sym.cygwin1.dll__strrchr
mov dword [ebp - 0xb68], eax
test eax, eax
jne 0x6107023c
jmp 0x6107025c
xor eax, eax
cmp byte [0x611463c4], 0
je 0x61070999
mov eax, 0x611463c8
mov dword [esp], eax
mov ecx, 2
mov edx, esi
lea eax, [ebp - 0x2d8]
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
cmp dword [ebp - 0x2b0], 2
je 0x610709de
cmp byte [ebp - 0xb59], 0
lea eax, [ebp - 0x288]
mov dword [esp + 4], eax
lea eax, [ebp - 0x608]
je 0x610709d6
lea eax, [ebp - 0x718]
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
cmp byte [ebp - 0xb59], 0
je 0x610702cf
jmp 0x61070292