Function at 0x412550
Capabilities:
Copy file
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x938
mov eax, dword [0x42f114]
xor eax, esp
mov dword [esp + 0x934], eax
push ebx
mov ebx, dword [esp + 0x944]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov esi, dword [esp + 0x948]
push edi
push 0x80
push ebx
mov edi, ecx
mov dword [esp + 0x18], 0
call ebp
push 0
push esi
mov ecx, edi
call fcn.00411550
test al, al
je 0x4125de
mov eax, dword [esp + 0x954]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x4125bf
push 0x80
push ebx
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x944]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004153dc
add esp, 0x938
ret 0xc
push esi
push str.____File_does_not_exist___s__try_compress_version_n
call fcn.0040d640
lea edx, [esp + 0x12c]
add esp, 8
mov eax, esi
sub edx, esi
jmp 0x412600
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x412600
lea eax, [esp + 0x124]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412620
sub eax, edx
sar eax, 1
mov ecx, 0x5f
push 0
lea edx, [esp + 0x128]
mov word [esp + eax*2 + 0x126], cx
push edx
mov ecx, edi
call fcn.00411550
test al, al
je 0x4128a5
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x336]
push ecx
mov word [esp + 0x338], ax
call fcn.00415440
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x12c]
push eax
call sub.LZ32.dll_LZOpenFileW
mov esi, eax
cmp esi, 0xffffffff
jne 0x412771
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x746]
push edx
mov word [esp + 0x748], cx
call fcn.00415440
add esp, 0xc
lea eax, [esp + 0x73c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x412771
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x53e]
push edx
mov word [esp + 0x540], cx
call fcn.00415440
add esp, 0xc
lea eax, [esp + 0x534]
push eax
push 0
lea ecx, [esp + 0x12c]
push ecx
mov ecx, edi
call fcn.00411d70
lea edx, [esp + 0x534]
push edx
lea eax, [esp + 0x740]
push eax
lea ecx, [esp + 0x334]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
lea edx, [esp + 0x330]
push edx
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
lea ecx, [esp + 0x330]
push ecx
call ebp
push esi
call sub.LZ32.dll_LZClose
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x334]
push eax
call sub.LZ32.dll_LZOpenFileW
mov esi, eax
push 0x1001
lea ecx, [esp + 0xa0]
push ecx
push ebx
call sub.LZ32.dll_LZOpenFileW
mov edi, eax
cmp edi, 0xffffffff
jne 0x4127d5
push ebx
lea edx, [esp + 0x128]
push edx
push str.LZCopy_LZERROR_BADINHANDLE_error___can_not_create_target_file._n_____s_____s__n
call fcn.0040d640
add esp, 0xc
push esi
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
cmp word [esp + 0x32c], 0
je 0x4127c6
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4125c3
push edi
push esi
call sub.LZ32.dll_LZCopy
test eax, eax
jge 0x41286f
add eax, 6
cmp eax, 5
ja case.0x4127f0.4
jmp dword [eax*4 + 0x4128c0]
push ebx
lea ecx, [esp + 0x128]
push ecx
push str.LZCopy_LZERROR_BADINHANDLE_error_n_____s_____s__n
call fcn.0040d640
add esp, 0xc
jmp case.0x4127f0.4
push ebx
lea edx, [esp + 0x128]
push edx
push str.LZCopy_LZERROR_BADOUTHANDLE_error_n_____s_____s__n
call fcn.0040d640
add esp, 0xc
jmp case.0x4127f0.4
push ebx
lea eax, [esp + 0x128]
push eax
push str.LZCopy_LZERROR_GLOBALLOC_error_n_____s_____s__n
call fcn.0040d640
add esp, 0xc
jmp case.0x4127f0.4
push ebx
lea ecx, [esp + 0x128]
push ecx
push str.LZCopy_LZERROR_GLOBLOCK_error_n_____s_____s__n
call fcn.0040d640
add esp, 0xc
jmp case.0x4127f0.4
push ebx
lea edx, [esp + 0x128]
push edx
push str.LZCopy_LZERROR_READ_error_n_____s_____s__n
call fcn.0040d640
add esp, 0xc
jmp case.0x4127f0.4
mov dword [esp + 0x10], 1
push esi
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
cmp word [esp + 0x32c], 0
je 0x4125b0
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4125b0
lea ecx, [esp + 0x124]
push ecx
push str.____File_does_not_exist___s__n
call fcn.0040d640
add esp, 8
jmp 0x4125bf