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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484cdd
mov eax, dword fs:[0]
push eax
mov eax, 0x40d4
call fcn.00464ff0
mov eax, dword [0x4dd554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi]
lea ecx, [ebp - 0x4074]
xor ebx, ebx
push ebx
mov edi, ebx
mov dword [ebp - 0x403c], ebx
call fcn.00417648
pop ecx
test eax, eax
je 0x401462
push str.InFile_OpenW_failed_with_archive_path:
lea ecx, [ebp - 0x4038]
call fcn.0040279b
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x4038]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00402556
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x4038]
mov ecx, 0x4e24cc
push eax
push 0x1fbd0
call fcn.004121e3
mov ecx, dword [ebp - 0x4038]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 0xb
pop eax
jmp 0x40196e
lea eax, [ebp - 0x407c]
mov dword [ebp - 0x407c], 0x4177a0
mov dword [ebp - 0x4078], 0x4177c0
mov dword [ebp - 0x4030], 0x4198f0
mov dword [ebp - 0x402c], 0x419960
mov dword [ebp - 0x4028], 0x419970
mov dword [ebp - 0x4024], 0x4199d0
mov dword [ebp - 0x4020], eax
mov dword [ebp - 0x4018], ebx
mov dword [ebp - 0x401c], ebx
mov dword [ebp - 0x4060], fcn.00416a90
mov dword [ebp - 0x405c], 0x416ab0
mov dword [ebp - 0x4070], fcn.00416a90
mov dword [ebp - 0x406c], 0x416ab0
call fcn.00416b40
lea ecx, [ebp - 0x40e0]
call fcn.004179a0
lea eax, [ebp - 0x4070]
push eax
lea eax, [ebp - 0x4060]
push eax
lea edx, [ebp - 0x4030]
call fcn.0041937f
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x401528
lea edx, [ebp - 0x4060]
lea ecx, [ebp - 0x40e0]
call fcn.004179cf
test ebx, ebx
jne 0x40190a
or dword [ebp - 0x4068], 0xffffffff
xor ecx, ecx
and dword [ebp - 0x4058], edi
and dword [ebp - 0x4064], edi
mov dword [ebp - 0x4038], ecx
cmp dword [ebp - 0x40c4], ecx
jbe 0x4018e0
mov esi, dword [ebp - 0x40d0]
add esi, 0x1d
mov dword [ebp - 0x4048], esi
mov edx, dword [ebp - 0x40a0]
and dword [ebp - 0x4040], 0
and dword [ebp - 0x4050], 0
mov eax, dword [edx + ecx*4 + 4]
sub eax, dword [edx + ecx*4]
mov dword [ebp - 0x4034], eax
cmp eax, dword [ebp - 0x403c]
jbe 0x4015b6
push edi
call fcn.0046de4d
mov eax, dword [ebp - 0x4034]
pop ecx
mov dword [ebp - 0x403c], eax
add eax, eax
push eax
push 0
call fcn.00416a90
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4018dd
mov ecx, dword [ebp - 0x4038]
mov edx, ecx
lea ecx, [ebp - 0x40e0]
push edi
call fcn.00418c2c
cmp byte [esi - 4], 0
pop ecx
jne 0x401618
lea eax, [ebp - 0x4070]
push eax
lea eax, [ebp - 0x4060]
push eax
lea eax, [ebp - 0x4050]
push eax
lea eax, [ebp - 0x4040]
push eax
lea eax, [ebp - 0x4064]
push eax
lea eax, [ebp - 0x4058]
push eax
lea eax, [ebp - 0x4068]
push eax
push dword [ebp - 0x4038]
lea edx, [ebp - 0x4030]
lea ecx, [ebp - 0x40e0]
call fcn.00419661
add esp, 0x20
mov ebx, eax
test ebx, ebx
jne 0x4018dd
test edi, edi
je 0x4018dd
movzx eax, word [edi]
xor ecx, ecx
mov dword [ebp - 0x4044], ecx
mov edx, eax
test ax, ax
je 0x401674
mov esi, edi
cmp dx, 0x2f
jne 0x40165a
xor eax, eax
mov ecx, edi
mov word [esi], ax
call fcn.00401330
mov ecx, dword [ebp - 0x4044]
push 0x5c
pop eax
mov word [esi], ax
inc ecx
mov dword [ebp - 0x4044], ecx
lea esi, [edi + ecx*2]
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x40163c
mov esi, dword [ebp - 0x4048]
cmp byte [esi - 4], 0
je 0x401686
mov ecx, edi
call fcn.00401330
jmp 0x4017b9
push 1
mov edx, edi
lea ecx, [ebp - 0x4054]
call fcn.00417648
pop ecx
test eax, eax
jne 0x401885
mov ecx, dword [ebp - 0x4058]
add dword [ebp - 0x4040], ecx
mov ecx, dword [ebp - 0x4050]
mov dword [ebp - 0x4034], ecx
test ecx, ecx
je 0x40175e
and dword [ebp - 0x4044], eax
mov edx, 0x400000
mov eax, ecx
push 0
cmp ecx, edx
lea ecx, [ebp - 0x404c]
push ecx
cmova eax, edx
and dword [ebp - 0x404c], 0
push eax
push dword [ebp - 0x4040]
push dword [ebp - 0x4054]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x404c]
mov esi, eax
call fcn.0040134b
mov eax, dword [ebp - 0x404c]
mov ecx, dword [ebp - 0x4034]
mov edx, dword [ebp - 0x4044]
sub ecx, eax
add dword [ebp - 0x4040], eax
add edx, eax
mov dword [ebp - 0x4034], ecx
mov dword [ebp - 0x4044], edx
test esi, esi
je 0x401738
test eax, eax
je 0x401734
test ecx, ecx
jne 0x4016c4
xor eax, eax
jmp 0x401744
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x4044]
test eax, eax
jne 0x4017e0
cmp edx, dword [ebp - 0x4050]
jne 0x4017e0
mov esi, dword [ebp - 0x4048]
mov eax, dword [esi - 0x19]
mov ecx, dword [esi - 0x1d]
mov dword [ebp - 0x4080], eax
mov dword [ebp - 0x4088], eax
lea eax, [ebp - 0x4084]
push eax
push 0
lea eax, [ebp - 0x408c]
mov dword [ebp - 0x4084], ecx
push eax
push dword [ebp - 0x4054]
mov dword [ebp - 0x408c], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x4054]
call fcn.00417692
test eax, eax
jne 0x401847
cmp byte [esi], al
je 0x4017b9
push dword [esi - 9]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x4038]
add esi, 0x20
inc ecx
mov dword [ebp - 0x4048], esi
mov dword [ebp - 0x4038], ecx
cmp ecx, dword [ebp - 0x40c4]
jb 0x40155e
jmp 0x4018e0
push edi
lea ecx, [ebp - 0x403c]
call fcn.0040279b
push str.can_not_write_output_file:
lea ecx, [ebp - 0x4034]
mov dword [ebp - 4], 3
call fcn.0040279b
lea eax, [ebp - 0x403c]
mov byte [ebp - 4], 4
xor ecx, ecx
lea edx, [ebp - 0x4034]
push 0
push eax
inc ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4034]
lea ecx, [ecx - 0x10]
call fcn.00402def
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x403c]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 9
jmp 0x4018df
push str.can_not_close_output_file
lea ecx, [ebp - 0x4034]
call fcn.0040279b
xor ecx, ecx
mov dword [ebp - 4], 5
push 0
lea edx, [ebp - 0x4034]
inc ecx
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x4034]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 0xb
jmp 0x4018df
push edi
lea ecx, [ebp - 0x403c]
call fcn.0040279b
xor ebx, ebx
lea ecx, [ebp - 0x4034]
inc ebx
push str.can_not_open_output_file
mov dword [ebp - 4], ebx
call fcn.0040279b
lea eax, [ebp - 0x403c]
mov byte [ebp - 4], 2
push 0
push eax
lea edx, [ebp - 0x4034]
mov ecx, ebx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4034]
lea ecx, [ecx - 0x10]
call fcn.00402def
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x403c]
jmp 0x401879
push 2
pop ebx
push dword [ebp - 0x4058]
mov esi, dword [ebp - 0x405c]
lea eax, [ebp - 0x4060]
push eax
mov ecx, esi
call dword [0x4907c8]
call esi
pop ecx
pop ecx
test edi, edi
je 0x40190a
push edi
call fcn.0046de4d
pop ecx
lea edx, [ebp - 0x4060]
lea ecx, [ebp - 0x40e0]
call fcn.004179cf
lea ecx, [ebp - 0x4074]
call fcn.00417692
test ebx, ebx
je 0x40196c
push str.Extract_Files_ERROR_DATA
lea ecx, [ebp - 0x4048]
call fcn.0040279b
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x4048]
mov ecx, 0x4e24cc
push eax
push 0x1fbd0
call fcn.004121e3
mov ecx, dword [ebp - 0x4048]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046486a
leave
ret