Function at 0x4010d8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479764
mov eax, dword fs:[0]
push eax
mov eax, 0x40cc
call fcn.0045f950
mov eax, dword [0x4bfd60]
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
push dword [esi]
lea eax, [ebp - 0x4070]
xor ebx, ebx
push eax
xor eax, eax
mov dword [ebp - 0x4038], ebx
mov dword [ebp - 0x4048], ebx
call fcn.00402f7b
pop ecx
pop ecx
test eax, eax
je 0x401182
push str.InFile_OpenW_failed_with_archive_path:
lea ecx, [ebp - 0x403c]
call fcn.004020a6
push esi
lea ecx, [ebp - 0x403c]
mov dword [ebp - 4], ebx
call fcn.00401ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1fbd0
mov ecx, eax
lea edx, [ebp - 0x403c]
mov ebx, 0x4c4bf0
call fcn.0041384f
mov ecx, dword [ebp - 0x403c]
add ecx, 0xfffffff0
call fcn.004025d2
push 0xb
pop eax
jmp 0x40163c
lea eax, [ebp - 0x4078]
mov dword [ebp - 0x4078], 0x4030a3
mov dword [ebp - 0x4074], 0x4030c4
mov dword [ebp - 0x4030], 0x404da6
mov dword [ebp - 0x402c], 0x404df5
mov dword [ebp - 0x4028], 0x404e03
mov dword [ebp - 0x4024], 0x404e4f
mov dword [ebp - 0x4020], eax
mov dword [ebp - 0x4018], ebx
mov dword [ebp - 0x401c], ebx
mov dword [ebp - 0x405c], fcn.004025ec
mov dword [ebp - 0x4058], 0x402601
mov dword [ebp - 0x4068], fcn.004025ec
mov dword [ebp - 0x4064], 0x402601
call fcn.00402645
lea eax, [ebp - 0x40d8]
call fcn.0040322e
lea eax, [ebp - 0x4068]
push eax
lea eax, [ebp - 0x405c]
push eax
lea eax, [ebp - 0x40d8]
push eax
lea ecx, [ebp - 0x4030]
call fcn.004048f5
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x401248
lea esi, [ebp - 0x405c]
lea eax, [ebp - 0x40d8]
call fcn.0040325d
mov dword [ebp - 0x4044], edi
cmp edi, ebx
jne 0x4015d0
or dword [ebp - 0x406c], 0xffffffff
mov dword [ebp - 0x404c], ebx
mov dword [ebp - 0x4060], ebx
mov dword [ebp - 0x403c], ebx
cmp dword [ebp - 0x40bc], ebx
jbe 0x4015a7
mov edi, dword [ebp - 0x40c8]
mov ecx, dword [ebp - 0x403c]
mov eax, dword [ebp - 0x4098]
shl ecx, 2
mov esi, dword [ecx + eax + 4]
sub esi, dword [ecx + eax]
mov dword [ebp - 0x4034], ebx
mov dword [ebp - 0x4054], ebx
cmp esi, dword [ebp - 0x4048]
jbe 0x4012e4
push dword [ebp - 0x4038]
call fcn.004595f2
pop ecx
lea eax, [esi + esi]
push eax
push ebx
mov dword [ebp - 0x4048], esi
call fcn.004025ec
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x4038], esi
cmp esi, ebx
jne 0x4012ea
mov dword [ebp - 0x4044], 2
jmp 0x4015a7
mov esi, dword [ebp - 0x4038]
mov edx, dword [ebp - 0x403c]
push esi
lea eax, [ebp - 0x40d8]
call fcn.00404238
pop ecx
cmp byte [edi + 0x19], bl
jne 0x401354
lea eax, [ebp - 0x4068]
push eax
lea eax, [ebp - 0x405c]
push eax
lea eax, [ebp - 0x4054]
push eax
lea eax, [ebp - 0x4034]
push eax
lea eax, [ebp - 0x4060]
push eax
lea eax, [ebp - 0x404c]
push eax
lea eax, [ebp - 0x406c]
push eax
push dword [ebp - 0x403c]
lea eax, [ebp - 0x4030]
push eax
lea eax, [ebp - 0x40d8]
call fcn.00404b7f
add esp, 0x24
mov dword [ebp - 0x4044], eax
cmp esi, ebx
je 0x4012d5
mov dword [ebp - 0x4040], ebx
cmp word [esi], bx
je 0x4013a0
cmp word [esi], 0x2f
jne 0x401384
push dword [ebp - 0x4038]
xor eax, eax
mov word [esi], ax
call fcn.00401013
pop ecx
push 0x5c
pop eax
mov word [esi], ax
inc dword [ebp - 0x4040]
mov eax, dword [ebp - 0x4038]
mov ecx, dword [ebp - 0x4040]
lea esi, [eax + ecx*2]
cmp word [esi], bx
jne 0x401367
mov esi, eax
push esi
cmp byte [edi + 0x19], bl
je 0x4013b1
call fcn.00401013
pop ecx
jmp 0x401474
lea eax, [ebp - 0x4050]
xor esi, esi
push eax
inc esi
mov eax, esi
call fcn.00402f7b
pop ecx
pop ecx
test eax, eax
jne 0x401494
mov eax, dword [ebp - 0x4054]
mov ecx, dword [ebp - 0x404c]
mov dword [ebp - 0x4040], eax
mov eax, dword [ebp - 0x4034]
add eax, ecx
push eax
lea eax, [ebp - 0x4050]
push eax
lea esi, [ebp - 0x4040]
call fcn.0040102c
pop ecx
pop ecx
test eax, eax
jne 0x401538
mov eax, dword [ebp - 0x4054]
cmp dword [ebp - 0x4040], eax
jne 0x401538
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x4088], eax
mov dword [ebp - 0x4080], eax
lea eax, [ebp - 0x4088]
push eax
push ebx
lea eax, [ebp - 0x4080]
push eax
push dword [ebp - 0x4050]
mov dword [ebp - 0x4084], ecx
mov dword [ebp - 0x407c], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea esi, [ebp - 0x4050]
call fcn.00402fbd
test eax, eax
jne 0x401503
cmp byte [edi + 0x1d], bl
je 0x401474
push dword [edi + 0x14]
push dword [ebp - 0x4038]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc dword [ebp - 0x403c]
mov eax, dword [ebp - 0x403c]
add edi, 0x20
cmp eax, dword [ebp - 0x40bc]
jb 0x401281
jmp 0x4015a7
push dword [ebp - 0x4038]
lea ecx, [ebp - 0x4048]
call fcn.004020a6
push str.can_not_open_output_file
lea ecx, [ebp - 0x4034]
mov dword [ebp - 4], esi
call fcn.004020a6
push ebx
lea eax, [ebp - 0x4048]
push eax
lea eax, [ebp - 0x4034]
push eax
push esi
mov byte [ebp - 4], 2
call fcn.00414e01
mov ecx, dword [ebp - 0x4034]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4048]
add ecx, 0xfffffff0
call fcn.004025d2
mov dword [ebp - 0x4044], 0xb
jmp 0x4015a7
push str.can_not_close_output_file
lea ecx, [ebp - 0x4034]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x4034]
push eax
push 1
mov dword [ebp - 4], 5
call fcn.004152d1
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4034]
jmp 0x4014ec
push dword [ebp - 0x4038]
lea ecx, [ebp - 0x4048]
call fcn.004020a6
push str.can_not_write_output_file:
lea ecx, [ebp - 0x4034]
mov dword [ebp - 4], 3
call fcn.004020a6
push ebx
lea eax, [ebp - 0x4048]
push eax
lea eax, [ebp - 0x4034]
push eax
push 1
mov byte [ebp - 4], 4
call fcn.00414e01
mov ecx, dword [ebp - 0x4034]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4048]
add ecx, 0xfffffff0
call fcn.004025d2
mov dword [ebp - 0x4044], 9
push dword [ebp - 0x404c]
lea eax, [ebp - 0x405c]
push eax
call dword [ebp - 0x4058]
pop ecx
pop ecx
cmp dword [ebp - 0x4038], ebx
je 0x4015d0
push dword [ebp - 0x4038]
call fcn.004595f2
pop ecx
lea esi, [ebp - 0x405c]
lea eax, [ebp - 0x40d8]
call fcn.0040325d
lea esi, [ebp - 0x4070]
call fcn.00402fbd
cmp dword [ebp - 0x4044], ebx
je 0x401636
push str.Extract_Files_ERROR_DATA
lea ecx, [ebp - 0x4040]
call fcn.004020a6
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1fbd0
mov ecx, eax
lea edx, [ebp - 0x4040]
mov ebx, 0x4c4bf0
call fcn.0041384f
mov ecx, dword [ebp - 0x4040]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp - 0x4044]
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.00458e0e
leave
ret