Function at 0x4017c0
Capabilities:
Delete file

Disassembly:
sub esp, 0xa04
mov al, byte [esp + 0xa08]
push ebp
neg al
sbb eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
and al, 0xfd
push edi
add eax, 9
lea ecx, [esp + 0xc]
push eax
push str.Backing_up_the_version__d_database.
push ecx
call ebp
lea edx, [esp + 0x18]
push edx
call fcn.00401000
mov edi, dword [0x40774c]
xor edx, edx
add esp, 0x10
cmp edi, edx
mov byte [esp + 0x40c], dl
mov byte [esp + 0x20c], dl
mov byte [esp + 0x60c], dl
mov byte [esp + 0xc], dl
mov byte [esp + 0x80c], dl
je 0x401a73
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
push esi
lea ebx, [esp + 0x614]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Backup_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
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 al, byte [esp + 0xa18]
mov ecx, ebx
and ecx, 3
cmp al, dl
rep movsb byte es:[edi], byte [esi]
mov edx, str.DBv6.zip
jne 0x40188d
mov edx, str.DBv9.zip
or ecx, 0xffffffff
lea edi, [esp + 0x614]
xor eax, eax
lea ebx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x414]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406438
or ecx, 0xffffffff
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 + 0x214]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push str.____Zipping_the_database_to___s_...
push ecx
call ebp
lea edx, [esp + 0x20]
push edx
call fcn.00401000
mov edi, dword [0x40774c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x824]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.LCMLCA.
or ecx, 0xffffffff
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 + 0x824]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x228]
push ecx
call fcn.004015e0
add esp, 0x18
lea edx, [esp + 0x414]
lea eax, [esp + 0x14]
push edx
push str.____Encrypting_the_Zip_archive_to___s_...
push eax
call ebp
lea ecx, [esp + 0x20]
push ecx
call fcn.00401000
mov edx, dword [0x407750]
push 0x4063d4
push edx
lea eax, [esp + 0x42c]
push str.B00gYmAn
lea ecx, [esp + 0x230]
push eax
push ecx
call fcn.00401700
add esp, 0x24
lea edx, [esp + 0x214]
lea eax, [esp + 0x14]
push edx
push str.____Deleting_Zip_archive___s_...
push eax
call ebp
lea ecx, [esp + 0x20]
push ecx
call fcn.00401000
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 0x14
test eax, eax
pop esi
pop ebx
je 0x401a66
lea eax, [esp + 0x20c]
lea ecx, [esp + 0xc]
push eax
push str.Error:_Could_not_delete_intermediate_zip_file___s__
push ecx
call ebp
add esp, 0xc
lea eax, [esp + 8]
lea edx, [esp + 0xc]
push 0x405278
push eax
mov dword [esp + 0x10], edx
call sub.MSVCRT.dll__CxxThrowException
push str.The_database_has_been_successfully_archived.
call fcn.00401000
add esp, 4
pop edi
pop ebp
add esp, 0xa04
ret