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

Disassembly:
push 0xffffffffffffffff
push 0x4531d1
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4663d8]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663d8]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x284]
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x278], ebx
mov ecx, dword [0x468c18]
cmp ecx, ebx
mov dword [esp + 0x14], ebx
je 0x40bcc6
mov edx, dword [0x468c1c]
sub edx, ecx
mov eax, 0x7e07e07f
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40bcd1
call fcn.00439412
mov ecx, dword [0x468c18]
imul edi, edi, 0x104
add edi, ecx
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
call fcn.00404010
mov byte [esp + 0x278], 1
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
mov dword [esi], ebx
jae 0x40bd12
lea eax, [esp + 0x30]
push eax
push str.INF___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
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 0x40be6b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
cmp dword [esp + 0x18], ebx
setne al
test al, al
je 0x40be6b
mov edx, dword [esp + 0x30]
mov ebp, 8
cmp dword [esp + 0x44], ebp
jae 0x40bd78
lea edx, [esp + 0x30]
push 1
mov ecx, 0x14
call fcn.0040c460
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40be51
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40bd9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push ebx
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40bf12
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push str.Code
push edx
call ebp
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push str.Reboot
push edx
call ebp
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp dword [esp + 0x18], 1
push ecx
sete al
lea edx, [esp + 0x20]
push edx
mov dword [esi], eax
mov eax, str.StorePath
call fcn.0042dfd0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40be33
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareIntelDifx64
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ebp, 8
jmp 0x40bf0e
push eax
push str.Error_0x_X_launching_Drv64.exe
push 0x4676b8
mov eax, 2
call fcn.0042dae0
jmp 0x40bf0b
push ebx
push 0x40b980
call dword [sym.imp.DIFXAPI.dll_DIFXAPISetLogCallbackW]
mov eax, dword [esp + 0x30]
mov ebp, 8
cmp dword [esp + 0x44], ebp
jae 0x40be8a
lea eax, [esp + 0x30]
push esi
push ebx
push 0x14
push eax
call dword [sym.imp.DIFXAPI.dll_DriverPackageInstallW]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40bf12
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], 0x104
jae 0x40beb3
lea eax, [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.DIFXAPI.dll_DriverPackageGetPathW]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x40bf12
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bed3
mov esi, dword [esp + 0x28]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004040c0
lea ecx, [esp + 0x64]
push ecx
push str.Store_location___s_
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov esi, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, 0x47e
ja 0x40c0b9
je 0x40c06b
cmp eax, ebx
je 0x40bf4f
cmp eax, 0x103
jne 0x40c0cf
push str.Installed_driver_is_better_match_for_the_device
push 0x4676b8
mov eax, 1
call fcn.0042dae0
mov dword [esp + 0x1c], ebx
jmp 0x40c1a7
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x40bf5d
lea eax, [esp + 0x30]
push eax
push str.Installed_Package___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
add esp, 0xc
cmp dword [esi], ebx
mov eax, 0x457c48
jne 0x40bf80
mov eax, 0x457c50
push eax
push str.Package_Requires_Reboot___s
push 0x4676b8
xor eax, eax
call fcn.0042dae0
mov eax, dword [edi + 0xf8]
lea esi, [edi + 0xf4]
add esp, 0xc
cmp eax, ebx
je 0x40c05c
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40c05c
cmp dword [edi + 0x70], ebp
jb 0x40bfcf
mov ebx, dword [edi + 0x5c]
jmp 0x40bfd2
lea ebx, [edi + 0x5c]
call fcn.0040d4c0
add eax, 0x68
cmp dword [eax + 0x18], ebp
jb 0x40bfe4
mov eax, dword [eax + 4]
jmp 0x40bfe7
add eax, 4
push eax
call fcn.00436a00
add esp, 4
push ebx
mov edi, eax
mov ebp, edx
call fcn.00436a00
add esp, 4
cmp eax, edi
jne 0x40c005
cmp edx, ebp
je 0x40c03b
call fcn.0040d4c0
add eax, 0x14
cmp dword [eax + 0x18], 8
jb 0x40c027
mov eax, dword [eax + 4]
mov ecx, eax
call fcn.0040b9b0
xor ebx, ebx
lea ebp, [ebx + 8]
jmp 0x40c1aa
add eax, 4
mov ecx, eax
call fcn.0040b9b0
xor ebx, ebx
lea ebp, [ebx + 8]
jmp 0x40c1aa
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 0x4676b8
mov eax, 1
call fcn.0042dae0
add esp, 8
xor ebx, ebx
lea ebp, [ebx + 8]
jmp 0x40c1aa
push str.No_devices_found_for_driver._Skipping_uninstall_of_previous_driver.
mov eax, 2
jmp 0x40c19d
push 0x7f01
push 1
push 0x80
push 0x7da
xor edx, edx
mov ecx, 0x7e3
call fcn.00433190
mov ecx, dword [esp + 0x24]
push ecx
push str.DriverPackageInstall___Platform_not_Vista_or_higher
push 0x4676b8
mov eax, 2
call fcn.0042dae0
mov edx, dword [esp + 0x30]
add esp, 0x1c
mov dword [0x4676dc], edx
call fcn.0042da30
push ebx
call fcn.00439cca
cmp eax, 0xe000020b
je 0x40c193
cmp eax, 0xe0000243
je 0x40c189
push eax
push str.DriverPackageInstall_error_0x_X
push 0x4676b8
mov eax, 2
call fcn.0042dae0
add esp, 0xc
cmp dword [esp + 0x280], ebx
jne 0x40c171
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
lea eax, [esp + 0x48]
push eax
push 0x41
mov ecx, 0x468c28
mov byte [esp + 0x280], 2
call fcn.0042e690
test al, al
jne 0x40c133
lea ecx, [esp + 0x48]
push ecx
push 0xe
mov ecx, 0x468c28
call fcn.0042e690
cmp dword [esp + 0x60], ebp
mov ecx, dword [esp + 0x4c]
jae 0x40c141
lea ecx, [esp + 0x4c]
push 0x7f01
push 1
push 0x80
push 0x7da
xor edx, edx
call fcn.00433190
add esp, 0x10
cmp dword [esp + 0x60], ebp
jb 0x40c1aa
mov edx, dword [esp + 0x4c]
push edx
call fcn.00439935
add esp, 4
jmp 0x40c1aa
mov eax, dword [esp + 0x14]
mov dword [0x4676dc], eax
call fcn.0042da30
push 0xff
call fcn.00439cca
push str.Driver_install_was_cancelled__continuing_with_the_rest_of_the_installation.
jmp 0x40bf37
push str.Device_was_not_found
mov eax, 1
push 0x4676b8
call fcn.0042dae0
add esp, 8
cmp dword [esp + 0x44], ebp
mov esi, dword [esp + 0x14]
jb 0x40c1c1
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00439935
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
je 0x40c1e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00437ffa
add esp, 0x268
ret 8