Function at 0x408b40
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x668
push ebx
mov ebx, dword [esp + 0x670]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x408df1
push ebx
call fcn.004538bc
add esp, 4
test eax, eax
je 0x408df1
push edi
push edi
push edi
push edi
lea eax, [esp + 0x20]
push edi
push eax
push ebx
mov dword [esp + 0x2c], edi
call fcn.004050f0
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x408b9e
test al, 1
je 0x408b9e
and al, 0xfe
push eax
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x684]
mov edx, dword [esp + 0x680]
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov ebp, eax
cmp ebp, edi
je 0x408de4
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
je 0x408bd7
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x668
ret
push 0x5c
push ebx
call fcn.0045382d
mov esi, eax
add esp, 8
cmp esi, edi
je 0x408cc7
add esi, 2
push str.mails
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push str.MailsTemp
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push str.MailsLeave
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push str.files
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push str.WinPatch
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push str.tsdocbak
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push 0x630a4c
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push 0x630a40
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push str.SCDT
push esi
call fcn.00453d6e
add esp, 8
test eax, eax
je 0x408cba
push str.Temp_Docerr_
call fcn.004538bc
push eax
push str.Temp_Docerr_
push esi
call fcn.00454274
add esp, 0x10
test eax, eax
jne 0x408cc7
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x668
ret
mov word [esp + 0x268], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26a]
rep stosd dword es:[edi], eax
push ebx
push 0x630a0c
lea ecx, [esp + 0x270]
push 0x103
push ecx
stosw word es:[edi], ax
call fcn.00454618
add esp, 0x10
test eax, eax
jl 0x408df1
xor esi, esi
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], esi
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x268]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x408de4
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x44]
push 0x630758
push ecx
call edi
test eax, eax
je 0x408dbd
lea edx, [esp + 0x44]
push 0x630754
push edx
call edi
test eax, eax
je 0x408dbd
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x472]
mov word [esp + 0x470], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x470]
push eax
push ebx
push 0x630a00
push 0x103
push ecx
call fcn.00454618
add esp, 0x14
test eax, eax
jl 0x408dbd
mov edx, dword [esp + 0x684]
mov eax, dword [esp + 0x680]
push edx
lea ecx, [esp + 0x474]
push eax
push ecx
call fcn.00408b40
add esp, 0xc
mov ebp, eax
cmp ebp, esi
je 0x408dd9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408d37
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x668
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x668
ret