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

Disassembly:
sub esp, 0x940
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0x93c], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
push esi
mov esi, dword [esp + 0x950]
push edi
mov edi, dword [esp + 0x958]
push 0x80
push edi
mov ebp, ecx
mov dword [esp + 0x1c], 0
call ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x401c9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x95c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
jmp 0x401f1d
lea edx, [esp + 0x128]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401ca5
lea eax, [esp + 0x128]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401cc0
sub eax, edx
sar eax, 1
mov ecx, 0x5f
xor edx, edx
push 0x206
mov word [esp + eax*2 + 0x12a], cx
push edx
lea eax, [esp + 0x33a]
push eax
mov word [esp + 0x33c], dx
call fcn.00408bd0
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x130]
push edx
call sub.LZ32.dll_LZOpenFileW
mov esi, eax
cmp esi, 0xffffffff
jne 0x401df0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x74a]
push ecx
mov word [esp + 0x74c], ax
call fcn.00408bd0
add esp, 0xc
lea edx, [esp + 0x740]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401df0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x542]
push ecx
mov word [esp + 0x544], ax
call fcn.00408bd0
add esp, 0xc
lea edx, [esp + 0x128]
push edx
lea esi, [esp + 0x53c]
call fcn.004027d0
mov eax, esi
push eax
lea ecx, [esp + 0x744]
push ecx
lea edx, [esp + 0x338]
push 0x413d58
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
lea eax, [esp + 0x334]
push eax
lea ecx, [esp + 0x130]
push ecx
mov ecx, ebp
call fcn.00401c20
push 0x80
lea edx, [esp + 0x334]
push edx
call ebx
push 0xffffffffffffffff
call sub.LZ32.dll_LZClose
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x338]
push ecx
call sub.LZ32.dll_LZOpenFileW
mov esi, eax
push 0x1001
lea edx, [esp + 0xa4]
push edx
push edi
call sub.LZ32.dll_LZOpenFileW
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401e53
push edi
lea eax, [esp + 0x12c]
push eax
push str.LZCopy_LZERROR_BADINHANDLE_error___can_not_create_target_file._n_____s_____s__n
call fcn.00401140
add esp, 0xc
push esi
call sub.LZ32.dll_LZClose
push ebx
call sub.LZ32.dll_LZClose
cmp word [esp + 0x330], 0
je 0x401e44
push ebp
lea esi, [esp + 0x334]
call fcn.00402720
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x401f2f
push ebx
push esi
call sub.LZ32.dll_LZCopy
test eax, eax
jge 0x401eed
add eax, 6
cmp eax, 5
ja case.0x401e6e.4
jmp dword [eax*4 + 0x401f4c]
push edi
lea ecx, [esp + 0x12c]
push ecx
push str.LZCopy_LZERROR_BADINHANDLE_error_n_____s_____s__n
call fcn.00401140
add esp, 0xc
jmp case.0x401e6e.4
push edi
lea edx, [esp + 0x12c]
push edx
push str.LZCopy_LZERROR_BADOUTHANDLE_error_n_____s_____s__n
call fcn.00401140
add esp, 0xc
jmp case.0x401e6e.4
push edi
lea eax, [esp + 0x12c]
push eax
push str.LZCopy_LZERROR_GLOBALLOC_error_n_____s_____s__n
call fcn.00401140
add esp, 0xc
jmp case.0x401e6e.4
push edi
lea ecx, [esp + 0x12c]
push ecx
push str.LZCopy_LZERROR_GLOBLOCK_error_n_____s_____s__n
call fcn.00401140
add esp, 0xc
jmp case.0x401e6e.4
push edi
lea edx, [esp + 0x12c]
push edx
push str.LZCopy_LZERROR_READ_error_n_____s_____s__n
call fcn.00401140
add esp, 0xc
jmp case.0x401e6e.4
mov dword [esp + 0x14], 1
push esi
call sub.LZ32.dll_LZClose
push ebx
call sub.LZ32.dll_LZClose
cmp word [esp + 0x330], 0
je 0x401f19
push ebp
lea esi, [esp + 0x334]
call fcn.00402720
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401f2d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
mov ecx, dword [esp + 0x94c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402d86
add esp, 0x940
ret 0xc