Function at 0x401410
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
mov eax, 1
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 0xc], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x40144a
push str.____date______time_____size_______________________file_n_____________________________________________________________________n
call fcn.004092e4
add esp, 4
mov ecx, dword [ebp + 8]
push 0x200
lea eax, [esp + 0x234]
push eax
push ecx
call fcn.00402a70
add esp, 0xc
cmp eax, ebx
jl 0x401b67
jmp 0x401478
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
cmp eax, 0x200
je 0x40148c
xor edi, edi
mov dword [ebp + 0xc], 2
mov dword [esp + 0x18], edi
cmp dword [esp + 0x1c], 1
jl 0x401a5e
test eax, eax
je 0x401ba4
cmp byte [esp + 0x230], 0
je 0x401ba4
mov esi, 8
lea ecx, [esp + 0x294]
xor edi, edi
jmp 0x4014c0
mov al, byte [ecx]
sub esi, 1
add ecx, 1
test al, al
je 0x4014e9
cmp al, 0x20
je 0x4014e5
mov dl, al
sub dl, 0x30
cmp dl, 7
ja 0x4015de
movsx eax, al
lea edi, [eax + edi*8 - 0x30]
test esi, esi
jne 0x4014c0
mov ebx, edi
mov dword [esp + 0x28], edi
mov esi, 0xc
lea ecx, [esp + 0x2b8]
xor edi, edi
lea ecx, [ecx]
mov al, byte [ecx]
sub esi, 1
add ecx, 1
test al, al
je 0x401529
cmp al, 0x20
je 0x401525
mov dl, al
sub dl, 0x30
cmp dl, 7
ja 0x4015ea
movsx eax, al
lea edi, [eax + edi*8 - 0x30]
test esi, esi
jne 0x401500
mov eax, edi
cmp ebx, 0xffffffff
cdq
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
je 0x401540
and eax, edx
cmp eax, 0xffffffff
jne 0x40154f
mov byte [esp + 0x230], 0
mov dword [ebp + 0xc], 2
mov esi, 1
cmp dword [esp + 0x1c], esi
jne 0x4015f2
cmp byte [esp + 0x389], 0
lea esi, [esp + 0x30]
mov byte [esp + 0x30], 0
je 0x4015bf
push 0x9b
lea ecx, [esp + 0x38d]
push ecx
mov edx, esi
push edx
call fcn.004091c0
mov edi, esi
add esp, 0xc
mov byte [esp + 0xca], 0
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401596
mov ax, word [0x41b058]
mov word [edi], ax
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4015b0
sub eax, edx
lea esi, [esp + eax + 0x30]
push 0x64
lea ecx, [esp + 0x234]
push ecx
push esi
call fcn.004091c0
add esp, 0xc
cmp byte [esi + 0x63], 0
je 0x401615
mov byte [esi + 0x64], 0
jmp 0x401615
or ebx, 0xffffffff
mov dword [esp + 0x28], ebx
jmp 0x4014ef
or eax, 0xffffffff
jmp 0x40152b
push 0x63
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00409fcb
add esp, 0xc
test eax, eax
jne 0x401b7d
mov dword [esp + 0x1c], esi
movsx eax, byte [esp + 0x2cc]
cmp eax, 0x4c
ja case.0x40162d.1
movzx ecx, byte [eax + 0x401bec]
jmp dword [ecx*4 + 0x401bdc]
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x401694
lea edx, [esp + 0x20]
push edx
call fcn.00409b22
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 4
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
add ecx, 1
push ecx
add edx, 0x76c
push edx
push str._4d__02d__02d__02d:_02d:_02d
push 0x41dbf8
call fcn.00409f50
lea eax, [esp + 0x50]
push eax
push 0x41dbf8
push str.__s______dir___s_n
call fcn.004092e4
add esp, 0x2c
jmp 0x401acb
test eax, eax
jne 0x401acb
lea ecx, [esp + 0x30]
push ecx
call fcn.004095fb
add esp, 4
mov edi, eax
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4016b0
sub eax, edx
test eax, eax
jg 0x4016ca
push edi
call fcn.0040a089
add esp, 4
jmp 0x4016cf
call fcn.00401360
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push 0x18
call fcn.0040a166
mov esi, eax
add esp, 4
test esi, esi
je 0x401b87
lea edx, [esp + 0x30]
push edx
call fcn.004095fb
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov dword [esi], ecx
mov dword [esp + 0x14], esi
jmp 0x401acb
mov edi, 0xc
lea ecx, [esp + 0x2ac]
xor esi, esi
mov al, byte [ecx]
sub edi, 1
add ecx, 1
test al, al
je 0x40174e
cmp al, 0x20
je 0x40174a
mov dl, al
sub dl, 0x30
cmp dl, 7
ja 0x401bd0
movsx eax, al
lea esi, [eax + esi*8 - 0x30]
test edi, edi
jne 0x401725
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x401bd0
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x4017c3
lea ecx, [esp + 0x20]
push ecx
call fcn.00409b22
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add esp, 4
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
add edx, 1
push edx
add eax, 0x76c
push eax
push str._4d__02d__02d__02d:_02d:_02d
push 0x41dbf8
call fcn.00409f50
lea ecx, [esp + 0x50]
push ecx
push esi
push 0x41dbf8
push str.__s__9d__s_n
call fcn.004092e4
add esp, 0x30
mov dword [esp + 0x1c], 0
jmp 0x401acb
test eax, eax
jne 0x401802
mov esi, dword [ebp + 0x10]
cmp esi, dword [ebp + 0x14]
je 0x40180f
mov edx, dword [ebp + 0x14]
cmp esi, edx
jge 0x4017fa
mov edi, edx
jmp 0x4017e0
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + esi*4]
lea ecx, [esp + 0x30]
call fcn.00401300
add esi, 1
test eax, eax
jne 0x40180f
cmp esi, edi
jl 0x4017e0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
jmp 0x401acb
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401816
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x2f
je 0x40192f
lea ecx, [esp + 0x30]
push 0x41b08c
push ecx
call fcn.0040946d
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4018e1
lea edx, [esp + 0x30]
push 0x2f
push edx
call fcn.00409830
mov esi, eax
add esp, 8
test esi, esi
je 0x401900
mov bl, byte [esi]
lea eax, [esp + 0x30]
push eax
mov byte [esi], 0
call fcn.004095fb
add esp, 4
mov edi, eax
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401880
sub eax, edx
test eax, eax
jg 0x40189a
push edi
call fcn.0040a089
add esp, 4
jmp 0x40189f
call fcn.00401360
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edi, [esp + 0x24]
call fcn.00401260
lea edx, [esp + 0x40]
push 0x41b08c
push edx
mov byte [esi], bl
call fcn.0040946d
add esp, 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
jmp 0x401acb
lea eax, [esp + 0x30]
push eax
push str.Extracting__s_n
call fcn.004092e4
add esp, 8
mov dword [esp + 0x1c], 0
jmp 0x401acb
mov edx, dword [0x41f19c]
lea ecx, [esp + 0x30]
push ecx
push edx
push str._s:_Couldnt_create__s_n
call fcn.0040a229
add eax, 0x40
push eax
call fcn.004094ac
add esp, 0x10
mov dword [esp + 0x1c], 0
jmp 0x401acb
lea eax, [esp + 0x30]
push eax
call fcn.004095fb
add esp, 4
mov edi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401941
sub eax, edx
test eax, eax
jg 0x40195b
push edi
call fcn.0040a089
add esp, 4
jmp 0x401960
call fcn.00401360
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x38]
push ebx
push eax
lea edi, [esp + 0x24]
call fcn.00401260
add esp, 0x10
mov dword [esp + 0x1c], 0
jmp 0x401acb
mov eax, 0xc
lea edx, [esp + 0x2ac]
call fcn.00401110
mov edi, eax
cmp edi, 0x1ff
mov dword [esp + 0x18], edi
ja 0x4019f3
mov esi, dword [ebp + 8]
push 0x200
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.00402a70
add esp, 0xc
test eax, eax
jl 0x401b91
cmp byte [esp + 0x22f], 0
jne 0x4019f3
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4019d7
sub eax, edx
cmp eax, edi
jg 0x4019f3
mov dword [esp + 0x1c], 2
jmp 0x401acb
mov dword [ebp + 0xc], 2
jmp 0x401acb
cmp dword [ebp + 0xc], 1
jne 0x401acb
lea edx, [esp + 0x20]
push edx
call fcn.00409b22
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 4
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
add ecx, 1
push ecx
add edx, 0x76c
push edx
push str._4d__02d__02d__02d:_02d:_02d
push 0x41dbf8
call fcn.00409f50
lea eax, [esp + 0x50]
push eax
push 0x41dbf8
push str.__s____________s_n
call fcn.004092e4
add esp, 0x2c
jmp 0x401acb
cmp edi, 0x200
mov esi, 0x200
jg 0x401a6d
mov esi, edi
test ebx, ebx
je 0x401ac5
push ebx
push esi
lea ecx, [esp + 0x238]
push 1
push ecx
call fcn.004097aa
add esp, 0x10
cmp eax, esi
je 0x401ac5
mov eax, dword [0x41f19c]
lea edx, [esp + 0x30]
push edx
push eax
push str._s:_Error_writing__s____skipping_n
call fcn.0040a229
add eax, 0x40
push eax
call fcn.004094ac
push ebx
call fcn.00409bb8
lea ecx, [esp + 0x44]
add esp, 0x14
push ecx
mov dword [esp + 0x14], 0
call fcn.00409187
add esp, 4
sub edi, esi
mov dword [esp + 0x18], edi
cmp dword [esp + 0x18], 0
jne 0x401b3c
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], 1
je 0x401b3c
push eax
call fcn.00409bb8
add esp, 4
cmp dword [ebp + 0xc], 2
mov dword [esp + 0x10], 0
je 0x401bd0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push 0x18
call fcn.0040a166
mov esi, eax
add esp, 4
test esi, esi
je 0x401b87
lea edx, [esp + 0x30]
push edx
call fcn.004095fb
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov dword [esi], ecx
mov dword [esp + 0x14], esi
cmp dword [ebp + 0xc], 2
je 0x401bd0
mov eax, dword [ebp + 8]
push 0x200
lea edx, [esp + 0x234]
push edx
push eax
call fcn.00402a70
add esp, 0xc
test eax, eax
jge 0x401470
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00401e50
add esp, 8
jmp 0x401c70
mov eax, str.bad_long_name
jmp 0x401c70
mov eax, str.Out_of_memory
jmp 0x401c70
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00401e50
add esp, 8
jmp 0x401c70
lea edi, [esp + 0x14]
call fcn.004012b0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401e20
add esp, 4
test eax, eax
je 0x401bc7
mov eax, str.failed_gzclose
jmp 0x401c70
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, str.broken_archive
jmp 0x401c70