Function at 0x455fc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a222e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x601018]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x28], ecx
push str.internalAddBase__
push eax
mov ecx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
call fcn.00454860
mov eax, dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x456067
cmp byte [eax], 0
je 0x456067
lea ecx, [esp + 0x16c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4560ea
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x28]
test edi, edi
je 0x456190
push edi
call fcn.004f9540
add esp, 4
test eax, eax
je 0x456190
push ebx
mov eax, 0x13a4d
lea ecx, [esp + 0x30]
call fcn.005064b0
mov esi, eax
push str.existing_temp_file
mov dword [esp + 0x2c4], 1
call fcn.00506660
cmp byte [edi], 0
je 0x4560bd
push edi
push str.filename___s_
call fcn.00506600
add esp, 8
mov ebx, dword [ebx + 0x1c2c]
mov dword [esi + 0x110], 0
test ebx, ebx
je 0x45617f
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
mov ecx, esi
call fcn.0042c010
mov edi, eax
jmp 0x456164
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
mov eax, 0x13a4c
lea ecx, [esp + 0x30]
call fcn.005064b0
mov esi, eax
xor edi, edi
push str.existing_flag_file
mov dword [esp + 0x2c4], edi
call fcn.00506660
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x45612c
push eax
push str.filename___s_
call fcn.00506600
add esp, 8
mov ebx, dword [ebx + 0x1c2c]
mov dword [esi + 0x110], edi
cmp ebx, edi
je 0x456150
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.0042c010
mov edi, eax
jmp 0x456164
cmp dword [esi + 0x114], edi
je 0x456160
mov esi, dword [esi + 0x118]
jmp 0x456162
xor esi, esi
mov edi, esi
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00506520
mov eax, edi
jmp 0x4565bf
cmp dword [esi + 0x114], 0
je 0x456160
mov esi, dword [esi + 0x118]
jmp 0x456162
test esi, esi
je 0x4561b8
cmp byte [esi], 0
je 0x4561b8
lea edx, [esp + 0x16c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4562aa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.00455160
test eax, eax
jne 0x4565bf
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
test edi, edi
je 0x456433
push edi
push edx
mov edx, dword [esp + 0x18]
push ebx
call fcn.00454dc0
mov dword [esp + 0x20], eax
test eax, eax
je 0x456333
push ebx
mov eax, 0x13a4f
lea ecx, [esp + 0x30]
call fcn.005064b0
mov esi, eax
push str.failed_to_write_temp_file
mov dword [esp + 0x2c4], 3
call fcn.00506660
mov eax, dword [ebx + 0x1c2c]
push eax
mov eax, edi
mov ecx, esi
call fcn.005067b0
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, eax
call fcn.00456720
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00506520
mov edi, dword [esp + 0x28]
push edi
call fcn.004f9540
add esp, 4
test eax, eax
je 0x456534
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x456538
push ebx
mov eax, 0x13a50
lea ecx, [esp + 0x30]
call fcn.005064b0
mov esi, eax
mov dword [esp + 0x2c0], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_delete_temp_file
jmp 0x4564eb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
mov eax, 0x13a4e
lea ecx, [esp + 0x30]
call fcn.005064b0
mov edi, eax
push str.existing_data_file
mov dword [esp + 0x2c4], 2
call fcn.00506660
cmp byte [esi], 0
je 0x4562ec
push esi
push str.filename___s_
mov esi, edi
call fcn.00506600
add esp, 8
mov ebx, dword [ebx + 0x1c2c]
mov dword [edi + 0x110], 0
test ebx, ebx
je 0x456318
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
mov ecx, edi
call fcn.0042c010
mov edi, eax
jmp 0x456164
cmp dword [edi + 0x114], 0
je 0x45632c
mov edi, dword [edi + 0x118]
jmp 0x456164
xor edi, edi
jmp 0x456164
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0x18]
mov eax, edi
call fcn.004f9640
test eax, eax
je 0x456538
mov eax, 0x13a51
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.005064b0
mov esi, eax
mov dword [esp + 0x2c0], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
push str.failed_to_rename_file
mov eax, esi
call fcn.00506660
mov edx, dword [ebx + 0x1c2c]
mov eax, dword [esp + 0x28]
push edx
push edi
push eax
mov edi, 0x5ce980
mov ecx, esi
call fcn.00506890
add esp, 4
mov edi, str.dest
mov ecx, eax
call fcn.00506890
mov ecx, eax
mov eax, dword [esp + 0x20]
add esp, 4
call fcn.00506780
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, eax
call fcn.00456720
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00506520
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x456534
mov edi, dword [esp + 0x1c]
push edi
mov eax, 0x13a52
lea ecx, [esp + 0x30]
call fcn.005064b0
mov esi, eax
mov dword [esp + 0x2c0], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
push str.failed_to_delete_temp_file
mov eax, esi
call fcn.00506660
mov ecx, dword [edi + 0x1c2c]
mov eax, ebx
jmp 0x4564fe
push esi
push edx
mov edx, dword [esp + 0x18]
push ebx
call fcn.00454dc0
mov dword [esp + 0x20], eax
test eax, eax
je 0x456538
push ebx
mov eax, 0x13a53
lea ecx, [esp + 0x30]
call fcn.005064b0
mov edi, eax
push str.failed_to_write_a_file
mov dword [esp + 0x2c4], 7
call fcn.00506660
mov eax, dword [ebx + 0x1c2c]
push eax
mov eax, esi
mov ecx, edi
call fcn.005067b0
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, eax
call fcn.00456720
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00506520
mov edi, dword [esp + 0x18]
push edi
call fcn.004f9540
add esp, 4
test eax, eax
je 0x456534
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x456534
mov ebx, dword [esp + 0x1c]
push ebx
mov eax, 0x13a54
lea ecx, [esp + 0x30]
call fcn.005064b0
mov esi, eax
mov dword [esp + 0x2c0], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.failed_to_delete_file
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.00506660
mov ecx, dword [ebx + 0x1c2c]
mov eax, edi
push ecx
mov ecx, esi
call fcn.005067b0
mov ecx, eax
mov eax, dword [esp + 0x1c]
call fcn.00506780
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, eax
call fcn.00456720
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00506520
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4565bb
push ebx
mov eax, 0x13a55
lea ecx, [esp + 0x170]
call fcn.005064b0
mov esi, eax
mov dword [esp + 0x2c0], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push str.failed_to_delete_flag_file
mov eax, esi
call fcn.00506660
mov eax, dword [ebx + 0x1c2c]
push eax
mov eax, dword [esp + 0x28]
mov ecx, esi
call fcn.005067b0
mov ecx, eax
mov eax, edi
call fcn.00506780
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, eax
call fcn.00456720
lea esi, [esp + 0x16c]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00506520
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.00596083
mov esp, ebp
pop ebp
ret 0x14