Function at 0x408530
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
mov eax, 0x4110
call fcn.00408bd0
mov eax, dword [0x40b034]
xor eax, esp
mov dword [esp + 0x410c], eax
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_printf]
push esi
mov esi, dword [esp + 0x4120]
push edi
xor edi, edi
push str._n7z_ANSI_C_Decoder_9.20_:_Igor_Pavlov_:_Public_domain_:_2010_11_18_n_n
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], edi
call ebx
mov eax, dword [esp + 0x4124]
add esp, 4
cmp eax, 1
jne 0x40859c
push str.Usage:_7zDec__command___archive_name__n_n_Commands__n__e:_Extract_files_from_archive__without_using_directory_names__n__l:_List_contents_of_archive_n__t:_Test_integrity_of_archive_n__x:_eXtract_files_with_full_paths_n
call ebx
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x410c]
xor ecx, esp
call fcn.00408bbf
add esp, 0x4110
ret
cmp eax, 3
jge 0x4085cb
push str.incorrect_command
call fcn.004084b0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x410c]
xor ecx, esp
call fcn.00408bbf
add esp, 0x4110
ret
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x38], fcn.00401000
mov dword [esp + 0x3c], fcn.00401020
mov dword [esp + 0x50], fcn.00401000
mov dword [esp + 0x54], fcn.00401020
call fcn.00401ef0
add esp, 8
test eax, eax
je 0x40862a
push 0x40a244
call fcn.004084b0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x410c]
xor ecx, esp
call fcn.00408bbf
add esp, 0x4110
ret
lea edx, [esp + 0x58]
push ebp
push edx
call fcn.00402180
lea eax, [esp + 0xbc]
push edi
push eax
call fcn.00404890
lea edx, [esp + 0xc4]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0xd8], ecx
call fcn.004048c0
add esp, 0x10
call fcn.004010e0
lea eax, [esp + 0x68]
push eax
call fcn.00402440
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.00404440
mov ebp, eax
add esp, 0x14
cmp ebp, edi
jne 0x408b21
mov esi, dword [esi + 4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov ecx, 0x40a240
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4086d0
test dl, dl
je 0x4086cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4086d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4086b0
xor eax, eax
jmp 0x4086d5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4087a8
mov dword [esp + 0x30], 1
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x2c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x84], edi
jbe 0x408b08
mov dword [esp + 0x24], edi
lea ebx, [ebx]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
lea ebx, [ecx + edx]
cmp dword [esp + 0x30], eax
jne 0x40873a
cmp byte [ebx + 0x19], al
je 0x40873a
cmp dword [esp + 0x18], eax
je 0x408ac1
push 0
lea edx, [esp + 0x6c]
push edi
push edx
call fcn.00403880
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp esi, dword [esp + 0x44]
jbe 0x40877c
push eax
push 0
call fcn.00401020
lea ecx, [esi + esi]
push ecx
push 0
mov dword [esp + 0x54], esi
call fcn.00401000
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x408ada
push eax
lea edx, [esp + 0x6c]
push edi
push edx
call fcn.00403880
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x408949
cmp byte [ebx + 0x1d], 0
je 0x408871
mov eax, dword [ebx + 0x14]
jmp 0x408873
mov ecx, 0x40a23c
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4087d0
test dl, dl
je 0x4087cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4087d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4087b0
xor eax, eax
jmp 0x4087d5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4087e6
mov dword [esp + 0x20], 1
jmp 0x4086e5
mov ecx, 0x40a238
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408810
test dl, dl
je 0x40880c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408810
add eax, 2
add ecx, 2
test dl, dl
jne 0x4087f0
xor eax, eax
jmp 0x408815
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4086e5
mov ecx, str.xetl
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408844
test dl, dl
je 0x408840
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408844
add eax, 2
add ecx, 2
test dl, dl
jne 0x408824
xor eax, eax
jmp 0x408849
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x40885a
mov dword [esp + 0x18], 1
jmp 0x4086e5
push str.incorrect_command
call fcn.004084b0
add esp, 4
mov ebp, 0xb
jmp 0x408b21
xor eax, eax
movzx ecx, byte [ebx + 0x19]
push ecx
lea ecx, [esp + 0x40f8]
call fcn.004084d0
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
push edx
push eax
lea ecx, [esp + 0x4108]
call fcn.00408180
add esp, 0xc
cmp byte [ebx + 0x1c], 0
je 0x4088b4
lea ecx, [esp + 0x40d4]
push ecx
push ebx
call fcn.00408260
add esp, 8
jmp 0x4088ec
mov eax, 0x20202020
mov dword [esp + 0x40d4], eax
mov dword [esp + 0x40d8], eax
mov dword [esp + 0x40dc], eax
mov dword [esp + 0x40e0], eax
mov word [esp + 0x40e4], ax
mov byte [esp + 0x40e6], al
mov byte [esp + 0x40e7], 0
lea edx, [esp + 0x40fc]
push edx
lea eax, [esp + 0x40f8]
push eax
lea ecx, [esp + 0x40dc]
push ecx
push str._s__s__10s
call dword [sym.imp.MSVCR90.dll_printf]
mov edx, dword [esp + 0x24]
push edx
call fcn.00408120
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x408b08
cmp byte [ebx + 0x19], al
je 0x408939
push 0x40a220
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
push 0x40a21c
call dword [sym.imp.MSVCR90.dll_printf]
jmp 0x408abe
cmp dword [esp + 0x20], 0
mov esi, str.Testing
jne 0x40895a
mov esi, str.Extracting
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
push esi
call dword [sym.imp.MSVCR90.dll_fputs]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00408120
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x408b08
cmp byte [ebx + 0x19], al
je 0x40899b
push 0x40a220
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
jmp 0x4089e5
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
push edi
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00404480
mov ebp, eax
add esp, 0x28
mov dword [esp + 0x10], eax
test ebp, ebp
jne 0x408b08
cmp dword [esp + 0x20], 0
jne 0x408aab
mov eax, dword [esp + 0x14]
xor edi, edi
mov ebp, eax
cmp word [eax], di
je 0x408a37
mov esi, eax
nop
cmp word [esi], 0x2f
jne 0x408a2c
cmp dword [esp + 0x18], 0
je 0x408a29
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [esi], cx
call fcn.004080f0
mov eax, dword [esp + 0x14]
mov edx, 0x5c
mov word [esi], dx
jmp 0x408a2c
lea ebp, [esi + 2]
inc edi
cmp word [eax + edi*2], 0
lea esi, [eax + edi*2]
jne 0x408a00
cmp byte [ebx + 0x19], 0
mov eax, ebp
je 0x408a46
call fcn.004080f0
jmp 0x408aab
lea ecx, [esp + 0x40]
call fcn.00408110
test eax, eax
jne 0x408ae1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
push ecx
add edx, eax
push edx
lea ecx, [esp + 0x48]
push ecx
call fcn.00402020
add esp, 0xc
test eax, eax
jne 0x408aef
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x28]
jne 0x408aef
lea eax, [esp + 0x40]
push eax
call fcn.00401f70
add esp, 4
test eax, eax
jne 0x408ae8
cmp byte [ebx + 0x1d], al
je 0x408aab
mov ecx, dword [ebx + 0x14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0x40a21c
call dword [sym.imp.MSVCR90.dll_printf]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
add esp, 4
add dword [esp + 0x24], 0x20
inc edi
mov dword [esp + 0x1c], edi
cmp edi, dword [esp + 0x84]
jb 0x408710
jmp 0x408b08
mov ebp, 2
jmp 0x408b08
push str.can_not_open_output_file
jmp 0x408af4
push str.can_not_close_output_file
jmp 0x408af4
push str.can_not_write_output_file
call fcn.004084b0
mov dword [esp + 0x14], 0xb
mov ebp, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
call dword [esp + 0x40]
mov ebx, dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
xor edi, edi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.00402470
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00401020
lea ecx, [esp + 0x74]
push ecx
call fcn.00401f70
add esp, 0x14
cmp ebp, edi
jne 0x408b5a
push str._nEverything_is_Ok_n
call ebx
add esp, 4
xor eax, eax
jmp 0x408ba6
cmp ebp, 4
jne 0x408b6e
push str.decoder_doesnt_support_this_archive
call fcn.004084b0
add esp, 4
jmp 0x408ba1
cmp ebp, 2
jne 0x408b82
push str.can_not_allocate_memory
call fcn.004084b0
add esp, 4
jmp 0x408ba1
cmp ebp, 3
jne 0x408b96
push str.CRC_error
call fcn.004084b0
add esp, 4
jmp 0x408ba1
push ebp
push str._nERROR__d_n
call ebx
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x411c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408bbf
add esp, 0x4110
ret