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

Disassembly:
mov eax, 0x4110
call fcn.0052f4d0
mov eax, dword [0x5bbd60]
xor eax, esp
mov dword [esp + 0x410c], eax
push ebx
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 fcn.0052b40e
mov eax, dword [esp + 0x4124]
mov ebx, 1
add esp, 4
cmp eax, ebx
jne 0x54c5e0
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 fcn.0052b40e
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x410c]
xor ecx, esp
call fcn.00527d0f
add esp, 0x4110
ret
cmp eax, 3
jge 0x54c60c
push str.incorrect_command
call fcn.0054c4f0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x410c]
xor ecx, esp
call fcn.00527d0f
add esp, 0x4110
ret
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x38], fcn.0054cbf0
mov dword [esp + 0x3c], fcn.0054cc10
mov dword [esp + 0x50], fcn.0054cbf0
mov dword [esp + 0x54], fcn.0054cc10
call fcn.0054ccf0
add esp, 8
test eax, eax
je 0x54c668
push str.can_not_open_input_file
call fcn.0054c4f0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x410c]
xor ecx, esp
call fcn.00527d0f
add esp, 0x4110
ret
lea edx, [esp + 0x58]
push ebp
push edx
call fcn.0054cf80
lea eax, [esp + 0xbc]
push edi
push eax
call fcn.0054f7b0
lea edx, [esp + 0xc4]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0xd8], ecx
call fcn.0054f7e0
add esp, 0x10
call fcn.0054f4c0
lea eax, [esp + 0x68]
push eax
call fcn.0054d240
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.0054f240
mov ebp, eax
add esp, 0x14
cmp ebp, edi
jne 0x54cb44
mov esi, dword [esi + 4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov ecx, 0x58fc9c
mov eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x54c710
test dl, dl
je 0x54c70c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x54c710
add eax, 2
add ecx, 2
test dl, dl
jne 0x54c6f0
xor eax, eax
jmp 0x54c715
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x54c7de
mov dword [esp + 0x30], ebx
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 0x54cb2c
mov dword [esp + 0x24], edi
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 0x54c770
cmp byte [ebx + 0x19], al
je 0x54c770
cmp dword [esp + 0x18], eax
je 0x54cae5
push 0
lea edx, [esp + 0x6c]
push edi
push edx
call fcn.0054e680
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp esi, dword [esp + 0x44]
jbe 0x54c7b2
push eax
push 0
call fcn.0054cc10
lea ecx, [esi + esi]
push ecx
push 0
mov dword [esp + 0x54], esi
call fcn.0054cbf0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x54cafe
push eax
lea edx, [esp + 0x6c]
push edi
push edx
call fcn.0054e680
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x54c972
cmp byte [ebx + 0x1d], 0
je 0x54c89d
mov eax, dword [ebx + 0x14]
jmp 0x54c89f
mov ecx, 0x58fc98
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x54c805
test dl, dl
je 0x54c801
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x54c805
add eax, 2
add ecx, 2
test dl, dl
jne 0x54c7e5
xor eax, eax
jmp 0x54c80a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x54c817
mov dword [esp + 0x20], ebx
jmp 0x54c721
mov ecx, 0x58fba0
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x54c840
test dl, dl
je 0x54c83c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x54c840
add eax, 2
add ecx, 2
test dl, dl
jne 0x54c820
xor eax, eax
jmp 0x54c845
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x54c721
mov ecx, 0x57ac88
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x54c874
test dl, dl
je 0x54c870
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x54c874
add eax, 2
add ecx, 2
test dl, dl
jne 0x54c854
xor eax, eax
jmp 0x54c879
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x54c886
mov dword [esp + 0x18], ebx
jmp 0x54c721
push str.incorrect_command
call fcn.0054c4f0
add esp, 4
mov ebp, 0xb
jmp 0x54cb44
xor eax, eax
movzx ecx, byte [ebx + 0x19]
push ecx
lea ecx, [esp + 0x40f8]
call fcn.0054c510
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
push edx
push eax
lea ecx, [esp + 0x4108]
call fcn.0054c1c0
add esp, 0xc
cmp byte [ebx + 0x1c], 0
je 0x54c8e0
lea ecx, [esp + 0x40d4]
push ecx
push ebx
call fcn.0054c2a0
add esp, 8
jmp 0x54c918
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 fcn.0052b40e
mov edx, dword [esp + 0x24]
push edx
call fcn.0054c160
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x54cb2c
cmp byte [ebx + 0x19], al
je 0x54c963
push 0x5706d0
call fcn.0052b40e
add esp, 4
push 0x56aaf8
call fcn.0052b40e
jmp 0x54cae2
cmp dword [esp + 0x20], 0
mov esi, str.Testing
jne 0x54c983
mov esi, str.Extracting
call fcn.0052b651
add eax, 0x20
push eax
push esi
call fcn.0052e9a9
mov eax, dword [esp + 0x1c]
push eax
call fcn.0054c160
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x54cb2c
cmp byte [ebx + 0x19], al
je 0x54c9c1
push 0x5706d0
call fcn.0052b40e
add esp, 4
jmp 0x54ca0b
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.0054f280
mov ebp, eax
add esp, 0x28
mov dword [esp + 0x10], eax
test ebp, ebp
jne 0x54cb2c
cmp dword [esp + 0x20], 0
jne 0x54cad0
mov eax, dword [esp + 0x14]
xor edi, edi
mov ebp, eax
cmp word [eax], di
je 0x54ca5c
mov esi, eax
cmp word [esi], 0x2f
jne 0x54ca51
cmp dword [esp + 0x18], 0
je 0x54ca4e
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [esi], cx
call fcn.0054c130
mov eax, dword [esp + 0x14]
mov edx, 0x5c
mov word [esi], dx
jmp 0x54ca51
lea ebp, [esi + 2]
inc edi
cmp word [eax + edi*2], 0
lea esi, [eax + edi*2]
jne 0x54ca25
cmp byte [ebx + 0x19], 0
mov eax, ebp
je 0x54ca6b
call fcn.0054c130
jmp 0x54cad0
lea ecx, [esp + 0x40]
call fcn.0054c150
test eax, eax
jne 0x54cb05
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x3c]
push ecx
add eax, edx
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0054ce20
add esp, 0xc
test eax, eax
jne 0x54cb13
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x28]
jne 0x54cb13
lea eax, [esp + 0x40]
push eax
call fcn.0054cd70
add esp, 4
test eax, eax
jne 0x54cb0c
cmp byte [ebx + 0x1d], al
je 0x54cad0
mov ecx, dword [ebx + 0x14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x56aaf8
call fcn.0052b40e
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
add esp, 4
add dword [esp + 0x24], 0x20
inc edi
mov dword [esp + 0x1c], edi
cmp edi, dword [esp + 0x84]
jb 0x54c746
jmp 0x54cb2c
mov ebp, 2
jmp 0x54cb2c
push str.can_not_open_output_file
jmp 0x54cb18
push str.can_not_close_output_file
jmp 0x54cb18
push str.can_not_write_output_file
call fcn.0054c4f0
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]
add esp, 8
mov ebx, 1
xor edi, edi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.0054d270
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0054cc10
lea ecx, [esp + 0x74]
push ecx
call fcn.0054cd70
add esp, 0x14
cmp ebp, edi
jne 0x54cb80
push str._nEverything_is_Ok_n
call fcn.0052b40e
add esp, 4
xor eax, eax
jmp 0x54cbcc
cmp ebp, 4
jne 0x54cb94
push str.decoder_doesnt_support_this_archive
call fcn.0054c4f0
add esp, 4
jmp 0x54cbca
cmp ebp, 2
jne 0x54cba8
push str.can_not_allocate_memory
call fcn.0054c4f0
add esp, 4
jmp 0x54cbca
cmp ebp, 3
jne 0x54cbbc
push str.CRC_error
call fcn.0054c4f0
add esp, 4
jmp 0x54cbca
push ebp
push str._nERROR__d_n
call fcn.0052b40e
add esp, 8
mov eax, ebx
mov ecx, dword [esp + 0x411c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00527d0f
add esp, 0x4110
ret