Function at 0x40e170
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x10c], edi
mov byte [ebp - 0x108], 0
call fcn.00412950
add esp, 0xc
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x18c]
push edx
push edi
call fcn.00411680
test eax, eax
je 0x40e212
push 0x3a
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
call fcn.004055e0
push 0x443ba4
lea eax, [ebp - 0x138]
push eax
call fcn.00412c01
push 4
push 0x1000
push 0xffff
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp - 0x108]
lea ebx, [ebp - 0x108]
mov dword [ebp - 0x110], ebx
mov ecx, ebx
test al, al
je 0x40e263
cmp al, 0x2f
je 0x40e24c
cmp al, 0x5c
jne 0x40e255
lea edx, [ecx + 1]
mov dword [ebp - 0x110], edx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40e244
mov ebx, dword [ebp - 0x110]
push ebx
push esi
push str._s_s
push 0x449c70
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebx], 0
jne 0x40e2ab
push 0x208
push 0x449c70
call fcn.0040de70
push 0x449c70
call fcn.0040dee0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004126c6
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00411e10
test eax, eax
je 0x40e2d6
push str.Could_not_get_file_info._This_archive_is_likely_corrupted.
lea ecx, [ebp - 0x138]
call fcn.00406860
push 0x443ba4
lea eax, [ebp - 0x138]
push eax
call fcn.00412c01
push 0
push 0x449c70
push 0x104
push 0x449c70
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0x208
push 0x449c70
call fcn.0040de70
push 0x80
push 0x449c70
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x449c70
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e3c2
lea ecx, [ebp - 0x108]
cmp dword [ebp - 0x110], ecx
je 0x40e39b
push 0x449c70
call fcn.0040dd00
push 0x43eba8
mov esi, eax
push esi
push 0
call fcn.0040db50
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
push eax
push esi
call fcn.0040dd00
push eax
call fcn.0040dbe0
push eax
call fcn.0040dee0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x449c70
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e3bc
push str.Could_not_extract_the_current_file.
lea ecx, [ebp - 0x138]
call fcn.00406860
push 0x443ba4
lea edx, [ebp - 0x138]
push edx
call fcn.00412c01
mov edi, dword [ebp - 0x10c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40e3d0
mov eax, dword [ebp - 0x114]
push 0xffff
push eax
push edi
call fcn.00411a20
mov edi, eax
test edi, edi
jl 0x40e2b5
jle 0x40e42f
mov edx, dword [ebp - 0x114]
push 0
lea ecx, [ebp - 0x13c]
push ecx
push edi
push edx
push esi
call ebx
test eax, eax
je 0x40e40e
mov edi, dword [ebp - 0x10c]
jmp 0x40e3d0
push str.Could_not_extract_the_current_file.
lea ecx, [ebp - 0x138]
call fcn.00406860
push 0x443ba4
lea ecx, [ebp - 0x138]
push ecx
call fcn.00412c01
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x176]
lea edx, [ebp - 0x11c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [ebp - 0x11c]
push edx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x114]
push 0x4000
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00411be0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004126c6
mov esp, ebp
pop ebp
ret 8