Function at 0x40bb60
Capabilities:
Check if file exists
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x45748b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebp, ebp
push str.Checking_for_previously_installed_driver_package
push 0x46fa40
xor eax, eax
mov esi, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x1c], ebp
call fcn.00431730
add esp, 8
cmp dword [esi + 0x28], ebp
jne 0x40bbe1
push str.No_previous_INF_was_found
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 8
jmp 0x40be28
mov ebx, 8
cmp dword [esi + 0x2c], ebx
jb 0x40bbf0
mov eax, dword [esi + 0x18]
jmp 0x40bbf3
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bc21
cmp dword [esi + 0x2c], ebx
jb 0x40bc11
mov esi, dword [esi + 0x18]
push esi
push str.Previous_INF___s__is_not_on_disk
jmp 0x40be1b
add esi, 0x18
push esi
push str.Previous_INF___s__is_not_on_disk
xor eax, eax
jmp 0x40be1b
cmp dword [esi + 0x2c], ebx
jb 0x40bc2b
mov eax, dword [esi + 0x18]
jmp 0x40bc2e
lea eax, [esi + 0x18]
push eax
push str.Previous_INF___s
push 0x46fa40
xor eax, eax
call fcn.00431730
mov eax, dword [esi + 0x98]
add esp, 0xc
lea ecx, [esi + 0x84]
push str.Microsoft
mov edi, 9
call fcn.004052d0
test eax, eax
je 0x40bdfa
call fcn.00435e20
test al, al
je 0x40bd55
mov dword [esp + 0x18], ebp
push str.Uninstalling_previous_driver_package__if_any
mov dword [esp + 0x244], ebp
push 0x46fa40
xor eax, eax
mov dword [esp + 0x2c], ebp
call fcn.00431730
add esp, 8
cmp dword [esi + 0x2c], ebx
jb 0x40bca0
mov edx, dword [esi + 0x18]
jmp 0x40bca3
lea edx, [esi + 0x18]
push ebp
xor ecx, ecx
call fcn.0040c7f0
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40bcbc
push eax
call esi
lea eax, [esp + 0x18]
push eax
push 0xf003f
push ebp
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40bd18
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov edx, str.Code
call fcn.00431c20
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
mov edx, str.Reboot
call fcn.00431c20
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40bd14
push eax
call esi
mov dword [esp + 0x18], ebp
xor eax, eax
cmp dword [esp + 0x24], 1
push str.SoftwareIntelDifx64
sete al
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40bd4c
push eax
call esi
mov dword [esp + 0x18], ebp
jmp 0x40bdd5
push str.Checking_driver_store_for_driver_package
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 8
cmp dword [esi + 0x2c], ebx
jb 0x40bd73
mov esi, dword [esi + 0x18]
jmp 0x40bd76
add esi, 0x18
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.DIFXAPI.dll_DriverPackageGetPathW]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x40bdc0
lea eax, [esp + 0x2c]
push eax
push str.Uninstalling_previous_driver_package___s_
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebp
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.DIFXAPI.dll_DriverPackageUninstallW]
mov dword [esp + 0x14], eax
jmp 0x40bdd9
push eax
push str.Driver_package_not_found_in_driver_store__0x_X_
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x40bdf3
push str.Driver_package_successfully_removed_from_driver_store
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 8
jmp 0x40be28
cmp eax, 0xe000023c
jne 0x40be10
push str.Existing_driver_package_is_inbox_and_was_not_removed_from_driver_store
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 8
jmp 0x40be28
push eax
push str.Error_occured_while_uninstalling_driver_package__0x_X_
mov eax, 1
push 0x46fa40
call fcn.00431730
add esp, 0xc
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0043d02a
add esp, 0x230
ret