Function at 0x4de3fa
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
mov eax, 0x6d356b
call fcn.006899cc
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea edi, [esi + 0x54]
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebx, dword [ebp + 8]
push ebx
call fcn.0047050d
test al, al
jne 0x4de437
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push ebx
push str.Cant_find_archive_to_install_at__S
call fcn.0048e8e7
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4de72a
xor edi, edi
lea ecx, [ebp - 0x30]
add esi, 0x1c
mov dword [ebp - 0x30], edi
push esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00448193
push str..tmp
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.004578e2
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x4de46a
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4de49b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x4de49b
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
jb 0x4de48c
mov ecx, dword [ebp - 0x30]
push eax
push ecx
push str.Cant_delete_restore_file_at__S___d
call fcn.0048e8e7
add esp, 0xc
mov ecx, dword [ebp - 0x14]
call fcn.004de2ca
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x4de4af
mov eax, dword [ebp - 0x30]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4de4b9
mov ecx, dword [esi]
push eax
push ecx
push str.Moving__S_to__S
call fcn.0048e8e7
add esp, 0xc
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
jb 0x4de4d4
mov ecx, dword [ebp - 0x30]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4de4de
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
setne byte [ebp + 0xb]
test eax, eax
jne 0x4de512
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x4de512
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4de505
mov eax, dword [esi]
push eax
push str.There_is_no_existing_archive_file_to_move_at__S
call fcn.0048e8e7
pop ecx
pop ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4de51c
mov eax, dword [esi]
push eax
push ebx
push str.Moving__S_to__S
call fcn.0048e8e7
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4de535
mov eax, dword [esi]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_MoveFileW]
call ebx
test eax, eax
setne byte [ebp - 0xd]
test eax, eax
jne 0x4de5d3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4de565
push str.Cant_overwrite_existing_archive
call fcn.0048e8e7
pop ecx
cmp byte [ebp + 0xb], 0
je 0x4de5d3
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4de575
mov ecx, dword [esi]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x4de581
mov eax, dword [ebp - 0x30]
push ecx
push eax
push str.Moving__S_back_to__S
call fcn.0048e8e7
add esp, 0xc
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4de59a
mov ecx, dword [esi]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x4de5a6
mov eax, dword [ebp - 0x30]
push ecx
push eax
call ebx
test eax, eax
jne 0x4de5d3
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4de5b8
mov ecx, dword [esi]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x4de5c4
mov eax, dword [ebp - 0x30]
push ecx
push eax
push str.Cant_restore__S_back_to__S
call fcn.0048e8e7
add esp, 0xc
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.004de77c
cmp byte [ebp - 0xd], 0
je 0x4de6e1
test al, al
je 0x4de617
cmp byte [ebp + 0xb], 0
mov eax, dword [0x7ecdb8]
mov dword [0x7ecdb4], eax
je 0x4de6e4
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
jb 0x4de60b
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4de6e4
push str.Cant_install_corrupted_archive
call fcn.0048e8e7
cmp byte [ebp + 0xb], 0
pop ecx
je 0x4de6dd
push str.Deleting_corrupted_archive
call fcn.0048e8e7
pop ecx
push 8
pop edi
mov eax, esi
cmp dword [esi + 0x14], edi
jb 0x4de643
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4de661
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_delete_corrupted_archive____d
call fcn.0048e8e7
pop ecx
pop ecx
mov ecx, esi
cmp dword [esi + 0x14], edi
jb 0x4de66a
mov ecx, dword [esi]
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jb 0x4de675
mov eax, dword [ebp - 0x30]
push ecx
push eax
push str.Moving__S_back_to__S
call fcn.0048e8e7
add esp, 0xc
mov ecx, esi
cmp dword [esi + 0x14], edi
jb 0x4de68d
mov ecx, dword [esi]
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jb 0x4de698
mov eax, dword [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x4de6c7
cmp dword [esi + 0x14], edi
jb 0x4de6ab
mov esi, dword [esi]
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], edi
jb 0x4de6b6
mov eax, dword [ebp - 0x30]
push esi
push eax
push str.Cant_restore__S_back_to__S
call fcn.0048e8e7
add esp, 0xc
jmp 0x4de6dd
mov ecx, ebx
call fcn.004de77c
test al, al
jne 0x4de6dd
push str.Cant_prepare_restored_archive
call fcn.0048e8e7
pop ecx
push 3
jmp 0x4de6e3
push 2
pop edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x4de728
mov ecx, dword [ebp - 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x4de71f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044810a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4