Function at 0x493210
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 0x4934ab
push ebx
call fcn.005fc40b
add esp, 4
test eax, eax
je 0x4934ab
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.0048f340
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0xffffffff
je 0x49326e
test al, 1
je 0x49326e
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 0x49349e
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
je 0x4932a7
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x668
ret
push 0x5c
push ebx
call fcn.005fc428
mov esi, eax
add esp, 8
cmp esi, edi
je 0x493381
add esi, 2
push str.mails
push esi
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x493374
push str.MailsTemp
push esi
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x493374
push str.MailsLeave
push esi
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x493374
push str.files
push esi
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x493374
push str.WinPatch
push esi
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x493374
push str.tsdocbak
push esi
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x493374
push 0x945cdc
push esi
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x493374
push 0x945cd0
push esi
call fcn.005fc4b7
add esp, 8
test eax, eax
je 0x493374
push str.Temp_Docerr_
call fcn.005fc40b
push eax
push str.Temp_Docerr_
push esi
call fcn.005fddee
add esp, 0x10
test eax, eax
jne 0x493381
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 0x93fd58
lea ecx, [esp + 0x270]
push 0x103
push ecx
stosw word es:[edi], ax
call fcn.005fd4a1
add esp, 0x10
test eax, eax
jl 0x4934ab
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 0x49349e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x44]
push 0x9428c4
push ecx
call edi
test eax, eax
je 0x493477
lea edx, [esp + 0x44]
push 0x9428c0
push edx
call edi
test eax, eax
je 0x493477
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 0x92ecec
push 0x103
push ecx
call fcn.005fd4a1
add esp, 0x14
test eax, eax
jl 0x493477
mov edx, dword [esp + 0x684]
mov eax, dword [esp + 0x680]
push edx
lea ecx, [esp + 0x474]
push eax
push ecx
call fcn.00493210
add esp, 0xc
mov ebp, eax
cmp ebp, esi
je 0x493493
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4933f1
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