Function at 0x454980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a05d7
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x601018]
xor eax, esp
mov dword [esp + 0x6d0], eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, esp
push eax
lea eax, [esp + 0x6e8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
test esi, esi
je 0x454ce9
test ebx, ebx
je 0x454ce9
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x18]
push eax
push esi
push str.readFile____src___s___dest___s_
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00454860
mov edx, dword [ebx]
mov eax, dword [edx + 0x38]
add esp, 0x10
xor edi, edi
push edi
push edi
push edi
mov ecx, ebx
call eax
mov dword [esp + 0x168], edi
mov dword [esp + method.WindowsFile.virtual_0], vtable.WindowsFile.0
mov dword [esp + 0x16c], 0xffffffff
mov dword [esp + 0x170], edi
mov byte [esp + 0x178], 0
mov byte [esp + 0x578], 0
push esi
push 0x5c7d4c
push 0x5cc214
lea edi, [esp + 0x170]
mov dword [esp + 0x6fc], 1
call fcn.00508fc0
add esp, 0xc
cmp dword [esp + 0x174], 0
je 0x454b56
mov ecx, dword [esp + 0x14]
push ecx
mov eax, 0x13a1b
lea ecx, [esp + 0x28]
call fcn.005064b0
mov edi, eax
mov byte [esp + 0x6f0], 2
mov ebx, dword [esp + 0x174]
push str.failed_to_open_file
call fcn.00506660
cmp byte [esi], 0
je 0x454ac0
push esi
push str.filename___s_
mov esi, edi
call fcn.00506600
add esp, 8
push ebx
push str.ERROR__d:
mov esi, edi
mov dword [edi + 0x114], 1
mov dword [edi + 0x118], ebx
call fcn.00506600
mov edx, dword [esp + 0x1c]
mov byte [edi + 0x11c], 0
mov eax, dword [edx + 0x1c2c]
add esp, 8
mov dword [edi + 0x110], 0
test eax, eax
je 0x454b14
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push 0
mov ecx, edi
call fcn.0042c010
mov edi, eax
jmp 0x454b27
cmp dword [edi + 0x114], 0
je 0x454b25
mov edi, dword [edi + 0x118]
jmp 0x454b27
xor edi, edi
lea esi, [esp + 0x24]
mov byte [esp + 0x6f0], 1
call fcn.00506520
lea ecx, [esp + 0x164]
mov dword [esp + method.WindowsFile.virtual_0], vtable.WindowsFile.0
call fcn.005096c0
mov eax, edi
jmp 0x454d99
lea ecx, [esp + 0x164]
call fcn.00509d80
or eax, edx
jne 0x454c00
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x1c20], eax
je 0x454c00
lea ecx, [esp + 0x164]
call fcn.005096c0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov eax, 0x13a1c
lea ecx, [esp + 0x28]
call fcn.005064b0
mov ebx, eax
push str.failed_to_read_empty_file
mov byte [esp + 0x6f4], 3
call fcn.00506660
mov eax, dword [edi + 0x1c2c]
push eax
mov eax, esi
mov ecx, ebx
call fcn.005067b0
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, eax
call fcn.00456720
lea esi, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x6f0], 1
call fcn.00506520
lea ecx, [esp + 0x164]
mov dword [esp + method.WindowsFile.virtual_0], vtable.WindowsFile.0
call fcn.005096c0
mov eax, edi
jmp 0x454d99
lea edi, [esp + 0x164]
call fcn.00506c00
or eax, edx
jne 0x454ccb
mov edi, dword [esp + 0x14]
push edi
mov eax, 0x13a26
lea ecx, [esp + 0x5a0]
call fcn.005064b0
mov dword [esp + 0x14], eax
mov byte [esp + 0x6f0], 4
mov ecx, dword [esp + 0x174]
push str.failed_to_copy_file
mov dword [esp + 0x24], ecx
call fcn.00506660
mov edx, dword [edi + 0x1c2c]
mov eax, dword [ebx]
push edx
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x18]
push eax
push esi
mov edi, 0x5ce980
call fcn.00506890
add esp, 4
mov edi, str.dest
mov ecx, eax
call fcn.00506890
mov ecx, eax
mov eax, dword [esp + 0x28]
add esp, 4
call fcn.00506780
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, eax
call fcn.00456720
lea esi, [esp + 0x59c]
mov edi, eax
mov byte [esp + 0x6f0], 1
call fcn.00506520
lea ecx, [esp + 0x164]
mov dword [esp + method.WindowsFile.virtual_0], vtable.WindowsFile.0
call fcn.005096c0
mov eax, edi
jmp 0x454d99
lea ecx, [esp + 0x164]
mov dword [esp + method.WindowsFile.virtual_0], vtable.WindowsFile.0
call fcn.005096c0
xor eax, eax
jmp 0x454d99
push eax
mov eax, 0x13a1a
lea ecx, [esp + 0x28]
call fcn.005064b0
mov esi, eax
xor ebx, ebx
push str.null_pointer_of_src_file_name_or_dest_data
mov dword [esp + 0x6f4], ebx
call fcn.00506660
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1c2c]
mov dword [esi + 0x110], ebx
cmp eax, ebx
je 0x454d35
mov edx, dword [esp + 0x18]
push ebx
mov ecx, esi
mov ebx, edi
call fcn.0042c010
mov esi, eax
xor ebx, ebx
jmp 0x454d47
cmp dword [esi + 0x114], ebx
je 0x454d45
mov esi, dword [esi + 0x118]
jmp 0x454d47
xor esi, esi
mov dword [esp + 0x6f0], 0xffffffff
cmp dword [esp + 0x134], ebx
je 0x454d81
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x12c]
push ecx
push edx
push 0x5cb5f8
mov ecx, 0x610240
call fcn.00504670
add esp, 0xc
mov dword [esp + 0x134], ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x454d97
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x6e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.00596083
mov esp, ebp
pop ebp
ret 0xc