Function at 0x404ad2
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov dl, byte [0x4182fc]
push ebx
push esi
push edi
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x6b]
mov byte [ebp - 0x6c], dl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1eb]
mov byte [ebp - 0x1ec], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xeb]
mov byte [ebp - 0xec], dl
mov ebx, 0x7d0
rep stosd dword es:[edi], eax
push ebx
push 0
push dword [0x41411c]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040b6c0
lea eax, [ebp - 0x6c]
push 0x40
push eax
push 0x581
mov dword [0x414118], ebx
call fcn.00406e92
mov esi, 0x414118
lea eax, [ebp - 0xec]
push esi
push eax
lea eax, [ebp - 0x6c]
push 0
push eax
push dword [ebp + 8]
call fcn.00403730
add esp, 0x2c
test eax, eax
je 0x404e1e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
lea eax, [ebp - 0x1ec]
push eax
push 1
push esi
call dword [0x419c5c]
test eax, eax
je 0x404deb
push 4
lea eax, [ebp - 4]
pop edi
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
mov dword [ebp - 4], edi
call dword [0x419c5c]
test eax, eax
je 0x404deb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x20]
push eax
push 3
push esi
call dword [0x419c5c]
test eax, eax
je 0x404deb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
push 6
push esi
call dword [0x419c5c]
test eax, eax
je 0x404deb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 8]
push eax
push 7
push esi
call dword [0x419c5c]
test eax, eax
je 0x404deb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0xc]
push eax
push 8
push esi
call dword [0x419c5c]
test eax, eax
je 0x404deb
xor eax, eax
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
je 0x404c32
mov dword [ebp - 0x18], 1
cmp dword [ebp - 8], eax
jne 0x404c3b
or dword [ebp - 0x18], 2
cmp dword [ebp - 0xc], eax
jne 0x404c43
or dword [ebp - 0x18], edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.004023d5
pop ecx
test eax, eax
pop ecx
jne 0x404c9d
xor esi, esi
push 0x80
lea eax, [ebp - 0xec]
push esi
push eax
call fcn.0040b6c0
push ebx
push esi
push dword [0x41411c]
call fcn.0040b6c0
add esp, 0x18
jmp 0x404dc4
mov eax, dword [ebp - 0x18]
push 1
mov edx, eax
pop ecx
and edx, ecx
mov dword [ebp - 4], 0x100
not eax
mov dword [ebp - 0x10], edx
mov edx, eax
shr eax, 2
and eax, ecx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1ec]
shr edx, 1
push eax
and edx, ecx
push ecx
push esi
mov dword [ebp - 8], edx
call dword [0x419c44]
test eax, eax
je 0x404deb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
call dword [0x419c44]
test eax, eax
je 0x404deb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
push 6
push esi
call dword [0x419c44]
test eax, eax
je 0x404deb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 8]
push eax
push 7
push esi
call dword [0x419c44]
test eax, eax
je 0x404deb
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0xc]
push eax
push 8
push esi
call dword [0x419c44]
test eax, eax
je 0x404deb
lea eax, [ebp - 0xec]
push eax
push esi
call fcn.0040355e
pop ecx
test eax, eax
pop ecx
je 0x404dd0
lea eax, [ebp - 0x1ec]
push esi
push eax
call fcn.00403112
pop ecx
test eax, eax
pop ecx
je 0x404dd0
xor esi, esi
cmp dword [ebp - 8], esi
jne 0x404d8b
lea eax, [ebp - 0x1ec]
push 0x27
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea eax, [ebp - 0xec]
push esi
push eax
call fcn.0040b6c0
add esp, 0xc
push 0x40
push 0x414144
push 0xffffffffffffffff
push esi
push 0x979
call fcn.00406e92
add esp, 0xc
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
pop esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x404e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0
push dword [0x41411c]
mov esi, eax
call fcn.0040b6c0
add esp, 0xc
jmp 0x404e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x80
lea eax, [ebp - 0xec]
push 0
push eax
call fcn.0040b6c0
push ebx
push 0
push dword [0x41411c]
call fcn.0040b6c0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret