Function at 0x40da00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x421a03
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4168
call fcn.0041cdf0
mov eax, dword [0x42d5dc]
xor eax, esp
mov dword [esp + 0x4164], eax
push esi
push edi
mov eax, dword [0x42d5dc]
xor eax, esp
push eax
lea eax, [esp + 0x4178]
mov dword fs:[0], eax
mov dword [esp + 0x60], edx
mov eax, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x4c], 0x407880
mov dword [esp + 0x50], 0x4078a0
mov dword [esp + 0x80], 0x407880
mov dword [esp + 0x84], 0x4078a0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x5c], eax
cmp eax, 0xffffffff
jne 0x40dabb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40dabb
push str.can_not_open_input_file
push str._nERROR:__s_n
jmp 0x40e1dc
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x407de0
mov dword [esp + 0x58], 0x407e00
mov dword [esp + 0xc4], 0x40ad40
mov dword [esp + 0xc8], 0x40ada0
mov dword [esp + 0xcc], 0x40adb0
mov dword [esp + 0xd0], 0x40ae00
mov dword [esp + 0xd4], eax
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], esi
call fcn.00407a40
lea ecx, [esp + 0x74]
call fcn.00408690
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0xcc]
call fcn.0040a710
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
je 0x40db56
lea edx, [esp + 0x30]
lea ecx, [esp + 0x74]
call fcn.00408700
test edi, edi
jne 0x40e154
xor eax, eax
mov ecx, 0x42a4e8
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, str.xlte
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40db90
test dl, dl
je 0x40db8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40db90
add eax, 2
add ecx, 2
test dl, dl
jne 0x40db70
xor eax, eax
jmp 0x40db95
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40dba6
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x20], edx
jmp 0x40dbe9
mov ecx, 0x42a4ec
mov eax, str.xlte
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dbd0
test dl, dl
je 0x40dbcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dbd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dbb0
xor eax, eax
jmp 0x40dbd5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40dce3
mov dword [esp + 0x28], 1
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x90], eax
jbe 0x40e140
mov edi, dword [esp + 0x84]
add edi, 0x1d
mov dword [esp + 0x18], edi
lea ebx, [ebx]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
test edx, edx
jne 0x40dc41
cmp byte [edi - 4], dl
je 0x40dc41
test ecx, ecx
je 0x40e0b1
mov edx, dword [esp + 0xb4]
mov esi, dword [edx + eax*4 + 4]
sub esi, dword [edx + eax*4]
cmp esi, dword [esp + 0x4c]
jbe 0x40dd74
push dword [esp + 0x10]
call fcn.0040ef14
add esp, 4
mov dword [esp + 0x4c], esi
add esi, esi
je 0x40e0cc
push esi
call fcn.0040f596
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
je 0x40e0d4
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xb4]
mov ecx, dword [edx + eax*4]
mov edx, dword [edx + eax*4 + 4]
sub edx, ecx
test esi, esi
je 0x40dcc6
mov eax, dword [esp + 0xb8]
lea esi, [eax + ecx*2]
test edx, edx
je 0x40dcc2
mov ecx, dword [esp + 0x10]
sub esi, ecx
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
dec edx
jne 0x40dcb4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40de95
cmp byte [edi], 0
je 0x40dd7d
mov ecx, dword [edi - 9]
jmp 0x40dd7f
mov ecx, 0x42a4f0
mov eax, str.xlte
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dd10
test dl, dl
je 0x40dd0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dd10
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dcf0
xor eax, eax
jmp 0x40dd15
sbb eax, eax
or eax, 1
test eax, eax
je 0x40dbe5
mov ecx, str.xlte
mov eax, ecx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dd44
test dl, dl
je 0x40dd40
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dd44
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dd24
xor eax, eax
jmp 0x40dd49
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40dd5b
mov ecx, 1
mov dword [esp + 0x24], ecx
jmp 0x40dbe7
push 0x42a4f4
push str._nERROR:__s_n
call fcn.00410ceb
mov edi, 0xb
jmp 0x40e151
mov esi, dword [esp + 0x10]
jmp 0x40dc93
xor ecx, ecx
movzx edx, byte [edi - 4]
lea eax, [esp + 0x411c]
push eax
call fcn.00408280
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x4154]
add esp, 4
push dword [esi - 0x11]
push dword [esi - 0x15]
call fcn.00407f40
add esp, 8
cmp byte [esi - 1], 0
je 0x40ddc3
lea edx, [esp + 0x4124]
lea ecx, [edi - 0x1d]
call fcn.00408050
jmp 0x40dddf
movdqa xmm0, xmmword [str.________________H]
movdqa xmmword [esp + 0x4124], xmm0
mov dword [esp + 0x4134], 0x202020
lea eax, [esp + 0x4150]
push eax
lea eax, [esp + 0x4120]
push eax
lea eax, [esp + 0x412c]
push eax
push str._s__s__10s
call fcn.00410ceb
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x50]
add esp, 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.00407e20
mov esi, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40de42
call fcn.00410957
add eax, 0x20
push eax
push esi
call fcn.00410bcc
add esp, 8
push esi
push 0x42eef8
call dword [0x42eefc]
add esp, 8
mov dword [esp + 0x40], 0
cmp dword [esp + 0x14], 0
mov dword [esp + 0x44], 0
jne 0x40e13c
cmp byte [edi - 4], 0
je 0x40de7f
push 0x42a518
call fcn.00410ceb
add esp, 4
push 0x42a51c
call fcn.00410ceb
mov edi, dword [esp + 0x1c]
add esp, 4
jmp 0x40e0a5
call fcn.00410957
add eax, 0x20
mov ecx, str.Extracting
cmp dword [esp + 0x28], 0
push eax
mov eax, str.Testing
cmove eax, ecx
push eax
call fcn.00410bcc
add esp, 8
lea ecx, [esp + 0x40ec]
call fcn.00405710
mov ecx, esi
mov dword [esp + 0x4180], 0
call fcn.00407ee0
movzx ecx, byte [edi - 4]
mov dword [esp + 0x40e8], ecx
lea ecx, [esp + 0x40ec]
push esi
mov dword [esp + 0x18], eax
call fcn.004040a0
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x40e8]
push eax
call fcn.0040e210
cmp dword [esp + 0x14], 0
jne 0x40e125
cmp byte [edi - 4], 0
je 0x40df24
push 0x42a518
call fcn.00410ceb
add esp, 4
jmp 0x40df71
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xe0]
push eax
lea ecx, [esp + 0x94]
call fcn.0040aab0
add esp, 0x20
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40e125
cmp dword [esp + 0x28], 0
jne 0x40e081
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov esi, edx
cmp word [edx], cx
je 0x40dfb4
mov eax, edx
lea edi, [ecx + 0x5c]
mov edi, edi
cmp word [eax], 0x2f
jne 0x40dfa5
cmp dword [esp + 0x24], 0
je 0x40dfa2
mov word [eax], di
jmp 0x40dfa5
lea esi, [eax + 2]
inc ecx
cmp word [edx + ecx*2], 0
lea eax, [edx + ecx*2]
jne 0x40df90
mov edi, dword [esp + 0x18]
push dword [esp + 0x60]
lea ecx, [esp + 0x4108]
call fcn.00405f80
push esi
lea ecx, [esp + 0x4108]
mov byte [esp + 0x4184], 1
call fcn.004040e0
cmp byte [edi - 4], 0
je 0x40dffd
push 0x42a51c
call fcn.00410ceb
add esp, 4
lea ecx, [esp + 0x4104]
call fcn.00405740
jmp 0x40e08e
lea ecx, [esp + 0x4104]
call fcn.004056f0
push ecx
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00407b40
add esp, 4
test eax, eax
jne 0x40e0e9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea edx, [edx + ecx]
lea ecx, [esp + 0x4c]
call fcn.00407cd0
add esp, 4
test eax, eax
jne 0x40e0e2
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x18], eax
jne 0x40e0e2
lea ecx, [esp + 0x48]
call fcn.00407c20
test eax, eax
jne 0x40e0db
cmp byte [edi], al
je 0x40e075
push dword [edi - 9]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x4104]
call fcn.00405740
push 0x42a51c
call fcn.00410ceb
add esp, 4
lea ecx, [esp + 0x40e8]
mov dword [esp + 0x4180], 0xffffffff
call fcn.00405390
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
inc eax
add edi, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
cmp eax, dword [esp + 0x90]
jb 0x40dc20
jmp 0x40e13c
mov dword [esp + 0x10], 0
mov edi, 2
jmp 0x40e140
push str.can_not_close_output_file
jmp 0x40e0ee
push str.can_not_write_output_file
jmp 0x40e0ee
push str.can_not_open_output_file
push str._nERROR:__s_n
call fcn.00410ceb
add esp, 8
lea ecx, [esp + 0x4104]
mov edi, 0xb
call fcn.00405740
lea ecx, [esp + 0x40e8]
mov dword [esp + 0x4180], 0xffffffff
call fcn.00405390
jmp 0x40e140
lea ecx, [esp + 0x40e8]
mov dword [esp + 0x4180], 0xffffffff
call fcn.00405390
mov edi, dword [esp + 0x14]
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
add esp, 8
lea edx, [esp + 0x30]
lea ecx, [esp + 0x74]
call fcn.00408700
push esi
call fcn.0040ef14
mov eax, dword [esp + 0x60]
add esp, 4
cmp eax, 0xffffffff
je 0x40e18e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40e186
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e18e
mov dword [esp + 0x5c], 0xffffffff
test edi, edi
jne 0x40e1a3
push str._nEverything_is_Ok_n
call fcn.00410ceb
add esp, 4
xor eax, eax
jmp 0x40e1e9
cmp edi, 4
jne 0x40e1b4
push str.decoder_doesnt_support_this_archive
push str._nERROR:__s_n
jmp 0x40e1dc
cmp edi, 2
jne 0x40e1c5
push str.can_not_allocate_memory
push str._nERROR:__s_n
jmp 0x40e1dc
cmp edi, 3
jne 0x40e1d6
push str.CRC_error
push str._nERROR:__s_n
jmp 0x40e1dc
push edi
push str._nERROR__d_n
call fcn.00410ceb
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x4178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4164]
xor ecx, esp
call fcn.0040e691
mov esp, ebp
pop ebp
ret