Function at 0x405e60
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
mov esi, ecx
mov ebx, eax
sub esp, 0xbc
mov dword [esp], eax
call fcn.004167e0
cmp edx, 0
jle 0x406315
mov eax, dword [esp + 0xd4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00423490
test eax, eax
mov dword [esp + 0x28], eax
je 0x4062e0
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041d570
test eax, eax
jne 0x4062e0
mov ecx, dword [0x4e5084]
cmp ecx, 0x10
ja 0x405ef0
mov eax, 1
shl eax, cl
test eax, 0x22a
jne 0x4065d2
test eax, 0x10000
jne 0x4066d0
mov esi, esi
lea edi, [edi]
mov eax, dword [0x4e5080]
cmp eax, 1
je 0x406340
cmp eax, 2
jne 0x405f0e
mov eax, dword [esp + 0x28]
or dword [eax + 0x28], 0x40000
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004203f0
test al, al
mov byte [esp + 0x4b], al
je 0x4064c0
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x406970
test esi, esi
js 0x406790
mov eax, dword [esp + 0xd8]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004235e0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x406990
mov eax, dword [0x4e508c]
test eax, eax
je 0x405f95
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
mov dword [esp], str.__add_gnu_debuglink_ignored_for_archive__s
mov dword [esp + 4], eax
call fcn.00416030
mov dword [0x4e508c], 0
mov edi, dword [esp + 0x28]
mov ecx, dword [0x4ae880]
mov eax, dword [esp + 0x40]
mov edx, edi
call fcn.00401570
test byte [edi + 0x2d], 0x10
jne 0x406593
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00416740
test eax, eax
mov dword [esp + 0x44], eax
je 0x406b2e
cmp dword [0x4e50cc], 7
je 0x4068f5
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
movzx eax, byte [eax + 0x2d]
mov byte [esp + 0x1c], al
mov edx, eax
movzx eax, byte [ecx + 0x2d]
and edx, 8
and eax, 0xfffffff7
or eax, edx
mov byte [ecx + 0x2d], al
mov ecx, dword [esp + 0x28]
and eax, 0xffffffef
movzx ecx, byte [ecx + 0x2d]
mov byte [esp + 0x1c], cl
mov edx, ecx
mov ecx, dword [esp + 0x40]
and edx, 0x10
or eax, edx
mov byte [ecx + 0x2d], al
mov ebp, dword [0x4ae888]
test ebp, ebp
jne 0x4066c0
mov edi, dword [esp + 0x28]
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00417ff0
mov ebp, eax
movzx eax, byte [edi + 0x2c]
mov edi, dword [esp + 0x40]
mov dword [esp], edi
and eax, 7
mov dword [esp + 4], eax
call fcn.00420420
test al, al
je 0x406750
mov eax, edi
mov edi, dword [0x4e50d4]
xor esi, esi
add eax, 0xac
mov dword [esp + 0x3c], eax
test edi, edi
jne 0x40664a
test ebp, ebp
je 0x40664a
nop
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.00416b90
test al, al
je 0x4069d0
mov dword [esp + 0xc], 0
mov eax, dword [ebp]
lea edi, [esp + 0x50]
mov dword [esp + 4], 0x4b46a9
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0049e100
mov dword [esp + 4], edi
mov ebx, eax
mov dword [esp + 0x1c], eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
js 0x40612a
mov dword [esp], ebx
call fcn.00416740
mov dword [esp], ebx
mov edi, eax
call fcn.004a9de0
test edi, edi
je 0x406a9c
mov dword [esp], 0xc
call fcn.004a70b0
mov dword [eax], esi
mov dword [eax + 4], edi
mov ebx, eax
mov dword [eax + 8], 0
mov dword [esp + 0xc], 0
mov esi, ebx
mov eax, dword [ebp]
mov dword [esp + 4], 0x4b46a9
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0049e100
mov dword [esp + 0x1c], eax
cmp byte [0x4e50d8], 0
mov dword [esp + 0x34], 0
jne 0x4063a0
mov dword [esp], 0xc
call fcn.004a70b0
mov ecx, dword [esp + 0x1c]
mov dword [eax], esi
mov dword [eax + 8], 0
mov dword [esp + 0x38], eax
mov dword [eax + 4], ecx
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.004203f0
test al, al
mov ebx, eax
je 0x406350
cmp byte [esp + 0x4b], 0
jne 0x406370
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00423760
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4069f2
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0x2c]
mov eax, ebp
call fcn.00403480
test al, al
jne 0x4063f0
mov dword [esp], ebp
call fcn.0041b010
test eax, eax
jne 0x4065f2
nop
mov eax, dword [ebp + 0xa4]
lea edx, [esp + 0x80]
test eax, eax
cmove eax, ebp
mov eax, dword [eax + 4]
mov dword [esp + 4], edx
mov dword [esp], ebp
call dword [eax + 0x100]
test eax, eax
jne 0x4067b0
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0x98]
test edi, edi
js 0x406890
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebp
call fcn.0041d5e0
test eax, eax
jne 0x4068e0
cmp byte [0x4e50d9], 0
jne 0x4068b0
mov dword [esp], 0x2000
call fcn.004a70b0
mov edx, edi
mov dword [esp + 0x4c], eax
or edx, esi
je 0x4067f4
mov dword [esp + 0x30], ebp
mov ebx, dword [esp + 0x4c]
jmp 0x4062cb
mov ebp, 0x2000
mov eax, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.0041d2d0
cmp ebp, eax
jne 0x406835
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.0041d420
cmp ebp, eax
jne 0x406870
mov dword [esp + 0x20], ebp
sub esi, dword [esp + 0x20]
mov dword [esp + 0x24], 0
sbb edi, dword [esp + 0x24]
mov edx, edi
or edx, esi
je 0x4067f0
cmp edi, 0
mov ebp, esi
jl 0x406275
jg 0x406270
cmp esi, 0x2000
jbe 0x406275
jmp 0x406270
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00416a40
mov dword [0x4e50d4], 1
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
jl 0x406320
cmp eax, 0
ja 0x405e81
or edx, eax
jne 0x406300
mov dword [esp + 4], ebx
mov dword [esp], str.error:_the_input_file__s_is_empty
call fcn.00416030
jmp 0x406300
mov eax, dword [esp + 0x28]
or dword [eax + 0x28], 0xc0000
jmp 0x405f0e
mov dword [esp + 0xc], str.Unable_to_recognise_the_format_of_file
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 0
call fcn.00416a40
mov eax, dword [esp + 0xd8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00423760
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4069f2
test bl, bl
je 0x4061d0
jmp 0x4061a5
lea edi, [esp + 0x50]
xor eax, eax
mov ecx, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
mov eax, dword [ebp + 0xa4]
test eax, eax
cmove eax, ebp
mov eax, dword [eax + 4]
mov dword [esp + 4], ecx
mov dword [esp], ebp
call dword [eax + 0x100]
test eax, eax
mov dword [esp + 0x34], eax
je 0x40613f
mov eax, dword [ebp]
mov dword [esp], str.internal_stat_error_on__s
mov dword [esp + 4], eax
call fcn.00416030
jmp 0x40613f
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00422840
test al, al
jne 0x40642e
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00416a40
mov dword [0x4e50d4], 1
cmp byte [0x4e50d8], 0
je 0x40643f
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x4064a5
mov eax, dword [esp + 0xd8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00423490
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esi + 8], eax
mov dword [edi], eax
add eax, 0xa8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00417ff0
mov dword [esp], ebp
mov ebx, eax
call fcn.00422840
mov ecx, dword [0x4e50d4]
test ecx, ecx
sete dl
test ebx, ebx
setne al
test dl, al
je 0x406646
mov ebp, ebx
jmp 0x406080
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00406c90
jmp 0x40643f
lea eax, [esp + 0x50]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041fa10
test al, al
je 0x4066e0
mov edx, dword [esp + 0xd8]
test edx, edx
je 0x406a29
test esi, esi
js 0x406730
mov eax, dword [esp + 0xd8]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004235e0
mov ebp, eax
test ebp, ebp
je 0x406990
mov esi, dword [esp + 0x28]
mov ecx, dword [0x4ae880]
mov eax, ebp
mov edx, esi
call fcn.00401570
mov ecx, dword [esp + 0xdc]
mov edx, ebp
mov eax, esi
call fcn.00403480
test al, al
jne 0x406953
mov dword [0x4e50d4], 1
mov dword [esp], ebp
call fcn.00422770
xor eax, 1
test al, al
je 0x406910
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [0x4e50d4], 1
call fcn.00416a40
jmp 0x40630a
mov dword [esp], 5
mov dword [0x4e50d4], 1
call fcn.0041b470
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], str.sorry:_copying_thin_archives_is_not_currently_supported
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00416a40
jmp 0x40630a
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0x28]
mov edx, eax
or ah, 0x40
or edx, 0x24000
cmp ecx, 5
cmovne eax, edx
mov dword [ebp + 0x28], eax
jmp 0x405ef0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00422840
test al, al
jne 0x406630
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00416a40
mov dword [0x4e50d4], 1
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
mov dword [0x4e50d4], 1
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
mov eax, dword [esp + 0x40]
mov ebx, dword [eax]
mov dword [esp], eax
call fcn.00422840
test al, al
je 0x406a6d
mov eax, dword [esp + 0x28]
mov ebx, dword [eax]
mov dword [esp], eax
call fcn.00422840
test al, al
jne 0x4066a0
jmp 0x406a3e
mov dword [esp], eax
call fcn.00422840
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
mov ebx, dword [esi]
mov dword [esp], esi
call fcn.004a9de0
mov esi, ebx
test esi, esi
je 0x40677e
mov eax, dword [esi + 8]
test eax, eax
jne 0x406681
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
jmp 0x406694
or dword [ecx + 0x28], 0x2000
jmp 0x406027
mov eax, dword [esp + 0x28]
or dword [eax + 0x28], 0x8000
jmp 0x405ef0
call fcn.0041b170
mov ebp, eax
lea eax, [esp + 0x80]
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041fa10
test al, al
je 0x406acb
cmp ebp, 0xd
jne 0x4064e4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004a9de0
jmp 0x4064e4
mov eax, dword [esp + 0xd8]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00423760
mov ebp, eax
jmp 0x406514
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [0x4e50d4], 1
mov dword [esp + 4], eax
call fcn.00416a40
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
jmp 0x40630a
mov eax, dword [esp + 0xd8]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00423760
mov dword [esp + 0x40], eax
jmp 0x405f60
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 0
call fcn.00416a40
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00422770
test al, al
je 0x406602
jmp 0x406630
mov ebp, dword [esp + 0x30]
movzx eax, word [esp + 0x86]
mov edi, dword [esp + 0x2c]
or ah, 1
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll__chmod
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004a9de0
mov dword [esp], edi
call fcn.00422770
test al, al
jne 0x40642e
jmp 0x406400
mov ebp, dword [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 0
call fcn.00416a40
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004a9de0
jmp 0x4067d0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp 0x40684d
mov dword [esp], ebp
call fcn.00416950
mov dword [esp], str.stat_returns_negative_size_for___s
mov dword [esp + 4], eax
call fcn.00416030
jmp 0x4067d0
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax]
mov dword [esp], ebp
call fcn.00416950
mov dword [esp], str.copy_from___s__unknown__to___s__unknown__n
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call sub.msvcrt.dll_printf
jmp 0x406245
mov dword [esp], ebp
call fcn.00416950
mov dword [esp], eax
call fcn.00415d00
jmp 0x4067d0
mov ecx, dword [esp + 0x40]
movzx eax, byte [ecx + 0x2d]
and eax, 0xfffffff7
mov byte [ecx + 0x2d], al
jmp 0x405ffc
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00422840
test al, al
jne 0x40630a
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4e50d4], 1
call fcn.00416a40
jmp 0x40630a
mov eax, dword [0x4e50d4]
test eax, eax
jne 0x406551
mov dword [esp], ebp
call fcn.00422840
xor eax, 1
jmp 0x40655c
mov eax, dword [esp + 0x28]
mov byte [esp + 0x4b], 0
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xd8], eax
jmp 0x405f3d
mov dword [esp], esi
call sub.msvcrt.dll__close
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00416a40
mov dword [0x4e50d4], 1
jmp 0x40630a
mov eax, dword [ebp]
mov dword [esp], str.illegal_pathname_found_in_archive_member:__s
mov dword [esp + 4], eax
call fcn.00416030
mov dword [0x4e50d4], 1
jmp 0x4066a0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00416a40
mov dword [0x4e50d4], 1
mov esi, dword [esp + 0x38]
jmp 0x4066a0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xd8], eax
jmp 0x4064f3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4e50d4], 1
call fcn.00416a40
jmp 0x4066a0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4e50d4], 1
call fcn.00416a40
jmp 0x40666a
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp], str.cannot_create_tempdir_for_archive_copying__error:__s_
mov dword [esp + 4], eax
call fcn.00416030
mov dword [0x4e50d4], 1
jmp 0x4066a0
call fcn.0041b170
cmp ebp, eax
mov esi, eax
je 0x406ade
mov dword [esp], ebp
call fcn.0041b470
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00416a40
cmp ebp, 0xd
je 0x406b20
cmp esi, 0xd
jne 0x406300
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.004160c0
jmp 0x406300
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004160c0
jmp 0x406b03
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp], str.cannot_create_tempdir_for_archive_copying__error:__s_
mov dword [esp + 4], eax
call fcn.00416000
nop
nop