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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45041e
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 0x40ac08
push str.Skipping_uninstall_of_previous_driver._File_path_not_found.
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
jmp 0x40afa1
cmp dword [edi + 0x28], 8
lea esi, [edi + 0x14]
jb 0x40ac15
mov eax, dword [esi]
jmp 0x40ac17
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ac44
cmp dword [esi + 0x14], 8
jb 0x40ac2a
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 0x40afa1
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x84]
push str.Microsoft
mov edi, 9
call fcn.00404ab0
test eax, eax
jne 0x40ac85
cmp dword [esi + 0x14], 8
jb 0x40ac6b
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 0x40afa1
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.0040a9e0
add esp, 0x1c
test al, al
jne 0x40acdf
cmp dword [esi + 0x14], 8
jb 0x40acc5
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 0x40afa1
mov eax, dword [ebp + 8]
mov edi, 8
cmp dword [ebp + 0x1c], edi
jae 0x40acef
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 0x40ad0d
mov eax, dword [esi]
jmp 0x40ad0f
mov eax, esi
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jae 0x40ad23
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 0x40ad49
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
jmp 0x40ad52
lea ecx, [ebp + 8]
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jae 0x40ad66
lea eax, [ebp - 0x238]
push eax
call fcn.004365b0
mov ebx, edx
mov edx, dword [ebp - 0x23c]
add esp, 4
push edx
mov edi, eax
call fcn.004365b0
add esp, 4
cmp eax, edi
jne 0x40ada6
cmp edx, ebx
jne 0x40ada6
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 0x40af9f
push str.Removing_previous_driver_package.
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
call fcn.00430aa0
test al, al
je 0x40aebd
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 0x40adf7
mov ecx, dword [esi]
jmp 0x40adf9
mov ecx, esi
push edi
push edi
call fcn.0040b920
mov eax, dword [ebp - 0x248]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x40ae13
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 0x40ae81
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 0x40ae7b
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 0x40af4a
push eax
call esi
jmp 0x40af4a
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 0x40aed9
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 0x40af33
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 0x40af48
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 0x40af6a
push str.Driver_package_successfully_removed_from_driver_store
push 0x4699dc
xor eax, eax
call fcn.0042c820
add esp, 8
jmp 0x40af9f
cmp eax, 0xe000023c
jne 0x40af87
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 0x40af9f
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 0x40afbd
mov eax, dword [ebp - 0x238]
push eax
call fcn.00438b5b
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 0x40afe7
mov edx, dword [ebp + 8]
push edx
call fcn.00438b5b
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.004377d1
mov esp, ebp
pop ebp
ret 0x1c