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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45118e
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x469744]
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 0x46a9d4
mov byte [ebp - 4], 1
call fcn.0042d150
add esp, 8
cmp dword [edi + 0x24], ebx
jne 0x40ad58
push str.Skipping_uninstall_of_previous_driver._File_path_not_found.
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
jmp 0x40b0f2
cmp dword [edi + 0x28], 8
lea esi, [edi + 0x14]
jb 0x40ad65
mov eax, dword [esi]
jmp 0x40ad67
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ad94
cmp dword [esi + 0x14], 8
jb 0x40ad7a
mov esi, dword [esi]
push esi
push str.Skipping_uninstall_of_previous_driver._INF_file_not_found_on_disk:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
jmp 0x40b0f2
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x84]
push str.Microsoft
mov edi, 9
call fcn.00404a60
test eax, eax
jne 0x40add5
cmp dword [esi + 0x14], 8
jb 0x40adbb
mov esi, dword [esi]
push esi
push str.Skipping_uninstall_of_previous_driver._Previous_driver_package_is_inbox:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
jmp 0x40b0f2
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.00406170
mov ecx, edi
call fcn.0040ab20
add esp, 0x1c
test al, al
jne 0x40ae2f
cmp dword [esi + 0x14], 8
jb 0x40ae15
mov esi, dword [esi]
push esi
push str.Skipping_uninstall_of_previous_driver._INF_could_not_be_parsed:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
jmp 0x40b0f2
mov eax, dword [ebp + 8]
mov edi, 8
cmp dword [ebp + 0x1c], edi
jae 0x40ae3f
lea eax, [ebp + 8]
push eax
push str.Current_Driver:___s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
cmp dword [esi + 0x14], edi
jb 0x40ae5d
mov eax, dword [esi]
jmp 0x40ae5f
mov eax, esi
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jae 0x40ae73
lea ecx, [ebp - 0x238]
push eax
push ecx
push str.Previous_Driver:__s__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0x10
cmp dword [ebp + 0x1c], edi
jb 0x40ae99
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
jmp 0x40aea2
lea ecx, [ebp + 8]
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x224], edi
jae 0x40aeb6
lea eax, [ebp - 0x238]
push eax
call fcn.00437060
mov ebx, edx
mov edx, dword [ebp - 0x23c]
add esp, 4
push edx
mov edi, eax
call fcn.00437060
add esp, 4
cmp eax, edi
jne 0x40aef6
cmp edx, ebx
jne 0x40aef6
push str.Skipping_uninstall_of_previous_driver._The_version_of_the_current_and_previous_drivers_are_the_same.
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 8
jmp 0x40b0f0
push str.Removing_previous_driver_package.
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
call fcn.004313c0
test al, al
je 0x40b00e
xor edi, edi
mov dword [ebp - 0x248], edi
push str.Uninstalling_previous_driver_package__if_any
mov byte [ebp - 4], 2
push 0x46a9d4
xor eax, eax
mov dword [ebp - 0x23c], edi
call fcn.0042d150
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40af47
mov ecx, dword [esi]
jmp 0x40af49
mov ecx, esi
push edi
push edi
push edi
call fcn.0040bb60
mov eax, dword [ebp - 0x248]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x40af64
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 0x40afd2
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x240]
mov edx, str.Code
call fcn.0042d5f0
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x23c]
mov edx, str.Reboot
call fcn.0042d5f0
mov eax, dword [ebp - 0x248]
cmp eax, edi
je 0x40afcc
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 0x40b09b
push eax
call esi
jmp 0x40b09b
push str.Checking_driver_store_for_driver_package
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x40b02a
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 0x40b084
lea eax, [ebp - 0x21c]
push eax
push str.Uninstalling_previous_driver_package___s_
push 0x46a9d4
xor eax, eax
call fcn.0042d150
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 0x40b099
push eax
push str.Driver_package_not_found_in_driver_store__0x_X_
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
xor edi, edi
mov eax, dword [ebp - 0x240]
cmp eax, edi
jne 0x40b0bb
push str.Driver_package_successfully_removed_from_driver_store
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
jmp 0x40b0f0
cmp eax, 0xe000023c
jne 0x40b0d8
push str.Existing_driver_package_is_inbox_and_was_not_removed_from_driver_store
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
jmp 0x40b0f0
push eax
push str.Error_occured_while_uninstalling_driver_package__0x_X_
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
xor ebx, ebx
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x40b10e
mov eax, dword [ebp - 0x238]
push eax
call fcn.00439c00
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 0x40b138
mov edx, dword [ebp + 8]
push edx
call fcn.00439c00
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.00438876
mov esp, ebp
pop ebp
ret 0x1c