Function at 0x422520
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492e4e
mov eax, dword fs:[0]
push eax
mov eax, 0x4158
call fcn.004176a0
mov eax, dword [0x4a9398]
xor eax, ebp
mov dword [ebp - 0x6c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x40ac], 0
mov dword [ebp - 0x40a8], fcn.0041d660
mov dword [ebp - 0x40a4], fcn.0041d640
mov dword [ebp - 0x40a0], 0x41d610
mov dword [ebp - 0x409c], 0x41d5f0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x4090]
push ecx
call fcn.0041e290
add esp, 8
test eax, eax
je 0x4225b6
push str.can_not_open_input_file
call fcn.0041d020
add esp, 4
mov eax, 1
jmp 0x422d52
lea edx, [ebp - 0x4098]
push edx
call fcn.0041eca0
add esp, 4
push 0
lea eax, [ebp - 0x408c]
push eax
call fcn.0041d760
add esp, 8
lea ecx, [ebp - 0x4098]
mov dword [ebp - 0x407c], ecx
lea edx, [ebp - 0x408c]
push edx
call fcn.0041d740
add esp, 4
call fcn.0041fc10
lea eax, [ebp - 0x64]
push eax
call fcn.0041dd30
add esp, 4
lea ecx, [ebp - 0x40a0]
push ecx
lea edx, [ebp - 0x40a8]
push edx
lea eax, [ebp - 0x408c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.004224e0
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x422cb6
mov dword [ebp - 0x40b8], str.xltex
mov dword [ebp - 0x40b4], 0
mov dword [ebp - 0x40b0], 0
mov dword [ebp - 0x40c0], 0
mov dword [ebp - 0x40bc], 0
push 0x49641c
mov edx, dword [ebp - 0x40b8]
push edx
call fcn.0040b930
add esp, 8
test eax, eax
jne 0x422689
mov dword [ebp - 0x40b4], 1
jmp 0x422713
push 0x496420
mov eax, dword [ebp - 0x40b8]
push eax
call fcn.0040b930
add esp, 8
test eax, eax
jne 0x4226ad
mov dword [ebp - 0x40b0], 1
jmp 0x422713
push 0x496424
mov ecx, dword [ebp - 0x40b8]
push ecx
call fcn.0040b930
add esp, 8
test eax, eax
jne 0x4226d1
mov dword [ebp - 0x40c0], 1
jmp 0x422713
push 0x496428
mov edx, dword [ebp - 0x40b8]
push edx
call fcn.0040b930
add esp, 8
test eax, eax
jne 0x4226ff
mov dword [ebp - 0x40c0], 1
mov dword [ebp - 0x40bc], 1
jmp 0x422713
push 0x49642c
call fcn.0041d020
add esp, 4
mov dword [ebp - 0x10], 0xb
cmp dword [ebp - 0x10], 0
jne 0x422cb6
mov dword [ebp - 0x40cc], 0xffffffff
mov dword [ebp - 0x40c8], 0
mov dword [ebp - 0x40d0], 0
mov dword [ebp - 0x40c4], 0
jmp 0x422756
mov eax, dword [ebp - 0x40c4]
add eax, 1
mov dword [ebp - 0x40c4], eax
mov ecx, dword [ebp - 0x40c4]
cmp ecx, dword [ebp - 0x48]
jae 0x422c9f
mov dword [ebp - 0x40e0], 0
mov dword [ebp - 0x40dc], 0
mov edx, dword [ebp - 0x40c4]
shl edx, 5
add edx, dword [ebp - 0x54]
mov dword [ebp - 0x40d4], edx
cmp dword [ebp - 0x40b4], 0
jne 0x4227ad
mov eax, dword [ebp - 0x40d4]
movzx ecx, byte [eax + 0x19]
test ecx, ecx
je 0x4227ad
cmp dword [ebp - 0x40bc], 0
jne 0x4227ad
jmp 0x422747
push 0
mov edx, dword [ebp - 0x40c4]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.0041c830
add esp, 0xc
mov dword [ebp - 0x40d8], eax
mov ecx, dword [ebp - 0x40d8]
cmp ecx, dword [ebp - 0x40ac]
jbe 0x422818
mov edx, dword [ebp - 0x68]
push edx
push 0
call fcn.0041d640
add esp, 8
mov eax, dword [ebp - 0x40d8]
mov dword [ebp - 0x40ac], eax
mov ecx, dword [ebp - 0x40ac]
shl ecx, 1
push ecx
push 0
call fcn.0041d660
add esp, 8
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x422818
mov dword [ebp - 0x10], 2
jmp 0x422c9f
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x40c4]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0041c830
add esp, 0xc
cmp dword [ebp - 0x40b4], 0
je 0x422974
mov edx, dword [ebp - 0x40d4]
movzx eax, byte [edx + 0x1d]
test eax, eax
je 0x42285b
mov ecx, dword [ebp - 0x40d4]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x4160], edx
jmp 0x422865
mov dword [ebp - 0x4160], 0
lea eax, [ebp - 0x40e8]
push eax
mov ecx, dword [ebp - 0x40d4]
movzx edx, byte [ecx + 0x19]
push edx
mov eax, dword [ebp - 0x4160]
push eax
call fcn.0041cf90
add esp, 0xc
lea ecx, [ebp - 0x4108]
push ecx
mov edx, dword [ebp - 0x40d4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
call fcn.0041d100
add esp, 0xc
mov edx, dword [ebp - 0x40d4]
movzx eax, byte [edx + 0x1c]
test eax, eax
je 0x4228c9
lea ecx, [ebp - 0x4128]
push ecx
mov edx, dword [ebp - 0x40d4]
push edx
call fcn.0041de50
add esp, 8
jmp 0x42290b
mov dword [ebp - 0x412c], 0
jmp 0x4228e4
mov eax, dword [ebp - 0x412c]
add eax, 1
mov dword [ebp - 0x412c], eax
cmp dword [ebp - 0x412c], 0x13
jae 0x4228fd
mov ecx, dword [ebp - 0x412c]
mov byte [ebp + ecx - 0x4128], 0x20
jmp 0x4228d5
mov edx, dword [ebp - 0x412c]
mov byte [ebp + edx - 0x4128], 0
lea eax, [ebp - 0x4108]
push eax
lea ecx, [ebp - 0x40e8]
push ecx
lea edx, [ebp - 0x4128]
push edx
push str._s__s__10s
call fcn.0040b57f
add esp, 0x10
mov eax, dword [ebp - 0x68]
push eax
call fcn.0041fbb0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x422947
jmp 0x422c9f
mov ecx, dword [ebp - 0x40d4]
movzx edx, byte [ecx + 0x19]
test edx, edx
je 0x422962
push 0x496450
call fcn.0040b57f
add esp, 4
push 0x496454
call fcn.0040b57f
add esp, 4
jmp 0x422747
cmp dword [ebp - 0x40b0], 0
je 0x422989
mov dword [ebp - 0x4164], str.Testing
jmp 0x422993
mov dword [ebp - 0x4164], str.Extracting
call fcn.0040b644
add eax, 0x20
push eax
mov eax, dword [ebp - 0x4164]
push eax
call fcn.0040b7e5
add esp, 8
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0041fbb0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4229c5
jmp 0x422c9f
mov edx, dword [ebp - 0x40d4]
movzx eax, byte [edx + 0x19]
test eax, eax
je 0x4229e2
push 0x496470
call fcn.0040b57f
add esp, 4
jmp 0x422a3b
lea ecx, [ebp - 0x40a0]
push ecx
lea edx, [ebp - 0x40a8]
push edx
lea eax, [ebp - 0x40dc]
push eax
lea ecx, [ebp - 0x40e0]
push ecx
lea edx, [ebp - 0x40d0]
push edx
lea eax, [ebp - 0x40c8]
push eax
lea ecx, [ebp - 0x40cc]
push ecx
mov edx, dword [ebp - 0x40c4]
push edx
lea eax, [ebp - 0x408c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.004212a0
add esp, 0x28
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x422a3b
jmp 0x422c9f
cmp dword [ebp - 0x40b0], 0
jne 0x422c8d
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x4154], edx
mov eax, dword [ebp - 0x4154]
mov dword [ebp - 0x4134], eax
mov dword [ebp - 0x415c], 0
jmp 0x422a78
mov ecx, dword [ebp - 0x415c]
add ecx, 1
mov dword [ebp - 0x415c], ecx
mov edx, dword [ebp - 0x415c]
mov eax, dword [ebp - 0x4154]
movzx ecx, word [eax + edx*2]
test ecx, ecx
je 0x422afa
mov edx, dword [ebp - 0x415c]
mov eax, dword [ebp - 0x4154]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x2f
jne 0x422af5
cmp dword [ebp - 0x40bc], 0
je 0x422adf
mov edx, dword [ebp - 0x415c]
mov eax, dword [ebp - 0x4154]
mov word [eax + edx*2], 0
mov ecx, dword [ebp - 0x4154]
push ecx
call fcn.0041d1a0
add esp, 4
mov edx, dword [ebp - 0x415c]
mov eax, dword [ebp - 0x4154]
mov word [eax + edx*2], 0x5c
jmp 0x422af5
mov ecx, dword [ebp - 0x415c]
mov edx, dword [ebp - 0x4154]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 0x4134], eax
jmp 0x422a69
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4150]
call fcn.004042a0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x4134]
push edx
lea ecx, [ebp - 0x4150]
call fcn.004043a0
mov eax, dword [ebp - 0x40d4]
movzx ecx, byte [eax + 0x19]
test ecx, ecx
je 0x422b65
mov edx, dword [ebp - 0x4134]
push edx
call fcn.0041d1a0
add esp, 4
push 0x496474
call fcn.0040b57f
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4150]
call fcn.00404320
jmp 0x422747
lea ecx, [ebp - 0x4150]
call fcn.004043e0
push eax
lea eax, [ebp - 0x4130]
push eax
call fcn.0041ebb0
add esp, 8
test eax, eax
je 0x422baf
push str.can_not_open_output_file
call fcn.0041d020
add esp, 4
mov dword [ebp - 0x10], 0xb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4150]
call fcn.00404320
jmp 0x422c9f
mov ecx, dword [ebp - 0x40dc]
mov dword [ebp - 0x4158], ecx
lea edx, [ebp - 0x4158]
push edx
mov eax, dword [ebp - 0x40c8]
add eax, dword [ebp - 0x40e0]
push eax
lea ecx, [ebp - 0x4130]
push ecx
call fcn.0041d290
add esp, 0xc
test eax, eax
jne 0x422bf0
mov edx, dword [ebp - 0x4158]
cmp edx, dword [ebp - 0x40dc]
je 0x422c1b
push str.can_not_write_output_file
call fcn.0041d020
add esp, 4
mov dword [ebp - 0x10], 0xb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4150]
call fcn.00404320
jmp 0x422c9f
lea eax, [ebp - 0x4130]
push eax
call fcn.0041d3f0
add esp, 4
test eax, eax
je 0x422c56
push str.can_not_close_output_file
call fcn.0041d020
add esp, 4
mov dword [ebp - 0x10], 0xb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4150]
call fcn.00404320
jmp 0x422c9f
mov ecx, dword [ebp - 0x40d4]
movzx edx, byte [ecx + 0x1d]
test edx, edx
je 0x422c7b
mov eax, dword [ebp - 0x40d4]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x4134]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4150]
call fcn.00404320
push 0x4964cc
call fcn.0040b57f
add esp, 4
jmp 0x422747
mov eax, dword [ebp - 0x40c8]
push eax
lea ecx, [ebp - 0x40a8]
push ecx
call dword [ebp - 0x40a4]
add esp, 8
lea edx, [ebp - 0x40a8]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00421160
add esp, 8
mov ecx, dword [ebp - 0x68]
push ecx
push 0
call fcn.0041d640
add esp, 8
lea edx, [ebp - 0x4090]
push edx
call fcn.0041d3f0
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x422cfd
push str._nEverything_is_Ok_n
call fcn.0040b57f
add esp, 4
xor eax, eax
jmp 0x422d52
cmp dword [ebp - 0x10], 4
jne 0x422d12
push str.decoder_doesnt_support_this_archive
call fcn.0041d020
add esp, 4
jmp 0x422d4d
cmp dword [ebp - 0x10], 2
jne 0x422d27
push str.can_not_allocate_memory
call fcn.0041d020
add esp, 4
jmp 0x422d4d
cmp dword [ebp - 0x10], 3
jne 0x422d3c
push str.CRC_error
call fcn.0041d020
add esp, 4
jmp 0x422d4d
mov eax, dword [ebp - 0x10]
push eax
push str._nERROR__d_n
call fcn.0040b57f
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
xor ecx, ebp
call fcn.0040806d
mov esp, ebp
pop ebp
ret