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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446686
mov eax, dword fs:[0]
push eax
mov eax, 0x1074
call fcn.0043de50
mov eax, dword [0x45f4c8]
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 str.Configuring_uninstallation_environment
push 0x450cfc
mov dword [ebp - 4], eax
push 0x46064c
mov dword [ebp - 0x107c], eax
call fcn.00417ac0
add esp, 0xc
lea ecx, [edi + 4]
push str.IIF_INSTALLFOLDER
call fcn.004146e0
mov edx, eax
cmp word [edx], 0
jne 0x4094ca
xor ecx, ecx
jmp 0x4094df
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4094d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1048]
call fcn.00404410
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 [ecx + ebx - 2], 0x20
jne 0x409546
cmp edx, 8
lea eax, [ebp - 0x1048]
lea ecx, [ebp - 0x1048]
cmovae eax, esi
add eax, 0xfffffffe
cmp edx, 8
cmovae ecx, esi
add eax, ebx
je 0x409538
sub eax, ecx
sar eax, 1
push 1
push eax
lea ecx, [ebp - 0x1048]
call fcn.00403ff0
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 + 0x248], 8
lea esi, [edi + 0x234]
jb 0x409596
mov eax, dword [esi]
jmp 0x409598
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 0x450cfc
push 0x46064c
call fcn.00417ac0
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 0x40965c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error__0xX_occurred_while_copying_uninstaller_to_cache
push 0x450cfc
push 0x46064c
call fcn.00417ac0
push 0xa
push 8
lea eax, [ebp - 0x1058]
push eax
push esi
call fcn.004308c2
add esp, 0x20
lea eax, [ebp - 0x1058]
lea ecx, [edi + 4]
push eax
push str.IIF_EXITCODE
call fcn.00414810
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
jmp 0x409a68
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea eax, [ebp - 0xc20]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40967d
mov esi, dword [esi]
push esi
lea eax, [ebp - 0xc20]
push 0x104
push eax
call fcn.0043002d
add esp, 0xc
lea eax, [ebp - 0xc20]
push eax
push str.ARP_location:__s
push 0x450cfc
push 0x46064c
call fcn.00417ac0
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 0x409a68
cmp dword [edi + 0x260], 8
lea eax, [edi + 0x24c]
jb 0x4096f1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.0042ffd1
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409710
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.0042ffd1
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 dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4097a0
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.0042ffd1
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.0043002d
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409815
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.0042ffd1
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409862
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.004146e0
push eax
lea ecx, [ebp - 0x1078]
call fcn.00404510
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.004146e0
push eax
lea ecx, [ebp - 0x1060]
call fcn.00404510
cmp dword [ebp - 0x1050], 0
je 0x409952
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.0042ffd1
jmp 0x409983
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa18]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0x4525fc
push 0x104
push eax
call fcn.0043002d
lea ecx, [ebp - 0xa18]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409990
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 + 0x31f], 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 + 0x31e], 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]
cmp dword [ebp - 0x104c], 8
jb 0x409a34
push dword [ebp - 0x1060]
call fcn.00420070
add esp, 4
xor eax, eax
mov dword [ebp - 0x104c], 7
cmp dword [ebp - 0x1064], 8
mov dword [ebp - 0x1050], 0
mov word [ebp - 0x1060], ax
jb 0x409a68
push dword [ebp - 0x1078]
call fcn.00420070
add esp, 4
cmp dword [ebp - 0x1034], 8
jb 0x409a7f
push dword [ebp - 0x1048]
call fcn.00420070
add esp, 4
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.0042f51f
mov esp, ebp
pop ebp
ret