Function at 0x4020a0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x310
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], bl
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
call fcn.00402a90
mov edi, str.backuplog_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40e140
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.logb.pkl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040598d
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40222a
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x402221
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x21c]
push esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x120]
push 0x104
push ecx
call fcn.00405833
push esi
push 1
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.00405833
push esi
push 1
lea eax, [esp + 0x38]
push 4
push eax
call fcn.00405833
mov edx, dword [0x410e2c]
lea ecx, [esp + 0x148]
push ecx
push edx
call fcn.00405100
add esp, 0x38
test eax, eax
jne 0x402218
lea eax, [esp + 0x118]
push eax
call fcn.00403530
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x220]
push ecx
push edx
call fcn.004022f0
add esp, 0xc
test byte [esi + 0xc], bl
je 0x402181
push esi
call fcn.00405500
add esp, 4
mov eax, dword [0x410e3c]
push eax
call fcn.004050b0
mov ecx, dword [0x410e38]
push ecx
call fcn.004050b0
mov edx, dword [0x410e34]
push edx
call fcn.004050b0
mov eax, dword [0x410e30]
push eax
call fcn.004050b0
mov ecx, dword [0x410e2c]
push ecx
call fcn.004050b0
add esp, 0x14
lea edx, [esp + 0x14]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00405b4e
lea ecx, [esp + 0x14]
push ecx
call fcn.00402a90
mov edi, str.backuplog
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402f80
add esp, 8
call fcn.00401f30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x310
ret