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

Disassembly:
sub esp, 0x938
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x934], eax
push ebx
push ebp
mov ebp, dword [esp + 0x948]
push esi
mov esi, dword [esp + 0x948]
push edi
push 0x80
push ebp
mov ebx, ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
mov ecx, ebx
call fcn.00412390
test al, al
je 0x413670
mov eax, dword [esp + 0x954]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x413651
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x944]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004164fa
add esp, 0x938
ret 0x10
push esi
push str.____File_does_not_exist___s__try_compress_version_n
call fcn.0040e270
lea edx, [esp + 0x12c]
add esp, 8
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x413690
lea eax, [esp + 0x124]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4136b0
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, ebx
call fcn.00412390
test al, al
je 0x41396e
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x336]
push ecx
mov word [esp + 0x338], ax
call fcn.00416560
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x12c]
push eax
call sub.LZ32.dll_LZOpenFileW
mov edi, dword [esp + 0x958]
push edi
push str.____bCopyCompressSrcToTemp___d__n
mov esi, eax
call fcn.0040e270
add esp, 8
cmp edi, 1
jne 0x41374a
cmp esi, 0xffffffff
je 0x413745
cmp esi, 0xfffffffb
je 0x413745
push esi
call sub.LZ32.dll_LZClose
or esi, 0xffffffff
jmp 0x413753
cmp esi, 0xffffffff
jne 0x413838
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x746]
push edx
mov word [esp + 0x748], cx
call fcn.00416560
add esp, 0xc
lea eax, [esp + 0x73c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x413838
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x53e]
push edx
mov word [esp + 0x540], cx
call fcn.00416560
add esp, 0xc
lea eax, [esp + 0x534]
push eax
push 0
lea ecx, [esp + 0x12c]
push ecx
mov ecx, ebx
call fcn.00412bb0
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 0
push 1
lea edx, [esp + 0x334]
push edx
lea eax, [esp + 0x130]
push eax
mov ecx, ebx
call fcn.004135e0
push 0x80
lea ecx, [esp + 0x330]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0xffffffffffffffff
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 ebp
call sub.LZ32.dll_LZOpenFileW
mov edi, eax
cmp edi, 0xffffffff
jne 0x41389d
push ebp
lea edx, [esp + 0x128]
push edx
push str.LZCopy_LZERROR_BADINHANDLE_error___can_not_create_target_file._n_____s_____s__n
call fcn.0040e270
add esp, 0xc
push esi
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
cmp word [esp + 0x32c], 0
je 0x41388e
lea eax, [esp + 0x32c]
push eax
mov ecx, ebx
call fcn.004128c0
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x413655
push edi
push esi
call sub.LZ32.dll_LZCopy
test eax, eax
jge 0x413937
add eax, 6
cmp eax, 5
ja case.0x4138b8.4
jmp dword [eax*4 + 0x413988]
push ebp
lea ecx, [esp + 0x128]
push ecx
push str.LZCopy_LZERROR_BADINHANDLE_error_n_____s_____s__n
call fcn.0040e270
add esp, 0xc
jmp case.0x4138b8.4
push ebp
lea edx, [esp + 0x128]
push edx
push str.LZCopy_LZERROR_BADOUTHANDLE_error_n_____s_____s__n
call fcn.0040e270
add esp, 0xc
jmp case.0x4138b8.4
push ebp
lea eax, [esp + 0x128]
push eax
push str.LZCopy_LZERROR_GLOBALLOC_error_n_____s_____s__n
call fcn.0040e270
add esp, 0xc
jmp case.0x4138b8.4
push ebp
lea ecx, [esp + 0x128]
push ecx
push str.LZCopy_LZERROR_GLOBLOCK_error_n_____s_____s__n
call fcn.0040e270
add esp, 0xc
jmp case.0x4138b8.4
push ebp
lea edx, [esp + 0x128]
push edx
push str.LZCopy_LZERROR_READ_error_n_____s_____s__n
call fcn.0040e270
add esp, 0xc
jmp case.0x4138b8.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 0x41363e
lea eax, [esp + 0x32c]
push eax
mov ecx, ebx
call fcn.004128c0
jmp 0x41363e
lea ecx, [esp + 0x124]
push ecx
push str.____File_does_not_exist___s__n
call fcn.0040e270
add esp, 8
jmp 0x413651