Function at 0x40b390
Capabilities:
Copy file
Create directory
Get common file path
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4558c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1074
call fcn.00437780
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x1034], 7
mov dword [ebp - 0x1038], 0
mov word [ebp - 0x1048], ax
push 0x468270
push 0x4656cc
mov dword [ebp - 4], eax
push 0x477a14
mov dword [ebp - 0x107c], eax
call fcn.00433950
add esp, 0xc
lea ecx, [edi + 4]
push str.IIF_INSTALLFOLDER
call fcn.004174a0
mov edx, eax
cmp word [edx], 0
jne 0x40b41a
xor ecx, ecx
jmp 0x40b42f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b420
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1048]
call fcn.00404c00
mov edx, dword [ebp - 0x1034]
lea ecx, [ebp - 0x1048]
mov eax, dword [ebp - 0x1038]
cmp edx, 8
mov esi, dword [ebp - 0x1048]
cmovae ecx, esi
lea ebx, [eax + eax]
cmp word [ebx + ecx - 2], 0x20
jne 0x40b494
cmp edx, 8
lea ecx, [ebp - 0x1048]
lea eax, [ebp - 0x1048]
cmovae ecx, esi
add ecx, 0xfffffffe
add ecx, ebx
cmp edx, 8
push 1
cmovae eax, esi
sub ecx, eax
sar ecx, 1
push ecx
lea ecx, [ebp - 0x1048]
call fcn.00404d00
push 0x104
lea eax, [ebp - 0x1030]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.IntelPackage_Cache
push eax
call ebx
cmp dword [edi + 0x24c], 8
lea esi, [edi + 0x238]
jb 0x40b4e4
mov eax, dword [esi]
jmp 0x40b4e6
mov eax, esi
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
push str.Cache_location:__s
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push str.Setup.exe
lea eax, [ebp - 0x218]
push eax
call ebx
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40b5aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error__0xX_occurred_while_copying_uninstaller_to_cache
push 0x4656cc
push 0x477a14
call fcn.00433950
push 0xa
push 8
lea eax, [ebp - 0x1058]
push eax
push esi
call fcn.004401cd
add esp, 0x20
lea eax, [ebp - 0x1058]
lea ecx, [edi + 4]
push eax
push str.IIF_EXITCODE
call fcn.004175d0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
jmp 0x40b9c6
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea eax, [ebp - 0xc20]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40b5cb
mov esi, dword [esi]
push esi
lea eax, [ebp - 0xc20]
push 0x104
push eax
call fcn.0043f02a
add esp, 0xc
lea eax, [ebp - 0xc20]
push eax
push str.ARP_location:__s
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
lea eax, [ebp - 0x107c]
push 0
push eax
push 0
push 0x20106
push 0
push 0
push 0
lea eax, [ebp - 0xc20]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b9c6
cmp dword [edi + 0x264], 8
lea eax, [edi + 0x250]
jb 0x40b63f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.0043efc6
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b660
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa18]
push eax
push 1
push 0
push str.DisplayName
push dword [ebp - 0x107c]
call esi
cmp dword [ebp - 0x1034], 8
lea eax, [ebp - 0x1048]
cmovae eax, dword [ebp - 0x1048]
push eax
lea eax, [ebp - 0xe28]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [ebp - 0xe28]
push str.LangResource.dll
push eax
call ebx
lea eax, [ebp - 0xe28]
push eax
lea eax, [ebp - 0xa18]
push str.__s__20000
push eax
call fcn.00414440
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b6f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa18]
push eax
push 1
push 0
push str.DisplayName_Localized
push dword [ebp - 0x107c]
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa18]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push str.__uninstall
lea eax, [ebp - 0xa18]
push 0x104
push eax
call fcn.0043f02a
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b765
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa18]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0x107c]
call esi
push str.Intel_Corporation
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.0043efc6
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b7b2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa18]
push eax
push 1
push 0
push str.Publisher
push dword [ebp - 0x107c]
call esi
push str.IIF_PACKAGEVERSION
lea ecx, [edi + 4]
call fcn.004174a0
push eax
lea ecx, [ebp - 0x1078]
call fcn.00405870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1078]
cmp dword [ebp - 0x1064], 8
mov eax, dword [ebp - 0x1068]
cmovae ecx, dword [ebp - 0x1078]
add eax, eax
push eax
push ecx
push 1
push 0
push str.DisplayVersion
push dword [ebp - 0x107c]
call esi
cmp dword [ebp - 0x1034], 8
lea ecx, [ebp - 0x1048]
mov eax, dword [ebp - 0x1038]
cmovae ecx, dword [ebp - 0x1048]
add eax, eax
push eax
push ecx
push 1
push 0
push str.InstallLocation
push dword [ebp - 0x107c]
call esi
push str.IIF_ARPICON
lea ecx, [edi + 4]
call fcn.004174a0
push eax
lea ecx, [ebp - 0x1060]
call fcn.00405870
cmp dword [ebp - 0x1050], 0
je 0x40b8a2
cmp dword [ebp - 0x104c], 8
lea eax, [ebp - 0x1060]
cmovae eax, dword [ebp - 0x1060]
push eax
lea eax, [ebp - 0xa18]
push 0x104
push eax
call fcn.0043efc6
jmp 0x40b8d3
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa18]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0x468578
push 0x104
push eax
call fcn.0043f02a
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8e0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa18]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0x107c]
call esi
xor eax, eax
cmp byte [edi + 0x323], al
push 4
sete al
mov dword [ebp - 0x1080], eax
lea eax, [ebp - 0x1080]
push eax
push 4
push 0
push str.NoModify
push dword [ebp - 0x107c]
call esi
xor eax, eax
cmp byte [edi + 0x322], al
push 4
sete al
mov dword [ebp - 0x1080], eax
lea eax, [ebp - 0x1080]
push eax
push 4
push 0
push str.NoRepair
push dword [ebp - 0x107c]
call esi
push dword [ebp - 0x107c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x104c]
cmp eax, 8
jb 0x40b98b
inc eax
lea ecx, [ebp - 0x1060]
push eax
push dword [ebp - 0x1060]
call fcn.00405180
xor eax, eax
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
mov eax, dword [ebp - 0x1064]
mov dword [ebp - 0x1050], 0
cmp eax, 8
jb 0x40b9c6
inc eax
lea ecx, [ebp - 0x1078]
push eax
push dword [ebp - 0x1078]
call fcn.00405180
mov eax, dword [ebp - 0x1034]
cmp eax, 8
jb 0x40b9e4
inc eax
lea ecx, [ebp - 0x1048]
push eax
push dword [ebp - 0x1048]
call fcn.00405180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret