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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4430f6
mov eax, dword fs:[0]
push eax
mov eax, 0x108c
call fcn.0043ae80
mov eax, dword [0x4543e4]
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 ebx, ecx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x1094], ebx
mov dword [ebp - 0x1038], 7
mov dword [ebp - 0x103c], eax
mov word [ebp - 0x104c], cx
push str.Configuring_uninstallation_environment
mov dword [ebp - 4], eax
push 0x455a48
mov ecx, 0x448218
mov dword [ebp - 0x1088], eax
call fcn.00407c30
add esp, 8
lea edi, [ebx + 8]
push str.IIF_INSTALLFOLDER
mov dword [ebp - 0x108c], edi
call fcn.00415ca0
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408b40
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x104c]
call fcn.00403f50
mov ecx, dword [ebp - 0x1038]
mov esi, dword [ebp - 0x104c]
mov edx, esi
cmp ecx, 8
jae 0x408b74
lea edx, [ebp - 0x104c]
mov eax, dword [ebp - 0x103c]
add eax, eax
cmp word [edx + eax - 2], 0x20
jne 0x408bc0
mov edx, esi
cmp ecx, 8
jae 0x408b91
lea edx, [ebp - 0x104c]
cmp ecx, 8
lea eax, [edx + eax - 2]
mov ecx, esi
jae 0x408ba2
lea ecx, [ebp - 0x104c]
test eax, eax
jne 0x408baa
xor ecx, ecx
jmp 0x408bb0
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, 1
lea esi, [ebp - 0x104c]
call fcn.00403af0
push 0x104
lea edx, [ebp - 0x1030]
push edx
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 edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.IntelPackage_Cache
lea ecx, [ebp - 0x218]
push ecx
call edi
cmp dword [ebx + 0x48], 8
lea esi, [ebx + 0x34]
jb 0x408c0a
mov eax, dword [esi]
jmp 0x408c0c
mov eax, esi
push eax
lea edx, [ebp - 0x218]
push edx
call edi
lea eax, [ebp - 0x218]
push eax
push str.Cache_location:__s
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x448f60
lea edx, [ebp - 0x218]
push edx
call edi
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x1030]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x408cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error__0xX_occurred_while_copying_uninstaller_to_cache
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push 0xa
push 8
lea eax, [ebp - 0x105c]
push eax
push esi
call fcn.0042f5d8
add esp, 0x10
lea ecx, [ebp - 0x105c]
push ecx
jmp 0x409175
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea edx, [ebp - 0xc20]
push 0x104
push edx
call fcn.0042e563
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x408ce0
mov esi, dword [esi]
push esi
lea eax, [ebp - 0xc20]
push 0x104
push eax
call fcn.0042f219
add esp, 0xc
lea ecx, [ebp - 0xc20]
push ecx
push str.ARP_location:__s
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push 0
lea edx, [ebp - 0x1088]
push edx
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]
mov dword [ebp - 0x1098], eax
test eax, eax
jne 0x409154
cmp dword [ebx + 0x64], 8
lea eax, [ebx + 0x50]
jb 0x408d54
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa18]
push 0x400
push ecx
call fcn.0042e563
lea eax, [ebp - 0xa18]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408d72
mov ecx, dword [ebp - 0x1088]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0xa18]
push eax
push 1
push 0
push str.DisplayName
push ecx
call ebx
cmp dword [ebp - 0x1038], 8
mov eax, dword [ebp - 0x104c]
jae 0x408db9
lea eax, [ebp - 0x104c]
push eax
lea edx, [ebp - 0xe28]
push 0x104
push edx
call fcn.0042e563
add esp, 0xc
push str.LangResource.dll
lea eax, [ebp - 0xe28]
push eax
call edi
lea ecx, [ebp - 0xe28]
push ecx
lea edx, [ebp - 0xa18]
push str.__s__20000
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0xa18]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e01
sub eax, edx
mov edx, dword [ebp - 0x1088]
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp - 0xa18]
push ecx
push 1
push 0
push str.DisplayName_Localized
push edx
call ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa18]
push 0x104
push ecx
call fcn.0042e563
add esp, 0xc
lea edx, [ebp - 0xa18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push str.__uninstall
lea eax, [ebp - 0xa18]
push 0x104
push eax
call fcn.0042f219
lea eax, [ebp - 0xa18]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e76
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x1088]
push ecx
lea edx, [ebp - 0xa18]
push edx
push 1
push 0
push str.UninstallString
push eax
call ebx
push 0x449130
lea ecx, [ebp - 0xa18]
push 0x400
push ecx
call fcn.0042e563
lea eax, [ebp - 0xa18]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ec4
mov ecx, dword [ebp - 0x1088]
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0xa18]
push eax
push 1
push 0
push str.Publisher
push ecx
call ebx
mov edi, dword [ebp - 0x108c]
push str.IIF_PACKAGEVERSION
call fcn.00415ca0
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x1070], 7
mov dword [ebp - 0x1074], 0
mov word [ebp - 0x1084], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408f22
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x1084]
call fcn.00403f50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1084]
mov esi, 8
cmp dword [ebp - 0x1070], esi
jae 0x408f5a
lea eax, [ebp - 0x1084]
mov ecx, dword [ebp - 0x1074]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x1088]
push 1
push 0
push str.DisplayVersion
push eax
call ebx
mov eax, dword [ebp - 0x104c]
cmp dword [ebp - 0x1038], esi
jae 0x408f8b
lea eax, [ebp - 0x104c]
mov ecx, dword [ebp - 0x103c]
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp - 0x1088]
push 1
push 0
push str.InstallLocation
push eax
call ebx
mov edi, dword [ebp - 0x108c]
push str.IIF_ARPICON
call fcn.00415ca0
xor ecx, ecx
mov word [ebp - 0x1068], cx
mov ecx, eax
mov dword [ebp - 0x1054], 7
mov dword [ebp - 0x1058], 0
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408fe0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x1068]
call fcn.00403f50
cmp dword [ebp - 0x1058], 0
je 0x40902d
mov eax, dword [ebp - 0x1068]
mov edi, 8
cmp dword [ebp - 0x1054], edi
jae 0x409019
mov eax, esi
push eax
lea edx, [ebp - 0xa18]
push 0x104
push edx
call fcn.0042e563
jmp 0x409063
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa18]
push 0x104
push ecx
call fcn.0042e563
add esp, 0xc
push 0x4491e8
lea edx, [ebp - 0xa18]
push 0x104
push edx
call fcn.0042f219
mov edi, 8
lea eax, [ebp - 0xa18]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409070
sub eax, edx
mov edx, dword [ebp - 0x1088]
sar eax, 1
add eax, eax
push eax
lea ecx, [ebp - 0xa18]
push ecx
push 1
push 0
push str.DisplayIcon
push edx
call ebx
mov esi, dword [ebp - 0x1094]
mov edx, dword [ebp - 0x1088]
xor eax, eax
cmp byte [esi + 0x12b], al
push 4
lea ecx, [ebp - 0x1090]
push ecx
push 4
sete al
push 0
push str.NoModify
push edx
mov dword [ebp - 0x1090], eax
call ebx
mov edx, dword [ebp - 0x1088]
xor eax, eax
cmp byte [esi + 0x12a], al
push 4
lea ecx, [ebp - 0x1090]
push ecx
push 4
sete al
push 0
push str.NoRepair
push edx
mov dword [ebp - 0x1090], eax
call ebx
mov eax, dword [ebp - 0x1088]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1054], edi
jb 0x40911d
mov ecx, dword [ebp - 0x1068]
push ecx
call fcn.0042e4d8
add esp, 4
xor edx, edx
mov byte [ebp - 4], dl
mov dword [ebp - 0x1054], 7
mov dword [ebp - 0x1058], 0
mov word [ebp - 0x1068], dx
cmp dword [ebp - 0x1070], edi
jb 0x409154
mov eax, dword [ebp - 0x1084]
push eax
call fcn.0042e4d8
add esp, 4
mov edx, dword [ebp - 0x1098]
push 0xa
push 8
lea ecx, [ebp - 0x105c]
push ecx
push edx
call fcn.0042f5d8
add esp, 0x10
lea eax, [ebp - 0x105c]
push eax
mov ecx, dword [ebp - 0x108c]
mov ebx, str.IIF_EXITCODE
call fcn.00415d90
mov ecx, dword [ebp - 0x1094]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
cmp dword [ebp - 0x1038], 8
jb 0x4091aa
mov ecx, dword [ebp - 0x104c]
push ecx
call fcn.0042e4d8
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.0042e4c9
mov esp, ebp
pop ebp
ret