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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458311
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], esi
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407b41
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x288], 0
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407b76
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
test esi, esi
mov byte [esp + 0x288], 1
jne 0x407b96
xor eax, eax
jmp 0x407baf
mov eax, esi
lea edx, [eax + 2]
jmp 0x407ba0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ba0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004029b0
push 4
push str..
lea ecx, [esp + 0x24]
call fcn.00407380
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x407c93
lea esi, [edi - 0x10]
push esi
call fcn.00402ac0
add eax, 0x10
mov dword [esp + 0x18], eax
push edi
lea edx, [esp + 0x1c]
push str.FindFirstFile___s__Fail_
push edx
mov byte [esp + 0x298], 2
call fcn.00402e70
mov edi, dword [esp + 0x24]
add esp, 0x10
push 0
push 0
push edi
call fcn.00425dc5
lea eax, [edi - 0x10]
mov byte [esp + 0x288], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x288], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c65
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebx - 0x10]
mov dword [esp + 0x288], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407eb0
mov ecx, 0x46330c
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407cc6
test dx, dx
je 0x407cc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407cc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ca0
xor eax, eax
jmp 0x407ccb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407e3d
mov ecx, 0x463310
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407d06
test dx, dx
je 0x407d02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407d06
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ce0
xor eax, eax
jmp 0x407d0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407e3d
cmp dword [ebp + 0xc], 0
jne 0x407d33
lea ecx, [esp + 0x50]
push str.desktop.ini
push ecx
call fcn.0043fdef
add esp, 8
test eax, eax
je 0x407e3d
test esi, esi
jne 0x407d3b
xor eax, eax
jmp 0x407d4f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d40
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004029b0
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx - 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, edx
jge 0x407d83
push esi
lea ecx, [esp + 0x1c]
call fcn.00402ba0
mov ecx, dword [esp + 0x18]
test esi, esi
mov word [ecx + edi*2], 0x5c
jl 0x407ed4
cmp esi, dword [ecx - 8]
jg 0x407ed4
lea eax, [esp + 0x50]
mov dword [ecx - 0xc], esi
mov word [ecx + esi*2], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407db0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
call fcn.00407380
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x407de8
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x24], 0x10
je 0x407e09
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push ebx
call fcn.00407ae0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x407e39
cmp dword [ebp + 0x10], 0
je 0x407e32
lea edx, [esp + 0x50]
push str.index.dat
push edx
call fcn.0043fdef
add esp, 8
test eax, eax
jne 0x407e32
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x50]
call fcn.00407800
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407c93
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x288], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x288], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407eab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0043e923
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402660
int3