Function at 0x411562
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10060
call fcn.0041f640
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10044], 0
lea edx, [ebp - 0x1003c]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
and dword [ebp - 0x1003c], ebx
push edi
call fcn.00411a8b
mov edi, eax
test edi, edi
je 0x411880
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x2000
push edi
mov dword [ebp - 0x10054], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41184f
push ebx
push 0x2200000
push 3
push ebx
push 7
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10058], eax
cmp eax, 0xffffffff
je 0x41183e
lea ecx, [ebp - 0x10038]
mov byte [ebp - 0x1003d], 1
push ecx
xor esi, esi
push eax
mov dword [ebp - 0x1004c], esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x41178d
cmp dword [ebp - 0x10010], 1
jbe 0x41178d
call fcn.004114fb
test eax, eax
je 0x41178d
cmp dword [ebp - 0x1003c], ebx
je 0x41178d
push 0x10000
lea eax, [ebp - 0x10004]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10004]
push esi
push eax
push 0x8000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x1003c], eax
test eax, eax
je 0x41176e
cmp word [ebp - 0x10004], bx
je 0x41176e
cmp word [ebp - 0x10002], 0x3a
jne 0x41176e
lea ecx, [ebp - 0x10004]
call fcn.00411fd7
mov dword [ebp - 0x10050], eax
test eax, eax
je 0x41174e
lea eax, [ebp - 0x10000]
mov dword [ebp - 0x1003c], 0x7ffc
push eax
lea eax, [ebp - 0x1003c]
push eax
push esi
mov esi, dword [0x4203a8]
mov ecx, esi
push edi
call dword [0x421338]
call esi
mov esi, eax
mov dword [ebp - 0x10048], esi
cmp esi, 0xffffffff
je 0x411737
push dword [ebp - 0x10050]
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x411726
lea eax, [ebp - 0x10000]
mov dword [ebp - 0x1003c], 0x7ffc
push eax
lea eax, [ebp - 0x1003c]
push eax
push esi
mov esi, dword [0x4203ac]
mov ecx, esi
call dword [0x421338]
call esi
mov esi, dword [ebp - 0x10048]
test eax, eax
je 0x411730
jmp 0x4116d8
mov dword [ebp - 0x1004c], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x10050]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41178d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405df0
push 0x3000000
push 0x4203b0
call fcn.00410c3d
add esp, 0x10
jmp 0x41178d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x405e88
push 0x3000000
push 0x4203b0
call fcn.00410c3d
add esp, 0x14
mov esi, dword [ebp - 0x10058]
lea eax, [ebp - 0x1003d]
push 0xd
push 1
push eax
lea eax, [ebp - 0x10060]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x4117bb
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
jmp 0x4117c5
mov dword [ebp - 0x10044], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1004c], 0
je 0x411870
xor edx, edx
lea ecx, [ebp - 0x10004]
call fcn.00411a8b
mov esi, eax
lea eax, [ebp - 0x10004]
push eax
push 0x405f08
push 0x4000000
push 0x4203b0
call fcn.00410c3d
push esi
push 0x405f60
push 0x4000000
push 0x4203b0
call fcn.00410c3d
add esp, 0x20
push dword [ebp - 0x10054]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x411870
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x411870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x405fc8
jmp 0x41185e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x406028
push 0x3000000
push 0x4203b0
call fcn.00410c3d
add esp, 0x14
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10044]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041ef80
mov esp, ebp
pop ebp
ret