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

Disassembly:
push 0xffffffffffffffff
push 0x45162b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
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 0x4676a0
xor eax, eax
mov esi, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x1c], ebp
call fcn.0042cad0
add esp, 8
cmp dword [esi + 0x28], ebp
jne 0x40b2a1
push str.No_previous_INF_was_found
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 8
jmp 0x40b4e8
mov ebx, 8
cmp dword [esi + 0x2c], ebx
jb 0x40b2b0
mov eax, dword [esi + 0x18]
jmp 0x40b2b3
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b2e1
cmp dword [esi + 0x2c], ebx
jb 0x40b2d1
mov esi, dword [esi + 0x18]
push esi
push str.Previous_INF___s__is_not_on_disk
jmp 0x40b4db
add esi, 0x18
push esi
push str.Previous_INF___s__is_not_on_disk
xor eax, eax
jmp 0x40b4db
cmp dword [esi + 0x2c], ebx
jb 0x40b2eb
mov eax, dword [esi + 0x18]
jmp 0x40b2ee
lea eax, [esi + 0x18]
push eax
push str.Previous_INF___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov eax, dword [esi + 0x98]
add esp, 0xc
lea ecx, [esi + 0x84]
push str.Microsoft
mov edi, 9
call fcn.004052b0
test eax, eax
je 0x40b4ba
call fcn.00431070
test al, al
je 0x40b415
mov dword [esp + 0x18], ebp
push str.Uninstalling_previous_driver_package__if_any
mov dword [esp + 0x244], ebp
push 0x4676a0
xor eax, eax
mov dword [esp + 0x2c], ebp
call fcn.0042cad0
add esp, 8
cmp dword [esi + 0x2c], ebx
jb 0x40b360
mov edx, dword [esi + 0x18]
jmp 0x40b363
lea edx, [esi + 0x18]
push ebp
xor ecx, ecx
call fcn.0040be90
mov eax, dword [esp + 0x18]
cmp eax, ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40b37c
push eax
call esi
lea eax, [esp + 0x18]
push eax
push 0xf003f
push ebp
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40b3d8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov edx, str.Code
call fcn.0042cee0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
mov edx, str.Reboot
call fcn.0042cee0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40b3d4
push eax
call esi
mov dword [esp + 0x18], ebp
xor eax, eax
cmp dword [esp + 0x24], 1
push str.SoftwareIntelDifx64
sete al
push 0x80000002
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 0x40b40c
push eax
call esi
mov dword [esp + 0x18], ebp
jmp 0x40b495
push str.Checking_driver_store_for_driver_package
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 8
cmp dword [esi + 0x2c], ebx
jb 0x40b433
mov esi, dword [esi + 0x18]
jmp 0x40b436
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 0x40b480
lea eax, [esp + 0x2c]
push eax
push str.Uninstalling_previous_driver_package___s_
push 0x4676a0
xor eax, eax
call fcn.0042cad0
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 0x40b499
push eax
push str.Driver_package_not_found_in_driver_store__0x_X_
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x40b4b3
push str.Driver_package_successfully_removed_from_driver_store
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 8
jmp 0x40b4e8
cmp eax, 0xe000023c
jne 0x40b4d0
push str.Existing_driver_package_is_inbox_and_was_not_removed_from_driver_store
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 8
jmp 0x40b4e8
push eax
push str.Error_occured_while_uninstalling_driver_package__0x_X_
mov eax, 1
push 0x4676a0
call fcn.0042cad0
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.0043782a
add esp, 0x230
ret