Function at 0x411580
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4686e8
mov eax, dword fs:[0]
push eax
mov eax, 0x40d4
call fcn.0045fc90
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4074], ecx
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push edx
mov dword [ebp - 0x406c], edi
mov dword [ebp - 0x4050], 0x40b750
mov dword [ebp - 0x404c], 0x40b770
mov dword [ebp - 0x407c], 0x40b750
mov dword [ebp - 0x4078], 0x40b770
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4084], eax
cmp eax, 0xffffffff
jne 0x411628
call esi
test eax, eax
je 0x411628
push str.can_not_open_input_file
call fcn.0044df8f
add esp, 4
jmp 0x411b9c
lea eax, [ebp - 0x408c]
mov dword [ebp - 0x408c], 0x40c680
mov dword [ebp - 0x4088], 0x40c6a0
mov dword [ebp - 0x4048], 0x40f030
mov dword [ebp - 0x4044], 0x40f090
mov dword [ebp - 0x4040], 0x40f0a0
mov dword [ebp - 0x403c], 0x40f0f0
mov dword [ebp - 0x4038], eax
mov dword [ebp - 0x4030], edi
mov dword [ebp - 0x4034], edi
call fcn.0040b7f0
lea ecx, [ebp - 0x40e0]
call fcn.0040c8d0
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4050]
push eax
lea edx, [ebp - 0x4048]
call fcn.0040e9d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4116c7
lea edx, [ebp - 0x4050]
lea ecx, [ebp - 0x40e0]
call fcn.0040c940
test ebx, ebx
jne 0x411a82
xor edx, edx
mov dword [ebp - 0x4080], 0xffffffff
mov dword [ebp - 0x4060], edi
mov dword [ebp - 0x4070], edi
mov dword [ebp - 0x4058], edx
cmp dword [ebp - 0x40c4], edx
jbe 0x411a6c
mov esi, dword [ebp - 0x40d0]
add esi, 0x14
mov dword [ebp - 0x405c], esi
cmp byte [esi + 5], 0
mov dword [ebp - 0x4068], 0
mov dword [ebp - 0x4054], 0
jne 0x4119ea
mov ebx, dword [ebp - 0x40a0]
mov esi, dword [ebx + edx*4 + 4]
sub esi, dword [ebx + edx*4]
cmp esi, dword [ebp - 0x406c]
jbe 0x411763
push edi
call fcn.0044cc04
add esp, 4
mov dword [ebp - 0x406c], esi
add esi, esi
je 0x411a08
push esi
call fcn.0044dde2
mov edi, eax
add esp, 4
test edi, edi
je 0x411a0a
mov edx, dword [ebp - 0x4058]
mov ecx, dword [ebx + edx*4]
mov edx, dword [ebx + edx*4 + 4]
sub edx, ecx
test edi, edi
je 0x411790
mov eax, dword [ebp - 0x409c]
lea esi, [eax + ecx*2]
test edx, edx
je 0x411790
mov ecx, edi
sub esi, edi
mov ax, word [esi + ecx]
mov word [ecx], ax
lea ecx, [ecx + 2]
dec edx
jne 0x411781
mov edi, edi
call fcn.0044ccd6
add eax, 0x20
push eax
push str.Extracting
call fcn.0044de74
add esp, 8
mov ecx, edi
call fcn.00411520
mov ebx, eax
test ebx, ebx
jne 0x411a66
mov eax, dword [ebp - 0x405c]
cmp byte [eax + 5], bl
je 0x4117d1
push 0x47b4a4
call fcn.0044df8f
add esp, 4
jmp 0x411826
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4050]
push eax
lea eax, [ebp - 0x4054]
push eax
lea eax, [ebp - 0x4068]
push eax
lea eax, [ebp - 0x4070]
push eax
lea eax, [ebp - 0x4060]
push eax
lea eax, [ebp - 0x4080]
push eax
push dword [ebp - 0x4058]
lea edx, [ebp - 0x4048]
lea ecx, [ebp - 0x40e0]
call fcn.0040ed60
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x411a66
xor ecx, ecx
mov esi, edi
cmp word [edi], cx
je 0x411845
mov eax, edi
cmp word [eax], 0x2f
jne 0x41183a
lea esi, [eax + 2]
inc ecx
cmp word [edi + ecx*2], 0
lea eax, [edi + ecx*2]
jne 0x411831
push dword [ebp - 0x4074]
lea ecx, [ebp - 0x28]
call fcn.0040a210
push 1
push 0x47abf8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004092c0
cmp word [esi], 0
jne 0x411873
xor ecx, ecx
jmp 0x41188f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x411880
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411880
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004092c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x4a6f54
call fcn.00409da0
mov esi, dword [ebp - 0x405c]
mov eax, dword [ebp - 0x28]
cmp byte [esi + 5], 0
je 0x411914
cmp dword [ebp - 0x14], 8
jae 0x4118c3
lea eax, [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4118d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x47b4a8
call fcn.0044df8f
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x4118fb
push dword [ebp - 0x28]
call fcn.0044d639
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x4119e4
cmp dword [ebp - 0x14], 8
jae 0x41191d
lea eax, [ebp - 0x28]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4064], eax
cmp eax, 0xffffffff
jne 0x411951
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x411a11
mov ecx, dword [ebp - 0x4060]
mov edx, dword [ebp - 0x4068]
mov esi, dword [ebp - 0x4054]
lea eax, [ebp - 0x4054]
lea edx, [edx + ecx]
push eax
lea ecx, [ebp - 0x4064]
mov dword [ebp - 0x4054], esi
call fcn.0040c570
add esp, 4
test eax, eax
jne 0x411a40
cmp dword [ebp - 0x4054], esi
jne 0x411a40
lea ecx, [ebp - 0x4064]
call fcn.0040c4c0
test eax, eax
jne 0x411a39
mov esi, dword [ebp - 0x405c]
cmp byte [esi + 9], al
je 0x4119c8
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4119bf
lea eax, [ebp - 0x28]
push dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a2d0
push 0x47b4a8
call fcn.0044df8f
add esp, 4
mov edx, dword [ebp - 0x4058]
inc edx
add esi, 0x20
mov dword [ebp - 0x4058], edx
mov dword [ebp - 0x405c], esi
cmp edx, dword [ebp - 0x40c4]
jb 0x411700
jmp 0x411a66
xor edi, edi
mov ebx, 2
jmp 0x411a66
push str.can_not_open_output_file
push str._nERROR:__s_n
call fcn.0044df8f
add esp, 8
lea ecx, [ebp - 0x28]
mov ebx, 0xb
mov dword [ebp - 4], 0xffffffff
call fcn.0040a2d0
jmp 0x411a6c
push str.can_not_close_output_file
jmp 0x411a45
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.0044df8f
add esp, 8
lea ecx, [ebp - 0x28]
mov ebx, 0xb
mov dword [ebp - 4], 0xffffffff
call fcn.0040a2d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x4060]
lea eax, [ebp - 0x4050]
push eax
call dword [ebp - 0x404c]
add esp, 8
push dword [ebp - 0x40b0]
lea eax, [ebp - 0x4050]
push eax
call dword [ebp - 0x404c]
push dword [ebp - 0x40ac]
lea eax, [ebp - 0x4050]
push eax
call dword [ebp - 0x404c]
push dword [ebp - 0x40a8]
lea eax, [ebp - 0x4050]
push eax
call dword [ebp - 0x404c]
push dword [ebp - 0x40a4]
lea eax, [ebp - 0x4050]
push eax
call dword [ebp - 0x404c]
push dword [ebp - 0x40a0]
lea eax, [ebp - 0x4050]
push eax
call dword [ebp - 0x404c]
push dword [ebp - 0x409c]
lea eax, [ebp - 0x4050]
push eax
call dword [ebp - 0x404c]
lea edx, [ebp - 0x4050]
lea ecx, [ebp - 0x40e0]
mov dword [ebp - 0x409c], 0
mov dword [ebp - 0x4098], 0
call fcn.0040c820
push edi
call fcn.0044cc04
mov eax, dword [ebp - 0x4084]
add esp, 0x34
cmp eax, 0xffffffff
je 0x411b46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x411b3c
call esi
jmp 0x411b46
mov dword [ebp - 0x4084], 0xffffffff
test ebx, ebx
jne 0x411b5b
push str._nEverything_is_Ok_n
call fcn.0044df8f
add esp, 4
xor eax, eax
jmp 0x411ba1
cmp ebx, 4
jne 0x411b6c
push str.decoder_doesnt_support_this_archive
push str._nERROR:__s_n
jmp 0x411b94
cmp ebx, 2
jne 0x411b7d
push str.can_not_allocate_memory
push str._nERROR:__s_n
jmp 0x411b94
cmp ebx, 3
jne 0x411b8e
push str.CRC_error
push str._nERROR:__s_n
jmp 0x411b94
push ebx
push str._nERROR__d_n
call fcn.0044df8f
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret