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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45040e
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], 0x104
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
push str.Checking_for_previously_installed_driver_package
push 0x4699dc
mov byte [ebp - 4], 1
call fcn.0042c820
add esp, 8
cmp dword [edi + 0x24], ebx
jne 0x40ac18
push str.Skipping_uninstall_of_previous_driver._File_path_not_found.
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
jmp 0x40afb1
cmp dword [edi + 0x28], 8
lea esi, [edi + 0x14]
jb 0x40ac25
mov eax, dword [esi]
jmp 0x40ac27
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ac54
cmp dword [esi + 0x14], 8
jb 0x40ac3a
mov esi, dword [esi]
push esi
push str.Skipping_uninstall_of_previous_driver._INF_file_not_found_on_disk:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
jmp 0x40afb1
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x84]
push str.Microsoft
mov edi, 9
call fcn.00404ab0
test eax, eax
jne 0x40ac95
cmp dword [esi + 0x14], 8
jb 0x40ac7b
mov esi, dword [esi]
push esi
push str.Skipping_uninstall_of_previous_driver._Previous_driver_package_is_inbox:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
jmp 0x40afb1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x23c], esp
push ebx
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push esi
or eax, 0xffffffff
lea edi, [ebp - 0x238]
mov word [ecx], dx
call fcn.004061c0
mov ecx, edi
call fcn.0040a9f0
add esp, 0x1c
test al, al
jne 0x40acef
cmp dword [esi + 0x14], 8
jb 0x40acd5
mov esi, dword [esi]
push esi
push str.Skipping_uninstall_of_previous_driver._INF_could_not_be_parsed:__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
jmp 0x40afb1
mov eax, dword [ebp + 8]
mov edi, 8
cmp dword [ebp + 0x1c], edi
jae 0x40acff
lea eax, [ebp + 8]
push eax
push str.Current_Driver:___s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
cmp dword [esi + 0x14], edi
jb 0x40ad1d
mov eax, dword [esi]
jmp 0x40ad1f
mov eax, esi
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jae 0x40ad33
lea ecx, [ebp - 0x238]
push eax
push ecx
push str.Previous_Driver:__s__s
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0x10
cmp dword [ebp + 0x1c], edi
jb 0x40ad59
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
jmp 0x40ad62
lea ecx, [ebp + 8]
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jae 0x40ad76
lea eax, [ebp - 0x238]
push eax
call fcn.004365a0
mov ebx, edx
mov edx, dword [ebp - 0x23c]
add esp, 4
push edx
mov edi, eax
call fcn.004365a0
add esp, 4
cmp eax, edi
jne 0x40adb6
cmp edx, ebx
jne 0x40adb6
push str.Skipping_uninstall_of_previous_driver._The_version_of_the_current_and_previous_drivers_are_the_same.
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 8
jmp 0x40afaf
push str.Removing_previous_driver_package.
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
call fcn.00430aa0
test al, al
je 0x40aecd
xor edi, edi
mov dword [ebp - 0x248], edi
push str.Uninstalling_previous_driver_package__if_any
mov byte [ebp - 4], 2
push 0x4699dc
xor eax, eax
mov dword [ebp - 0x23c], edi
call fcn.0042c820
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40ae07
mov ecx, dword [esi]
jmp 0x40ae09
mov ecx, esi
push edi
push edi
call fcn.0040b930
mov eax, dword [ebp - 0x248]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x40ae23
push eax
call esi
lea eax, [ebp - 0x248]
push eax
push 0xf003f
push edi
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40ae91
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x240]
mov edx, str.Code
call fcn.0042ccc0
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x23c]
mov edx, str.Reboot
call fcn.0042ccc0
mov eax, dword [ebp - 0x248]
cmp eax, edi
je 0x40ae8b
push eax
call esi
mov dword [ebp - 0x248], edi
xor eax, eax
cmp dword [ebp - 0x23c], 1
push str.SoftwareIntelDifx64
sete al
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24c], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x248]
cmp eax, edi
je 0x40af5a
push eax
call esi
jmp 0x40af5a
push str.Checking_driver_store_for_driver_package
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40aee9
mov esi, dword [esi]
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x21c]
push edx
push esi
call dword [sym.imp.DIFXAPI.dll_DriverPackageGetPathW]
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x40af43
lea eax, [ebp - 0x21c]
push eax
push str.Uninstalling_previous_driver_package___s_
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.DIFXAPI.dll_DriverPackageUninstallW]
mov dword [ebp - 0x240], eax
jmp 0x40af58
push eax
push str.Driver_package_not_found_in_driver_store__0x_X_
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 0xc
xor edi, edi
mov eax, dword [ebp - 0x240]
cmp eax, edi
jne 0x40af7a
push str.Driver_package_successfully_removed_from_driver_store
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
jmp 0x40afaf
cmp eax, 0xe000023c
jne 0x40af97
push str.Existing_driver_package_is_inbox_and_was_not_removed_from_driver_store
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
jmp 0x40afaf
push eax
push str.Error_occured_while_uninstalling_driver_package__0x_X_
push 0x4699dc
mov eax, 1
call fcn.0042c820
add esp, 0xc
xor ebx, ebx
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x40afcd
mov eax, dword [ebp - 0x238]
push eax
call fcn.00438b4b
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], cx
cmp dword [ebp + 0x1c], esi
jb 0x40aff7
mov edx, dword [ebp + 8]
push edx
call fcn.00438b4b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004377c1
mov esp, ebp
pop ebp
ret 0x1c