Function at 0x74897b
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0x9c
mov eax, 0x7d1f3b
call fcn.00700ca1
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xa4], esi
test esi, esi
je 0x748c16
test edi, edi
je 0x748c16
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x7489d4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x7489d4
test al, 1
je 0x7489d4
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x748c16
xor ebx, ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x748bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.7z__GPC_CopyFile:_CopyFile___s__to___s__Failed__Error___d
call fcn.00434420
add esp, 0x10
lea ecx, [ebp - 0x58]
push edi
call fcn.006ffe01
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push 0x2e
cmovae eax, dword [ebp - 0x58]
or esi, 0xffffffff
push esi
push dword [ebp - 0x48]
push eax
call fcn.004c25b8
add esp, 0x10
mov dword [ebp - 0xa8], eax
cmp eax, esi
jne 0x748a70
mov byte [ebp - 4], bl
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x58]
call fcn.004c0931
jmp 0x748bcf
push esi
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x58]
call fcn.00749228
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x88]
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x58]
push ebx
push eax
call fcn.00749228
mov byte [ebp - 4], 3
push str._old
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.007484eb
mov byte [ebp - 4], 4
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.007484b6
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.004c0931
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.004c0931
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.004c0931
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmovae eax, dword [ebp - 0x40]
push 1
push eax
push edi
call esi
test eax, eax
je 0x748bd3
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
push str.7z__GPC_CopyFile:_Rename_existing___s__to___s___ok
call fcn.00434420
add esp, 0xc
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push 4
push ebx
push eax
call esi
test eax, eax
je 0x748b4f
mov esi, dword [ebp - 0xa4]
push esi
push str.7z__GPC_CopyFile:__s_MOVEFILE_DELAY_UNTIL_REBOOT_ok
call fcn.00434420
pop ecx
pop ecx
jmp 0x748b75
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.7z__GPC_CopyFile:_MOVEFILE_DELAY_UNTIL_REBOOT_failed_file_s_err_d
call fcn.00434420
mov esi, dword [ebp - 0xa4]
add esp, 0xc
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x748b92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.7z__GPC_CopyFile:__retry_CopyFile___s__to___s__Failed__Error___d_
jmp 0x748be6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004c0931
mov byte [ebp - 4], bl
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004c0931
push edi
push esi
push str.7z__GPC_CopyFile:_CopyFile___s__to___s__Success
call fcn.00434420
xor ebx, ebx
add esp, 0xc
inc ebx
mov eax, ebx
jmp 0x748c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [ebp - 0xa4]
push str.7z__GPC_CopyFile:_Rename_existing___s__to___s__Failed__Error___d
call fcn.00434420
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004c0931
mov byte [ebp - 4], bl
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
or dword [ebp - 4], 0xffffffff
jmp 0x748a63
xor eax, eax
call fcn.00700c4b
ret