Function at 0x405800
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov esi, edx
mov ebx, eax
sub esp, 0xac
mov dword [esp], eax
call fcn.0041f340
cmp edx, 0
jle 0x405eb5
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.004299a0
test eax, eax
mov dword [esp + 0x14], eax
je 0x406240
mov ecx, dword [0x4e4078]
cmp ecx, 0x10
ja 0x405870
mov eax, 1
shl eax, cl
test eax, 0x22a
jne 0x405f00
test eax, 0x10000
je 0x405870
mov eax, dword [esp + 0x14]
or dword [eax + 0x28], 0x100000
nop
lea esi, [esi]
mov eax, dword [0x4e4074]
cmp eax, 1
je 0x405f40
cmp eax, 2
je 0x405ee0
mov eax, dword [esp + 0x14]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004275a0
test eax, eax
je 0x405f50
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x28], 1
test ecx, ecx
je 0x406223
mov eax, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00429a80
test eax, eax
mov dword [esp + 0x2c], eax
je 0x406190
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov ecx, dword [0x4b1820]
lea edx, [eax + 4]
mov eax, esi
call fcn.00402320
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0041f2b0
test eax, eax
mov dword [esp + 0x24], eax
je 0x4063d7
cmp dword [0x4e40cc], 7
je 0x406180
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
movzx eax, byte [eax + 0x2b]
mov byte [esp + 0x10], al
movzx ecx, byte [esi + 0x2b]
and eax, 0xffffff80
mov edx, ecx
mov byte [esp + 0x10], cl
and edx, 0x7f
or eax, edx
mov byte [esi + 0x2b], al
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
movzx eax, byte [eax + 0x2c]
mov byte [esp + 0x10], al
movzx ecx, byte [esi + 0x2c]
and eax, 1
mov edx, ecx
mov byte [esp + 0x10], cl
and edx, 0xfffffffe
or eax, edx
mov byte [esi + 0x2c], al
mov edx, dword [0x4b1828]
test edx, edx
jne 0x405ef0
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00420990
mov ebp, eax
movzx eax, byte [esi + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp], esi
and eax, 7
mov dword [esp + 4], eax
call fcn.004275d0
test eax, eax
je 0x406130
mov eax, esi
xor edi, edi
add eax, 0x94
mov dword [esp + 0x20], eax
mov eax, dword [0x4e40dc]
test eax, eax
jne 0x405c82
test ebp, ebp
je 0x405c82
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.0041f690
test eax, eax
je 0x406294
mov dword [esp + 0xc], 0
mov eax, dword [ebp]
mov dword [esp + 4], 0x4b631d
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004a3350
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
js 0x405dd0
mov dword [esp], esi
call fcn.0041f2b0
test eax, eax
mov esi, eax
je 0x40631b
mov dword [esp], 0xc
call fcn.004a91f0
mov dword [eax + 4], esi
mov dword [eax], edi
mov ebx, eax
mov dword [eax + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp]
mov dword [esp], esi
mov dword [esp + 4], 0x4b631d
mov dword [esp + 8], eax
call fcn.004a3350
mov esi, eax
mov eax, dword [0x4e40e0]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x405de0
mov dword [esp], 0xc
call fcn.004a91f0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov edi, eax
mov dword [eax + 8], 0
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.004275a0
test eax, eax
mov ebx, eax
je 0x405d80
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x405da0
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00429a80
test eax, eax
mov dword [esp + 0x10], eax
je 0x405e20
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x10]
mov eax, ebp
xor ebx, ebx
call fcn.004031a0
test eax, eax
sete bl
jne 0x405cf0
mov dword [esp], ebp
call fcn.00423c40
test eax, eax
jne 0x405cf0
mov eax, dword [ebp + 4]
lea edx, [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 4], edx
call dword [eax + 0xfc]
test eax, eax
jne 0x406035
mov eax, dword [esp + 0x88]
test eax, eax
mov dword [esp + 0x30], eax
js 0x4060e0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebp
call fcn.00425eb0
test eax, eax
jne 0x406163
mov eax, dword [0x4e40e4]
test eax, eax
jne 0x406100
mov dword [esp], 0x2000
call fcn.004a91f0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
xor ecx, ecx
test eax, eax
je 0x40606c
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
mov ebx, ecx
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
jmp 0x405bc6
mov eax, dword [esp + 0x10]
mov dword [esp + 4], ebp
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00425d50
cmp ebp, eax
jne 0x4060b0
add ebx, ebp
cmp edi, ebx
jle 0x406060
mov edx, edi
mov eax, dword [esp + 0x18]
mov ebp, 0x2000
sub edx, ebx
mov dword [esp], esi
cmp edx, 0x2000
cmovle ebp, edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call fcn.00425ca0
cmp ebp, eax
je 0x405ba0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 0
call fcn.0041f550
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.004abfa8
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.00429af0
test eax, eax
jne 0x405c70
mov ebx, 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0041f550
test ebx, ebx
mov dword [0x4e40dc], 1
je 0x405d0c
nop
mov dword [esp], esi
call sub.msvcrt.dll__unlink
mov dword [0x4e40dc], 1
mov eax, dword [esp + 0x20]
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax]
mov dword [esp], eax
call fcn.00429bb0
test eax, eax
je 0x406265
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
mov dword [esp], eax
call fcn.00429bb0
test eax, eax
jne 0x405e4a
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4e40dc], 1
call fcn.0041f550
jmp 0x405e4a
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.00429bb0
test eax, eax
je 0x405c3d
test ebx, ebx
jne 0x405c70
mov eax, dword [0x4e40e0]
test eax, eax
je 0x405d21
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x405ea0
mov eax, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004299a0
mov ecx, dword [esp + 0x20]
mov dword [edi + 8], eax
mov dword [ecx], eax
add eax, 0x90
mov dword [esp + 4], ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00420990
mov dword [esp], ebp
mov ebx, eax
call fcn.00429bb0
mov ecx, dword [0x4e40dc]
test ecx, ecx
sete dl
test ebx, ebx
setne al
test dl, al
je 0x405c82
mov ebp, ebx
jmp 0x4059c3
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.0041f550
mov eax, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00429a80
test eax, eax
mov dword [esp + 0x10], eax
je 0x405e20
test ebx, ebx
je 0x405b02
jmp 0x405ad3
mov ebx, edi
jmp 0x405a61
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], ecx
call dword [eax + 0xfc]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x405a76
mov eax, dword [ebp]
mov dword [esp], str.internal_stat_error_on__s
mov dword [esp + 4], eax
call fcn.0041ec10
jmp 0x405a76
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0041f550
mov dword [0x4e40dc], 1
test edi, edi
je 0x405e70
nop
mov eax, dword [edi + 8]
test eax, eax
je 0x405e90
mov dword [esp], eax
call fcn.00429bb0
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
mov edi, dword [edi]
test edi, edi
jne 0x405e50
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
mov edi, dword [edi]
jmp 0x405e6c
lea eax, [esp + 0x40]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00406400
jmp 0x405d21
jl 0x405ec0
cmp eax, 0
ja 0x405821
or edx, eax
je 0x406020
mov dword [0x4e40dc], 1
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
or dword [eax + 0x28], 0x800000
jmp 0x405887
or dword [esi + 0x28], 0x40000
jmp 0x40596c
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x28]
mov eax, edi
shr eax, 5
and eax, 0xfffff
cmp ecx, 5
je 0x406301
or eax, 0x24000
mov ecx, dword [esp + 0x14]
and eax, 0xfffff
shl eax, 5
mov edx, eax
mov eax, edi
and eax, 0xfe00001f
or eax, edx
mov dword [ecx + 0x28], eax
jmp 0x405870
mov eax, dword [esp + 0x14]
or dword [eax + 0x28], 0x1800000
jmp 0x405887
lea eax, [esp + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00426d70
test eax, eax
je 0x4062c0
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x40634a
mov eax, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00429a80
test eax, eax
mov edi, eax
je 0x406190
mov ebp, dword [esp + 0x14]
mov ecx, dword [0x4b1820]
mov eax, edi
lea edx, [ebp + 4]
call fcn.00402320
mov ecx, dword [esp + 0xc4]
mov edx, edi
mov eax, ebp
call fcn.004031a0
test eax, eax
jne 0x4061c0
mov dword [0x4e40dc], 1
mov dword [esp], edi
call fcn.00429af0
test eax, eax
sete al
test al, al
je 0x4061e0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [0x4e40dc], 1
call fcn.0041f550
jmp 0x405e7c
mov dword [esp + 4], ebx
mov dword [esp], str.error:_the_input_file__s_is_empty
call fcn.0041ec10
jmp 0x405ec8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 0
call fcn.0041f550
jmp 0x405c28
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
movzx eax, word [esp + 0x76]
mov ebx, dword [esp + 0x10]
or ah, 1
movzx eax, ax
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__chmod
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.004abfa8
mov dword [esp], ebx
call fcn.00429af0
test eax, eax
jne 0x405d0c
xor ebx, ebx
jmp 0x405c3d
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
jmp 0x405c10
mov dword [esp], ebp
call fcn.0041f460
mov dword [esp], str.stat_returns_negative_size_for___s
mov dword [esp + 4], eax
call fcn.0041ec10
jmp 0x405c28
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
mov dword [esp], ebp
call fcn.0041f460
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 0x405b66
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [0x4e40dc], 1
mov dword [esp + 4], eax
call fcn.0041f550
jmp 0x405e70
mov dword [esp], ebp
call fcn.0041f460
mov dword [esp], eax
call fcn.0041e8f0
jmp 0x405c28
mov eax, dword [esp + 0x2c]
and byte [eax + 0x2b], 0x7f
jmp 0x405939
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0041f550
mov dword [0x4e40dc], 1
jmp 0x405e7c
mov eax, dword [0x4e40dc]
test eax, eax
jne 0x405fd6
mov dword [esp], edi
call fcn.00429bb0
test eax, eax
sete al
jmp 0x405fe3
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00429bb0
test eax, eax
jne 0x405e7c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4e40dc], 1
call fcn.0041f550
jmp 0x405e7c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 0
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xc0], eax
jmp 0x4058ba
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0041f550
jmp 0x405ec8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4e40dc], 1
call fcn.0041f550
jmp 0x405ca2
mov eax, dword [ebp]
mov dword [esp], str.illegal_pathname_found_in_archive_member:__s
mov dword [esp + 4], eax
call fcn.0041ec10
mov dword [0x4e40dc], 1
jmp 0x405e4a
call fcn.00423da0
mov edi, eax
lea eax, [esp + 0x70]
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.00426d70
test eax, eax
je 0x40635f
cmp edi, 0xd
jne 0x405f74
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004abfa8
jmp 0x405f74
or ah, 0x40
and edi, 0xfe00001f
shl eax, 5
or edi, eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x28], edi
jmp 0x405870
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.0041ec10
mov dword [0x4e40dc], 1
jmp 0x405e4a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xc0], eax
jmp 0x405f83
call fcn.00423da0
cmp edi, eax
mov esi, eax
je 0x406372
mov dword [esp], edi
call fcn.004240c0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0041f550
cmp edi, 0xd
je 0x4063bd
cmp esi, 0xd
jne 0x405ec8
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0041ec70
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004abfa8
jmp 0x405ec8
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0041ec70
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004abfa8
jmp 0x406397
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.0041ebe0
nop
nop
nop
nop
nop
nop
nop
nop
nop