Function at 0x4091d0
Capabilities:
Delete directory
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4543e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push str.__Deleting_uninstall_environment
push 0x455a48
mov ecx, 0x448218
mov dword [ebp - 0x41c], edi
call fcn.00407c30
add esp, 8
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.IntelPackage_Cache
lea ecx, [ebp - 0x210]
push ecx
call esi
cmp dword [edi + 0x48], 8
jb 0x409239
mov eax, dword [edi + 0x34]
jmp 0x40923c
lea eax, [edi + 0x34]
push eax
lea edx, [ebp - 0x210]
push edx
call esi
lea eax, [ebp - 0x210]
push eax
push str.____Deleting_cache___s_
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
add esp, 0xc
push str.setup.exe
lea ecx, [ebp - 0x210]
push ecx
call esi
lea esi, [ebp - 0x210]
call fcn.0041fb40
test eax, eax
je 0x409299
push eax
push str.Delete_error__d
push 0x455a48
mov ecx, 0x4492d8
call fcn.00407c30
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x210]
push edx
call ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4092e0
lea ecx, [ebp - 0x210]
push ecx
call esi
push eax
push str.Delete_error__d_on__s
push 0x455a48
mov ecx, 0x4492d8
call fcn.00407c30
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40931b
lea ecx, [ebp - 0x210]
push ecx
call esi
push eax
push str.Delete_error__d_on__s
push 0x455a48
mov ecx, 0x4492d8
call fcn.00407c30
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x409356
lea ecx, [ebp - 0x210]
push ecx
call esi
push eax
push str.Delete_error__d_on__s
push 0x455a48
mov ecx, 0x4492d8
call fcn.00407c30
add esp, 0x10
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.0042e563
add esp, 0xc
cmp dword [edi + 0x48], 8
jb 0x40937a
mov eax, dword [edi + 0x34]
jmp 0x40937d
lea eax, [edi + 0x34]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0042f219
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
push str.____Deleting_ARP_entry___s_
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov eax, dword [0x4575d0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
test eax, eax
jne 0x4093e3
push str.RegDeleteKeyExW
push str.advapi32.dll
call edi
push eax
call esi
mov dword [0x4575d0], eax
test eax, eax
je 0x4093fa
push 0
push 0x20106
lea edx, [ebp - 0x418]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x409408
lea eax, [ebp - 0x418]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x409424
push eax
push str.Delete_error__d
push 0x455a48
mov ecx, 0x449344
call fcn.00407c30
add esp, 0xc
push str.SoftwareIntel_
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.0042e563
mov eax, dword [ebp - 0x41c]
add eax, 0xc0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x409450
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.0042f219
mov eax, dword [0x4575d0]
add esp, 0xc
test eax, eax
jne 0x409486
push str.RegDeleteKeyExW
push str.advapi32.dll
call edi
push eax
call esi
mov dword [0x4575d0], eax
test eax, eax
je 0x40949d
push 0
push 0x20106
lea ecx, [ebp - 0x418]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x4094ab
lea edx, [ebp - 0x418]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
push eax
lea eax, [ebp - 0x418]
push eax
push str.____Deleting_product_key___s___0x_X_
push 0x455a48
mov ecx, 0x448218
call fcn.00407c30
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e4c9
mov esp, ebp
pop ebp
ret