Function at 0x61070330
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 [0x6110943c]
lea ecx, [ebp - 0x818]
mov edx, dword fs:[4]
mov dword [ebp - 0x728], eax
mov eax, dword [0x61109440]
sub edx, 0x319c
mov dword [ebp - 0x724], eax
mov eax, dword [0x61109444]
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 0x61070498
cmp byte [esi], 0
je 0x61070474
mov eax, dword [ebp - 0xb58]
cmp byte [eax], 0
jne 0x61070560
test byte [0x6110c854], 1
jne 0x61070682
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 2
mov dword [eax], 2
test byte [0x6110c854], 1
jne 0x61070500
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], 0x6110c854
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 0x610704a1
mov dword [esp], esi
call sym.cygwin1.dll__strlen
cmp eax, 0x103
ja 0x61070659
xor eax, eax
cmp byte [0x61148214], 0
je 0x61070583
mov eax, 0x61148218
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 0x610705b2
cmp dword [ebp - 0x178], 0xffffffff
je 0x61070c8e
mov eax, dword [ebp - 0x150]
test eax, eax
jne 0x610706c9
test byte [0x6110c854], 1
jne 0x61070b6f
cmp byte [ebp - 0xb5a], 0
jne 0x610705df
cmp dword [ebp - 0x178], 0xffffffff
jne 0x61070630
mov ecx, dword [ebp - 0x148]
test ecx, ecx
setne al
xor edx, edx
cmp ecx, 0xf7
setne dl
test eax, edx
je 0x610706f9
cmp ecx, 0xfc
je 0x610706f9
lea eax, [ebp - 0x178]
xor edx, edx
add eax, 0x2c
cmp byte [eax + 0x10], 0
je 0x61070628
cmp dword [eax + 4], 0xf7
je 0x61070628
mov edx, 1
test edx, edx
jne 0x610706f9
test byte [0x6110c854], 1
jne 0x61070dc2
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x11
mov dword [eax], 0x11
jmp 0x61070498
test byte [0x6110c854], 1
jne 0x61070cdd
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x5b
mov dword [eax], 0x5b
jmp 0x61070498
mov dword [esp], 0x6110c854
mov eax, 2
mov edi, str.int_symlink_worker_const_char__const_char__bool__bool_
mov dword [esp + 0x18], eax
mov ebx, 0x611299d7
mov eax, 0xaad
mov dword [esp + 0x14], eax
mov ecx, 0x611299b0
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 0x61070481
cmp byte [ebp - 0x138], 0
mov ebx, eax
jne 0x61070b65
test byte [0x6110c854], 1
jne 0x61070d24
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], ebx
mov dword [eax], ebx
jmp 0x61070498
cmp byte [ebp - 0xb59], 0
je 0x61070830
cmp byte [ebp - 0xb5a], 0
jne 0x61070e2e
movzx ecx, byte [esi]
cmp cl, 0x2f
sete dl
cmp cl, 0x5c
sete al
or dl, al
jne 0x61070d80
movsx eax, cl
test byte [eax + str.______________], 3
je 0x61070740
cmp byte [esi + 1], 0x3a
je 0x61070d66
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 0x61070ea5
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 0x61070ec9
cmp byte [ebp - 0xb59], 0
lea eax, [ebp - 0x718]
je 0x610707fd
xor eax, eax
cmp byte [0x61148214], 0
je 0x610707e2
mov eax, 0x61148218
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 0x61070830
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 [0x61148132], 0
lea ebx, [ebp - 0x728]
je 0x61070851
test byte [ebp - 0x160], 8
jne 0x61070e09
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 0x61070e64
cmp byte [ebp - 0xb59], 0
je 0x61070ba9
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 [0x61129790]
mov dword [edi + 4], eax
mov eax, dword [0x61129794]
mov dword [edi + 8], eax
mov eax, dword [0x61129798]
mov dword [edi + 0xc], eax
mov eax, dword [0x6112979c]
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.61101290
sub esp, 4
test eax, eax
js 0x61070a0e
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 0x610709fd
or dword [edi + 0x14], 1
mov ecx, dword [ebp - 0xb50]
mov edx, ecx
movzx eax, word [ecx]
jmp 0x610709b7
movzx eax, ax
add edx, eax
movzx eax, word [edx]
test ax, ax
jne 0x610709af
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.61100ee8
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 0x61070b30
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 0x61070a60
test edx, 0x8080
jne 0x61070a85
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 0x61070afa
cmp ebx, dword [ebp - 0xb54]
je 0x61070c38
mov edx, 0xb6e
mov eax, str._ext_build_netrel_src_cygwin_1.5.25_7_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 0x61070498
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x61070b30
test edx, 0x8080
jne 0x61070b55
shr edx, 0x10
add ecx, 2
add dl, dl
lea eax, [ebp - 0x608]
sbb ecx, 3
jmp 0x61070a90
mov ebx, 0x89
jmp 0x610706d8
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], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610705cd
mov dword [esp + 0xc], esi
mov eax, str.__symlink_
lea ebx, [ebp - 0xb48]
mov dword [esp + 8], eax
mov eax, 0x6112a5e2
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 0x61070bd0
test edx, 0x8080
jne 0x61070bf5
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 0x61070c38
cmp dword [ebp - 0xb54], edi
je 0x61070afa
mov edx, dword [ebp - 0xb60]
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
cmp byte [0x61148132], 0
jne 0x61070c5f
cmp byte [0x61146440], 0
jne 0x61070e78
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 0x61070498
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 0x610705b2
mov dword [esp], 0x6110c854
mov eax, 0x5b
mov edi, 0x611299d7
mov dword [esp + 0x18], eax
mov eax, 0xab3
mov ebx, 0x611299b0
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 0x61070666
mov dword [esp + 0x18], ebx
mov eax, 0xac2
mov edi, 0x611299d7
mov dword [esp + 0x14], eax
mov ecx, 0x611299b0
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], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610706e5
movzx eax, byte [esi + 2]
test al, al
je 0x61070d80
cmp al, 0x2f
sete dl
cmp al, 0x5c
sete al
or dl, al
je 0x61070740
xor eax, eax
cmp byte [0x61148214], 0
je 0x61070d90
mov eax, 0x61148218
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 0x61070830
mov dword [esp], 0x6110c854
mov eax, 0x11
mov edi, 0x611299d7
mov dword [esp + 0x18], eax
mov eax, 0xacb
mov ebx, 0x611299b0
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 0x6107063d
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 0x61070851
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 0x61070835
mov edx, 0xb0d
mov eax, str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygwin_path.cc
call sym.__Z8seterrnoPKci_8
jmp 0x61070498
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 0x61070c5f
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 0x6107077c
jmp 0x6107079c
xor eax, eax
cmp byte [0x61148214], 0
je 0x61070ed9
mov eax, 0x61148218
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 0x61070f1e
cmp byte [ebp - 0xb59], 0
lea eax, [ebp - 0x288]
mov dword [esp + 4], eax
lea eax, [ebp - 0x608]
je 0x61070f16
lea eax, [ebp - 0x718]
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
cmp byte [ebp - 0xb59], 0
je 0x6107080f
jmp 0x610707d2