Function at 0x40b510
Capabilities:
Delete registry key
Query or enumerate registry value
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4527a1
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x28c]
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x284], ebx
mov ecx, dword [0x468c58]
cmp ecx, ebx
mov dword [esp + 0x18], ebx
je 0x40b596
mov edx, dword [0x468c5c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40b5a1
call fcn.00439049
mov ecx, dword [0x468c58]
imul edi, edi, 0x104
add edi, ecx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x20]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
call fcn.004040b0
mov byte [esp + 0x284], 1
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
mov dword [esi], ebx
jae 0x40b5e2
lea eax, [esp + 0x38]
push eax
push str.INF___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x40b74f
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
cmp dword [esp + 0x1c], ebx
setne al
test al, al
je 0x40b74f
mov edx, dword [esp + 0x38]
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jae 0x40b648
lea edx, [esp + 0x38]
push 1
mov ecx, 0x14
call fcn.0040be90
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40b732
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40b66f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x20]
push edx
push 0xf003f
push ebx
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40b7e6
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push str.Code
mov esi, 4
push edx
mov dword [esp + 0x34], esi
call ebp
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebx
push str.Reboot
push edx
mov dword [esp + 0x34], esi
call ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor eax, eax
cmp dword [esp + 0x28], 1
push edx
sete al
mov dword [ecx], eax
lea eax, [esp + 0x24]
push eax
mov eax, str.StorePath
call fcn.0042cf10
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40b714
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ebp, 8
jmp 0x40b7de
push eax
push str.Error_0x_X_launching_Drv64.exe
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
jmp 0x40b7e2
push ebx
push 0x40b1f0
call dword [sym.imp.DIFXAPI.dll_DIFXAPISetLogCallbackW]
mov eax, dword [esp + 0x38]
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jae 0x40b76e
lea eax, [esp + 0x38]
push esi
push ebx
push 0x14
push eax
call dword [sym.imp.DIFXAPI.dll_DriverPackageInstallW]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40b788
cmp eax, 0xe000020b
jne 0x40b7e6
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], 0x104
jae 0x40b79e
lea eax, [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x70]
push edx
push eax
call dword [sym.imp.DIFXAPI.dll_DriverPackageGetPathW]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40b7e6
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b7c0
mov esi, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00404160
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
cmp eax, 0x47e
ja 0x40b992
je 0x40b945
cmp eax, ebx
je 0x40b823
cmp eax, 0x103
jne 0x40b9a8
push str.Installed_driver_is_better_match_for_the_device
push 0x4676a0
mov eax, 1
call fcn.0042cad0
mov dword [esp + 0x20], ebx
jmp 0x40ba5b
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x40b831
lea eax, [esp + 0x38]
push eax
push str.Installation_source___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x40b854
mov eax, dword [eax + 4]
jmp 0x40b857
add eax, 4
push eax
push str.DriverStore_location___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
cmp dword [esi], ebx
mov eax, 0x457d28
jne 0x40b87a
mov eax, 0x457d30
push eax
push str.Package_Requires_Reboot___s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov eax, dword [edi + 0xf8]
lea esi, [edi + 0xf4]
add esp, 0xc
cmp eax, ebx
je 0x40b936
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x40b936
cmp dword [edi + 0x70], ebp
jb 0x40b8c5
mov ebx, dword [edi + 0x5c]
jmp 0x40b8c8
lea ebx, [edi + 0x5c]
call fcn.0040d290
add eax, 0x68
cmp dword [eax + 0x18], ebp
jb 0x40b8da
mov eax, dword [eax + 4]
jmp 0x40b8dd
add eax, 4
push eax
call fcn.00436230
add esp, 4
push ebx
mov edi, eax
mov ebp, edx
call fcn.00436230
add esp, 4
cmp eax, edi
jne 0x40b8fb
cmp edx, ebp
je 0x40b913
call fcn.0040d290
mov ecx, eax
call fcn.0040b220
xor ebx, ebx
mov ebp, 8
jmp 0x40ba5e
push str.The_version_of_the_driver_just_installed_is_the_same_as_the_one_that_was_previously_installed._Skipping_uninstall_of_previous_driver
push 0x4676a0
mov eax, 1
call fcn.0042cad0
add esp, 8
xor ebx, ebx
mov ebp, 8
jmp 0x40ba5e
push str.No_devices_found_for_driver._Skipping_uninstall_of_previous_driver.
mov eax, 2
jmp 0x40ba51
push 0x7f01
push 1
push 0x80
push 0x7da
xor edx, edx
mov ecx, 0x7e3
call fcn.00432a80
mov edx, dword [esp + 0x28]
push edx
push str.DriverPackageInstall___Platform_not_Vista_or_higher
push 0x4676a0
mov eax, 2
call fcn.0042cad0
mov eax, dword [esp + 0x34]
add esp, 0x1c
mov dword [0x4676c4], eax
call fcn.0042ca20
push ebx
call fcn.00439dfc
cmp eax, 0xe000020b
je 0x40ba47
cmp eax, 0xe0000243
je 0x40ba3d
push eax
push str.DriverPackageInstall_error_0x_X
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
lea ecx, [esp + 0x50]
push ecx
push 0x41
mov ecx, 0x468c68
mov byte [esp + 0x28c], 2
call fcn.0042d5d0
test al, al
jne 0x40b9ff
lea edx, [esp + 0x50]
push edx
push 0xe
mov ecx, 0x468c68
call fcn.0042d5d0
cmp dword [esp + 0x68], ebp
mov ecx, dword [esp + 0x54]
jae 0x40ba0d
lea ecx, [esp + 0x54]
push 0x7f01
push 1
push 0x80
push 0x7da
xor edx, edx
call fcn.00432a80
add esp, 0x10
cmp dword [esp + 0x68], ebp
jb 0x40ba5e
mov eax, dword [esp + 0x54]
push eax
call fcn.00439059
add esp, 4
jmp 0x40ba5e
push str.Driver_install_was_cancelled__continuing_with_the_rest_of_the_installation.
jmp 0x40b80b
push str.Device_was_not_found
mov eax, 1
push 0x4676a0
call fcn.0042cad0
add esp, 8
cmp dword [esp + 0x4c], ebp
mov esi, dword [esp + 0x18]
jb 0x40ba75
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00439059
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
je 0x40ba95
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0043782a
add esp, 0x274
ret 4