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

Disassembly:
push 0xffffffffffffffff
push 0x458661
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x46e3d8]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d8]
xor eax, esp
push eax
lea eax, [esp + 0x278]
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 + 0x280], ebx
mov ecx, dword [0x470ce8]
cmp ecx, ebx
mov dword [esp + 0x18], ebx
je 0x40bed6
mov edx, dword [0x470cec]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40bee1
call fcn.0043e955
mov ecx, dword [0x470ce8]
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.004040c0
mov byte [esp + 0x280], 1
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
mov dword [esi], ebx
jae 0x40bf22
lea eax, [esp + 0x38]
push eax
push str.INF___s
push 0x46fa40
xor eax, eax
call fcn.00431730
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 0x40c08f
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 0x40c08f
mov edx, dword [esp + 0x38]
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jae 0x40bf88
lea edx, [esp + 0x38]
push 1
mov ecx, 0x14
call fcn.0040c7f0
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x40c072
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40bfaf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x20]
push edx
push 0xf003f
push ebx
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
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 0x40c126
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.00431c50
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40c054
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareIntelDifx64
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ebp, 8
jmp 0x40c11e
push eax
push str.Error_0x_X_launching_Drv64.exe
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
jmp 0x40c122
push ebx
push 0x40bb30
call dword [sym.imp.DIFXAPI.dll_DIFXAPISetLogCallbackW]
mov eax, dword [esp + 0x38]
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jae 0x40c0ae
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 0x40c0c8
cmp eax, 0xe000020b
jne 0x40c126
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], 0x104
jae 0x40c0de
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 0x40c126
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c100
mov esi, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00404170
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
cmp eax, 0x47e
ja 0x40c2ce
je 0x40c281
cmp eax, ebx
je 0x40c163
cmp eax, 0x103
jne 0x40c2e4
push str.Installed_driver_is_better_match_for_the_device
push 0x46fa40
mov eax, 1
call fcn.00431730
mov dword [esp + 0x20], ebx
jmp 0x40c3bd
cmp dword [esp + 0x4c], ebp
mov eax, dword [esp + 0x38]
jae 0x40c171
lea eax, [esp + 0x38]
push eax
push str.Installation_source___s
push 0x46fa40
xor eax, eax
call fcn.00431730
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x40c194
mov eax, dword [eax + 4]
jmp 0x40c197
add eax, 4
push eax
push str.DriverStore_location___s
push 0x46fa40
xor eax, eax
call fcn.00431730
add esp, 0xc
cmp dword [esi], ebx
mov eax, 0x45ddc8
jne 0x40c1ba
mov eax, 0x45ddd0
push eax
push str.Package_Requires_Reboot___s
push 0x46fa40
xor eax, eax
call fcn.00431730
mov eax, dword [edi + 0xf8]
lea esi, [edi + 0xf4]
add esp, 0xc
cmp eax, ebx
je 0x40c272
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 0x40c272
cmp dword [edi + 0x70], ebp
jb 0x40c205
mov ebx, dword [edi + 0x5c]
jmp 0x40c208
lea ebx, [edi + 0x5c]
call fcn.0040dbc0
add eax, 0x68
cmp dword [eax + 0x18], ebp
jb 0x40c21a
mov eax, dword [eax + 4]
jmp 0x40c21d
add eax, 4
push eax
call fcn.0043ba30
add esp, 4
push ebx
mov edi, eax
mov ebp, edx
call fcn.0043ba30
add esp, 4
cmp eax, edi
jne 0x40c23b
cmp edx, ebp
je 0x40c251
call fcn.0040dbc0
mov ecx, eax
call fcn.0040bb60
xor ebx, ebx
lea ebp, [ebx + 8]
jmp 0x40c3c0
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 0x46fa40
mov eax, 1
call fcn.00431730
add esp, 8
xor ebx, ebx
lea ebp, [ebx + 8]
jmp 0x40c3c0
push str.No_devices_found_for_driver._Skipping_uninstall_of_previous_driver.
mov eax, 2
jmp 0x40c3b3
push 0x7f01
push 1
push 0x80
push 0x7da
xor edx, edx
mov ecx, 0x7e3
call fcn.004381c0
mov edx, dword [esp + 0x28]
push edx
push str.DriverPackageInstall___Platform_not_Vista_or_higher
push 0x46fa40
mov eax, 2
call fcn.00431730
mov eax, dword [esp + 0x34]
add esp, 0x1c
mov dword [0x46fa64], eax
call fcn.00431680
push ebx
call fcn.0043f1d8
cmp eax, 0xe000020b
je 0x40c3a9
cmp eax, 0xe0000243
je 0x40c39f
push eax
push str.DriverPackageInstall_error_0x_X
push 0x46fa40
mov eax, 2
call fcn.00431730
add esp, 0xc
cmp dword [esp + 0x288], ebx
jne 0x40c386
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, 0x470cf8
mov byte [esp + 0x288], 2
call fcn.00432320
test al, al
jne 0x40c348
lea edx, [esp + 0x50]
push edx
push 0xe
mov ecx, 0x470cf8
call fcn.00432320
cmp dword [esp + 0x68], ebp
mov ecx, dword [esp + 0x54]
jae 0x40c356
lea ecx, [esp + 0x54]
push 0x7f01
push 1
push 0x80
push 0x7da
xor edx, edx
call fcn.004381c0
add esp, 0x10
cmp dword [esp + 0x68], ebp
jb 0x40c3c0
mov eax, dword [esp + 0x54]
push eax
call fcn.0043e965
add esp, 4
jmp 0x40c3c0
mov ecx, dword [esp + 0x18]
mov dword [0x46fa64], ecx
call fcn.00431680
push 0xff
call fcn.0043f1d8
push str.Driver_install_was_cancelled__continuing_with_the_rest_of_the_installation.
jmp 0x40c14b
push str.Device_was_not_found
mov eax, 1
push 0x46fa40
call fcn.00431730
add esp, 8
cmp dword [esp + 0x4c], ebp
mov esi, dword [esp + 0x18]
jb 0x40c3d7
mov edx, dword [esp + 0x38]
push edx
call fcn.0043e965
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 0x40c3f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x278]
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.0043d02a
add esp, 0x270
ret 8