Function at 0x40f910
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b6db0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
push str.CInstallCtrl::CopyFilesToTempDir
lea ecx, [esp + 0x18]
call fcn.00405a40
mov eax, dword [0x4ed0d0]
xor edi, edi
push edi
push eax
mov dword [esp + 0x44], edi
call fcn.004505d0
add esp, 8
test al, al
jne 0x40f990
push str._ERROR_Failed_to_clean_up_temp_directory_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00403f90
mov eax, 0x10
jmp 0x40fd9c
mov esi, dword [esp + 0x44]
mov ecx, esi
call fcn.00409550
test eax, eax
jbe 0x40fd89
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x40f9ce
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40f9d3
call fcn.00488c34
mov eax, dword [esi + 4]
cmp dword [ebx + eax + 0x18], 0
jne 0x40fce0
test eax, eax
je 0x40f9ff
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fa04
call fcn.00488c34
mov eax, dword [esi + 4]
cmp byte [ebx + eax + 0x1c], 0
je 0x40fadb
test eax, eax
je 0x40fa30
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fa35
call fcn.00488c34
mov eax, dword [esi + 4]
add eax, ebx
mov eax, dword [eax + 8]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401a60
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 1
call fcn.004012d0
test al, al
mov eax, dword [esi + 4]
je 0x40fdf0
test eax, eax
je 0x40fa7e
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fa83
call fcn.00488c34
mov eax, dword [esi + 4]
test eax, eax
mov ebp, dword [ebx + eax + 4]
je 0x40faa8
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40faad
call fcn.00488c34
mov eax, dword [esi + 4]
add eax, ebx
mov eax, dword [eax + 0xc]
push ebp
push eax
lea ecx, [esp + 0x30]
call fcn.00401980
test eax, eax
je 0x40fdb2
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0
call fcn.00401580
jmp 0x40fce0
call fcn.0045a356
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40fe5d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
test eax, eax
mov byte [esp + 0x3c], 2
je 0x40fb25
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fb2a
call fcn.00488c34
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x40fb4b
mov ecx, dword [esi + 8]
sub ecx, ebp
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fb50
call fcn.00488c34
mov ecx, dword [ebx + ebp + 4]
mov edx, dword [esi + 4]
mov eax, dword [ebx + edx + 8]
push ecx
push eax
lea ecx, [esp + 0x28]
push str._s_s
push ecx
call fcn.00404ae0
mov ebx, dword [esp + 0x30]
push ebx
call fcn.0044fe20
add esp, 0x14
test al, 1
je 0x40fcfa
push ebx
push str._INFO_Source_file_exsists:__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
call fcn.0045a356
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40fe5d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
test eax, eax
mov byte [esp + 0x3c], 3
je 0x40fbdf
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fbe4
call fcn.00488c34
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x40fc05
mov ecx, dword [esi + 8]
sub ecx, ebp
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fc0a
call fcn.00488c34
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + ebp + 4]
mov edx, dword [esi + 4]
mov eax, dword [eax + edx + 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
call fcn.00404ae0
mov eax, dword [esi + 4]
add esp, 0x10
test eax, eax
je 0x40fc4e
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fc53
call fcn.00488c34
mov eax, dword [esi + 4]
add eax, dword [esp + 0x44]
mov eax, dword [eax + 0xc]
push eax
call fcn.0044fe80
add esp, 4
test al, al
je 0x40fe67
mov ebp, dword [esp + 0x1c]
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
push ebp
je 0x40fed5
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x40fc9a
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x10]
mov byte [esp + 0x3c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fcdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
xor edx, edx
div dword [ecx + 0x81c]
push 1
push eax
call fcn.0040a4d0
jmp 0x40fd6b
mov eax, dword [esi + 4]
test eax, eax
je 0x40fd1b
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fd20
call fcn.00488c34
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x44]
test byte [edx + ecx + 0x20], 2
push ebx
je 0x40ff01
push str._INFO_Source_file_doesnt_exsists__but_allowed:__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
lea eax, [ebx - 0x10]
add esp, 0xc
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x44]
add dword [esp + 0x18], 0x1d
add ebx, 0x28
mov ecx, esi
add edi, 1
mov dword [esp + 0x44], ebx
call fcn.00409550
cmp edi, eax
jb 0x40f9ad
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00403f90
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
push edi
mov ecx, esi
call fcn.00409570
mov ecx, dword [eax + 4]
push ecx
push edi
mov ecx, esi
call fcn.00409570
mov edx, dword [eax + 8]
push edx
push str._ERROR_Failed_to_extract_CAB_file:__s__s__n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0
call fcn.00401580
jmp 0x40f975
test eax, eax
je 0x40fe0e
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40fe13
call fcn.00488c34
mov ecx, dword [esi + 4]
lea eax, [edi + edi*4]
mov edx, dword [ecx + eax*8 + 8]
lea eax, [ecx + eax*8]
push edx
push str._ERROR_Source_CAB_file_doesnt_exsists:__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0
call fcn.00401580
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00403f90
mov eax, 9
jmp 0x40fd9c
push 0x80004005
call fcn.00401000
push edi
mov ecx, esi
call fcn.00409570
mov eax, dword [eax + 0xc]
push eax
push str._ERROR_Failed_to_create_directory:__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40feab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f975
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f975
push ebx
push str._ERROR_Failed_to_copy_to_temp_directory:__s_to__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044f300
mov ecx, eax
call fcn.0044fdc0
lea eax, [ebp - 0x10]
jmp 0x40fe8d
push str._ERROR_Source_file_doesnt_exsists:__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
lea eax, [ebx - 0x10]
add esp, 0xc
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40fe42