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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8a2d
mov eax, dword fs:[0]
push eax
mov eax, 0x40d4
call fcn.00468dc0
mov eax, dword [0x50e554]
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.00418518
pop ecx
test eax, eax
je 0x4014d2
push str.InFile_OpenW_failed_with_archive_path:
lea ecx, [ebp - 0x4038]
call fcn.00402829
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x4038]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.004025c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x4038]
mov ecx, 0x5143b0
push eax
push 0x1fbd0
call fcn.00412e53
mov ecx, dword [ebp - 0x4038]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0xb
pop eax
jmp 0x4019de
lea eax, [ebp - 0x407c]
mov dword [ebp - 0x407c], 0x418670
mov dword [ebp - 0x4078], 0x418690
mov dword [ebp - 0x4030], 0x41a7c0
mov dword [ebp - 0x402c], 0x41a830
mov dword [ebp - 0x4028], 0x41a840
mov dword [ebp - 0x4024], 0x41a8a0
mov dword [ebp - 0x4020], eax
mov dword [ebp - 0x4018], ebx
mov dword [ebp - 0x401c], ebx
mov dword [ebp - 0x4060], fcn.00417960
mov dword [ebp - 0x405c], 0x417980
mov dword [ebp - 0x4070], fcn.00417960
mov dword [ebp - 0x406c], 0x417980
call fcn.00417a10
lea ecx, [ebp - 0x40e0]
call fcn.00418870
lea eax, [ebp - 0x4070]
push eax
lea eax, [ebp - 0x4060]
push eax
lea edx, [ebp - 0x4030]
call fcn.0041a250
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x401598
lea edx, [ebp - 0x4060]
lea ecx, [ebp - 0x40e0]
call fcn.0041889f
test ebx, ebx
jne 0x40197a
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 0x401950
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 0x401626
push edi
call fcn.004896ad
mov eax, dword [ebp - 0x4034]
pop ecx
mov dword [ebp - 0x403c], eax
add eax, eax
push eax
push 0
call fcn.00417960
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40194d
mov ecx, dword [ebp - 0x4038]
mov edx, ecx
lea ecx, [ebp - 0x40e0]
push edi
call fcn.00419afd
cmp byte [esi - 4], 0
pop ecx
jne 0x401688
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.0041a532
add esp, 0x20
mov ebx, eax
test ebx, ebx
jne 0x40194d
test edi, edi
je 0x40194d
movzx eax, word [edi]
xor ecx, ecx
mov dword [ebp - 0x4044], ecx
mov edx, eax
test ax, ax
je 0x4016e4
mov esi, edi
cmp dx, 0x2f
jne 0x4016ca
xor eax, eax
mov ecx, edi
mov word [esi], ax
call fcn.004013a0
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 0x4016ac
mov esi, dword [ebp - 0x4048]
cmp byte [esi - 4], 0
je 0x4016f6
mov ecx, edi
call fcn.004013a0
jmp 0x401829
push 1
mov edx, edi
lea ecx, [ebp - 0x4054]
call fcn.00418518
pop ecx
test eax, eax
jne 0x4018f5
mov ecx, dword [ebp - 0x4058]
add dword [ebp - 0x4040], ecx
mov ecx, dword [ebp - 0x4050]
mov dword [ebp - 0x4034], ecx
test ecx, ecx
je 0x4017ce
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.004013bb
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 0x4017a8
test eax, eax
je 0x4017a4
test ecx, ecx
jne 0x401734
xor eax, eax
jmp 0x4017b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x4044]
test eax, eax
jne 0x401850
cmp edx, dword [ebp - 0x4050]
jne 0x401850
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.00418562
test eax, eax
jne 0x4018b7
cmp byte [esi], al
je 0x401829
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 0x4015ce
jmp 0x401950
push edi
lea ecx, [ebp - 0x403c]
call fcn.00402829
push str.can_not_write_output_file:
lea ecx, [ebp - 0x4034]
mov dword [ebp - 4], 3
call fcn.00402829
lea eax, [ebp - 0x403c]
mov byte [ebp - 4], 4
xor ecx, ecx
lea edx, [ebp - 0x4034]
push 0
push eax
inc ecx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4034]
lea ecx, [ecx - 0x10]
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x403c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 9
jmp 0x40194f
push str.can_not_close_output_file
lea ecx, [ebp - 0x4034]
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 5
push 0
lea edx, [ebp - 0x4034]
inc ecx
call fcn.00414ca1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x4034]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0xb
jmp 0x40194f
push edi
lea ecx, [ebp - 0x403c]
call fcn.00402829
xor ebx, ebx
lea ecx, [ebp - 0x4034]
inc ebx
push str.can_not_open_output_file
mov dword [ebp - 4], ebx
call fcn.00402829
lea eax, [ebp - 0x403c]
mov byte [ebp - 4], 2
push 0
push eax
lea edx, [ebp - 0x4034]
mov ecx, ebx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4034]
lea ecx, [ecx - 0x10]
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x403c]
jmp 0x4018e9
push 2
pop ebx
push dword [ebp - 0x4058]
mov esi, dword [ebp - 0x405c]
lea eax, [ebp - 0x4060]
push eax
mov ecx, esi
call dword [0x4b67e4]
call esi
pop ecx
pop ecx
test edi, edi
je 0x40197a
push edi
call fcn.004896ad
pop ecx
lea edx, [ebp - 0x4060]
lea ecx, [ebp - 0x40e0]
call fcn.0041889f
lea ecx, [ebp - 0x4074]
call fcn.00418562
test ebx, ebx
je 0x4019dc
push str.Extract_Files_ERROR_DATA
lea ecx, [ebp - 0x4048]
call fcn.00402829
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x4048]
mov ecx, 0x5143b0
push eax
push 0x1fbd0
call fcn.00412e53
mov ecx, dword [ebp - 0x4048]
lea ecx, [ecx - 0x10]
call fcn.00402e64
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.0046863a
leave
ret