Function at 0x40aed0
Capabilities:
Check if file exists
Delete registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44f3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x462408]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
push edi
mov eax, dword [0x462408]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
push str.Checking_for_previously_installed_driver_package
xor edi, edi
push 0x463650
xor eax, eax
mov esi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0x104
call fcn.0042a920
push esi
push str.Previous_INF___s
push 0x463650
xor eax, eax
call fcn.0042a920
mov eax, esi
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40af45
sub eax, edx
sar eax, 1
jne 0x40af6f
push str.No_previous_INF_was_found
push 0x463650
xor eax, eax
call fcn.0042a920
add esp, 8
jmp 0x40b127
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40af91
push str.Previous_INF_is_not_on_disk
push 0x463650
call fcn.0042a920
add esp, 8
jmp 0x40b127
call fcn.0042eab0
test al, al
je 0x40b07e
mov dword [esp + 0x10], edi
push str.Uninstalling_previous_driver_package__if_any
push 0x463650
xor eax, eax
mov dword [esp + 0x248], edi
call fcn.0042a920
add esp, 8
push edi
xor ecx, ecx
mov edx, esi
call fcn.0040b8f0
mov eax, dword [esp + 0x10]
cmp eax, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40afd8
push eax
call ebx
lea eax, [esp + 0x10]
push eax
push 0xf003f
push edi
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40b044
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.Code
push eax
call esi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push edi
push str.Reboot
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40b040
push eax
call ebx
mov dword [esp + 0x10], edi
xor ecx, ecx
cmp dword [esp + 0x20], 1
push str.SoftwareIntelDifx64
sete cl
push 0x80000002
mov dword [esp + 0x24], ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40b078
push eax
call ebx
mov dword [esp + 0x10], edi
jmp 0x40b0f1
push str.Checking_driver_store_for_driver_package
push 0x463650
xor eax, eax
call fcn.0042a920
add esp, 8
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.DIFXAPI.dll_DriverPackageGetPathW]
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x40b0dc
lea ecx, [esp + 0x2c]
push ecx
push str.Uninstalling_previous_driver_package___s_
push 0x463650
xor eax, eax
call fcn.0042a920
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push edi
push edi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.DIFXAPI.dll_DriverPackageUninstallW]
mov dword [esp + 0x18], eax
jmp 0x40b0f1
push eax
push str.Driver_package_not_found_in_driver_store__0x_X_
push 0x463650
xor eax, eax
call fcn.0042a920
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x40b10f
push str.Driver_package_successfully_removed_from_driver_store
push 0x463650
xor eax, eax
call fcn.0042a920
add esp, 8
jmp 0x40b127
push eax
push str.Error_occured_while_uninstalling_driver_package__0x_X_
push 0x463650
mov eax, 1
call fcn.0042a920
add esp, 0xc
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00434b37
add esp, 0x234
ret