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

Disassembly:
push 0xffffffffffffffff
push 0x45208b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
push edi
mov eax, dword [0x4663d8]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor edi, edi
push str.Checking_for_previously_installed_driver_package
push 0x4676b8
xor eax, eax
mov esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x20], edi
call fcn.0042dae0
push esi
push str.Previous_INF___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov eax, esi
add esp, 0x14
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ba30
sub eax, edx
sar eax, 1
jne 0x40ba5a
push str.No_previous_INF_was_found
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 8
jmp 0x40bc16
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ba7c
push str.Previous_INF_is_not_on_disk
push 0x4676b8
call fcn.0042dae0
add esp, 8
jmp 0x40bc16
call fcn.00431d40
test al, al
je 0x40bb6d
mov dword [esp + 0x10], edi
push str.Uninstalling_previous_driver_package__if_any
mov dword [esp + 0x244], edi
push 0x4676b8
xor eax, eax
mov dword [esp + 0x24], edi
call fcn.0042dae0
add esp, 8
push edi
xor ecx, ecx
mov edx, esi
call fcn.0040c460
mov eax, dword [esp + 0x10]
cmp eax, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40bac7
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 0x40bb33
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 + 0x20]
push edx
push edi
push edi
push str.Reboot
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40bb2f
push eax
call ebx
mov dword [esp + 0x10], edi
xor ecx, ecx
cmp dword [esp + 0x1c], 1
push str.SoftwareIntelDifx64
sete cl
push 0x80000002
mov dword [esp + 0x28], ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40bb67
push eax
call ebx
mov dword [esp + 0x10], edi
jmp 0x40bbe0
push str.Checking_driver_store_for_driver_package
push 0x4676b8
xor eax, eax
call fcn.0042dae0
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 0x40bbcb
lea ecx, [esp + 0x2c]
push ecx
push str.Uninstalling_previous_driver_package___s_
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 0xc
lea edx, [esp + 0x20]
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 0x40bbe0
push eax
push str.Driver_package_not_found_in_driver_store__0x_X_
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, edi
jne 0x40bbfe
push str.Driver_package_successfully_removed_from_driver_store
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 8
jmp 0x40bc16
push eax
push str.Error_occured_while_uninstalling_driver_package__0x_X_
push 0x4676b8
mov eax, 1
call fcn.0042dae0
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.00437ffa
add esp, 0x234
ret