Function at 0x4070f0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x350
push ebx
push ebp
mov ebp, dword [esp + 0x35c]
push esi
test ebp, ebp
push edi
je 0x4073a7
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4073a7
push eax
push eax
push eax
push eax
mov dword [esp + 0x20], eax
push eax
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.00403440
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x40714d
test al, 1
je 0x40714d
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x36c]
mov edx, dword [esp + 0x368]
push ecx
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov ebx, eax
test ebx, ebx
je 0x40739a
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
je 0x407186
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x350
ret
push 0x5c
push ebp
call fcn.00413f06
mov esi, eax
add esp, 8
test esi, esi
je 0x407279
inc esi
push str.mails
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
push str.MailsTemp
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
push str.MailsLeave
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
push str.files
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
push str.WinPatch
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
push str.tsdocbak
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
push 0x4aca98
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
push 0x4aca90
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
push str.SCDT
push esi
call fcn.004135cd
add esp, 8
test eax, eax
je 0x40726c
mov edi, str.Temp_Docerr_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Temp_Docerr_
push esi
call fcn.00413352
add esp, 0xc
test eax, eax
jne 0x407279
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x350
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push 0x4aca70
lea ecx, [esp + 0x160]
push 0x103
push ecx
stosb byte es:[edi], al
call fcn.00413eb5
add esp, 0x10
test eax, eax
jl 0x4073a7
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x158]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40739a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea ecx, [esp + 0x44]
push 0x4ac7d8
push ecx
call esi
test eax, eax
je 0x407373
lea edx, [esp + 0x44]
push 0x4ac7d4
push edx
call esi
test eax, eax
je 0x407373
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25d]
mov byte [esp + 0x25c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x44]
lea ecx, [esp + 0x25c]
push eax
push ebp
push 0x4aca68
push 0x103
push ecx
call fcn.00413eb5
add esp, 0x14
test eax, eax
jl 0x407373
mov edx, dword [esp + 0x36c]
mov eax, dword [esp + 0x368]
push edx
lea ecx, [esp + 0x260]
push eax
push ecx
call fcn.004070f0
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x40738f
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4072f2
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x350
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret