Function at 0x404920
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0xac
mov dword [esp], eax
call fcn.0041e010
cmp edx, 0
jle 0x404f25
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00425380
test eax, eax
mov dword [esp + 0x14], eax
je 0x4052a1
mov eax, dword [0x4bd074]
lea ecx, [eax - 1]
cmp ecx, 0xf
ja 0x404990
mov edx, 1
shl edx, cl
test edx, 0x115
jne 0x404f63
and dh, 0x80
je 0x404990
mov eax, dword [esp + 0x14]
or dword [eax + 0x28], 0x100000
lea esi, [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00423080
test eax, eax
je 0x404fc2
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x28], 1
test eax, eax
je 0x405284
mov eax, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00425450
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4051f3
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov ecx, dword [0x4927b0]
lea edx, [eax + 4]
mov eax, esi
call fcn.00402230
mov eax, dword [esi]
mov dword [esp], eax
call fcn.0041df80
test eax, eax
mov dword [esp + 0x24], eax
je 0x40547e
cmp dword [0x4bd0c8], 7
je 0x4051e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
movzx edx, byte [eax + 0x2b]
movzx eax, byte [ecx + 0x2b]
and edx, 0x20
and eax, 0xffffffdf
or eax, edx
mov byte [ecx + 0x2b], al
mov ecx, dword [esp + 0x14]
and eax, 0xffffffbf
movzx edx, byte [ecx + 0x2b]
mov ecx, dword [esp + 0x2c]
and edx, 0x40
or eax, edx
mov byte [ecx + 0x2b], al
mov eax, dword [0x4927b8]
test eax, eax
jne 0x404f53
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00426f40
mov ebp, eax
movzx eax, byte [esi + 0x28]
mov esi, dword [esp + 0x2c]
and eax, 7
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004230b0
test eax, eax
je 0x405190
mov eax, esi
add eax, 0x94
mov dword [esp + 0x20], eax
mov eax, dword [0x4bd0cc]
test eax, eax
jne 0x40545d
test ebp, ebp
je 0x40545d
xor ebx, ebx
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.0041e320
test eax, eax
mov eax, dword [ebp]
je 0x4052f5
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x496d75
mov dword [esp], eax
call fcn.004758b0
mov esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
js 0x404b55
mov dword [esp], esi
call fcn.0041df80
test eax, eax
mov edi, eax
je 0x4053b9
mov dword [esp], 0xc
call fcn.004742f0
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x496d75
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.004758b0
mov edx, dword [esp + 0x10]
mov ebx, edx
mov esi, eax
mov eax, dword [0x4bd0d0]
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x404ed0
mov dword [esp], 0xc
call fcn.004742f0
mov dword [eax], ebx
mov edi, eax
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov dword [esp + 4], 1
mov dword [esp], ebp
call fcn.00423080
test eax, eax
mov ebx, eax
je 0x404e80
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x404ea0
mov eax, dword [ebp + 4]
mov eax, dword [eax]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00425450
test eax, eax
mov dword [esp + 0x10], eax
je 0x405316
mov ecx, dword [esp + 0xc4]
mov eax, ebp
xor ebx, ebx
mov edx, dword [esp + 0x10]
call fcn.00402f30
test eax, eax
sete bl
jne 0x404df0
mov dword [esp], ebp
call fcn.00423700
test eax, eax
jne 0x404df0
mov eax, dword [ebp + 4]
lea edx, [esp + 0x70]
mov eax, dword [eax + 0xfc]
mov dword [esp + 4], edx
mov dword [esp], ebp
call eax
test eax, eax
jne 0x4050a5
mov eax, dword [esp + 0x88]
test eax, eax
mov dword [esp + 0x30], eax
js 0x405140
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebp
call fcn.00429f00
test eax, eax
jne 0x4051c3
mov ecx, dword [0x4bd0d4]
test ecx, ecx
jne 0x405162
mov dword [esp], 0x2000
call fcn.004742f0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
xor eax, eax
test edx, edx
je 0x4050dc
mov dword [esp + 0x38], esi
mov ebx, eax
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
jmp 0x404cb9
mov eax, dword [esp + 0x10]
mov dword [esp + 4], ebp
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00429da0
cmp ebp, eax
jne 0x405110
add ebx, ebp
cmp edi, ebx
jle 0x4050d0
mov eax, dword [esp + 0x18]
mov edx, edi
mov ebp, 0x2000
sub edx, ebx
cmp edx, 0x2000
cmovle ebp, edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.00429cf0
cmp ebp, eax
je 0x404c93
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
mov ebx, 1
call fcn.0041e1e0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0048d280
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.004255b0
test eax, eax
jne 0x404e04
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0041e1e0
test ebx, ebx
mov dword [0x4bd0cc], 1
je 0x404e0c
mov dword [esp], esi
call sub.msvcrt.dll__unlink
mov dword [0x4bd0cc], 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.004254c0
test eax, eax
je 0x4052c6
mov eax, dword [esp + 0x14]
mov ebx, dword [eax]
mov dword [esp], eax
call fcn.004254c0
test eax, eax
je 0x40538a
test edi, edi
je 0x404dd6
mov eax, dword [edi + 8]
test eax, eax
je 0x404fb0
mov dword [esp], eax
call fcn.004254c0
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__unlink
mov edi, dword [edi]
test edi, edi
jne 0x404db2
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 [esp + 0x10]
mov dword [esp], eax
call fcn.004254c0
test eax, eax
je 0x404d34
test ebx, ebx
jne 0x404d66
mov eax, dword [0x4bd0d0]
test eax, eax
je 0x404e21
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x404f10
mov eax, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00425380
mov ecx, dword [esp + 0x20]
mov dword [edi + 8], eax
mov dword [ecx], eax
add eax, 0x90
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00426f40
mov dword [esp], ebp
mov esi, eax
call fcn.004254c0
mov ecx, dword [0x4bd0cc]
test ecx, ecx
jne 0x404d78
test esi, esi
je 0x404d78
mov ebx, edi
mov ebp, esi
jmp 0x404ab3
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.0041e1e0
mov eax, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00425450
test eax, eax
mov dword [esp + 0x10], eax
je 0x405316
test ebx, ebx
je 0x404bf6
jmp 0x404bc7
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x40]
mov eax, dword [eax + 0xfc]
mov dword [esp + 4], ecx
mov dword [esp], ebp
call eax
test eax, eax
mov dword [esp + 0x1c], eax
je 0x404b6a
mov eax, dword [ebp]
mov dword [esp], str.internal_stat_error_on__s
mov dword [esp + 4], eax
call fcn.0041d6c0
jmp 0x404b6a
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004054a0
jmp 0x404e21
jl 0x404f36
cmp eax, 0
lea esi, [esi]
ja 0x404941
or edx, eax
je 0x405090
mov dword [0x4bd0cc], 1
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
or dword [eax + 0x28], 0x40000
jmp 0x404a5c
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp + 0x28]
mov ecx, edx
and edx, 0xff80001f
shr ecx, 5
and ecx, 0x3ffff
mov edi, ecx
or edi, 0x4000
shl edi, 5
or edx, edi
cmp eax, 5
mov dword [ebp + 0x28], edx
je 0x404990
or ecx, 0x24000
and edx, 0xff80001f
shl ecx, 5
or edx, ecx
mov dword [ebp + 0x28], edx
jmp 0x404990
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
mov edi, dword [edi]
jmp 0x404dd2
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004228a0
test eax, eax
je 0x405345
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x4053ea
mov eax, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00425450
test eax, eax
mov edi, eax
je 0x4051f3
mov ebp, dword [esp + 0x14]
mov eax, edi
mov ecx, dword [0x4927b0]
lea edx, [ebp + 4]
call fcn.00402230
mov ecx, dword [esp + 0xc4]
mov edx, edi
mov eax, ebp
call fcn.00402f30
test eax, eax
jne 0x405222
mov dword [0x4bd0cc], 1
mov dword [esp], edi
call fcn.004255b0
test eax, eax
sete al
test al, al
je 0x405241
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [0x4bd0cc], 1
call fcn.0041e1e0
jmp 0x404f48
mov dword [esp + 4], ebx
mov dword [esp], str.error:_the_input_file__s_is_empty
call fcn.0041d6c0
jmp 0x404f3e
mov dword [esp + 0xc], 0
mov ebx, 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], 0
call fcn.0041e1e0
jmp 0x404d20
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov edx, dword [eax]
movzx eax, word [esp + 0x76]
mov dword [esp], edx
or ah, 1
movzx eax, ax
mov dword [esp + 4], eax
call sub.msvcrt.dll__chmod
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.0048d280
jmp 0x404d20
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 0x404d03
mov dword [esp], ebp
mov ebx, 1
call fcn.0041e0f0
mov dword [esp], str.stat_returns_negative_size_for___s
mov dword [esp + 4], eax
call fcn.0041d6c0
jmp 0x404d20
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
mov dword [esp], ebp
call fcn.0041e0f0
mov dword [esp], str.copy_from___s__unknown__to___s__unknown__n
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x404c5d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [0x4bd0cc], 1
call fcn.0041e1e0
jmp 0x404dd6
mov dword [esp], ebp
mov ebx, 1
call fcn.0041e0f0
mov dword [esp], eax
call fcn.0041d560
jmp 0x404d20
mov ecx, dword [esp + 0x2c]
movzx eax, byte [ecx + 0x2b]
and eax, 0xffffffdf
mov byte [ecx + 0x2b], al
jmp 0x404a38
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0041e1e0
mov dword [0x4bd0cc], 1
jmp 0x404f48
mov eax, dword [0x4bd0cc]
test eax, eax
jne 0x405048
mov dword [esp], edi
call fcn.004254c0
test eax, eax
sete al
jmp 0x405055
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.004254c0
test eax, eax
jne 0x404f48
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4bd0cc], 1
call fcn.0041e1e0
jmp 0x404f48
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 0x4049c3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0041e1e0
jmp 0x404f3e
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4bd0cc], 1
call fcn.0041e1e0
jmp 0x404d98
mov dword [esp + 4], eax
mov edi, ebx
mov dword [esp], str.illegal_pathname_found_in_archive_member:__s
call fcn.0041d6c0
mov dword [0x4bd0cc], 1
jmp 0x404dae
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0041e1e0
mov dword [0x4bd0cc], 1
jmp 0x404dae
call fcn.00420a00
mov dword [esp + 4], 3
mov edi, eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.004228a0
test eax, eax
je 0x4053ff
cmp edi, 0xd
jne 0x404fe6
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0048d280
jmp 0x404fe6
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [0x4bd0cc], 1
call fcn.0041e1e0
jmp 0x404dae
call dword [sym.imp.msvcrt.dll__errno]
mov edi, ebx
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.0041d6c0
mov dword [0x4bd0cc], 1
jmp 0x404dae
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0xc0], eax
jmp 0x404ff5
call fcn.00420a00
cmp edi, eax
mov esi, eax
je 0x405412
mov dword [esp], edi
call fcn.00420c50
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0041e1e0
cmp edi, 0xd
je 0x405464
cmp esi, 0xd
jne 0x404f3e
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0041d720
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.0048d280
jmp 0x404f3e
xor edi, edi
jmp 0x404d78
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0041d720
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0048d280
jmp 0x405437
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.0041d690
nop
nop